f5aa4d0c20665625329a696ddd2607a407716f7e
[moonshot-ui.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Moonshot-ui 0.7.2.
4 #
5 # Report bugs to <moonshot-community@jiscmail.ac.uk>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: moonshot-community@jiscmail.ac.uk about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569 as_awk_strverscmp='
570   # Use only awk features that work with 7th edition Unix awk (1978).
571   # My, what an old awk you have, Mr. Solaris!
572   END {
573     while (length(v1) && length(v2)) {
574       # Set d1 to be the next thing to compare from v1, and likewise for d2.
575       # Normally this is a single character, but if v1 and v2 contain digits,
576       # compare them as integers and fractions as strverscmp does.
577       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
578         # Split v1 and v2 into their leading digit string components d1 and d2,
579         # and advance v1 and v2 past the leading digit strings.
580         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
581         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
582         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
583         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
584         if (d1 ~ /^0/) {
585           if (d2 ~ /^0/) {
586             # Compare two fractions.
587             while (d1 ~ /^0/ && d2 ~ /^0/) {
588               d1 = substr(d1, 2); len1--
589               d2 = substr(d2, 2); len2--
590             }
591             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
592               # The two components differ in length, and the common prefix
593               # contains only leading zeros.  Consider the longer to be less.
594               d1 = -len1
595               d2 = -len2
596             } else {
597               # Otherwise, compare as strings.
598               d1 = "x" d1
599               d2 = "x" d2
600             }
601           } else {
602             # A fraction is less than an integer.
603             exit 1
604           }
605         } else {
606           if (d2 ~ /^0/) {
607             # An integer is greater than a fraction.
608             exit 2
609           } else {
610             # Compare two integers.
611             d1 += 0
612             d2 += 0
613           }
614         }
615       } else {
616         # The normal case, without worrying about digits.
617         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
618         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
619       }
620       if (d1 < d2) exit 1
621       if (d1 > d2) exit 2
622     }
623     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
624     # which mishandles some comparisons of empty strings to integers.
625     if (length(v2)) exit 1
626     if (length(v1)) exit 2
627   }
628 '
629
630 test -n "$DJDIR" || exec 7<&0 </dev/null
631 exec 6>&1
632
633 # Name of the host.
634 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
635 # so uname gets run too.
636 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
637
638 #
639 # Initializations.
640 #
641 ac_default_prefix=/usr/local
642 ac_clean_files=
643 ac_config_libobj_dir=.
644 LIBOBJS=
645 cross_compiling=no
646 subdirs=
647 MFLAGS=
648 MAKEFLAGS=
649
650 # Identity of this package.
651 PACKAGE_NAME='Moonshot-ui'
652 PACKAGE_TARNAME='moonshot-ui'
653 PACKAGE_VERSION='0.7.2'
654 PACKAGE_STRING='Moonshot-ui 0.7.2'
655 PACKAGE_BUGREPORT='moonshot-community@jiscmail.ac.uk'
656 PACKAGE_URL='http://www.project-moonshot.org/'
657
658 ac_unique_file="configure.ac"
659 # Factoring default headers for most tests.
660 ac_includes_default="\
661 #include <stdio.h>
662 #ifdef HAVE_SYS_TYPES_H
663 # include <sys/types.h>
664 #endif
665 #ifdef HAVE_SYS_STAT_H
666 # include <sys/stat.h>
667 #endif
668 #ifdef STDC_HEADERS
669 # include <stdlib.h>
670 # include <stddef.h>
671 #else
672 # ifdef HAVE_STDLIB_H
673 #  include <stdlib.h>
674 # endif
675 #endif
676 #ifdef HAVE_STRING_H
677 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
678 #  include <memory.h>
679 # endif
680 # include <string.h>
681 #endif
682 #ifdef HAVE_STRINGS_H
683 # include <strings.h>
684 #endif
685 #ifdef HAVE_INTTYPES_H
686 # include <inttypes.h>
687 #endif
688 #ifdef HAVE_STDINT_H
689 # include <stdint.h>
690 #endif
691 #ifdef HAVE_UNISTD_H
692 # include <unistd.h>
693 #endif"
694
695 ac_func_list=
696 gt_needs=
697 ac_subst_vars='am__EXEEXT_FALSE
698 am__EXEEXT_TRUE
699 LTLIBOBJS
700 LIBOBJS
701 GETTEXT_PACKAGE
702 POSUB
703 LTLIBINTL
704 LIBINTL
705 INTLLIBS
706 LTLIBICONV
707 LIBICONV
708 INTL_MACOSX_LIBS
709 XGETTEXT_EXTRA_OPTIONS
710 MSGMERGE
711 XGETTEXT_015
712 XGETTEXT
713 GMSGFMT_015
714 MSGFMT_015
715 GMSGFMT
716 MSGFMT
717 GETTEXT_MACRO_VERSION
718 USE_NLS
719 libmoonshot_LIBS
720 libmoonshot_CFLAGS
721 moonshot_LIBS
722 moonshot_CFLAGS
723 MOONSHOT_WEBP
724 MOONSHOT_APP
725 UPDATE_DESKTOP_DATABASE
726 UPDATE_MIME_DATABASE
727 WIX_LIGHT
728 WIX_CANDLE
729 IMAGEMAGICK_CONVERT
730 MSVC_LIB
731 MIDL
732 MIDL_WRAPPER
733 MSRPC_LIBS
734 MSRPC_CFLAGS
735 GIO_VAPI_USES_ARRAYS_FALSE
736 GIO_VAPI_USES_ARRAYS_TRUE
737 IPC_GDBUS_FALSE
738 IPC_GDBUS_TRUE
739 IPC_DBUS_GLIB_FALSE
740 IPC_DBUS_GLIB_TRUE
741 IPC_DBUS_FALSE
742 IPC_DBUS_TRUE
743 IPC_MSRPC_FALSE
744 IPC_MSRPC_TRUE
745 OS_MACOS_FALSE
746 OS_MACOS_TRUE
747 OS_WIN32_FALSE
748 OS_WIN32_TRUE
749 OS_LINUX_FALSE
750 OS_LINUX_TRUE
751 GDBUS_LIBS
752 GDBUS_CFLAGS
753 MAC_LIBS
754 MAC_CFLAGS
755 GTK_LIBS
756 GTK_CFLAGS
757 VALAC
758 PKG_CONFIG_LIBDIR
759 PKG_CONFIG_PATH
760 PKG_CONFIG
761 CPP
762 OTOOL64
763 OTOOL
764 LIPO
765 NMEDIT
766 DSYMUTIL
767 MANIFEST_TOOL
768 RANLIB
769 ac_ct_AR
770 AR
771 LN_S
772 NM
773 ac_ct_DUMPBIN
774 DUMPBIN
775 LD
776 FGREP
777 EGREP
778 GREP
779 SED
780 am__fastdepCC_FALSE
781 am__fastdepCC_TRUE
782 CCDEPMODE
783 am__nodep
784 AMDEPBACKSLASH
785 AMDEP_FALSE
786 AMDEP_TRUE
787 am__quote
788 am__include
789 DEPDIR
790 OBJEXT
791 EXEEXT
792 ac_ct_CC
793 CPPFLAGS
794 LDFLAGS
795 CFLAGS
796 CC
797 host_os
798 host_vendor
799 host_cpu
800 host
801 build_os
802 build_vendor
803 build_cpu
804 build
805 LIBTOOL
806 OBJDUMP
807 DLLTOOL
808 AS
809 MAINT
810 MAINTAINER_MODE_FALSE
811 MAINTAINER_MODE_TRUE
812 AM_BACKSLASH
813 AM_DEFAULT_VERBOSITY
814 AM_DEFAULT_V
815 AM_V
816 am__untar
817 am__tar
818 AMTAR
819 am__leading_dot
820 SET_MAKE
821 AWK
822 mkdir_p
823 MKDIR_P
824 INSTALL_STRIP_PROGRAM
825 STRIP
826 install_sh
827 MAKEINFO
828 AUTOHEADER
829 AUTOMAKE
830 AUTOCONF
831 ACLOCAL
832 VERSION
833 PACKAGE
834 CYGPATH_W
835 am__isrc
836 INSTALL_DATA
837 INSTALL_SCRIPT
838 INSTALL_PROGRAM
839 target_alias
840 host_alias
841 build_alias
842 LIBS
843 ECHO_T
844 ECHO_N
845 ECHO_C
846 DEFS
847 mandir
848 localedir
849 libdir
850 psdir
851 pdfdir
852 dvidir
853 htmldir
854 infodir
855 docdir
856 oldincludedir
857 includedir
858 localstatedir
859 sharedstatedir
860 sysconfdir
861 datadir
862 datarootdir
863 libexecdir
864 sbindir
865 bindir
866 program_transform_name
867 prefix
868 exec_prefix
869 PACKAGE_URL
870 PACKAGE_BUGREPORT
871 PACKAGE_STRING
872 PACKAGE_VERSION
873 PACKAGE_TARNAME
874 PACKAGE_NAME
875 PATH_SEPARATOR
876 SHELL'
877 ac_subst_files=''
878 ac_user_opts='
879 enable_option_checking
880 enable_silent_rules
881 enable_maintainer_mode
882 enable_shared
883 enable_static
884 with_pic
885 enable_fast_install
886 enable_dependency_tracking
887 with_gnu_ld
888 with_sysroot
889 enable_libtool_lock
890 enable_nls
891 enable_rpath
892 with_libiconv_prefix
893 with_libintl_prefix
894 '
895       ac_precious_vars='build_alias
896 host_alias
897 target_alias
898 CC
899 CFLAGS
900 LDFLAGS
901 LIBS
902 CPPFLAGS
903 CPP
904 PKG_CONFIG
905 PKG_CONFIG_PATH
906 PKG_CONFIG_LIBDIR
907 GTK_CFLAGS
908 GTK_LIBS
909 MAC_CFLAGS
910 MAC_LIBS
911 GDBUS_CFLAGS
912 GDBUS_LIBS
913 moonshot_CFLAGS
914 moonshot_LIBS
915 libmoonshot_CFLAGS
916 libmoonshot_LIBS'
917
918
919 # Initialize some variables set by options.
920 ac_init_help=
921 ac_init_version=false
922 ac_unrecognized_opts=
923 ac_unrecognized_sep=
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
926 cache_file=/dev/null
927 exec_prefix=NONE
928 no_create=
929 no_recursion=
930 prefix=NONE
931 program_prefix=NONE
932 program_suffix=NONE
933 program_transform_name=s,x,x,
934 silent=
935 site=
936 srcdir=
937 verbose=
938 x_includes=NONE
939 x_libraries=NONE
940
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir='${exec_prefix}/bin'
948 sbindir='${exec_prefix}/sbin'
949 libexecdir='${exec_prefix}/libexec'
950 datarootdir='${prefix}/share'
951 datadir='${datarootdir}'
952 sysconfdir='${prefix}/etc'
953 sharedstatedir='${prefix}/com'
954 localstatedir='${prefix}/var'
955 includedir='${prefix}/include'
956 oldincludedir='/usr/include'
957 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
958 infodir='${datarootdir}/info'
959 htmldir='${docdir}'
960 dvidir='${docdir}'
961 pdfdir='${docdir}'
962 psdir='${docdir}'
963 libdir='${exec_prefix}/lib'
964 localedir='${datarootdir}/locale'
965 mandir='${datarootdir}/man'
966
967 ac_prev=
968 ac_dashdash=
969 for ac_option
970 do
971   # If the previous option needs an argument, assign it.
972   if test -n "$ac_prev"; then
973     eval $ac_prev=\$ac_option
974     ac_prev=
975     continue
976   fi
977
978   case $ac_option in
979   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980   *=)   ac_optarg= ;;
981   *)    ac_optarg=yes ;;
982   esac
983
984   # Accept the important Cygnus configure options, so we can diagnose typos.
985
986   case $ac_dashdash$ac_option in
987   --)
988     ac_dashdash=yes ;;
989
990   -bindir | --bindir | --bindi | --bind | --bin | --bi)
991     ac_prev=bindir ;;
992   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993     bindir=$ac_optarg ;;
994
995   -build | --build | --buil | --bui | --bu)
996     ac_prev=build_alias ;;
997   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998     build_alias=$ac_optarg ;;
999
1000   -cache-file | --cache-file | --cache-fil | --cache-fi \
1001   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002     ac_prev=cache_file ;;
1003   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005     cache_file=$ac_optarg ;;
1006
1007   --config-cache | -C)
1008     cache_file=config.cache ;;
1009
1010   -datadir | --datadir | --datadi | --datad)
1011     ac_prev=datadir ;;
1012   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013     datadir=$ac_optarg ;;
1014
1015   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016   | --dataroo | --dataro | --datar)
1017     ac_prev=datarootdir ;;
1018   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020     datarootdir=$ac_optarg ;;
1021
1022   -disable-* | --disable-*)
1023     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024     # Reject names that are not valid shell variable names.
1025     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026       as_fn_error $? "invalid feature name: $ac_useropt"
1027     ac_useropt_orig=$ac_useropt
1028     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029     case $ac_user_opts in
1030       *"
1031 "enable_$ac_useropt"
1032 "*) ;;
1033       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1034          ac_unrecognized_sep=', ';;
1035     esac
1036     eval enable_$ac_useropt=no ;;
1037
1038   -docdir | --docdir | --docdi | --doc | --do)
1039     ac_prev=docdir ;;
1040   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041     docdir=$ac_optarg ;;
1042
1043   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044     ac_prev=dvidir ;;
1045   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046     dvidir=$ac_optarg ;;
1047
1048   -enable-* | --enable-*)
1049     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050     # Reject names that are not valid shell variable names.
1051     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052       as_fn_error $? "invalid feature name: $ac_useropt"
1053     ac_useropt_orig=$ac_useropt
1054     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055     case $ac_user_opts in
1056       *"
1057 "enable_$ac_useropt"
1058 "*) ;;
1059       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1060          ac_unrecognized_sep=', ';;
1061     esac
1062     eval enable_$ac_useropt=\$ac_optarg ;;
1063
1064   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1065   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1066   | --exec | --exe | --ex)
1067     ac_prev=exec_prefix ;;
1068   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1069   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1070   | --exec=* | --exe=* | --ex=*)
1071     exec_prefix=$ac_optarg ;;
1072
1073   -gas | --gas | --ga | --g)
1074     # Obsolete; use --with-gas.
1075     with_gas=yes ;;
1076
1077   -help | --help | --hel | --he | -h)
1078     ac_init_help=long ;;
1079   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1080     ac_init_help=recursive ;;
1081   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1082     ac_init_help=short ;;
1083
1084   -host | --host | --hos | --ho)
1085     ac_prev=host_alias ;;
1086   -host=* | --host=* | --hos=* | --ho=*)
1087     host_alias=$ac_optarg ;;
1088
1089   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1090     ac_prev=htmldir ;;
1091   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1092   | --ht=*)
1093     htmldir=$ac_optarg ;;
1094
1095   -includedir | --includedir | --includedi | --included | --include \
1096   | --includ | --inclu | --incl | --inc)
1097     ac_prev=includedir ;;
1098   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1099   | --includ=* | --inclu=* | --incl=* | --inc=*)
1100     includedir=$ac_optarg ;;
1101
1102   -infodir | --infodir | --infodi | --infod | --info | --inf)
1103     ac_prev=infodir ;;
1104   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1105     infodir=$ac_optarg ;;
1106
1107   -libdir | --libdir | --libdi | --libd)
1108     ac_prev=libdir ;;
1109   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1110     libdir=$ac_optarg ;;
1111
1112   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1113   | --libexe | --libex | --libe)
1114     ac_prev=libexecdir ;;
1115   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1116   | --libexe=* | --libex=* | --libe=*)
1117     libexecdir=$ac_optarg ;;
1118
1119   -localedir | --localedir | --localedi | --localed | --locale)
1120     ac_prev=localedir ;;
1121   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1122     localedir=$ac_optarg ;;
1123
1124   -localstatedir | --localstatedir | --localstatedi | --localstated \
1125   | --localstate | --localstat | --localsta | --localst | --locals)
1126     ac_prev=localstatedir ;;
1127   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1128   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1129     localstatedir=$ac_optarg ;;
1130
1131   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1132     ac_prev=mandir ;;
1133   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1134     mandir=$ac_optarg ;;
1135
1136   -nfp | --nfp | --nf)
1137     # Obsolete; use --without-fp.
1138     with_fp=no ;;
1139
1140   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1141   | --no-cr | --no-c | -n)
1142     no_create=yes ;;
1143
1144   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1145   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146     no_recursion=yes ;;
1147
1148   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1149   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1150   | --oldin | --oldi | --old | --ol | --o)
1151     ac_prev=oldincludedir ;;
1152   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1153   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1154   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1155     oldincludedir=$ac_optarg ;;
1156
1157   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1158     ac_prev=prefix ;;
1159   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1160     prefix=$ac_optarg ;;
1161
1162   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1163   | --program-pre | --program-pr | --program-p)
1164     ac_prev=program_prefix ;;
1165   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1166   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1167     program_prefix=$ac_optarg ;;
1168
1169   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1170   | --program-suf | --program-su | --program-s)
1171     ac_prev=program_suffix ;;
1172   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1173   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1174     program_suffix=$ac_optarg ;;
1175
1176   -program-transform-name | --program-transform-name \
1177   | --program-transform-nam | --program-transform-na \
1178   | --program-transform-n | --program-transform- \
1179   | --program-transform | --program-transfor \
1180   | --program-transfo | --program-transf \
1181   | --program-trans | --program-tran \
1182   | --progr-tra | --program-tr | --program-t)
1183     ac_prev=program_transform_name ;;
1184   -program-transform-name=* | --program-transform-name=* \
1185   | --program-transform-nam=* | --program-transform-na=* \
1186   | --program-transform-n=* | --program-transform-=* \
1187   | --program-transform=* | --program-transfor=* \
1188   | --program-transfo=* | --program-transf=* \
1189   | --program-trans=* | --program-tran=* \
1190   | --progr-tra=* | --program-tr=* | --program-t=*)
1191     program_transform_name=$ac_optarg ;;
1192
1193   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1194     ac_prev=pdfdir ;;
1195   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1196     pdfdir=$ac_optarg ;;
1197
1198   -psdir | --psdir | --psdi | --psd | --ps)
1199     ac_prev=psdir ;;
1200   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201     psdir=$ac_optarg ;;
1202
1203   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204   | -silent | --silent | --silen | --sile | --sil)
1205     silent=yes ;;
1206
1207   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1208     ac_prev=sbindir ;;
1209   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1210   | --sbi=* | --sb=*)
1211     sbindir=$ac_optarg ;;
1212
1213   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1214   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1215   | --sharedst | --shareds | --shared | --share | --shar \
1216   | --sha | --sh)
1217     ac_prev=sharedstatedir ;;
1218   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1219   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1220   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1221   | --sha=* | --sh=*)
1222     sharedstatedir=$ac_optarg ;;
1223
1224   -site | --site | --sit)
1225     ac_prev=site ;;
1226   -site=* | --site=* | --sit=*)
1227     site=$ac_optarg ;;
1228
1229   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1230     ac_prev=srcdir ;;
1231   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1232     srcdir=$ac_optarg ;;
1233
1234   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1235   | --syscon | --sysco | --sysc | --sys | --sy)
1236     ac_prev=sysconfdir ;;
1237   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1238   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1239     sysconfdir=$ac_optarg ;;
1240
1241   -target | --target | --targe | --targ | --tar | --ta | --t)
1242     ac_prev=target_alias ;;
1243   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1244     target_alias=$ac_optarg ;;
1245
1246   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247     verbose=yes ;;
1248
1249   -version | --version | --versio | --versi | --vers | -V)
1250     ac_init_version=: ;;
1251
1252   -with-* | --with-*)
1253     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1254     # Reject names that are not valid shell variable names.
1255     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256       as_fn_error $? "invalid package name: $ac_useropt"
1257     ac_useropt_orig=$ac_useropt
1258     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259     case $ac_user_opts in
1260       *"
1261 "with_$ac_useropt"
1262 "*) ;;
1263       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1264          ac_unrecognized_sep=', ';;
1265     esac
1266     eval with_$ac_useropt=\$ac_optarg ;;
1267
1268   -without-* | --without-*)
1269     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270     # Reject names that are not valid shell variable names.
1271     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272       as_fn_error $? "invalid package name: $ac_useropt"
1273     ac_useropt_orig=$ac_useropt
1274     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275     case $ac_user_opts in
1276       *"
1277 "with_$ac_useropt"
1278 "*) ;;
1279       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280          ac_unrecognized_sep=', ';;
1281     esac
1282     eval with_$ac_useropt=no ;;
1283
1284   --x)
1285     # Obsolete; use --with-x.
1286     with_x=yes ;;
1287
1288   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289   | --x-incl | --x-inc | --x-in | --x-i)
1290     ac_prev=x_includes ;;
1291   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293     x_includes=$ac_optarg ;;
1294
1295   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297     ac_prev=x_libraries ;;
1298   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300     x_libraries=$ac_optarg ;;
1301
1302   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1303 Try \`$0 --help' for more information"
1304     ;;
1305
1306   *=*)
1307     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308     # Reject names that are not valid shell variable names.
1309     case $ac_envvar in #(
1310       '' | [0-9]* | *[!_$as_cr_alnum]* )
1311       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1312     esac
1313     eval $ac_envvar=\$ac_optarg
1314     export $ac_envvar ;;
1315
1316   *)
1317     # FIXME: should be removed in autoconf 3.0.
1318     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1322     ;;
1323
1324   esac
1325 done
1326
1327 if test -n "$ac_prev"; then
1328   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329   as_fn_error $? "missing argument to $ac_option"
1330 fi
1331
1332 if test -n "$ac_unrecognized_opts"; then
1333   case $enable_option_checking in
1334     no) ;;
1335     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1336     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337   esac
1338 fi
1339
1340 # Check all directory arguments for consistency.
1341 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342                 datadir sysconfdir sharedstatedir localstatedir includedir \
1343                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344                 libdir localedir mandir
1345 do
1346   eval ac_val=\$$ac_var
1347   # Remove trailing slashes.
1348   case $ac_val in
1349     */ )
1350       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351       eval $ac_var=\$ac_val;;
1352   esac
1353   # Be sure to have absolute directory names.
1354   case $ac_val in
1355     [\\/$]* | ?:[\\/]* )  continue;;
1356     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357   esac
1358   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1359 done
1360
1361 # There might be people who depend on the old broken behavior: `$host'
1362 # used to hold the argument of --host etc.
1363 # FIXME: To remove some day.
1364 build=$build_alias
1365 host=$host_alias
1366 target=$target_alias
1367
1368 # FIXME: To remove some day.
1369 if test "x$host_alias" != x; then
1370   if test "x$build_alias" = x; then
1371     cross_compiling=maybe
1372   elif test "x$build_alias" != "x$host_alias"; then
1373     cross_compiling=yes
1374   fi
1375 fi
1376
1377 ac_tool_prefix=
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380 test "$silent" = yes && exec 6>/dev/null
1381
1382
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386   as_fn_error $? "working directory cannot be determined"
1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388   as_fn_error $? "pwd does not report name of working directory"
1389
1390
1391 # Find the source files, if location was not specified.
1392 if test -z "$srcdir"; then
1393   ac_srcdir_defaulted=yes
1394   # Try the directory containing this script, then the parent directory.
1395   ac_confdir=`$as_dirname -- "$as_myself" ||
1396 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397          X"$as_myself" : 'X\(//\)[^/]' \| \
1398          X"$as_myself" : 'X\(//\)$' \| \
1399          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400 $as_echo X"$as_myself" |
1401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402             s//\1/
1403             q
1404           }
1405           /^X\(\/\/\)[^/].*/{
1406             s//\1/
1407             q
1408           }
1409           /^X\(\/\/\)$/{
1410             s//\1/
1411             q
1412           }
1413           /^X\(\/\).*/{
1414             s//\1/
1415             q
1416           }
1417           s/.*/./; q'`
1418   srcdir=$ac_confdir
1419   if test ! -r "$srcdir/$ac_unique_file"; then
1420     srcdir=..
1421   fi
1422 else
1423   ac_srcdir_defaulted=no
1424 fi
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1428 fi
1429 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430 ac_abs_confdir=`(
1431         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1432         pwd)`
1433 # When building in place, set srcdir=.
1434 if test "$ac_abs_confdir" = "$ac_pwd"; then
1435   srcdir=.
1436 fi
1437 # Remove unnecessary trailing slashes from srcdir.
1438 # Double slashes in file names in object file debugging info
1439 # mess up M-x gdb in Emacs.
1440 case $srcdir in
1441 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442 esac
1443 for ac_var in $ac_precious_vars; do
1444   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445   eval ac_env_${ac_var}_value=\$${ac_var}
1446   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448 done
1449
1450 #
1451 # Report the --help message.
1452 #
1453 if test "$ac_init_help" = "long"; then
1454   # Omit some internal or obsolete options to make the list less imposing.
1455   # This message is too long to be a string in the A/UX 3.1 sh.
1456   cat <<_ACEOF
1457 \`configure' configures Moonshot-ui 0.7.2 to adapt to many kinds of systems.
1458
1459 Usage: $0 [OPTION]... [VAR=VALUE]...
1460
1461 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462 VAR=VALUE.  See below for descriptions of some of the useful variables.
1463
1464 Defaults for the options are specified in brackets.
1465
1466 Configuration:
1467   -h, --help              display this help and exit
1468       --help=short        display options specific to this package
1469       --help=recursive    display the short help of all the included packages
1470   -V, --version           display version information and exit
1471   -q, --quiet, --silent   do not print \`checking ...' messages
1472       --cache-file=FILE   cache test results in FILE [disabled]
1473   -C, --config-cache      alias for \`--cache-file=config.cache'
1474   -n, --no-create         do not create output files
1475       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1476
1477 Installation directories:
1478   --prefix=PREFIX         install architecture-independent files in PREFIX
1479                           [$ac_default_prefix]
1480   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1481                           [PREFIX]
1482
1483 By default, \`make install' will install all the files in
1484 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1485 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486 for instance \`--prefix=\$HOME'.
1487
1488 For better control, use the options below.
1489
1490 Fine tuning of the installation directories:
1491   --bindir=DIR            user executables [EPREFIX/bin]
1492   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1493   --libexecdir=DIR        program executables [EPREFIX/libexec]
1494   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1495   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1496   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1497   --libdir=DIR            object code libraries [EPREFIX/lib]
1498   --includedir=DIR        C header files [PREFIX/include]
1499   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1500   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1501   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1502   --infodir=DIR           info documentation [DATAROOTDIR/info]
1503   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1504   --mandir=DIR            man documentation [DATAROOTDIR/man]
1505   --docdir=DIR            documentation root [DATAROOTDIR/doc/moonshot-ui]
1506   --htmldir=DIR           html documentation [DOCDIR]
1507   --dvidir=DIR            dvi documentation [DOCDIR]
1508   --pdfdir=DIR            pdf documentation [DOCDIR]
1509   --psdir=DIR             ps documentation [DOCDIR]
1510 _ACEOF
1511
1512   cat <<\_ACEOF
1513
1514 Program names:
1515   --program-prefix=PREFIX            prepend PREFIX to installed program names
1516   --program-suffix=SUFFIX            append SUFFIX to installed program names
1517   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1518
1519 System types:
1520   --build=BUILD     configure for building on BUILD [guessed]
1521   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1522 _ACEOF
1523 fi
1524
1525 if test -n "$ac_init_help"; then
1526   case $ac_init_help in
1527      short | recursive ) echo "Configuration of Moonshot-ui 0.7.2:";;
1528    esac
1529   cat <<\_ACEOF
1530
1531 Optional Features:
1532   --disable-option-checking  ignore unrecognized --enable/--with options
1533   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1534   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1535   --enable-silent-rules   less verbose build output (undo: "make V=1")
1536   --disable-silent-rules  verbose build output (undo: "make V=0")
1537   --disable-maintainer-mode
1538                           disable make rules and dependencies not useful (and
1539                           sometimes confusing) to the casual installer
1540   --enable-shared[=PKGS]  build shared libraries [default=yes]
1541   --enable-static[=PKGS]  build static libraries [default=yes]
1542   --enable-fast-install[=PKGS]
1543                           optimize for fast installation [default=yes]
1544   --enable-dependency-tracking
1545                           do not reject slow dependency extractors
1546   --disable-dependency-tracking
1547                           speeds up one-time build
1548   --disable-libtool-lock  avoid locking (might break parallel builds)
1549   --disable-nls           do not use Native Language Support
1550   --disable-rpath         do not hardcode runtime library paths
1551
1552 Optional Packages:
1553   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1554   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1555   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1556                           both]
1557   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1558   --with-sysroot=DIR Search for dependent libraries within DIR
1559                         (or the compiler's sysroot if not specified).
1560   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1561   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1562   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1563   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1564   --without-libintl-prefix     don't search for libintl in includedir and libdir
1565
1566 Some influential environment variables:
1567   CC          C compiler command
1568   CFLAGS      C compiler flags
1569   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1570               nonstandard directory <lib dir>
1571   LIBS        libraries to pass to the linker, e.g. -l<library>
1572   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1573               you have headers in a nonstandard directory <include dir>
1574   CPP         C preprocessor
1575   PKG_CONFIG  path to pkg-config utility
1576   PKG_CONFIG_PATH
1577               directories to add to pkg-config's search path
1578   PKG_CONFIG_LIBDIR
1579               path overriding pkg-config's built-in search path
1580   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1581   GTK_LIBS    linker flags for GTK, overriding pkg-config
1582   MAC_CFLAGS  C compiler flags for MAC, overriding pkg-config
1583   MAC_LIBS    linker flags for MAC, overriding pkg-config
1584   GDBUS_CFLAGS
1585               C compiler flags for GDBUS, overriding pkg-config
1586   GDBUS_LIBS  linker flags for GDBUS, overriding pkg-config
1587   moonshot_CFLAGS
1588               C compiler flags for moonshot, overriding pkg-config
1589   moonshot_LIBS
1590               linker flags for moonshot, overriding pkg-config
1591   libmoonshot_CFLAGS
1592               C compiler flags for libmoonshot, overriding pkg-config
1593   libmoonshot_LIBS
1594               linker flags for libmoonshot, overriding pkg-config
1595
1596 Use these variables to override the choices made by `configure' or to help
1597 it to find libraries and programs with nonstandard names/locations.
1598
1599 Report bugs to <moonshot-community@jiscmail.ac.uk>.
1600 Moonshot-ui home page: <http://www.project-moonshot.org/>.
1601 _ACEOF
1602 ac_status=$?
1603 fi
1604
1605 if test "$ac_init_help" = "recursive"; then
1606   # If there are subdirs, report their specific --help.
1607   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1608     test -d "$ac_dir" ||
1609       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610       continue
1611     ac_builddir=.
1612
1613 case "$ac_dir" in
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *)
1616   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1617   # A ".." for each directory in $ac_dir_suffix.
1618   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1619   case $ac_top_builddir_sub in
1620   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622   esac ;;
1623 esac
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1628
1629 case $srcdir in
1630   .)  # We are building in place.
1631     ac_srcdir=.
1632     ac_top_srcdir=$ac_top_builddir_sub
1633     ac_abs_top_srcdir=$ac_pwd ;;
1634   [\\/]* | ?:[\\/]* )  # Absolute name.
1635     ac_srcdir=$srcdir$ac_dir_suffix;
1636     ac_top_srcdir=$srcdir
1637     ac_abs_top_srcdir=$srcdir ;;
1638   *) # Relative name.
1639     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640     ac_top_srcdir=$ac_top_build_prefix$srcdir
1641     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 esac
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644
1645     cd "$ac_dir" || { ac_status=$?; continue; }
1646     # Check for guested configure.
1647     if test -f "$ac_srcdir/configure.gnu"; then
1648       echo &&
1649       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650     elif test -f "$ac_srcdir/configure"; then
1651       echo &&
1652       $SHELL "$ac_srcdir/configure" --help=recursive
1653     else
1654       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655     fi || ac_status=$?
1656     cd "$ac_pwd" || { ac_status=$?; break; }
1657   done
1658 fi
1659
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1662   cat <<\_ACEOF
1663 Moonshot-ui configure 0.7.2
1664 generated by GNU Autoconf 2.69
1665
1666 Copyright (C) 2012 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1669 _ACEOF
1670   exit
1671 fi
1672
1673 ## ------------------------ ##
1674 ## Autoconf initialization. ##
1675 ## ------------------------ ##
1676
1677 # ac_fn_c_try_compile LINENO
1678 # --------------------------
1679 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_compile ()
1681 {
1682   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683   rm -f conftest.$ac_objext
1684   if { { ac_try="$ac_compile"
1685 case "(($ac_try" in
1686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687   *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691   (eval "$ac_compile") 2>conftest.err
1692   ac_status=$?
1693   if test -s conftest.err; then
1694     grep -v '^ *+' conftest.err >conftest.er1
1695     cat conftest.er1 >&5
1696     mv -f conftest.er1 conftest.err
1697   fi
1698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699   test $ac_status = 0; } && {
1700          test -z "$ac_c_werror_flag" ||
1701          test ! -s conftest.err
1702        } && test -s conftest.$ac_objext; then :
1703   ac_retval=0
1704 else
1705   $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708         ac_retval=1
1709 fi
1710   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711   as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_compile
1714
1715 # ac_fn_c_try_link LINENO
1716 # -----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_link ()
1719 {
1720   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721   rm -f conftest.$ac_objext conftest$ac_exeext
1722   if { { ac_try="$ac_link"
1723 case "(($ac_try" in
1724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725   *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729   (eval "$ac_link") 2>conftest.err
1730   ac_status=$?
1731   if test -s conftest.err; then
1732     grep -v '^ *+' conftest.err >conftest.er1
1733     cat conftest.er1 >&5
1734     mv -f conftest.er1 conftest.err
1735   fi
1736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737   test $ac_status = 0; } && {
1738          test -z "$ac_c_werror_flag" ||
1739          test ! -s conftest.err
1740        } && test -s conftest$ac_exeext && {
1741          test "$cross_compiling" = yes ||
1742          test -x conftest$ac_exeext
1743        }; then :
1744   ac_retval=0
1745 else
1746   $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749         ac_retval=1
1750 fi
1751   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753   # interfere with the next link command; also delete a directory that is
1754   # left behind by Apple's compiler.  We do this before executing the actions.
1755   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757   as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_link
1760
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1766 {
1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771   $as_echo_n "(cached) " >&6
1772 else
1773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h.  */
1775 $4
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779   eval "$3=yes"
1780 else
1781   eval "$3=no"
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_header_compile
1791
1792 # ac_fn_c_try_cpp LINENO
1793 # ----------------------
1794 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_cpp ()
1796 {
1797   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798   if { { ac_try="$ac_cpp conftest.$ac_ext"
1799 case "(($ac_try" in
1800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801   *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1806   ac_status=$?
1807   if test -s conftest.err; then
1808     grep -v '^ *+' conftest.err >conftest.er1
1809     cat conftest.er1 >&5
1810     mv -f conftest.er1 conftest.err
1811   fi
1812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813   test $ac_status = 0; } > conftest.i && {
1814          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1815          test ! -s conftest.err
1816        }; then :
1817   ac_retval=0
1818 else
1819   $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822     ac_retval=1
1823 fi
1824   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825   as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_cpp
1828
1829 # ac_fn_c_try_run LINENO
1830 # ----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1832 # that executables *can* be run.
1833 ac_fn_c_try_run ()
1834 {
1835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836   if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839   *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843   (eval "$ac_link") 2>&5
1844   ac_status=$?
1845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1847   { { case "(($ac_try" in
1848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849   *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853   (eval "$ac_try") 2>&5
1854   ac_status=$?
1855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856   test $ac_status = 0; }; }; then :
1857   ac_retval=0
1858 else
1859   $as_echo "$as_me: program exited with status $ac_status" >&5
1860        $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863        ac_retval=$ac_status
1864 fi
1865   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867   as_fn_set_status $ac_retval
1868
1869 } # ac_fn_c_try_run
1870
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1875 {
1876   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880   $as_echo_n "(cached) " >&6
1881 else
1882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h.  */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1886 #define $2 innocuous_$2
1887
1888 /* System header to define __stub macros and hopefully few prototypes,
1889     which can conflict with char $2 (); below.
1890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891     <limits.h> exists even on freestanding compilers.  */
1892
1893 #ifdef __STDC__
1894 # include <limits.h>
1895 #else
1896 # include <assert.h>
1897 #endif
1898
1899 #undef $2
1900
1901 /* Override any GCC internal prototype to avoid an error.
1902    Use char because int might match the return type of a GCC
1903    builtin and then its argument prototype would still apply.  */
1904 #ifdef __cplusplus
1905 extern "C"
1906 #endif
1907 char $2 ();
1908 /* The GNU C library defines this for functions which it implements
1909     to always fail with ENOSYS.  Some functions are actually named
1910     something starting with __ and the normal name is an alias.  */
1911 #if defined __stub_$2 || defined __stub___$2
1912 choke me
1913 #endif
1914
1915 int
1916 main ()
1917 {
1918 return $2 ();
1919   ;
1920   return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_link "$LINENO"; then :
1924   eval "$3=yes"
1925 else
1926   eval "$3=no"
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext \
1929     conftest$ac_exeext conftest.$ac_ext
1930 fi
1931 eval ac_res=\$$3
1932                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_func
1937 cat >config.log <<_ACEOF
1938 This file contains any messages produced by compilers while
1939 running configure, to aid debugging if configure makes a mistake.
1940
1941 It was created by Moonshot-ui $as_me 0.7.2, which was
1942 generated by GNU Autoconf 2.69.  Invocation command line was
1943
1944   $ $0 $@
1945
1946 _ACEOF
1947 exec 5>>config.log
1948 {
1949 cat <<_ASUNAME
1950 ## --------- ##
1951 ## Platform. ##
1952 ## --------- ##
1953
1954 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1955 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1956 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1957 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1958 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1959
1960 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1961 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1962
1963 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1964 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1965 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1966 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1967 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1968 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1969 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1970
1971 _ASUNAME
1972
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976   IFS=$as_save_IFS
1977   test -z "$as_dir" && as_dir=.
1978     $as_echo "PATH: $as_dir"
1979   done
1980 IFS=$as_save_IFS
1981
1982 } >&5
1983
1984 cat >&5 <<_ACEOF
1985
1986
1987 ## ----------- ##
1988 ## Core tests. ##
1989 ## ----------- ##
1990
1991 _ACEOF
1992
1993
1994 # Keep a trace of the command line.
1995 # Strip out --no-create and --no-recursion so they do not pile up.
1996 # Strip out --silent because we don't want to record it for future runs.
1997 # Also quote any args containing shell meta-characters.
1998 # Make two passes to allow for proper duplicate-argument suppression.
1999 ac_configure_args=
2000 ac_configure_args0=
2001 ac_configure_args1=
2002 ac_must_keep_next=false
2003 for ac_pass in 1 2
2004 do
2005   for ac_arg
2006   do
2007     case $ac_arg in
2008     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2009     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2010     | -silent | --silent | --silen | --sile | --sil)
2011       continue ;;
2012     *\'*)
2013       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2014     esac
2015     case $ac_pass in
2016     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2017     2)
2018       as_fn_append ac_configure_args1 " '$ac_arg'"
2019       if test $ac_must_keep_next = true; then
2020         ac_must_keep_next=false # Got value, back to normal.
2021       else
2022         case $ac_arg in
2023           *=* | --config-cache | -C | -disable-* | --disable-* \
2024           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2025           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2026           | -with-* | --with-* | -without-* | --without-* | --x)
2027             case "$ac_configure_args0 " in
2028               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2029             esac
2030             ;;
2031           -* ) ac_must_keep_next=true ;;
2032         esac
2033       fi
2034       as_fn_append ac_configure_args " '$ac_arg'"
2035       ;;
2036     esac
2037   done
2038 done
2039 { ac_configure_args0=; unset ac_configure_args0;}
2040 { ac_configure_args1=; unset ac_configure_args1;}
2041
2042 # When interrupted or exit'd, cleanup temporary files, and complete
2043 # config.log.  We remove comments because anyway the quotes in there
2044 # would cause problems or look ugly.
2045 # WARNING: Use '\'' to represent an apostrophe within the trap.
2046 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2047 trap 'exit_status=$?
2048   # Save into config.log some information that might help in debugging.
2049   {
2050     echo
2051
2052     $as_echo "## ---------------- ##
2053 ## Cache variables. ##
2054 ## ---------------- ##"
2055     echo
2056     # The following way of writing the cache mishandles newlines in values,
2057 (
2058   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2059     eval ac_val=\$$ac_var
2060     case $ac_val in #(
2061     *${as_nl}*)
2062       case $ac_var in #(
2063       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2064 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2065       esac
2066       case $ac_var in #(
2067       _ | IFS | as_nl) ;; #(
2068       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2069       *) { eval $ac_var=; unset $ac_var;} ;;
2070       esac ;;
2071     esac
2072   done
2073   (set) 2>&1 |
2074     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2075     *${as_nl}ac_space=\ *)
2076       sed -n \
2077         "s/'\''/'\''\\\\'\'''\''/g;
2078           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2079       ;; #(
2080     *)
2081       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2082       ;;
2083     esac |
2084     sort
2085 )
2086     echo
2087
2088     $as_echo "## ----------------- ##
2089 ## Output variables. ##
2090 ## ----------------- ##"
2091     echo
2092     for ac_var in $ac_subst_vars
2093     do
2094       eval ac_val=\$$ac_var
2095       case $ac_val in
2096       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097       esac
2098       $as_echo "$ac_var='\''$ac_val'\''"
2099     done | sort
2100     echo
2101
2102     if test -n "$ac_subst_files"; then
2103       $as_echo "## ------------------- ##
2104 ## File substitutions. ##
2105 ## ------------------- ##"
2106       echo
2107       for ac_var in $ac_subst_files
2108       do
2109         eval ac_val=\$$ac_var
2110         case $ac_val in
2111         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112         esac
2113         $as_echo "$ac_var='\''$ac_val'\''"
2114       done | sort
2115       echo
2116     fi
2117
2118     if test -s confdefs.h; then
2119       $as_echo "## ----------- ##
2120 ## confdefs.h. ##
2121 ## ----------- ##"
2122       echo
2123       cat confdefs.h
2124       echo
2125     fi
2126     test "$ac_signal" != 0 &&
2127       $as_echo "$as_me: caught signal $ac_signal"
2128     $as_echo "$as_me: exit $exit_status"
2129   } >&5
2130   rm -f core *.core core.conftest.* &&
2131     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2132     exit $exit_status
2133 ' 0
2134 for ac_signal in 1 2 13 15; do
2135   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2136 done
2137 ac_signal=0
2138
2139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2140 rm -f -r conftest* confdefs.h
2141
2142 $as_echo "/* confdefs.h */" > confdefs.h
2143
2144 # Predefined preprocessor variables.
2145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_NAME "$PACKAGE_NAME"
2148 _ACEOF
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2152 _ACEOF
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2156 _ACEOF
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_STRING "$PACKAGE_STRING"
2160 _ACEOF
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2164 _ACEOF
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_URL "$PACKAGE_URL"
2168 _ACEOF
2169
2170
2171 # Let the site file select an alternate cache file if it wants to.
2172 # Prefer an explicitly selected file to automatically selected ones.
2173 ac_site_file1=NONE
2174 ac_site_file2=NONE
2175 if test -n "$CONFIG_SITE"; then
2176   # We do not want a PATH search for config.site.
2177   case $CONFIG_SITE in #((
2178     -*)  ac_site_file1=./$CONFIG_SITE;;
2179     */*) ac_site_file1=$CONFIG_SITE;;
2180     *)   ac_site_file1=./$CONFIG_SITE;;
2181   esac
2182 elif test "x$prefix" != xNONE; then
2183   ac_site_file1=$prefix/share/config.site
2184   ac_site_file2=$prefix/etc/config.site
2185 else
2186   ac_site_file1=$ac_default_prefix/share/config.site
2187   ac_site_file2=$ac_default_prefix/etc/config.site
2188 fi
2189 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2190 do
2191   test "x$ac_site_file" = xNONE && continue
2192   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2193     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2194 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2195     sed 's/^/| /' "$ac_site_file" >&5
2196     . "$ac_site_file" \
2197       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2199 as_fn_error $? "failed to load site script $ac_site_file
2200 See \`config.log' for more details" "$LINENO" 5; }
2201   fi
2202 done
2203
2204 if test -r "$cache_file"; then
2205   # Some versions of bash will fail to source /dev/null (special files
2206   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2207   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2208     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2209 $as_echo "$as_me: loading cache $cache_file" >&6;}
2210     case $cache_file in
2211       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2212       *)                      . "./$cache_file";;
2213     esac
2214   fi
2215 else
2216   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2217 $as_echo "$as_me: creating cache $cache_file" >&6;}
2218   >$cache_file
2219 fi
2220
2221 as_fn_append ac_func_list " geteuid"
2222 as_fn_append ac_func_list " getpwuid"
2223 gt_needs="$gt_needs "
2224 # Check that the precious variables saved in the cache have kept the same
2225 # value.
2226 ac_cache_corrupted=false
2227 for ac_var in $ac_precious_vars; do
2228   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2229   eval ac_new_set=\$ac_env_${ac_var}_set
2230   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2231   eval ac_new_val=\$ac_env_${ac_var}_value
2232   case $ac_old_set,$ac_new_set in
2233     set,)
2234       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2235 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2236       ac_cache_corrupted=: ;;
2237     ,set)
2238       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2239 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2240       ac_cache_corrupted=: ;;
2241     ,);;
2242     *)
2243       if test "x$ac_old_val" != "x$ac_new_val"; then
2244         # differences in whitespace do not lead to failure.
2245         ac_old_val_w=`echo x $ac_old_val`
2246         ac_new_val_w=`echo x $ac_new_val`
2247         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2248           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2249 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2250           ac_cache_corrupted=:
2251         else
2252           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2253 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2254           eval $ac_var=\$ac_old_val
2255         fi
2256         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2257 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2258         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2259 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2260       fi;;
2261   esac
2262   # Pass precious variables to config.status.
2263   if test "$ac_new_set" = set; then
2264     case $ac_new_val in
2265     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2266     *) ac_arg=$ac_var=$ac_new_val ;;
2267     esac
2268     case " $ac_configure_args " in
2269       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2270       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2271     esac
2272   fi
2273 done
2274 if $ac_cache_corrupted; then
2275   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2277   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2278 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2279   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2280 fi
2281 ## -------------------- ##
2282 ## Main body of script. ##
2283 ## -------------------- ##
2284
2285 ac_ext=c
2286 ac_cpp='$CPP $CPPFLAGS'
2287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2290
2291
2292
2293 # Remove this when we can depend on autoconf >= 2.64
2294 PACKAGE_URL=http://www.project-moonshot.org/
2295
2296
2297 $as_echo "#define PACKAGE_URL \"http://www.project-moonshot.org\"" >>confdefs.h
2298
2299 ac_config_headers="$ac_config_headers config.h"
2300
2301
2302
2303 ac_aux_dir=
2304 for ac_dir in build-aux "$srcdir"/build-aux; do
2305   if test -f "$ac_dir/install-sh"; then
2306     ac_aux_dir=$ac_dir
2307     ac_install_sh="$ac_aux_dir/install-sh -c"
2308     break
2309   elif test -f "$ac_dir/install.sh"; then
2310     ac_aux_dir=$ac_dir
2311     ac_install_sh="$ac_aux_dir/install.sh -c"
2312     break
2313   elif test -f "$ac_dir/shtool"; then
2314     ac_aux_dir=$ac_dir
2315     ac_install_sh="$ac_aux_dir/shtool install -c"
2316     break
2317   fi
2318 done
2319 if test -z "$ac_aux_dir"; then
2320   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2321 fi
2322
2323 # These three variables are undocumented and unsupported,
2324 # and are intended to be withdrawn in a future Autoconf release.
2325 # They can cause serious problems if a builder's source tree is in a directory
2326 # whose full name contains unusual characters.
2327 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2328 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2329 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2330
2331
2332
2333 am__api_version='1.14'
2334
2335 # Find a good install program.  We prefer a C program (faster),
2336 # so one script is as good as another.  But avoid the broken or
2337 # incompatible versions:
2338 # SysV /etc/install, /usr/sbin/install
2339 # SunOS /usr/etc/install
2340 # IRIX /sbin/install
2341 # AIX /bin/install
2342 # AmigaOS /C/install, which installs bootblocks on floppy discs
2343 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2344 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2345 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2346 # OS/2's system install, which has a completely different semantic
2347 # ./install, which can be erroneously created by make from ./install.sh.
2348 # Reject install programs that cannot install multiple files.
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2350 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2351 if test -z "$INSTALL"; then
2352 if ${ac_cv_path_install+:} false; then :
2353   $as_echo_n "(cached) " >&6
2354 else
2355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358   IFS=$as_save_IFS
2359   test -z "$as_dir" && as_dir=.
2360     # Account for people who put trailing slashes in PATH elements.
2361 case $as_dir/ in #((
2362   ./ | .// | /[cC]/* | \
2363   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2364   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2365   /usr/ucb/* ) ;;
2366   *)
2367     # OSF1 and SCO ODT 3.0 have their own names for install.
2368     # Don't use installbsd from OSF since it installs stuff as root
2369     # by default.
2370     for ac_prog in ginstall scoinst install; do
2371       for ac_exec_ext in '' $ac_executable_extensions; do
2372         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2373           if test $ac_prog = install &&
2374             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2375             # AIX install.  It has an incompatible calling convention.
2376             :
2377           elif test $ac_prog = install &&
2378             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2379             # program-specific install script used by HP pwplus--don't use.
2380             :
2381           else
2382             rm -rf conftest.one conftest.two conftest.dir
2383             echo one > conftest.one
2384             echo two > conftest.two
2385             mkdir conftest.dir
2386             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2387               test -s conftest.one && test -s conftest.two &&
2388               test -s conftest.dir/conftest.one &&
2389               test -s conftest.dir/conftest.two
2390             then
2391               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2392               break 3
2393             fi
2394           fi
2395         fi
2396       done
2397     done
2398     ;;
2399 esac
2400
2401   done
2402 IFS=$as_save_IFS
2403
2404 rm -rf conftest.one conftest.two conftest.dir
2405
2406 fi
2407   if test "${ac_cv_path_install+set}" = set; then
2408     INSTALL=$ac_cv_path_install
2409   else
2410     # As a last resort, use the slow shell script.  Don't cache a
2411     # value for INSTALL within a source directory, because that will
2412     # break other packages using the cache if that directory is
2413     # removed, or if the value is a relative name.
2414     INSTALL=$ac_install_sh
2415   fi
2416 fi
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2418 $as_echo "$INSTALL" >&6; }
2419
2420 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2421 # It thinks the first close brace ends the variable substitution.
2422 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2423
2424 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2425
2426 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2427
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2429 $as_echo_n "checking whether build environment is sane... " >&6; }
2430 # Reject unsafe characters in $srcdir or the absolute working directory
2431 # name.  Accept space and tab only in the latter.
2432 am_lf='
2433 '
2434 case `pwd` in
2435   *[\\\"\#\$\&\'\`$am_lf]*)
2436     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2437 esac
2438 case $srcdir in
2439   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2440     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2441 esac
2442
2443 # Do 'set' in a subshell so we don't clobber the current shell's
2444 # arguments.  Must try -L first in case configure is actually a
2445 # symlink; some systems play weird games with the mod time of symlinks
2446 # (eg FreeBSD returns the mod time of the symlink's containing
2447 # directory).
2448 if (
2449    am_has_slept=no
2450    for am_try in 1 2; do
2451      echo "timestamp, slept: $am_has_slept" > conftest.file
2452      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2453      if test "$*" = "X"; then
2454         # -L didn't work.
2455         set X `ls -t "$srcdir/configure" conftest.file`
2456      fi
2457      if test "$*" != "X $srcdir/configure conftest.file" \
2458         && test "$*" != "X conftest.file $srcdir/configure"; then
2459
2460         # If neither matched, then we have a broken ls.  This can happen
2461         # if, for instance, CONFIG_SHELL is bash and it inherits a
2462         # broken ls alias from the environment.  This has actually
2463         # happened.  Such a system could not be considered "sane".
2464         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2465   alias in your environment" "$LINENO" 5
2466      fi
2467      if test "$2" = conftest.file || test $am_try -eq 2; then
2468        break
2469      fi
2470      # Just in case.
2471      sleep 1
2472      am_has_slept=yes
2473    done
2474    test "$2" = conftest.file
2475    )
2476 then
2477    # Ok.
2478    :
2479 else
2480    as_fn_error $? "newly created file is older than distributed files!
2481 Check your system clock" "$LINENO" 5
2482 fi
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2484 $as_echo "yes" >&6; }
2485 # If we didn't sleep, we still need to ensure time stamps of config.status and
2486 # generated files are strictly newer.
2487 am_sleep_pid=
2488 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2489   ( sleep 1 ) &
2490   am_sleep_pid=$!
2491 fi
2492
2493 rm -f conftest.file
2494
2495 test "$program_prefix" != NONE &&
2496   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2497 # Use a double $ so make ignores it.
2498 test "$program_suffix" != NONE &&
2499   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2500 # Double any \ or $.
2501 # By default was `s,x,x', remove it if useless.
2502 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2503 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2504
2505 # expand $ac_aux_dir to an absolute path
2506 am_aux_dir=`cd $ac_aux_dir && pwd`
2507
2508 if test x"${MISSING+set}" != xset; then
2509   case $am_aux_dir in
2510   *\ * | *\     *)
2511     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2512   *)
2513     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2514   esac
2515 fi
2516 # Use eval to expand $SHELL
2517 if eval "$MISSING --is-lightweight"; then
2518   am_missing_run="$MISSING "
2519 else
2520   am_missing_run=
2521   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2522 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2523 fi
2524
2525 if test x"${install_sh}" != xset; then
2526   case $am_aux_dir in
2527   *\ * | *\     *)
2528     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2529   *)
2530     install_sh="\${SHELL} $am_aux_dir/install-sh"
2531   esac
2532 fi
2533
2534 # Installed binaries are usually stripped using 'strip' when the user
2535 # run "make install-strip".  However 'strip' might not be the right
2536 # tool to use in cross-compilation environments, therefore Automake
2537 # will honor the 'STRIP' environment variable to overrule this program.
2538 if test "$cross_compiling" != no; then
2539   if test -n "$ac_tool_prefix"; then
2540   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2541 set dummy ${ac_tool_prefix}strip; ac_word=$2
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2543 $as_echo_n "checking for $ac_word... " >&6; }
2544 if ${ac_cv_prog_STRIP+:} false; then :
2545   $as_echo_n "(cached) " >&6
2546 else
2547   if test -n "$STRIP"; then
2548   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2552 do
2553   IFS=$as_save_IFS
2554   test -z "$as_dir" && as_dir=.
2555     for ac_exec_ext in '' $ac_executable_extensions; do
2556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2559     break 2
2560   fi
2561 done
2562   done
2563 IFS=$as_save_IFS
2564
2565 fi
2566 fi
2567 STRIP=$ac_cv_prog_STRIP
2568 if test -n "$STRIP"; then
2569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2570 $as_echo "$STRIP" >&6; }
2571 else
2572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573 $as_echo "no" >&6; }
2574 fi
2575
2576
2577 fi
2578 if test -z "$ac_cv_prog_STRIP"; then
2579   ac_ct_STRIP=$STRIP
2580   # Extract the first word of "strip", so it can be a program name with args.
2581 set dummy strip; ac_word=$2
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2583 $as_echo_n "checking for $ac_word... " >&6; }
2584 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2585   $as_echo_n "(cached) " >&6
2586 else
2587   if test -n "$ac_ct_STRIP"; then
2588   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2592 do
2593   IFS=$as_save_IFS
2594   test -z "$as_dir" && as_dir=.
2595     for ac_exec_ext in '' $ac_executable_extensions; do
2596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597     ac_cv_prog_ac_ct_STRIP="strip"
2598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2599     break 2
2600   fi
2601 done
2602   done
2603 IFS=$as_save_IFS
2604
2605 fi
2606 fi
2607 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2608 if test -n "$ac_ct_STRIP"; then
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2610 $as_echo "$ac_ct_STRIP" >&6; }
2611 else
2612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613 $as_echo "no" >&6; }
2614 fi
2615
2616   if test "x$ac_ct_STRIP" = x; then
2617     STRIP=":"
2618   else
2619     case $cross_compiling:$ac_tool_warned in
2620 yes:)
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2623 ac_tool_warned=yes ;;
2624 esac
2625     STRIP=$ac_ct_STRIP
2626   fi
2627 else
2628   STRIP="$ac_cv_prog_STRIP"
2629 fi
2630
2631 fi
2632 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2633
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2635 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2636 if test -z "$MKDIR_P"; then
2637   if ${ac_cv_path_mkdir+:} false; then :
2638   $as_echo_n "(cached) " >&6
2639 else
2640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2642 do
2643   IFS=$as_save_IFS
2644   test -z "$as_dir" && as_dir=.
2645     for ac_prog in mkdir gmkdir; do
2646          for ac_exec_ext in '' $ac_executable_extensions; do
2647            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2648            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2649              'mkdir (GNU coreutils) '* | \
2650              'mkdir (coreutils) '* | \
2651              'mkdir (fileutils) '4.1*)
2652                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2653                break 3;;
2654            esac
2655          done
2656        done
2657   done
2658 IFS=$as_save_IFS
2659
2660 fi
2661
2662   test -d ./--version && rmdir ./--version
2663   if test "${ac_cv_path_mkdir+set}" = set; then
2664     MKDIR_P="$ac_cv_path_mkdir -p"
2665   else
2666     # As a last resort, use the slow shell script.  Don't cache a
2667     # value for MKDIR_P within a source directory, because that will
2668     # break other packages using the cache if that directory is
2669     # removed, or if the value is a relative name.
2670     MKDIR_P="$ac_install_sh -d"
2671   fi
2672 fi
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2674 $as_echo "$MKDIR_P" >&6; }
2675
2676 for ac_prog in gawk mawk nawk awk
2677 do
2678   # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if ${ac_cv_prog_AWK+:} false; then :
2683   $as_echo_n "(cached) " >&6
2684 else
2685   if test -n "$AWK"; then
2686   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691   IFS=$as_save_IFS
2692   test -z "$as_dir" && as_dir=.
2693     for ac_exec_ext in '' $ac_executable_extensions; do
2694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695     ac_cv_prog_AWK="$ac_prog"
2696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697     break 2
2698   fi
2699 done
2700   done
2701 IFS=$as_save_IFS
2702
2703 fi
2704 fi
2705 AWK=$ac_cv_prog_AWK
2706 if test -n "$AWK"; then
2707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2708 $as_echo "$AWK" >&6; }
2709 else
2710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2712 fi
2713
2714
2715   test -n "$AWK" && break
2716 done
2717
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2719 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2720 set x ${MAKE-make}
2721 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2722 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2723   $as_echo_n "(cached) " >&6
2724 else
2725   cat >conftest.make <<\_ACEOF
2726 SHELL = /bin/sh
2727 all:
2728         @echo '@@@%%%=$(MAKE)=@@@%%%'
2729 _ACEOF
2730 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2731 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2732   *@@@%%%=?*=@@@%%%*)
2733     eval ac_cv_prog_make_${ac_make}_set=yes;;
2734   *)
2735     eval ac_cv_prog_make_${ac_make}_set=no;;
2736 esac
2737 rm -f conftest.make
2738 fi
2739 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2741 $as_echo "yes" >&6; }
2742   SET_MAKE=
2743 else
2744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2746   SET_MAKE="MAKE=${MAKE-make}"
2747 fi
2748
2749 rm -rf .tst 2>/dev/null
2750 mkdir .tst 2>/dev/null
2751 if test -d .tst; then
2752   am__leading_dot=.
2753 else
2754   am__leading_dot=_
2755 fi
2756 rmdir .tst 2>/dev/null
2757
2758 # Check whether --enable-silent-rules was given.
2759 if test "${enable_silent_rules+set}" = set; then :
2760   enableval=$enable_silent_rules;
2761 fi
2762
2763 case $enable_silent_rules in # (((
2764   yes) AM_DEFAULT_VERBOSITY=0;;
2765    no) AM_DEFAULT_VERBOSITY=1;;
2766     *) AM_DEFAULT_VERBOSITY=1;;
2767 esac
2768 am_make=${MAKE-make}
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2770 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2771 if ${am_cv_make_support_nested_variables+:} false; then :
2772   $as_echo_n "(cached) " >&6
2773 else
2774   if $as_echo 'TRUE=$(BAR$(V))
2775 BAR0=false
2776 BAR1=true
2777 V=1
2778 am__doit:
2779         @$(TRUE)
2780 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2781   am_cv_make_support_nested_variables=yes
2782 else
2783   am_cv_make_support_nested_variables=no
2784 fi
2785 fi
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2787 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2788 if test $am_cv_make_support_nested_variables = yes; then
2789     AM_V='$(V)'
2790   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2791 else
2792   AM_V=$AM_DEFAULT_VERBOSITY
2793   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2794 fi
2795 AM_BACKSLASH='\'
2796
2797 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2798   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2799   # is not polluted with repeated "-I."
2800   am__isrc=' -I$(srcdir)'
2801   # test to see if srcdir already configured
2802   if test -f $srcdir/config.status; then
2803     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2804   fi
2805 fi
2806
2807 # test whether we have cygpath
2808 if test -z "$CYGPATH_W"; then
2809   if (cygpath --version) >/dev/null 2>/dev/null; then
2810     CYGPATH_W='cygpath -w'
2811   else
2812     CYGPATH_W=echo
2813   fi
2814 fi
2815
2816
2817 # Define the identity of the package.
2818  PACKAGE='moonshot-ui'
2819  VERSION='0.7.2'
2820
2821
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE "$PACKAGE"
2824 _ACEOF
2825
2826
2827 cat >>confdefs.h <<_ACEOF
2828 #define VERSION "$VERSION"
2829 _ACEOF
2830
2831 # Some tools Automake needs.
2832
2833 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2834
2835
2836 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2837
2838
2839 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2840
2841
2842 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2843
2844
2845 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2846
2847 # For better backward compatibility.  To be removed once Automake 1.9.x
2848 # dies out for good.  For more background, see:
2849 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2850 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2851 mkdir_p='$(MKDIR_P)'
2852
2853 # We need awk for the "check" target.  The system "awk" is bad on
2854 # some platforms.
2855 # Always define AMTAR for backward compatibility.  Yes, it's still used
2856 # in the wild :-(  We should find a proper way to deprecate it ...
2857 AMTAR='$${TAR-tar}'
2858
2859
2860 # We'll loop over all known methods to create a tar archive until one works.
2861 _am_tools='gnutar  pax cpio none'
2862
2863
2864
2865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2866 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2867
2868   # Go ahead even if we have the value already cached.  We do so because we
2869   # need to set the values for the 'am__tar' and 'am__untar' variables.
2870   _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2871
2872   for _am_tool in $_am_tools; do
2873     case $_am_tool in
2874     gnutar)
2875       for _am_tar in tar gnutar gtar; do
2876         { echo "$as_me:$LINENO: $_am_tar --version" >&5
2877    ($_am_tar --version) >&5 2>&5
2878    ac_status=$?
2879    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880    (exit $ac_status); } && break
2881       done
2882       am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2883       am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2884       am__untar="$_am_tar -xf -"
2885       ;;
2886     plaintar)
2887       # Must skip GNU tar: if it does not support --format= it doesn't create
2888       # ustar tarball either.
2889       (tar --version) >/dev/null 2>&1 && continue
2890       am__tar='tar chf - "$$tardir"'
2891       am__tar_='tar chf - "$tardir"'
2892       am__untar='tar xf -'
2893       ;;
2894     pax)
2895       am__tar='pax -L -x pax -w "$$tardir"'
2896       am__tar_='pax -L -x pax -w "$tardir"'
2897       am__untar='pax -r'
2898       ;;
2899     cpio)
2900       am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2901       am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2902       am__untar='cpio -i -H pax -d'
2903       ;;
2904     none)
2905       am__tar=false
2906       am__tar_=false
2907       am__untar=false
2908       ;;
2909     esac
2910
2911     # If the value was cached, stop now.  We just wanted to have am__tar
2912     # and am__untar set.
2913     test -n "${am_cv_prog_tar_pax}" && break
2914
2915     # tar/untar a dummy directory, and stop if the command works.
2916     rm -rf conftest.dir
2917     mkdir conftest.dir
2918     echo GrepMe > conftest.dir/file
2919     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2920    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2921    ac_status=$?
2922    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923    (exit $ac_status); }
2924     rm -rf conftest.dir
2925     if test -s conftest.tar; then
2926       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2927    ($am__untar <conftest.tar) >&5 2>&5
2928    ac_status=$?
2929    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930    (exit $ac_status); }
2931       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2932    (cat conftest.dir/file) >&5 2>&5
2933    ac_status=$?
2934    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935    (exit $ac_status); }
2936       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2937     fi
2938   done
2939   rm -rf conftest.dir
2940
2941   if ${am_cv_prog_tar_pax+:} false; then :
2942   $as_echo_n "(cached) " >&6
2943 else
2944   am_cv_prog_tar_pax=$_am_tool
2945 fi
2946
2947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2948 $as_echo "$am_cv_prog_tar_pax" >&6; }
2949
2950
2951
2952
2953
2954
2955 # POSIX will say in a future version that running "rm -f" with no argument
2956 # is OK; and we want to be able to make that assumption in our Makefile
2957 # recipes.  So use an aggressive probe to check that the usage we want is
2958 # actually supported "in the wild" to an acceptable degree.
2959 # See automake bug#10828.
2960 # To make any issue more visible, cause the running configure to be aborted
2961 # by default if the 'rm' program in use doesn't match our expectations; the
2962 # user can still override this though.
2963 if rm -f && rm -fr && rm -rf; then : OK; else
2964   cat >&2 <<'END'
2965 Oops!
2966
2967 Your 'rm' program seems unable to run without file operands specified
2968 on the command line, even when the '-f' option is present.  This is contrary
2969 to the behaviour of most rm programs out there, and not conforming with
2970 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2971
2972 Please tell bug-automake@gnu.org about your system, including the value
2973 of your $PATH and any error possibly output before this message.  This
2974 can help us improve future automake versions.
2975
2976 END
2977   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2978     echo 'Configuration will proceed anyway, since you have set the' >&2
2979     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2980     echo >&2
2981   else
2982     cat >&2 <<'END'
2983 Aborting the configuration process, to ensure you take notice of the issue.
2984
2985 You can download and install GNU coreutils to get an 'rm' implementation
2986 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2987
2988 If you want to complete the configuration process using your problematic
2989 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2990 to "yes", and re-run configure.
2991
2992 END
2993     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2994   fi
2995 fi
2996
2997 # Check whether --enable-silent-rules was given.
2998 if test "${enable_silent_rules+set}" = set; then :
2999   enableval=$enable_silent_rules;
3000 fi
3001
3002 case $enable_silent_rules in # (((
3003   yes) AM_DEFAULT_VERBOSITY=0;;
3004    no) AM_DEFAULT_VERBOSITY=1;;
3005     *) AM_DEFAULT_VERBOSITY=0;;
3006 esac
3007 am_make=${MAKE-make}
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3009 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3010 if ${am_cv_make_support_nested_variables+:} false; then :
3011   $as_echo_n "(cached) " >&6
3012 else
3013   if $as_echo 'TRUE=$(BAR$(V))
3014 BAR0=false
3015 BAR1=true
3016 V=1
3017 am__doit:
3018         @$(TRUE)
3019 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3020   am_cv_make_support_nested_variables=yes
3021 else
3022   am_cv_make_support_nested_variables=no
3023 fi
3024 fi
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3026 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3027 if test $am_cv_make_support_nested_variables = yes; then
3028     AM_V='$(V)'
3029   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3030 else
3031   AM_V=$AM_DEFAULT_VERBOSITY
3032   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3033 fi
3034 AM_BACKSLASH='\'
3035
3036
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3038 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3039     # Check whether --enable-maintainer-mode was given.
3040 if test "${enable_maintainer_mode+set}" = set; then :
3041   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3042 else
3043   USE_MAINTAINER_MODE=yes
3044 fi
3045
3046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3047 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3048    if test $USE_MAINTAINER_MODE = yes; then
3049   MAINTAINER_MODE_TRUE=
3050   MAINTAINER_MODE_FALSE='#'
3051 else
3052   MAINTAINER_MODE_TRUE='#'
3053   MAINTAINER_MODE_FALSE=
3054 fi
3055
3056   MAINT=$MAINTAINER_MODE_TRUE
3057
3058
3059
3060
3061 case `pwd` in
3062   *\ * | *\     *)
3063     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3064 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3065 esac
3066
3067
3068
3069 macro_version='2.4.2'
3070 macro_revision='1.3337'
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084 ltmain="$ac_aux_dir/ltmain.sh"
3085
3086 # Make sure we can run config.sub.
3087 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3088   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3089
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3091 $as_echo_n "checking build system type... " >&6; }
3092 if ${ac_cv_build+:} false; then :
3093   $as_echo_n "(cached) " >&6
3094 else
3095   ac_build_alias=$build_alias
3096 test "x$ac_build_alias" = x &&
3097   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3098 test "x$ac_build_alias" = x &&
3099   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3100 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3101   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3102
3103 fi
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3105 $as_echo "$ac_cv_build" >&6; }
3106 case $ac_cv_build in
3107 *-*-*) ;;
3108 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3109 esac
3110 build=$ac_cv_build
3111 ac_save_IFS=$IFS; IFS='-'
3112 set x $ac_cv_build
3113 shift
3114 build_cpu=$1
3115 build_vendor=$2
3116 shift; shift
3117 # Remember, the first character of IFS is used to create $*,
3118 # except with old shells:
3119 build_os=$*
3120 IFS=$ac_save_IFS
3121 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3122
3123
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3125 $as_echo_n "checking host system type... " >&6; }
3126 if ${ac_cv_host+:} false; then :
3127   $as_echo_n "(cached) " >&6
3128 else
3129   if test "x$host_alias" = x; then
3130   ac_cv_host=$ac_cv_build
3131 else
3132   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3133     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3134 fi
3135
3136 fi
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3138 $as_echo "$ac_cv_host" >&6; }
3139 case $ac_cv_host in
3140 *-*-*) ;;
3141 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3142 esac
3143 host=$ac_cv_host
3144 ac_save_IFS=$IFS; IFS='-'
3145 set x $ac_cv_host
3146 shift
3147 host_cpu=$1
3148 host_vendor=$2
3149 shift; shift
3150 # Remember, the first character of IFS is used to create $*,
3151 # except with old shells:
3152 host_os=$*
3153 IFS=$ac_save_IFS
3154 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3155
3156
3157 # Backslashify metacharacters that are still active within
3158 # double-quoted strings.
3159 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3160
3161 # Same as above, but do not quote variable references.
3162 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3163
3164 # Sed substitution to delay expansion of an escaped shell variable in a
3165 # double_quote_subst'ed string.
3166 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3167
3168 # Sed substitution to delay expansion of an escaped single quote.
3169 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3170
3171 # Sed substitution to avoid accidental globbing in evaled expressions
3172 no_glob_subst='s/\*/\\\*/g'
3173
3174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3175 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3176 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3177
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3179 $as_echo_n "checking how to print strings... " >&6; }
3180 # Test print first, because it will be a builtin if present.
3181 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3182    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3183   ECHO='print -r --'
3184 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3185   ECHO='printf %s\n'
3186 else
3187   # Use this function as a fallback that always works.
3188   func_fallback_echo ()
3189   {
3190     eval 'cat <<_LTECHO_EOF
3191 $1
3192 _LTECHO_EOF'
3193   }
3194   ECHO='func_fallback_echo'
3195 fi
3196
3197 # func_echo_all arg...
3198 # Invoke $ECHO with all args, space-separated.
3199 func_echo_all ()
3200 {
3201     $ECHO ""
3202 }
3203
3204 case "$ECHO" in
3205   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3206 $as_echo "printf" >&6; } ;;
3207   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3208 $as_echo "print -r" >&6; } ;;
3209   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3210 $as_echo "cat" >&6; } ;;
3211 esac
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226 DEPDIR="${am__leading_dot}deps"
3227
3228 ac_config_commands="$ac_config_commands depfiles"
3229
3230
3231 am_make=${MAKE-make}
3232 cat > confinc << 'END'
3233 am__doit:
3234         @echo this is the am__doit target
3235 .PHONY: am__doit
3236 END
3237 # If we don't find an include directive, just comment out the code.
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3239 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3240 am__include="#"
3241 am__quote=
3242 _am_result=none
3243 # First try GNU make style include.
3244 echo "include confinc" > confmf
3245 # Ignore all kinds of additional output from 'make'.
3246 case `$am_make -s -f confmf 2> /dev/null` in #(
3247 *the\ am__doit\ target*)
3248   am__include=include
3249   am__quote=
3250   _am_result=GNU
3251   ;;
3252 esac
3253 # Now try BSD make style include.
3254 if test "$am__include" = "#"; then
3255    echo '.include "confinc"' > confmf
3256    case `$am_make -s -f confmf 2> /dev/null` in #(
3257    *the\ am__doit\ target*)
3258      am__include=.include
3259      am__quote="\""
3260      _am_result=BSD
3261      ;;
3262    esac
3263 fi
3264
3265
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3267 $as_echo "$_am_result" >&6; }
3268 rm -f confinc confmf
3269
3270 # Check whether --enable-dependency-tracking was given.
3271 if test "${enable_dependency_tracking+set}" = set; then :
3272   enableval=$enable_dependency_tracking;
3273 fi
3274
3275 if test "x$enable_dependency_tracking" != xno; then
3276   am_depcomp="$ac_aux_dir/depcomp"
3277   AMDEPBACKSLASH='\'
3278   am__nodep='_no'
3279 fi
3280  if test "x$enable_dependency_tracking" != xno; then
3281   AMDEP_TRUE=
3282   AMDEP_FALSE='#'
3283 else
3284   AMDEP_TRUE='#'
3285   AMDEP_FALSE=
3286 fi
3287
3288
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 if test -n "$ac_tool_prefix"; then
3295   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3296 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if ${ac_cv_prog_CC+:} false; then :
3300   $as_echo_n "(cached) " >&6
3301 else
3302   if test -n "$CC"; then
3303   ac_cv_prog_CC="$CC" # Let the user override the test.
3304 else
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308   IFS=$as_save_IFS
3309   test -z "$as_dir" && as_dir=.
3310     for ac_exec_ext in '' $ac_executable_extensions; do
3311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3314     break 2
3315   fi
3316 done
3317   done
3318 IFS=$as_save_IFS
3319
3320 fi
3321 fi
3322 CC=$ac_cv_prog_CC
3323 if test -n "$CC"; then
3324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3325 $as_echo "$CC" >&6; }
3326 else
3327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3329 fi
3330
3331
3332 fi
3333 if test -z "$ac_cv_prog_CC"; then
3334   ac_ct_CC=$CC
3335   # Extract the first word of "gcc", so it can be a program name with args.
3336 set dummy gcc; ac_word=$2
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3340   $as_echo_n "(cached) " >&6
3341 else
3342   if test -n "$ac_ct_CC"; then
3343   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348   IFS=$as_save_IFS
3349   test -z "$as_dir" && as_dir=.
3350     for ac_exec_ext in '' $ac_executable_extensions; do
3351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352     ac_cv_prog_ac_ct_CC="gcc"
3353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354     break 2
3355   fi
3356 done
3357   done
3358 IFS=$as_save_IFS
3359
3360 fi
3361 fi
3362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3363 if test -n "$ac_ct_CC"; then
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3365 $as_echo "$ac_ct_CC" >&6; }
3366 else
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369 fi
3370
3371   if test "x$ac_ct_CC" = x; then
3372     CC=""
3373   else
3374     case $cross_compiling:$ac_tool_warned in
3375 yes:)
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3378 ac_tool_warned=yes ;;
3379 esac
3380     CC=$ac_ct_CC
3381   fi
3382 else
3383   CC="$ac_cv_prog_CC"
3384 fi
3385
3386 if test -z "$CC"; then
3387           if test -n "$ac_tool_prefix"; then
3388     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3389 set dummy ${ac_tool_prefix}cc; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if ${ac_cv_prog_CC+:} false; then :
3393   $as_echo_n "(cached) " >&6
3394 else
3395   if test -n "$CC"; then
3396   ac_cv_prog_CC="$CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401   IFS=$as_save_IFS
3402   test -z "$as_dir" && as_dir=.
3403     for ac_exec_ext in '' $ac_executable_extensions; do
3404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405     ac_cv_prog_CC="${ac_tool_prefix}cc"
3406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407     break 2
3408   fi
3409 done
3410   done
3411 IFS=$as_save_IFS
3412
3413 fi
3414 fi
3415 CC=$ac_cv_prog_CC
3416 if test -n "$CC"; then
3417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 $as_echo "$CC" >&6; }
3419 else
3420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3422 fi
3423
3424
3425   fi
3426 fi
3427 if test -z "$CC"; then
3428   # Extract the first word of "cc", so it can be a program name with args.
3429 set dummy cc; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if ${ac_cv_prog_CC+:} false; then :
3433   $as_echo_n "(cached) " >&6
3434 else
3435   if test -n "$CC"; then
3436   ac_cv_prog_CC="$CC" # Let the user override the test.
3437 else
3438   ac_prog_rejected=no
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 for as_dir in $PATH
3441 do
3442   IFS=$as_save_IFS
3443   test -z "$as_dir" && as_dir=.
3444     for ac_exec_ext in '' $ac_executable_extensions; do
3445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3447        ac_prog_rejected=yes
3448        continue
3449      fi
3450     ac_cv_prog_CC="cc"
3451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452     break 2
3453   fi
3454 done
3455   done
3456 IFS=$as_save_IFS
3457
3458 if test $ac_prog_rejected = yes; then
3459   # We found a bogon in the path, so make sure we never use it.
3460   set dummy $ac_cv_prog_CC
3461   shift
3462   if test $# != 0; then
3463     # We chose a different compiler from the bogus one.
3464     # However, it has the same basename, so the bogon will be chosen
3465     # first if we set CC to just the basename; use the full file name.
3466     shift
3467     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3468   fi
3469 fi
3470 fi
3471 fi
3472 CC=$ac_cv_prog_CC
3473 if test -n "$CC"; then
3474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3475 $as_echo "$CC" >&6; }
3476 else
3477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3479 fi
3480
3481
3482 fi
3483 if test -z "$CC"; then
3484   if test -n "$ac_tool_prefix"; then
3485   for ac_prog in cl.exe
3486   do
3487     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490 $as_echo_n "checking for $ac_word... " >&6; }
3491 if ${ac_cv_prog_CC+:} false; then :
3492   $as_echo_n "(cached) " >&6
3493 else
3494   if test -n "$CC"; then
3495   ac_cv_prog_CC="$CC" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3499 do
3500   IFS=$as_save_IFS
3501   test -z "$as_dir" && as_dir=.
3502     for ac_exec_ext in '' $ac_executable_extensions; do
3503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506     break 2
3507   fi
3508 done
3509   done
3510 IFS=$as_save_IFS
3511
3512 fi
3513 fi
3514 CC=$ac_cv_prog_CC
3515 if test -n "$CC"; then
3516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3517 $as_echo "$CC" >&6; }
3518 else
3519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 $as_echo "no" >&6; }
3521 fi
3522
3523
3524     test -n "$CC" && break
3525   done
3526 fi
3527 if test -z "$CC"; then
3528   ac_ct_CC=$CC
3529   for ac_prog in cl.exe
3530 do
3531   # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3536   $as_echo_n "(cached) " >&6
3537 else
3538   if test -n "$ac_ct_CC"; then
3539   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544   IFS=$as_save_IFS
3545   test -z "$as_dir" && as_dir=.
3546     for ac_exec_ext in '' $ac_executable_extensions; do
3547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548     ac_cv_prog_ac_ct_CC="$ac_prog"
3549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550     break 2
3551   fi
3552 done
3553   done
3554 IFS=$as_save_IFS
3555
3556 fi
3557 fi
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561 $as_echo "$ac_ct_CC" >&6; }
3562 else
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3565 fi
3566
3567
3568   test -n "$ac_ct_CC" && break
3569 done
3570
3571   if test "x$ac_ct_CC" = x; then
3572     CC=""
3573   else
3574     case $cross_compiling:$ac_tool_warned in
3575 yes:)
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3579 esac
3580     CC=$ac_ct_CC
3581   fi
3582 fi
3583
3584 fi
3585
3586
3587 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "no acceptable C compiler found in \$PATH
3590 See \`config.log' for more details" "$LINENO" 5; }
3591
3592 # Provide some information about the compiler.
3593 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3594 set X $ac_compile
3595 ac_compiler=$2
3596 for ac_option in --version -v -V -qversion; do
3597   { { ac_try="$ac_compiler $ac_option >&5"
3598 case "(($ac_try" in
3599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600   *) ac_try_echo=$ac_try;;
3601 esac
3602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3605   ac_status=$?
3606   if test -s conftest.err; then
3607     sed '10a\
3608 ... rest of stderr output deleted ...
3609          10q' conftest.err >conftest.er1
3610     cat conftest.er1 >&5
3611   fi
3612   rm -f conftest.er1 conftest.err
3613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614   test $ac_status = 0; }
3615 done
3616
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h.  */
3619
3620 int
3621 main ()
3622 {
3623
3624   ;
3625   return 0;
3626 }
3627 _ACEOF
3628 ac_clean_files_save=$ac_clean_files
3629 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3630 # Try to create an executable without -o first, disregard a.out.
3631 # It will help us diagnose broken compilers, and finding out an intuition
3632 # of exeext.
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3634 $as_echo_n "checking whether the C compiler works... " >&6; }
3635 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3636
3637 # The possible output files:
3638 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3639
3640 ac_rmfiles=
3641 for ac_file in $ac_files
3642 do
3643   case $ac_file in
3644     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3645     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3646   esac
3647 done
3648 rm -f $ac_rmfiles
3649
3650 if { { ac_try="$ac_link_default"
3651 case "(($ac_try" in
3652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653   *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657   (eval "$ac_link_default") 2>&5
3658   ac_status=$?
3659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660   test $ac_status = 0; }; then :
3661   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3662 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3663 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3664 # so that the user can short-circuit this test for compilers unknown to
3665 # Autoconf.
3666 for ac_file in $ac_files ''
3667 do
3668   test -f "$ac_file" || continue
3669   case $ac_file in
3670     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3671         ;;
3672     [ab].out )
3673         # We found the default executable, but exeext='' is most
3674         # certainly right.
3675         break;;
3676     *.* )
3677         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3678         then :; else
3679            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3680         fi
3681         # We set ac_cv_exeext here because the later test for it is not
3682         # safe: cross compilers may not add the suffix if given an `-o'
3683         # argument, so we may need to know it at that point already.
3684         # Even if this section looks crufty: it has the advantage of
3685         # actually working.
3686         break;;
3687     * )
3688         break;;
3689   esac
3690 done
3691 test "$ac_cv_exeext" = no && ac_cv_exeext=
3692
3693 else
3694   ac_file=''
3695 fi
3696 if test -z "$ac_file"; then :
3697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3699 $as_echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704 as_fn_error 77 "C compiler cannot create executables
3705 See \`config.log' for more details" "$LINENO" 5; }
3706 else
3707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708 $as_echo "yes" >&6; }
3709 fi
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3711 $as_echo_n "checking for C compiler default output file name... " >&6; }
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3713 $as_echo "$ac_file" >&6; }
3714 ac_exeext=$ac_cv_exeext
3715
3716 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3717 ac_clean_files=$ac_clean_files_save
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3719 $as_echo_n "checking for suffix of executables... " >&6; }
3720 if { { ac_try="$ac_link"
3721 case "(($ac_try" in
3722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723   *) ac_try_echo=$ac_try;;
3724 esac
3725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3726 $as_echo "$ac_try_echo"; } >&5
3727   (eval "$ac_link") 2>&5
3728   ac_status=$?
3729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730   test $ac_status = 0; }; then :
3731   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3732 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3733 # work properly (i.e., refer to `conftest.exe'), while it won't with
3734 # `rm'.
3735 for ac_file in conftest.exe conftest conftest.*; do
3736   test -f "$ac_file" || continue
3737   case $ac_file in
3738     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3739     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3740           break;;
3741     * ) break;;
3742   esac
3743 done
3744 else
3745   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3748 See \`config.log' for more details" "$LINENO" 5; }
3749 fi
3750 rm -f conftest conftest$ac_cv_exeext
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3752 $as_echo "$ac_cv_exeext" >&6; }
3753
3754 rm -f conftest.$ac_ext
3755 EXEEXT=$ac_cv_exeext
3756 ac_exeext=$EXEEXT
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h.  */
3759 #include <stdio.h>
3760 int
3761 main ()
3762 {
3763 FILE *f = fopen ("conftest.out", "w");
3764  return ferror (f) || fclose (f) != 0;
3765
3766   ;
3767   return 0;
3768 }
3769 _ACEOF
3770 ac_clean_files="$ac_clean_files conftest.out"
3771 # Check that the compiler produces executables we can run.  If not, either
3772 # the compiler is broken, or we cross compile.
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3774 $as_echo_n "checking whether we are cross compiling... " >&6; }
3775 if test "$cross_compiling" != yes; then
3776   { { ac_try="$ac_link"
3777 case "(($ac_try" in
3778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779   *) ac_try_echo=$ac_try;;
3780 esac
3781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3782 $as_echo "$ac_try_echo"; } >&5
3783   (eval "$ac_link") 2>&5
3784   ac_status=$?
3785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786   test $ac_status = 0; }
3787   if { ac_try='./conftest$ac_cv_exeext'
3788   { { case "(($ac_try" in
3789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790   *) ac_try_echo=$ac_try;;
3791 esac
3792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793 $as_echo "$ac_try_echo"; } >&5
3794   (eval "$ac_try") 2>&5
3795   ac_status=$?
3796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797   test $ac_status = 0; }; }; then
3798     cross_compiling=no
3799   else
3800     if test "$cross_compiling" = maybe; then
3801         cross_compiling=yes
3802     else
3803         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error $? "cannot run C compiled programs.
3806 If you meant to cross compile, use \`--host'.
3807 See \`config.log' for more details" "$LINENO" 5; }
3808     fi
3809   fi
3810 fi
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3812 $as_echo "$cross_compiling" >&6; }
3813
3814 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3815 ac_clean_files=$ac_clean_files_save
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3817 $as_echo_n "checking for suffix of object files... " >&6; }
3818 if ${ac_cv_objext+:} false; then :
3819   $as_echo_n "(cached) " >&6
3820 else
3821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h.  */
3823
3824 int
3825 main ()
3826 {
3827
3828   ;
3829   return 0;
3830 }
3831 _ACEOF
3832 rm -f conftest.o conftest.obj
3833 if { { ac_try="$ac_compile"
3834 case "(($ac_try" in
3835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836   *) ac_try_echo=$ac_try;;
3837 esac
3838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839 $as_echo "$ac_try_echo"; } >&5
3840   (eval "$ac_compile") 2>&5
3841   ac_status=$?
3842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843   test $ac_status = 0; }; then :
3844   for ac_file in conftest.o conftest.obj conftest.*; do
3845   test -f "$ac_file" || continue;
3846   case $ac_file in
3847     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3848     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3849        break;;
3850   esac
3851 done
3852 else
3853   $as_echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3858 as_fn_error $? "cannot compute suffix of object files: cannot compile
3859 See \`config.log' for more details" "$LINENO" 5; }
3860 fi
3861 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3862 fi
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3864 $as_echo "$ac_cv_objext" >&6; }
3865 OBJEXT=$ac_cv_objext
3866 ac_objext=$OBJEXT
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3868 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3869 if ${ac_cv_c_compiler_gnu+:} false; then :
3870   $as_echo_n "(cached) " >&6
3871 else
3872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h.  */
3874
3875 int
3876 main ()
3877 {
3878 #ifndef __GNUC__
3879        choke me
3880 #endif
3881
3882   ;
3883   return 0;
3884 }
3885 _ACEOF
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887   ac_compiler_gnu=yes
3888 else
3889   ac_compiler_gnu=no
3890 fi
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3893
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3896 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3897 if test $ac_compiler_gnu = yes; then
3898   GCC=yes
3899 else
3900   GCC=
3901 fi
3902 ac_test_CFLAGS=${CFLAGS+set}
3903 ac_save_CFLAGS=$CFLAGS
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3905 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3906 if ${ac_cv_prog_cc_g+:} false; then :
3907   $as_echo_n "(cached) " >&6
3908 else
3909   ac_save_c_werror_flag=$ac_c_werror_flag
3910    ac_c_werror_flag=yes
3911    ac_cv_prog_cc_g=no
3912    CFLAGS="-g"
3913    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h.  */
3915
3916 int
3917 main ()
3918 {
3919
3920   ;
3921   return 0;
3922 }
3923 _ACEOF
3924 if ac_fn_c_try_compile "$LINENO"; then :
3925   ac_cv_prog_cc_g=yes
3926 else
3927   CFLAGS=""
3928       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h.  */
3930
3931 int
3932 main ()
3933 {
3934
3935   ;
3936   return 0;
3937 }
3938 _ACEOF
3939 if ac_fn_c_try_compile "$LINENO"; then :
3940
3941 else
3942   ac_c_werror_flag=$ac_save_c_werror_flag
3943          CFLAGS="-g"
3944          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h.  */
3946
3947 int
3948 main ()
3949 {
3950
3951   ;
3952   return 0;
3953 }
3954 _ACEOF
3955 if ac_fn_c_try_compile "$LINENO"; then :
3956   ac_cv_prog_cc_g=yes
3957 fi
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 fi
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 fi
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963    ac_c_werror_flag=$ac_save_c_werror_flag
3964 fi
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3966 $as_echo "$ac_cv_prog_cc_g" >&6; }
3967 if test "$ac_test_CFLAGS" = set; then
3968   CFLAGS=$ac_save_CFLAGS
3969 elif test $ac_cv_prog_cc_g = yes; then
3970   if test "$GCC" = yes; then
3971     CFLAGS="-g -O2"
3972   else
3973     CFLAGS="-g"
3974   fi
3975 else
3976   if test "$GCC" = yes; then
3977     CFLAGS="-O2"
3978   else
3979     CFLAGS=
3980   fi
3981 fi
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3983 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3984 if ${ac_cv_prog_cc_c89+:} false; then :
3985   $as_echo_n "(cached) " >&6
3986 else
3987   ac_cv_prog_cc_c89=no
3988 ac_save_CC=$CC
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h.  */
3991 #include <stdarg.h>
3992 #include <stdio.h>
3993 struct stat;
3994 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3995 struct buf { int x; };
3996 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3997 static char *e (p, i)
3998      char **p;
3999      int i;
4000 {
4001   return p[i];
4002 }
4003 static char *f (char * (*g) (char **, int), char **p, ...)
4004 {
4005   char *s;
4006   va_list v;
4007   va_start (v,p);
4008   s = g (p, va_arg (v,int));
4009   va_end (v);
4010   return s;
4011 }
4012
4013 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4014    function prototypes and stuff, but not '\xHH' hex character constants.
4015    These don't provoke an error unfortunately, instead are silently treated
4016    as 'x'.  The following induces an error, until -std is added to get
4017    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4018    array size at least.  It's necessary to write '\x00'==0 to get something
4019    that's true only with -std.  */
4020 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4021
4022 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4023    inside strings and character constants.  */
4024 #define FOO(x) 'x'
4025 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4026
4027 int test (int i, double x);
4028 struct s1 {int (*f) (int a);};
4029 struct s2 {int (*f) (double a);};
4030 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4031 int argc;
4032 char **argv;
4033 int
4034 main ()
4035 {
4036 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4037   ;
4038   return 0;
4039 }
4040 _ACEOF
4041 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4042         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4043 do
4044   CC="$ac_save_CC $ac_arg"
4045   if ac_fn_c_try_compile "$LINENO"; then :
4046   ac_cv_prog_cc_c89=$ac_arg
4047 fi
4048 rm -f core conftest.err conftest.$ac_objext
4049   test "x$ac_cv_prog_cc_c89" != "xno" && break
4050 done
4051 rm -f conftest.$ac_ext
4052 CC=$ac_save_CC
4053
4054 fi
4055 # AC_CACHE_VAL
4056 case "x$ac_cv_prog_cc_c89" in
4057   x)
4058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4059 $as_echo "none needed" >&6; } ;;
4060   xno)
4061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4062 $as_echo "unsupported" >&6; } ;;
4063   *)
4064     CC="$CC $ac_cv_prog_cc_c89"
4065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4066 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4067 esac
4068 if test "x$ac_cv_prog_cc_c89" != xno; then :
4069
4070 fi
4071
4072 ac_ext=c
4073 ac_cpp='$CPP $CPPFLAGS'
4074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077
4078 ac_ext=c
4079 ac_cpp='$CPP $CPPFLAGS'
4080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4084 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4085 if ${am_cv_prog_cc_c_o+:} false; then :
4086   $as_echo_n "(cached) " >&6
4087 else
4088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h.  */
4090
4091 int
4092 main ()
4093 {
4094
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099   # Make sure it works both with $CC and with simple cc.
4100   # Following AC_PROG_CC_C_O, we do the test twice because some
4101   # compilers refuse to overwrite an existing .o file with -o,
4102   # though they will create one.
4103   am_cv_prog_cc_c_o=yes
4104   for am_i in 1 2; do
4105     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4106    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4107    ac_status=$?
4108    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109    (exit $ac_status); } \
4110          && test -f conftest2.$ac_objext; then
4111       : OK
4112     else
4113       am_cv_prog_cc_c_o=no
4114       break
4115     fi
4116   done
4117   rm -f core conftest*
4118   unset am_i
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4121 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4122 if test "$am_cv_prog_cc_c_o" != yes; then
4123    # Losing compiler, so override with the script.
4124    # FIXME: It is wrong to rewrite CC.
4125    # But if we don't then we get into trouble of one sort or another.
4126    # A longer-term fix would be to have automake use am__CC in this case,
4127    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4128    CC="$am_aux_dir/compile $CC"
4129 fi
4130 ac_ext=c
4131 ac_cpp='$CPP $CPPFLAGS'
4132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135
4136
4137 depcc="$CC"   am_compiler_list=
4138
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4140 $as_echo_n "checking dependency style of $depcc... " >&6; }
4141 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4142   $as_echo_n "(cached) " >&6
4143 else
4144   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4145   # We make a subdir and do the tests there.  Otherwise we can end up
4146   # making bogus files that we don't know about and never remove.  For
4147   # instance it was reported that on HP-UX the gcc test will end up
4148   # making a dummy file named 'D' -- because '-MD' means "put the output
4149   # in D".
4150   rm -rf conftest.dir
4151   mkdir conftest.dir
4152   # Copy depcomp to subdir because otherwise we won't find it if we're
4153   # using a relative directory.
4154   cp "$am_depcomp" conftest.dir
4155   cd conftest.dir
4156   # We will build objects and dependencies in a subdirectory because
4157   # it helps to detect inapplicable dependency modes.  For instance
4158   # both Tru64's cc and ICC support -MD to output dependencies as a
4159   # side effect of compilation, but ICC will put the dependencies in
4160   # the current directory while Tru64 will put them in the object
4161   # directory.
4162   mkdir sub
4163
4164   am_cv_CC_dependencies_compiler_type=none
4165   if test "$am_compiler_list" = ""; then
4166      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4167   fi
4168   am__universal=false
4169   case " $depcc " in #(
4170      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4171      esac
4172
4173   for depmode in $am_compiler_list; do
4174     # Setup a source with many dependencies, because some compilers
4175     # like to wrap large dependency lists on column 80 (with \), and
4176     # we should not choose a depcomp mode which is confused by this.
4177     #
4178     # We need to recreate these files for each test, as the compiler may
4179     # overwrite some of them when testing with obscure command lines.
4180     # This happens at least with the AIX C compiler.
4181     : > sub/conftest.c
4182     for i in 1 2 3 4 5 6; do
4183       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4184       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4185       # Solaris 10 /bin/sh.
4186       echo '/* dummy */' > sub/conftst$i.h
4187     done
4188     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4189
4190     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4191     # mode.  It turns out that the SunPro C++ compiler does not properly
4192     # handle '-M -o', and we need to detect this.  Also, some Intel
4193     # versions had trouble with output in subdirs.
4194     am__obj=sub/conftest.${OBJEXT-o}
4195     am__minus_obj="-o $am__obj"
4196     case $depmode in
4197     gcc)
4198       # This depmode causes a compiler race in universal mode.
4199       test "$am__universal" = false || continue
4200       ;;
4201     nosideeffect)
4202       # After this tag, mechanisms are not by side-effect, so they'll
4203       # only be used when explicitly requested.
4204       if test "x$enable_dependency_tracking" = xyes; then
4205         continue
4206       else
4207         break
4208       fi
4209       ;;
4210     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4211       # This compiler won't grok '-c -o', but also, the minuso test has
4212       # not run yet.  These depmodes are late enough in the game, and
4213       # so weak that their functioning should not be impacted.
4214       am__obj=conftest.${OBJEXT-o}
4215       am__minus_obj=
4216       ;;
4217     none) break ;;
4218     esac
4219     if depmode=$depmode \
4220        source=sub/conftest.c object=$am__obj \
4221        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4222        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4223          >/dev/null 2>conftest.err &&
4224        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4225        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4226        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4227        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4228       # icc doesn't choke on unknown options, it will just issue warnings
4229       # or remarks (even with -Werror).  So we grep stderr for any message
4230       # that says an option was ignored or not supported.
4231       # When given -MP, icc 7.0 and 7.1 complain thusly:
4232       #   icc: Command line warning: ignoring option '-M'; no argument required
4233       # The diagnosis changed in icc 8.0:
4234       #   icc: Command line remark: option '-MP' not supported
4235       if (grep 'ignoring option' conftest.err ||
4236           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4237         am_cv_CC_dependencies_compiler_type=$depmode
4238         break
4239       fi
4240     fi
4241   done
4242
4243   cd ..
4244   rm -rf conftest.dir
4245 else
4246   am_cv_CC_dependencies_compiler_type=none
4247 fi
4248
4249 fi
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4251 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4252 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4253
4254  if
4255   test "x$enable_dependency_tracking" != xno \
4256   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4257   am__fastdepCC_TRUE=
4258   am__fastdepCC_FALSE='#'
4259 else
4260   am__fastdepCC_TRUE='#'
4261   am__fastdepCC_FALSE=
4262 fi
4263
4264
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4266 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4267 if ${ac_cv_path_SED+:} false; then :
4268   $as_echo_n "(cached) " >&6
4269 else
4270             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4271      for ac_i in 1 2 3 4 5 6 7; do
4272        ac_script="$ac_script$as_nl$ac_script"
4273      done
4274      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4275      { ac_script=; unset ac_script;}
4276      if test -z "$SED"; then
4277   ac_path_SED_found=false
4278   # Loop through the user's path and test for each of PROGNAME-LIST
4279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284     for ac_prog in sed gsed; do
4285     for ac_exec_ext in '' $ac_executable_extensions; do
4286       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4287       as_fn_executable_p "$ac_path_SED" || continue
4288 # Check for GNU ac_path_SED and select it if it is found.
4289   # Check for GNU $ac_path_SED
4290 case `"$ac_path_SED" --version 2>&1` in
4291 *GNU*)
4292   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4293 *)
4294   ac_count=0
4295   $as_echo_n 0123456789 >"conftest.in"
4296   while :
4297   do
4298     cat "conftest.in" "conftest.in" >"conftest.tmp"
4299     mv "conftest.tmp" "conftest.in"
4300     cp "conftest.in" "conftest.nl"
4301     $as_echo '' >> "conftest.nl"
4302     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4303     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4304     as_fn_arith $ac_count + 1 && ac_count=$as_val
4305     if test $ac_count -gt ${ac_path_SED_max-0}; then
4306       # Best one so far, save it but keep looking for a better one
4307       ac_cv_path_SED="$ac_path_SED"
4308       ac_path_SED_max=$ac_count
4309     fi
4310     # 10*(2^10) chars as input seems more than enough
4311     test $ac_count -gt 10 && break
4312   done
4313   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4314 esac
4315
4316       $ac_path_SED_found && break 3
4317     done
4318   done
4319   done
4320 IFS=$as_save_IFS
4321   if test -z "$ac_cv_path_SED"; then
4322     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4323   fi
4324 else
4325   ac_cv_path_SED=$SED
4326 fi
4327
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4330 $as_echo "$ac_cv_path_SED" >&6; }
4331  SED="$ac_cv_path_SED"
4332   rm -f conftest.sed
4333
4334 test -z "$SED" && SED=sed
4335 Xsed="$SED -e 1s/^X//"
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4348 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4349 if ${ac_cv_path_GREP+:} false; then :
4350   $as_echo_n "(cached) " >&6
4351 else
4352   if test -z "$GREP"; then
4353   ac_path_GREP_found=false
4354   # Loop through the user's path and test for each of PROGNAME-LIST
4355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4357 do
4358   IFS=$as_save_IFS
4359   test -z "$as_dir" && as_dir=.
4360     for ac_prog in grep ggrep; do
4361     for ac_exec_ext in '' $ac_executable_extensions; do
4362       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4363       as_fn_executable_p "$ac_path_GREP" || continue
4364 # Check for GNU ac_path_GREP and select it if it is found.
4365   # Check for GNU $ac_path_GREP
4366 case `"$ac_path_GREP" --version 2>&1` in
4367 *GNU*)
4368   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4369 *)
4370   ac_count=0
4371   $as_echo_n 0123456789 >"conftest.in"
4372   while :
4373   do
4374     cat "conftest.in" "conftest.in" >"conftest.tmp"
4375     mv "conftest.tmp" "conftest.in"
4376     cp "conftest.in" "conftest.nl"
4377     $as_echo 'GREP' >> "conftest.nl"
4378     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4379     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4380     as_fn_arith $ac_count + 1 && ac_count=$as_val
4381     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4382       # Best one so far, save it but keep looking for a better one
4383       ac_cv_path_GREP="$ac_path_GREP"
4384       ac_path_GREP_max=$ac_count
4385     fi
4386     # 10*(2^10) chars as input seems more than enough
4387     test $ac_count -gt 10 && break
4388   done
4389   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4390 esac
4391
4392       $ac_path_GREP_found && break 3
4393     done
4394   done
4395   done
4396 IFS=$as_save_IFS
4397   if test -z "$ac_cv_path_GREP"; then
4398     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4399   fi
4400 else
4401   ac_cv_path_GREP=$GREP
4402 fi
4403
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4406 $as_echo "$ac_cv_path_GREP" >&6; }
4407  GREP="$ac_cv_path_GREP"
4408
4409
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4411 $as_echo_n "checking for egrep... " >&6; }
4412 if ${ac_cv_path_EGREP+:} false; then :
4413   $as_echo_n "(cached) " >&6
4414 else
4415   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4416    then ac_cv_path_EGREP="$GREP -E"
4417    else
4418      if test -z "$EGREP"; then
4419   ac_path_EGREP_found=false
4420   # Loop through the user's path and test for each of PROGNAME-LIST
4421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4423 do
4424   IFS=$as_save_IFS
4425   test -z "$as_dir" && as_dir=.
4426     for ac_prog in egrep; do
4427     for ac_exec_ext in '' $ac_executable_extensions; do
4428       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4429       as_fn_executable_p "$ac_path_EGREP" || continue
4430 # Check for GNU ac_path_EGREP and select it if it is found.
4431   # Check for GNU $ac_path_EGREP
4432 case `"$ac_path_EGREP" --version 2>&1` in
4433 *GNU*)
4434   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4435 *)
4436   ac_count=0
4437   $as_echo_n 0123456789 >"conftest.in"
4438   while :
4439   do
4440     cat "conftest.in" "conftest.in" >"conftest.tmp"
4441     mv "conftest.tmp" "conftest.in"
4442     cp "conftest.in" "conftest.nl"
4443     $as_echo 'EGREP' >> "conftest.nl"
4444     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4445     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4446     as_fn_arith $ac_count + 1 && ac_count=$as_val
4447     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4448       # Best one so far, save it but keep looking for a better one
4449       ac_cv_path_EGREP="$ac_path_EGREP"
4450       ac_path_EGREP_max=$ac_count
4451     fi
4452     # 10*(2^10) chars as input seems more than enough
4453     test $ac_count -gt 10 && break
4454   done
4455   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4456 esac
4457
4458       $ac_path_EGREP_found && break 3
4459     done
4460   done
4461   done
4462 IFS=$as_save_IFS
4463   if test -z "$ac_cv_path_EGREP"; then
4464     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4465   fi
4466 else
4467   ac_cv_path_EGREP=$EGREP
4468 fi
4469
4470    fi
4471 fi
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4473 $as_echo "$ac_cv_path_EGREP" >&6; }
4474  EGREP="$ac_cv_path_EGREP"
4475
4476
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4478 $as_echo_n "checking for fgrep... " >&6; }
4479 if ${ac_cv_path_FGREP+:} false; then :
4480   $as_echo_n "(cached) " >&6
4481 else
4482   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4483    then ac_cv_path_FGREP="$GREP -F"
4484    else
4485      if test -z "$FGREP"; then
4486   ac_path_FGREP_found=false
4487   # Loop through the user's path and test for each of PROGNAME-LIST
4488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4490 do
4491   IFS=$as_save_IFS
4492   test -z "$as_dir" && as_dir=.
4493     for ac_prog in fgrep; do
4494     for ac_exec_ext in '' $ac_executable_extensions; do
4495       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4496       as_fn_executable_p "$ac_path_FGREP" || continue
4497 # Check for GNU ac_path_FGREP and select it if it is found.
4498   # Check for GNU $ac_path_FGREP
4499 case `"$ac_path_FGREP" --version 2>&1` in
4500 *GNU*)
4501   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4502 *)
4503   ac_count=0
4504   $as_echo_n 0123456789 >"conftest.in"
4505   while :
4506   do
4507     cat "conftest.in" "conftest.in" >"conftest.tmp"
4508     mv "conftest.tmp" "conftest.in"
4509     cp "conftest.in" "conftest.nl"
4510     $as_echo 'FGREP' >> "conftest.nl"
4511     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4512     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4513     as_fn_arith $ac_count + 1 && ac_count=$as_val
4514     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4515       # Best one so far, save it but keep looking for a better one
4516       ac_cv_path_FGREP="$ac_path_FGREP"
4517       ac_path_FGREP_max=$ac_count
4518     fi
4519     # 10*(2^10) chars as input seems more than enough
4520     test $ac_count -gt 10 && break
4521   done
4522   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4523 esac
4524
4525       $ac_path_FGREP_found && break 3
4526     done
4527   done
4528   done
4529 IFS=$as_save_IFS
4530   if test -z "$ac_cv_path_FGREP"; then
4531     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4532   fi
4533 else
4534   ac_cv_path_FGREP=$FGREP
4535 fi
4536
4537    fi
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4540 $as_echo "$ac_cv_path_FGREP" >&6; }
4541  FGREP="$ac_cv_path_FGREP"
4542
4543
4544 test -z "$GREP" && GREP=grep
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564 # Check whether --with-gnu-ld was given.
4565 if test "${with_gnu_ld+set}" = set; then :
4566   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4567 else
4568   with_gnu_ld=no
4569 fi
4570
4571 ac_prog=ld
4572 if test "$GCC" = yes; then
4573   # Check if gcc -print-prog-name=ld gives a path.
4574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4575 $as_echo_n "checking for ld used by $CC... " >&6; }
4576   case $host in
4577   *-*-mingw*)
4578     # gcc leaves a trailing carriage return which upsets mingw
4579     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4580   *)
4581     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4582   esac
4583   case $ac_prog in
4584     # Accept absolute paths.
4585     [\\/]* | ?:[\\/]*)
4586       re_direlt='/[^/][^/]*/\.\./'
4587       # Canonicalize the pathname of ld
4588       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4589       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4590         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4591       done
4592       test -z "$LD" && LD="$ac_prog"
4593       ;;
4594   "")
4595     # If it fails, then pretend we aren't using GCC.
4596     ac_prog=ld
4597     ;;
4598   *)
4599     # If it is relative, then search for the first ld in PATH.
4600     with_gnu_ld=unknown
4601     ;;
4602   esac
4603 elif test "$with_gnu_ld" = yes; then
4604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4605 $as_echo_n "checking for GNU ld... " >&6; }
4606 else
4607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4608 $as_echo_n "checking for non-GNU ld... " >&6; }
4609 fi
4610 if ${lt_cv_path_LD+:} false; then :
4611   $as_echo_n "(cached) " >&6
4612 else
4613   if test -z "$LD"; then
4614   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4615   for ac_dir in $PATH; do
4616     IFS="$lt_save_ifs"
4617     test -z "$ac_dir" && ac_dir=.
4618     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4619       lt_cv_path_LD="$ac_dir/$ac_prog"
4620       # Check to see if the program is GNU ld.  I'd rather use --version,
4621       # but apparently some variants of GNU ld only accept -v.
4622       # Break only if it was the GNU/non-GNU ld that we prefer.
4623       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4624       *GNU* | *'with BFD'*)
4625         test "$with_gnu_ld" != no && break
4626         ;;
4627       *)
4628         test "$with_gnu_ld" != yes && break
4629         ;;
4630       esac
4631     fi
4632   done
4633   IFS="$lt_save_ifs"
4634 else
4635   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4636 fi
4637 fi
4638
4639 LD="$lt_cv_path_LD"
4640 if test -n "$LD"; then
4641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4642 $as_echo "$LD" >&6; }
4643 else
4644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4646 fi
4647 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4649 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4650 if ${lt_cv_prog_gnu_ld+:} false; then :
4651   $as_echo_n "(cached) " >&6
4652 else
4653   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4654 case `$LD -v 2>&1 </dev/null` in
4655 *GNU* | *'with BFD'*)
4656   lt_cv_prog_gnu_ld=yes
4657   ;;
4658 *)
4659   lt_cv_prog_gnu_ld=no
4660   ;;
4661 esac
4662 fi
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4664 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4665 with_gnu_ld=$lt_cv_prog_gnu_ld
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4676 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4677 if ${lt_cv_path_NM+:} false; then :
4678   $as_echo_n "(cached) " >&6
4679 else
4680   if test -n "$NM"; then
4681   # Let the user override the test.
4682   lt_cv_path_NM="$NM"
4683 else
4684   lt_nm_to_check="${ac_tool_prefix}nm"
4685   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4686     lt_nm_to_check="$lt_nm_to_check nm"
4687   fi
4688   for lt_tmp_nm in $lt_nm_to_check; do
4689     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4690     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4691       IFS="$lt_save_ifs"
4692       test -z "$ac_dir" && ac_dir=.
4693       tmp_nm="$ac_dir/$lt_tmp_nm"
4694       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4695         # Check to see if the nm accepts a BSD-compat flag.
4696         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4697         #   nm: unknown option "B" ignored
4698         # Tru64's nm complains that /dev/null is an invalid object file
4699         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4700         */dev/null* | *'Invalid file or object type'*)
4701           lt_cv_path_NM="$tmp_nm -B"
4702           break
4703           ;;
4704         *)
4705           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4706           */dev/null*)
4707             lt_cv_path_NM="$tmp_nm -p"
4708             break
4709             ;;
4710           *)
4711             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4712             continue # so that we can try to find one that supports BSD flags
4713             ;;
4714           esac
4715           ;;
4716         esac
4717       fi
4718     done
4719     IFS="$lt_save_ifs"
4720   done
4721   : ${lt_cv_path_NM=no}
4722 fi
4723 fi
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4725 $as_echo "$lt_cv_path_NM" >&6; }
4726 if test "$lt_cv_path_NM" != "no"; then
4727   NM="$lt_cv_path_NM"
4728 else
4729   # Didn't find any BSD compatible name lister, look for dumpbin.
4730   if test -n "$DUMPBIN"; then :
4731     # Let the user override the test.
4732   else
4733     if test -n "$ac_tool_prefix"; then
4734   for ac_prog in dumpbin "link -dump"
4735   do
4736     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if ${ac_cv_prog_DUMPBIN+:} false; then :
4741   $as_echo_n "(cached) " >&6
4742 else
4743   if test -n "$DUMPBIN"; then
4744   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751     for ac_exec_ext in '' $ac_executable_extensions; do
4752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758   done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 DUMPBIN=$ac_cv_prog_DUMPBIN
4764 if test -n "$DUMPBIN"; then
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4766 $as_echo "$DUMPBIN" >&6; }
4767 else
4768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771
4772
4773     test -n "$DUMPBIN" && break
4774   done
4775 fi
4776 if test -z "$DUMPBIN"; then
4777   ac_ct_DUMPBIN=$DUMPBIN
4778   for ac_prog in dumpbin "link -dump"
4779 do
4780   # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4785   $as_echo_n "(cached) " >&6
4786 else
4787   if test -n "$ac_ct_DUMPBIN"; then
4788   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793   IFS=$as_save_IFS
4794   test -z "$as_dir" && as_dir=.
4795     for ac_exec_ext in '' $ac_executable_extensions; do
4796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799     break 2
4800   fi
4801 done
4802   done
4803 IFS=$as_save_IFS
4804
4805 fi
4806 fi
4807 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4808 if test -n "$ac_ct_DUMPBIN"; then
4809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4810 $as_echo "$ac_ct_DUMPBIN" >&6; }
4811 else
4812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814 fi
4815
4816
4817   test -n "$ac_ct_DUMPBIN" && break
4818 done
4819
4820   if test "x$ac_ct_DUMPBIN" = x; then
4821     DUMPBIN=":"
4822   else
4823     case $cross_compiling:$ac_tool_warned in
4824 yes:)
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827 ac_tool_warned=yes ;;
4828 esac
4829     DUMPBIN=$ac_ct_DUMPBIN
4830   fi
4831 fi
4832
4833     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4834     *COFF*)
4835       DUMPBIN="$DUMPBIN -symbols"
4836       ;;
4837     *)
4838       DUMPBIN=:
4839       ;;
4840     esac
4841   fi
4842
4843   if test "$DUMPBIN" != ":"; then
4844     NM="$DUMPBIN"
4845   fi
4846 fi
4847 test -z "$NM" && NM=nm
4848
4849
4850
4851
4852
4853
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4855 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4856 if ${lt_cv_nm_interface+:} false; then :
4857   $as_echo_n "(cached) " >&6
4858 else
4859   lt_cv_nm_interface="BSD nm"
4860   echo "int some_variable = 0;" > conftest.$ac_ext
4861   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4862   (eval "$ac_compile" 2>conftest.err)
4863   cat conftest.err >&5
4864   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4865   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4866   cat conftest.err >&5
4867   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4868   cat conftest.out >&5
4869   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4870     lt_cv_nm_interface="MS dumpbin"
4871   fi
4872   rm -f conftest*
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4875 $as_echo "$lt_cv_nm_interface" >&6; }
4876
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4878 $as_echo_n "checking whether ln -s works... " >&6; }
4879 LN_S=$as_ln_s
4880 if test "$LN_S" = "ln -s"; then
4881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4882 $as_echo "yes" >&6; }
4883 else
4884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4885 $as_echo "no, using $LN_S" >&6; }
4886 fi
4887
4888 # find the maximum length of command line arguments
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4890 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4891 if ${lt_cv_sys_max_cmd_len+:} false; then :
4892   $as_echo_n "(cached) " >&6
4893 else
4894     i=0
4895   teststring="ABCD"
4896
4897   case $build_os in
4898   msdosdjgpp*)
4899     # On DJGPP, this test can blow up pretty badly due to problems in libc
4900     # (any single argument exceeding 2000 bytes causes a buffer overrun
4901     # during glob expansion).  Even if it were fixed, the result of this
4902     # check would be larger than it should be.
4903     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4904     ;;
4905
4906   gnu*)
4907     # Under GNU Hurd, this test is not required because there is
4908     # no limit to the length of command line arguments.
4909     # Libtool will interpret -1 as no limit whatsoever
4910     lt_cv_sys_max_cmd_len=-1;
4911     ;;
4912
4913   cygwin* | mingw* | cegcc*)
4914     # On Win9x/ME, this test blows up -- it succeeds, but takes
4915     # about 5 minutes as the teststring grows exponentially.
4916     # Worse, since 9x/ME are not pre-emptively multitasking,
4917     # you end up with a "frozen" computer, even though with patience
4918     # the test eventually succeeds (with a max line length of 256k).
4919     # Instead, let's just punt: use the minimum linelength reported by
4920     # all of the supported platforms: 8192 (on NT/2K/XP).
4921     lt_cv_sys_max_cmd_len=8192;
4922     ;;
4923
4924   mint*)
4925     # On MiNT this can take a long time and run out of memory.
4926     lt_cv_sys_max_cmd_len=8192;
4927     ;;
4928
4929   amigaos*)
4930     # On AmigaOS with pdksh, this test takes hours, literally.
4931     # So we just punt and use a minimum line length of 8192.
4932     lt_cv_sys_max_cmd_len=8192;
4933     ;;
4934
4935   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4936     # This has been around since 386BSD, at least.  Likely further.
4937     if test -x /sbin/sysctl; then
4938       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4939     elif test -x /usr/sbin/sysctl; then
4940       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4941     else
4942       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4943     fi
4944     # And add a safety zone
4945     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4946     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4947     ;;
4948
4949   interix*)
4950     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4951     lt_cv_sys_max_cmd_len=196608
4952     ;;
4953
4954   os2*)
4955     # The test takes a long time on OS/2.
4956     lt_cv_sys_max_cmd_len=8192
4957     ;;
4958
4959   osf*)
4960     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4961     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4962     # nice to cause kernel panics so lets avoid the loop below.
4963     # First set a reasonable default.
4964     lt_cv_sys_max_cmd_len=16384
4965     #
4966     if test -x /sbin/sysconfig; then
4967       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4968         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4969       esac
4970     fi
4971     ;;
4972   sco3.2v5*)
4973     lt_cv_sys_max_cmd_len=102400
4974     ;;
4975   sysv5* | sco5v6* | sysv4.2uw2*)
4976     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4977     if test -n "$kargmax"; then
4978       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4979     else
4980       lt_cv_sys_max_cmd_len=32768
4981     fi
4982     ;;
4983   *)
4984     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4985     if test -n "$lt_cv_sys_max_cmd_len" && \
4986         test undefined != "$lt_cv_sys_max_cmd_len"; then
4987       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4988       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4989     else
4990       # Make teststring a little bigger before we do anything with it.
4991       # a 1K string should be a reasonable start.
4992       for i in 1 2 3 4 5 6 7 8 ; do
4993         teststring=$teststring$teststring
4994       done
4995       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4996       # If test is not a shell built-in, we'll probably end up computing a
4997       # maximum length that is only half of the actual maximum length, but
4998       # we can't tell.
4999       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5000                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5001               test $i != 17 # 1/2 MB should be enough
5002       do
5003         i=`expr $i + 1`
5004         teststring=$teststring$teststring
5005       done
5006       # Only check the string length outside the loop.
5007       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5008       teststring=
5009       # Add a significant safety factor because C++ compilers can tack on
5010       # massive amounts of additional arguments before passing them to the
5011       # linker.  It appears as though 1/2 is a usable value.
5012       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5013     fi
5014     ;;
5015   esac
5016
5017 fi
5018
5019 if test -n $lt_cv_sys_max_cmd_len ; then
5020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5021 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5022 else
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5024 $as_echo "none" >&6; }
5025 fi
5026 max_cmd_len=$lt_cv_sys_max_cmd_len
5027
5028
5029
5030
5031
5032
5033 : ${CP="cp -f"}
5034 : ${MV="mv -f"}
5035 : ${RM="rm -f"}
5036
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5038 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5039 # Try some XSI features
5040 xsi_shell=no
5041 ( _lt_dummy="a/b/c"
5042   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5043       = c,a/b,b/c, \
5044     && eval 'test $(( 1 + 1 )) -eq 2 \
5045     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5046   && xsi_shell=yes
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5048 $as_echo "$xsi_shell" >&6; }
5049
5050
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5052 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5053 lt_shell_append=no
5054 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5055     >/dev/null 2>&1 \
5056   && lt_shell_append=yes
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5058 $as_echo "$lt_shell_append" >&6; }
5059
5060
5061 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5062   lt_unset=unset
5063 else
5064   lt_unset=false
5065 fi
5066
5067
5068
5069
5070
5071 # test EBCDIC or ASCII
5072 case `echo X|tr X '\101'` in
5073  A) # ASCII based system
5074     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5075   lt_SP2NL='tr \040 \012'
5076   lt_NL2SP='tr \015\012 \040\040'
5077   ;;
5078  *) # EBCDIC based system
5079   lt_SP2NL='tr \100 \n'
5080   lt_NL2SP='tr \r\n \100\100'
5081   ;;
5082 esac
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5093 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5094 if ${lt_cv_to_host_file_cmd+:} false; then :
5095   $as_echo_n "(cached) " >&6
5096 else
5097   case $host in
5098   *-*-mingw* )
5099     case $build in
5100       *-*-mingw* ) # actually msys
5101         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5102         ;;
5103       *-*-cygwin* )
5104         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5105         ;;
5106       * ) # otherwise, assume *nix
5107         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5108         ;;
5109     esac
5110     ;;
5111   *-*-cygwin* )
5112     case $build in
5113       *-*-mingw* ) # actually msys
5114         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5115         ;;
5116       *-*-cygwin* )
5117         lt_cv_to_host_file_cmd=func_convert_file_noop
5118         ;;
5119       * ) # otherwise, assume *nix
5120         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5121         ;;
5122     esac
5123     ;;
5124   * ) # unhandled hosts (and "normal" native builds)
5125     lt_cv_to_host_file_cmd=func_convert_file_noop
5126     ;;
5127 esac
5128
5129 fi
5130
5131 to_host_file_cmd=$lt_cv_to_host_file_cmd
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5133 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5134
5135
5136
5137
5138
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5140 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5141 if ${lt_cv_to_tool_file_cmd+:} false; then :
5142   $as_echo_n "(cached) " >&6
5143 else
5144   #assume ordinary cross tools, or native build.
5145 lt_cv_to_tool_file_cmd=func_convert_file_noop
5146 case $host in
5147   *-*-mingw* )
5148     case $build in
5149       *-*-mingw* ) # actually msys
5150         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5151         ;;
5152     esac
5153     ;;
5154 esac
5155
5156 fi
5157
5158 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5160 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5161
5162
5163
5164
5165
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5167 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5168 if ${lt_cv_ld_reload_flag+:} false; then :
5169   $as_echo_n "(cached) " >&6
5170 else
5171   lt_cv_ld_reload_flag='-r'
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5174 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5175 reload_flag=$lt_cv_ld_reload_flag
5176 case $reload_flag in
5177 "" | " "*) ;;
5178 *) reload_flag=" $reload_flag" ;;
5179 esac
5180 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5181 case $host_os in
5182   cygwin* | mingw* | pw32* | cegcc*)
5183     if test "$GCC" != yes; then
5184       reload_cmds=false
5185     fi
5186     ;;
5187   darwin*)
5188     if test "$GCC" = yes; then
5189       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5190     else
5191       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5192     fi
5193     ;;
5194 esac
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204 if test -n "$ac_tool_prefix"; then
5205   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5206 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_OBJDUMP+:} false; then :
5210   $as_echo_n "(cached) " >&6
5211 else
5212   if test -n "$OBJDUMP"; then
5213   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218   IFS=$as_save_IFS
5219   test -z "$as_dir" && as_dir=.
5220     for ac_exec_ext in '' $ac_executable_extensions; do
5221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224     break 2
5225   fi
5226 done
5227   done
5228 IFS=$as_save_IFS
5229
5230 fi
5231 fi
5232 OBJDUMP=$ac_cv_prog_OBJDUMP
5233 if test -n "$OBJDUMP"; then
5234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5235 $as_echo "$OBJDUMP" >&6; }
5236 else
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5239 fi
5240
5241
5242 fi
5243 if test -z "$ac_cv_prog_OBJDUMP"; then
5244   ac_ct_OBJDUMP=$OBJDUMP
5245   # Extract the first word of "objdump", so it can be a program name with args.
5246 set dummy objdump; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   if test -n "$ac_ct_OBJDUMP"; then
5253   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5257 do
5258   IFS=$as_save_IFS
5259   test -z "$as_dir" && as_dir=.
5260     for ac_exec_ext in '' $ac_executable_extensions; do
5261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264     break 2
5265   fi
5266 done
5267   done
5268 IFS=$as_save_IFS
5269
5270 fi
5271 fi
5272 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5273 if test -n "$ac_ct_OBJDUMP"; then
5274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5275 $as_echo "$ac_ct_OBJDUMP" >&6; }
5276 else
5277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5279 fi
5280
5281   if test "x$ac_ct_OBJDUMP" = x; then
5282     OBJDUMP="false"
5283   else
5284     case $cross_compiling:$ac_tool_warned in
5285 yes:)
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5288 ac_tool_warned=yes ;;
5289 esac
5290     OBJDUMP=$ac_ct_OBJDUMP
5291   fi
5292 else
5293   OBJDUMP="$ac_cv_prog_OBJDUMP"
5294 fi
5295
5296 test -z "$OBJDUMP" && OBJDUMP=objdump
5297
5298
5299
5300
5301
5302
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5304 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5305 if ${lt_cv_deplibs_check_method+:} false; then :
5306   $as_echo_n "(cached) " >&6
5307 else
5308   lt_cv_file_magic_cmd='$MAGIC_CMD'
5309 lt_cv_file_magic_test_file=
5310 lt_cv_deplibs_check_method='unknown'
5311 # Need to set the preceding variable on all platforms that support
5312 # interlibrary dependencies.
5313 # 'none' -- dependencies not supported.
5314 # `unknown' -- same as none, but documents that we really don't know.
5315 # 'pass_all' -- all dependencies passed with no checks.
5316 # 'test_compile' -- check by making test program.
5317 # 'file_magic [[regex]]' -- check by looking for files in library path
5318 # which responds to the $file_magic_cmd with a given extended regex.
5319 # If you have `file' or equivalent on your system and you're not sure
5320 # whether `pass_all' will *always* work, you probably want this one.
5321
5322 case $host_os in
5323 aix[4-9]*)
5324   lt_cv_deplibs_check_method=pass_all
5325   ;;
5326
5327 beos*)
5328   lt_cv_deplibs_check_method=pass_all
5329   ;;
5330
5331 bsdi[45]*)
5332   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5333   lt_cv_file_magic_cmd='/usr/bin/file -L'
5334   lt_cv_file_magic_test_file=/shlib/libc.so
5335   ;;
5336
5337 cygwin*)
5338   # func_win32_libid is a shell function defined in ltmain.sh
5339   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5340   lt_cv_file_magic_cmd='func_win32_libid'
5341   ;;
5342
5343 mingw* | pw32*)
5344   # Base MSYS/MinGW do not provide the 'file' command needed by
5345   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5346   # unless we find 'file', for example because we are cross-compiling.
5347   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5348   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5349     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5350     lt_cv_file_magic_cmd='func_win32_libid'
5351   else
5352     # Keep this pattern in sync with the one in func_win32_libid.
5353     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5354     lt_cv_file_magic_cmd='$OBJDUMP -f'
5355   fi
5356   ;;
5357
5358 cegcc*)
5359   # use the weaker test based on 'objdump'. See mingw*.
5360   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5361   lt_cv_file_magic_cmd='$OBJDUMP -f'
5362   ;;
5363
5364 darwin* | rhapsody*)
5365   lt_cv_deplibs_check_method=pass_all
5366   ;;
5367
5368 freebsd* | dragonfly*)
5369   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5370     case $host_cpu in
5371     i*86 )
5372       # Not sure whether the presence of OpenBSD here was a mistake.
5373       # Let's accept both of them until this is cleared up.
5374       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5375       lt_cv_file_magic_cmd=/usr/bin/file
5376       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5377       ;;
5378     esac
5379   else
5380     lt_cv_deplibs_check_method=pass_all
5381   fi
5382   ;;
5383
5384 haiku*)
5385   lt_cv_deplibs_check_method=pass_all
5386   ;;
5387
5388 hpux10.20* | hpux11*)
5389   lt_cv_file_magic_cmd=/usr/bin/file
5390   case $host_cpu in
5391   ia64*)
5392     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5393     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5394     ;;
5395   hppa*64*)
5396     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5397     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5398     ;;
5399   *)
5400     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5401     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5402     ;;
5403   esac
5404   ;;
5405
5406 interix[3-9]*)
5407   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5408   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5409   ;;
5410
5411 irix5* | irix6* | nonstopux*)
5412   case $LD in
5413   *-32|*"-32 ") libmagic=32-bit;;
5414   *-n32|*"-n32 ") libmagic=N32;;
5415   *-64|*"-64 ") libmagic=64-bit;;
5416   *) libmagic=never-match;;
5417   esac
5418   lt_cv_deplibs_check_method=pass_all
5419   ;;
5420
5421 # This must be glibc/ELF.
5422 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5423   lt_cv_deplibs_check_method=pass_all
5424   ;;
5425
5426 netbsd* | netbsdelf*-gnu)
5427   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5428     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5429   else
5430     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5431   fi
5432   ;;
5433
5434 newos6*)
5435   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5436   lt_cv_file_magic_cmd=/usr/bin/file
5437   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5438   ;;
5439
5440 *nto* | *qnx*)
5441   lt_cv_deplibs_check_method=pass_all
5442   ;;
5443
5444 openbsd*)
5445   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5446     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5447   else
5448     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5449   fi
5450   ;;
5451
5452 osf3* | osf4* | osf5*)
5453   lt_cv_deplibs_check_method=pass_all
5454   ;;
5455
5456 rdos*)
5457   lt_cv_deplibs_check_method=pass_all
5458   ;;
5459
5460 solaris*)
5461   lt_cv_deplibs_check_method=pass_all
5462   ;;
5463
5464 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5465   lt_cv_deplibs_check_method=pass_all
5466   ;;
5467
5468 sysv4 | sysv4.3*)
5469   case $host_vendor in
5470   motorola)
5471     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5472     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5473     ;;
5474   ncr)
5475     lt_cv_deplibs_check_method=pass_all
5476     ;;
5477   sequent)
5478     lt_cv_file_magic_cmd='/bin/file'
5479     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5480     ;;
5481   sni)
5482     lt_cv_file_magic_cmd='/bin/file'
5483     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5484     lt_cv_file_magic_test_file=/lib/libc.so
5485     ;;
5486   siemens)
5487     lt_cv_deplibs_check_method=pass_all
5488     ;;
5489   pc)
5490     lt_cv_deplibs_check_method=pass_all
5491     ;;
5492   esac
5493   ;;
5494
5495 tpf*)
5496   lt_cv_deplibs_check_method=pass_all
5497   ;;
5498 esac
5499
5500 fi
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5502 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5503
5504 file_magic_glob=
5505 want_nocaseglob=no
5506 if test "$build" = "$host"; then
5507   case $host_os in
5508   mingw* | pw32*)
5509     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5510       want_nocaseglob=yes
5511     else
5512       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5513     fi
5514     ;;
5515   esac
5516 fi
5517
5518 file_magic_cmd=$lt_cv_file_magic_cmd
5519 deplibs_check_method=$lt_cv_deplibs_check_method
5520 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543 if test -n "$ac_tool_prefix"; then
5544   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5545 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_DLLTOOL+:} false; then :
5549   $as_echo_n "(cached) " >&6
5550 else
5551   if test -n "$DLLTOOL"; then
5552   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5556 do
5557   IFS=$as_save_IFS
5558   test -z "$as_dir" && as_dir=.
5559     for ac_exec_ext in '' $ac_executable_extensions; do
5560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563     break 2
5564   fi
5565 done
5566   done
5567 IFS=$as_save_IFS
5568
5569 fi
5570 fi
5571 DLLTOOL=$ac_cv_prog_DLLTOOL
5572 if test -n "$DLLTOOL"; then
5573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5574 $as_echo "$DLLTOOL" >&6; }
5575 else
5576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5578 fi
5579
5580
5581 fi
5582 if test -z "$ac_cv_prog_DLLTOOL"; then
5583   ac_ct_DLLTOOL=$DLLTOOL
5584   # Extract the first word of "dlltool", so it can be a program name with args.
5585 set dummy dlltool; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5589   $as_echo_n "(cached) " >&6
5590 else
5591   if test -n "$ac_ct_DLLTOOL"; then
5592   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5593 else
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5596 do
5597   IFS=$as_save_IFS
5598   test -z "$as_dir" && as_dir=.
5599     for ac_exec_ext in '' $ac_executable_extensions; do
5600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603     break 2
5604   fi
5605 done
5606   done
5607 IFS=$as_save_IFS
5608
5609 fi
5610 fi
5611 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5612 if test -n "$ac_ct_DLLTOOL"; then
5613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5614 $as_echo "$ac_ct_DLLTOOL" >&6; }
5615 else
5616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5618 fi
5619
5620   if test "x$ac_ct_DLLTOOL" = x; then
5621     DLLTOOL="false"
5622   else
5623     case $cross_compiling:$ac_tool_warned in
5624 yes:)
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5627 ac_tool_warned=yes ;;
5628 esac
5629     DLLTOOL=$ac_ct_DLLTOOL
5630   fi
5631 else
5632   DLLTOOL="$ac_cv_prog_DLLTOOL"
5633 fi
5634
5635 test -z "$DLLTOOL" && DLLTOOL=dlltool
5636
5637
5638
5639
5640
5641
5642
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5644 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5645 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5646   $as_echo_n "(cached) " >&6
5647 else
5648   lt_cv_sharedlib_from_linklib_cmd='unknown'
5649
5650 case $host_os in
5651 cygwin* | mingw* | pw32* | cegcc*)
5652   # two different shell functions defined in ltmain.sh
5653   # decide which to use based on capabilities of $DLLTOOL
5654   case `$DLLTOOL --help 2>&1` in
5655   *--identify-strict*)
5656     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5657     ;;
5658   *)
5659     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5660     ;;
5661   esac
5662   ;;
5663 *)
5664   # fallback: assume linklib IS sharedlib
5665   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5666   ;;
5667 esac
5668
5669 fi
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5671 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5672 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5673 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5674
5675
5676
5677
5678
5679
5680
5681
5682 if test -n "$ac_tool_prefix"; then
5683   for ac_prog in ar
5684   do
5685     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if ${ac_cv_prog_AR+:} false; then :
5690   $as_echo_n "(cached) " >&6
5691 else
5692   if test -n "$AR"; then
5693   ac_cv_prog_AR="$AR" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698   IFS=$as_save_IFS
5699   test -z "$as_dir" && as_dir=.
5700     for ac_exec_ext in '' $ac_executable_extensions; do
5701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704     break 2
5705   fi
5706 done
5707   done
5708 IFS=$as_save_IFS
5709
5710 fi
5711 fi
5712 AR=$ac_cv_prog_AR
5713 if test -n "$AR"; then
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5715 $as_echo "$AR" >&6; }
5716 else
5717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5719 fi
5720
5721
5722     test -n "$AR" && break
5723   done
5724 fi
5725 if test -z "$AR"; then
5726   ac_ct_AR=$AR
5727   for ac_prog in ar
5728 do
5729   # Extract the first word of "$ac_prog", so it can be a program name with args.
5730 set dummy $ac_prog; ac_word=$2
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732 $as_echo_n "checking for $ac_word... " >&6; }
5733 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5734   $as_echo_n "(cached) " >&6
5735 else
5736   if test -n "$ac_ct_AR"; then
5737   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5738 else
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH
5741 do
5742   IFS=$as_save_IFS
5743   test -z "$as_dir" && as_dir=.
5744     for ac_exec_ext in '' $ac_executable_extensions; do
5745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746     ac_cv_prog_ac_ct_AR="$ac_prog"
5747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5748     break 2
5749   fi
5750 done
5751   done
5752 IFS=$as_save_IFS
5753
5754 fi
5755 fi
5756 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5757 if test -n "$ac_ct_AR"; then
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5759 $as_echo "$ac_ct_AR" >&6; }
5760 else
5761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }
5763 fi
5764
5765
5766   test -n "$ac_ct_AR" && break
5767 done
5768
5769   if test "x$ac_ct_AR" = x; then
5770     AR="false"
5771   else
5772     case $cross_compiling:$ac_tool_warned in
5773 yes:)
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5776 ac_tool_warned=yes ;;
5777 esac
5778     AR=$ac_ct_AR
5779   fi
5780 fi
5781
5782 : ${AR=ar}
5783 : ${AR_FLAGS=cru}
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5796 $as_echo_n "checking for archiver @FILE support... " >&6; }
5797 if ${lt_cv_ar_at_file+:} false; then :
5798   $as_echo_n "(cached) " >&6
5799 else
5800   lt_cv_ar_at_file=no
5801    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h.  */
5803
5804 int
5805 main ()
5806 {
5807
5808   ;
5809   return 0;
5810 }
5811 _ACEOF
5812 if ac_fn_c_try_compile "$LINENO"; then :
5813   echo conftest.$ac_objext > conftest.lst
5814       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5815       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5816   (eval $lt_ar_try) 2>&5
5817   ac_status=$?
5818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5819   test $ac_status = 0; }
5820       if test "$ac_status" -eq 0; then
5821         # Ensure the archiver fails upon bogus file names.
5822         rm -f conftest.$ac_objext libconftest.a
5823         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5824   (eval $lt_ar_try) 2>&5
5825   ac_status=$?
5826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5827   test $ac_status = 0; }
5828         if test "$ac_status" -ne 0; then
5829           lt_cv_ar_at_file=@
5830         fi
5831       fi
5832       rm -f conftest.* libconftest.a
5833
5834 fi
5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836
5837 fi
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5839 $as_echo "$lt_cv_ar_at_file" >&6; }
5840
5841 if test "x$lt_cv_ar_at_file" = xno; then
5842   archiver_list_spec=
5843 else
5844   archiver_list_spec=$lt_cv_ar_at_file
5845 fi
5846
5847
5848
5849
5850
5851
5852
5853 if test -n "$ac_tool_prefix"; then
5854   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5855 set dummy ${ac_tool_prefix}strip; ac_word=$2
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857 $as_echo_n "checking for $ac_word... " >&6; }
5858 if ${ac_cv_prog_STRIP+:} false; then :
5859   $as_echo_n "(cached) " >&6
5860 else
5861   if test -n "$STRIP"; then
5862   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867   IFS=$as_save_IFS
5868   test -z "$as_dir" && as_dir=.
5869     for ac_exec_ext in '' $ac_executable_extensions; do
5870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873     break 2
5874   fi
5875 done
5876   done
5877 IFS=$as_save_IFS
5878
5879 fi
5880 fi
5881 STRIP=$ac_cv_prog_STRIP
5882 if test -n "$STRIP"; then
5883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5884 $as_echo "$STRIP" >&6; }
5885 else
5886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 $as_echo "no" >&6; }
5888 fi
5889
5890
5891 fi
5892 if test -z "$ac_cv_prog_STRIP"; then
5893   ac_ct_STRIP=$STRIP
5894   # Extract the first word of "strip", so it can be a program name with args.
5895 set dummy strip; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5899   $as_echo_n "(cached) " >&6
5900 else
5901   if test -n "$ac_ct_STRIP"; then
5902   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5906 do
5907   IFS=$as_save_IFS
5908   test -z "$as_dir" && as_dir=.
5909     for ac_exec_ext in '' $ac_executable_extensions; do
5910   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911     ac_cv_prog_ac_ct_STRIP="strip"
5912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913     break 2
5914   fi
5915 done
5916   done
5917 IFS=$as_save_IFS
5918
5919 fi
5920 fi
5921 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5922 if test -n "$ac_ct_STRIP"; then
5923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5924 $as_echo "$ac_ct_STRIP" >&6; }
5925 else
5926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5928 fi
5929
5930   if test "x$ac_ct_STRIP" = x; then
5931     STRIP=":"
5932   else
5933     case $cross_compiling:$ac_tool_warned in
5934 yes:)
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5937 ac_tool_warned=yes ;;
5938 esac
5939     STRIP=$ac_ct_STRIP
5940   fi
5941 else
5942   STRIP="$ac_cv_prog_STRIP"
5943 fi
5944
5945 test -z "$STRIP" && STRIP=:
5946
5947
5948
5949
5950
5951
5952 if test -n "$ac_tool_prefix"; then
5953   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5954 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 $as_echo_n "checking for $ac_word... " >&6; }
5957 if ${ac_cv_prog_RANLIB+:} false; then :
5958   $as_echo_n "(cached) " >&6
5959 else
5960   if test -n "$RANLIB"; then
5961   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5962 else
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH
5965 do
5966   IFS=$as_save_IFS
5967   test -z "$as_dir" && as_dir=.
5968     for ac_exec_ext in '' $ac_executable_extensions; do
5969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5970     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972     break 2
5973   fi
5974 done
5975   done
5976 IFS=$as_save_IFS
5977
5978 fi
5979 fi
5980 RANLIB=$ac_cv_prog_RANLIB
5981 if test -n "$RANLIB"; then
5982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5983 $as_echo "$RANLIB" >&6; }
5984 else
5985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5987 fi
5988
5989
5990 fi
5991 if test -z "$ac_cv_prog_RANLIB"; then
5992   ac_ct_RANLIB=$RANLIB
5993   # Extract the first word of "ranlib", so it can be a program name with args.
5994 set dummy ranlib; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5998   $as_echo_n "(cached) " >&6
5999 else
6000   if test -n "$ac_ct_RANLIB"; then
6001   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6002 else
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH
6005 do
6006   IFS=$as_save_IFS
6007   test -z "$as_dir" && as_dir=.
6008     for ac_exec_ext in '' $ac_executable_extensions; do
6009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6010     ac_cv_prog_ac_ct_RANLIB="ranlib"
6011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6012     break 2
6013   fi
6014 done
6015   done
6016 IFS=$as_save_IFS
6017
6018 fi
6019 fi
6020 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6021 if test -n "$ac_ct_RANLIB"; then
6022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6023 $as_echo "$ac_ct_RANLIB" >&6; }
6024 else
6025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026 $as_echo "no" >&6; }
6027 fi
6028
6029   if test "x$ac_ct_RANLIB" = x; then
6030     RANLIB=":"
6031   else
6032     case $cross_compiling:$ac_tool_warned in
6033 yes:)
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6036 ac_tool_warned=yes ;;
6037 esac
6038     RANLIB=$ac_ct_RANLIB
6039   fi
6040 else
6041   RANLIB="$ac_cv_prog_RANLIB"
6042 fi
6043
6044 test -z "$RANLIB" && RANLIB=:
6045
6046
6047
6048
6049
6050
6051 # Determine commands to create old-style static archives.
6052 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6053 old_postinstall_cmds='chmod 644 $oldlib'
6054 old_postuninstall_cmds=
6055
6056 if test -n "$RANLIB"; then
6057   case $host_os in
6058   openbsd*)
6059     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6060     ;;
6061   *)
6062     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6063     ;;
6064   esac
6065   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6066 fi
6067
6068 case $host_os in
6069   darwin*)
6070     lock_old_archive_extraction=yes ;;
6071   *)
6072     lock_old_archive_extraction=no ;;
6073 esac
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113 # If no C compiler was specified, use CC.
6114 LTCC=${LTCC-"$CC"}
6115
6116 # If no C compiler flags were specified, use CFLAGS.
6117 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6118
6119 # Allow CC to be a program name with arguments.
6120 compiler=$CC
6121
6122
6123 # Check for command to grab the raw symbol name followed by C symbol from nm.
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6125 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6126 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129
6130 # These are sane defaults that work on at least a few old systems.
6131 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6132
6133 # Character class describing NM global symbol codes.
6134 symcode='[BCDEGRST]'
6135
6136 # Regexp to match symbols that can be accessed directly from C.
6137 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6138
6139 # Define system-specific variables.
6140 case $host_os in
6141 aix*)
6142   symcode='[BCDT]'
6143   ;;
6144 cygwin* | mingw* | pw32* | cegcc*)
6145   symcode='[ABCDGISTW]'
6146   ;;
6147 hpux*)
6148   if test "$host_cpu" = ia64; then
6149     symcode='[ABCDEGRST]'
6150   fi
6151   ;;
6152 irix* | nonstopux*)
6153   symcode='[BCDEGRST]'
6154   ;;
6155 osf*)
6156   symcode='[BCDEGQRST]'
6157   ;;
6158 solaris*)
6159   symcode='[BDRT]'
6160   ;;
6161 sco3.2v5*)
6162   symcode='[DT]'
6163   ;;
6164 sysv4.2uw2*)
6165   symcode='[DT]'
6166   ;;
6167 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6168   symcode='[ABDT]'
6169   ;;
6170 sysv4)
6171   symcode='[DFNSTU]'
6172   ;;
6173 esac
6174
6175 # If we're using GNU nm, then use its standard symbol codes.
6176 case `$NM -V 2>&1` in
6177 *GNU* | *'with BFD'*)
6178   symcode='[ABCDGIRSTW]' ;;
6179 esac
6180
6181 # Transform an extracted symbol line into a proper C declaration.
6182 # Some systems (esp. on ia64) link data and code symbols differently,
6183 # so use this general approach.
6184 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6185
6186 # Transform an extracted symbol line into symbol name and symbol address
6187 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6188 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6189
6190 # Handle CRLF in mingw tool chain
6191 opt_cr=
6192 case $build_os in
6193 mingw*)
6194   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6195   ;;
6196 esac
6197
6198 # Try without a prefix underscore, then with it.
6199 for ac_symprfx in "" "_"; do
6200
6201   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6202   symxfrm="\\1 $ac_symprfx\\2 \\2"
6203
6204   # Write the raw and C identifiers.
6205   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6206     # Fake it for dumpbin and say T for any non-static function
6207     # and D for any global variable.
6208     # Also find C++ and __fastcall symbols from MSVC++,
6209     # which start with @ or ?.
6210     lt_cv_sys_global_symbol_pipe="$AWK '"\
6211 "     {last_section=section; section=\$ 3};"\
6212 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6213 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6214 "     \$ 0!~/External *\|/{next};"\
6215 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6216 "     {if(hide[section]) next};"\
6217 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6218 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6219 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6220 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6221 "     ' prfx=^$ac_symprfx"
6222   else
6223     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6224   fi
6225   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6226
6227   # Check to see that the pipe works correctly.
6228   pipe_works=no
6229
6230   rm -f conftest*
6231   cat > conftest.$ac_ext <<_LT_EOF
6232 #ifdef __cplusplus
6233 extern "C" {
6234 #endif
6235 char nm_test_var;
6236 void nm_test_func(void);
6237 void nm_test_func(void){}
6238 #ifdef __cplusplus
6239 }
6240 #endif
6241 int main(){nm_test_var='a';nm_test_func();return(0);}
6242 _LT_EOF
6243
6244   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6245   (eval $ac_compile) 2>&5
6246   ac_status=$?
6247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248   test $ac_status = 0; }; then
6249     # Now try to grab the symbols.
6250     nlist=conftest.nm
6251     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6252   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6253   ac_status=$?
6254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6255   test $ac_status = 0; } && test -s "$nlist"; then
6256       # Try sorting and uniquifying the output.
6257       if sort "$nlist" | uniq > "$nlist"T; then
6258         mv -f "$nlist"T "$nlist"
6259       else
6260         rm -f "$nlist"T
6261       fi
6262
6263       # Make sure that we snagged all the symbols we need.
6264       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6265         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6266           cat <<_LT_EOF > conftest.$ac_ext
6267 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6268 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6269 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6270    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6271 # define LT_DLSYM_CONST
6272 #elif defined(__osf__)
6273 /* This system does not cope well with relocations in const data.  */
6274 # define LT_DLSYM_CONST
6275 #else
6276 # define LT_DLSYM_CONST const
6277 #endif
6278
6279 #ifdef __cplusplus
6280 extern "C" {
6281 #endif
6282
6283 _LT_EOF
6284           # Now generate the symbol file.
6285           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6286
6287           cat <<_LT_EOF >> conftest.$ac_ext
6288
6289 /* The mapping between symbol names and symbols.  */
6290 LT_DLSYM_CONST struct {
6291   const char *name;
6292   void       *address;
6293 }
6294 lt__PROGRAM__LTX_preloaded_symbols[] =
6295 {
6296   { "@PROGRAM@", (void *) 0 },
6297 _LT_EOF
6298           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6299           cat <<\_LT_EOF >> conftest.$ac_ext
6300   {0, (void *) 0}
6301 };
6302
6303 /* This works around a problem in FreeBSD linker */
6304 #ifdef FREEBSD_WORKAROUND
6305 static const void *lt_preloaded_setup() {
6306   return lt__PROGRAM__LTX_preloaded_symbols;
6307 }
6308 #endif
6309
6310 #ifdef __cplusplus
6311 }
6312 #endif
6313 _LT_EOF
6314           # Now try linking the two files.
6315           mv conftest.$ac_objext conftstm.$ac_objext
6316           lt_globsym_save_LIBS=$LIBS
6317           lt_globsym_save_CFLAGS=$CFLAGS
6318           LIBS="conftstm.$ac_objext"
6319           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6320           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6321   (eval $ac_link) 2>&5
6322   ac_status=$?
6323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6324   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6325             pipe_works=yes
6326           fi
6327           LIBS=$lt_globsym_save_LIBS
6328           CFLAGS=$lt_globsym_save_CFLAGS
6329         else
6330           echo "cannot find nm_test_func in $nlist" >&5
6331         fi
6332       else
6333         echo "cannot find nm_test_var in $nlist" >&5
6334       fi
6335     else
6336       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6337     fi
6338   else
6339     echo "$progname: failed program was:" >&5
6340     cat conftest.$ac_ext >&5
6341   fi
6342   rm -rf conftest* conftst*
6343
6344   # Do not use the global_symbol_pipe unless it works.
6345   if test "$pipe_works" = yes; then
6346     break
6347   else
6348     lt_cv_sys_global_symbol_pipe=
6349   fi
6350 done
6351
6352 fi
6353
6354 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6355   lt_cv_sys_global_symbol_to_cdecl=
6356 fi
6357 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6359 $as_echo "failed" >&6; }
6360 else
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6362 $as_echo "ok" >&6; }
6363 fi
6364
6365 # Response file support.
6366 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6367   nm_file_list_spec='@'
6368 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6369   nm_file_list_spec='@'
6370 fi
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6399 $as_echo_n "checking for sysroot... " >&6; }
6400
6401 # Check whether --with-sysroot was given.
6402 if test "${with_sysroot+set}" = set; then :
6403   withval=$with_sysroot;
6404 else
6405   with_sysroot=no
6406 fi
6407
6408
6409 lt_sysroot=
6410 case ${with_sysroot} in #(
6411  yes)
6412    if test "$GCC" = yes; then
6413      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6414    fi
6415    ;; #(
6416  /*)
6417    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6418    ;; #(
6419  no|'')
6420    ;; #(
6421  *)
6422    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6423 $as_echo "${with_sysroot}" >&6; }
6424    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6425    ;;
6426 esac
6427
6428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6429 $as_echo "${lt_sysroot:-no}" >&6; }
6430
6431
6432
6433
6434
6435 # Check whether --enable-libtool-lock was given.
6436 if test "${enable_libtool_lock+set}" = set; then :
6437   enableval=$enable_libtool_lock;
6438 fi
6439
6440 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6441
6442 # Some flags need to be propagated to the compiler or linker for good
6443 # libtool support.
6444 case $host in
6445 ia64-*-hpux*)
6446   # Find out which ABI we are using.
6447   echo 'int i;' > conftest.$ac_ext
6448   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6449   (eval $ac_compile) 2>&5
6450   ac_status=$?
6451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6452   test $ac_status = 0; }; then
6453     case `/usr/bin/file conftest.$ac_objext` in
6454       *ELF-32*)
6455         HPUX_IA64_MODE="32"
6456         ;;
6457       *ELF-64*)
6458         HPUX_IA64_MODE="64"
6459         ;;
6460     esac
6461   fi
6462   rm -rf conftest*
6463   ;;
6464 *-*-irix6*)
6465   # Find out which ABI we are using.
6466   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6467   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6468   (eval $ac_compile) 2>&5
6469   ac_status=$?
6470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6471   test $ac_status = 0; }; then
6472     if test "$lt_cv_prog_gnu_ld" = yes; then
6473       case `/usr/bin/file conftest.$ac_objext` in
6474         *32-bit*)
6475           LD="${LD-ld} -melf32bsmip"
6476           ;;
6477         *N32*)
6478           LD="${LD-ld} -melf32bmipn32"
6479           ;;
6480         *64-bit*)
6481           LD="${LD-ld} -melf64bmip"
6482         ;;
6483       esac
6484     else
6485       case `/usr/bin/file conftest.$ac_objext` in
6486         *32-bit*)
6487           LD="${LD-ld} -32"
6488           ;;
6489         *N32*)
6490           LD="${LD-ld} -n32"
6491           ;;
6492         *64-bit*)
6493           LD="${LD-ld} -64"
6494           ;;
6495       esac
6496     fi
6497   fi
6498   rm -rf conftest*
6499   ;;
6500
6501 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6502 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6503   # Find out which ABI we are using.
6504   echo 'int i;' > conftest.$ac_ext
6505   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6506   (eval $ac_compile) 2>&5
6507   ac_status=$?
6508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509   test $ac_status = 0; }; then
6510     case `/usr/bin/file conftest.o` in
6511       *32-bit*)
6512         case $host in
6513           x86_64-*kfreebsd*-gnu)
6514             LD="${LD-ld} -m elf_i386_fbsd"
6515             ;;
6516           x86_64-*linux*)
6517             case `/usr/bin/file conftest.o` in
6518               *x86-64*)
6519                 LD="${LD-ld} -m elf32_x86_64"
6520                 ;;
6521               *)
6522                 LD="${LD-ld} -m elf_i386"
6523                 ;;
6524             esac
6525             ;;
6526           powerpc64le-*)
6527             LD="${LD-ld} -m elf32lppclinux"
6528             ;;
6529           powerpc64-*)
6530             LD="${LD-ld} -m elf32ppclinux"
6531             ;;
6532           s390x-*linux*)
6533             LD="${LD-ld} -m elf_s390"
6534             ;;
6535           sparc64-*linux*)
6536             LD="${LD-ld} -m elf32_sparc"
6537             ;;
6538         esac
6539         ;;
6540       *64-bit*)
6541         case $host in
6542           x86_64-*kfreebsd*-gnu)
6543             LD="${LD-ld} -m elf_x86_64_fbsd"
6544             ;;
6545           x86_64-*linux*)
6546             LD="${LD-ld} -m elf_x86_64"
6547             ;;
6548           powerpcle-*)
6549             LD="${LD-ld} -m elf64lppc"
6550             ;;
6551           powerpc-*)
6552             LD="${LD-ld} -m elf64ppc"
6553             ;;
6554           s390*-*linux*|s390*-*tpf*)
6555             LD="${LD-ld} -m elf64_s390"
6556             ;;
6557           sparc*-*linux*)
6558             LD="${LD-ld} -m elf64_sparc"
6559             ;;
6560         esac
6561         ;;
6562     esac
6563   fi
6564   rm -rf conftest*
6565   ;;
6566
6567 *-*-sco3.2v5*)
6568   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6569   SAVE_CFLAGS="$CFLAGS"
6570   CFLAGS="$CFLAGS -belf"
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6572 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6573 if ${lt_cv_cc_needs_belf+:} false; then :
6574   $as_echo_n "(cached) " >&6
6575 else
6576   ac_ext=c
6577 ac_cpp='$CPP $CPPFLAGS'
6578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6581
6582      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h.  */
6584
6585 int
6586 main ()
6587 {
6588
6589   ;
6590   return 0;
6591 }
6592 _ACEOF
6593 if ac_fn_c_try_link "$LINENO"; then :
6594   lt_cv_cc_needs_belf=yes
6595 else
6596   lt_cv_cc_needs_belf=no
6597 fi
6598 rm -f core conftest.err conftest.$ac_objext \
6599     conftest$ac_exeext conftest.$ac_ext
6600      ac_ext=c
6601 ac_cpp='$CPP $CPPFLAGS'
6602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605
6606 fi
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6608 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6609   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6610     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6611     CFLAGS="$SAVE_CFLAGS"
6612   fi
6613   ;;
6614 *-*solaris*)
6615   # Find out which ABI we are using.
6616   echo 'int i;' > conftest.$ac_ext
6617   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6618   (eval $ac_compile) 2>&5
6619   ac_status=$?
6620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6621   test $ac_status = 0; }; then
6622     case `/usr/bin/file conftest.o` in
6623     *64-bit*)
6624       case $lt_cv_prog_gnu_ld in
6625       yes*)
6626         case $host in
6627         i?86-*-solaris*)
6628           LD="${LD-ld} -m elf_x86_64"
6629           ;;
6630         sparc*-*-solaris*)
6631           LD="${LD-ld} -m elf64_sparc"
6632           ;;
6633         esac
6634         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6635         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6636           LD="${LD-ld}_sol2"
6637         fi
6638         ;;
6639       *)
6640         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6641           LD="${LD-ld} -64"
6642         fi
6643         ;;
6644       esac
6645       ;;
6646     esac
6647   fi
6648   rm -rf conftest*
6649   ;;
6650 esac
6651
6652 need_locks="$enable_libtool_lock"
6653
6654 if test -n "$ac_tool_prefix"; then
6655   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6656 set dummy ${ac_tool_prefix}mt; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6660   $as_echo_n "(cached) " >&6
6661 else
6662   if test -n "$MANIFEST_TOOL"; then
6663   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668   IFS=$as_save_IFS
6669   test -z "$as_dir" && as_dir=.
6670     for ac_exec_ext in '' $ac_executable_extensions; do
6671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6672     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674     break 2
6675   fi
6676 done
6677   done
6678 IFS=$as_save_IFS
6679
6680 fi
6681 fi
6682 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6683 if test -n "$MANIFEST_TOOL"; then
6684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6685 $as_echo "$MANIFEST_TOOL" >&6; }
6686 else
6687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6689 fi
6690
6691
6692 fi
6693 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6694   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6695   # Extract the first word of "mt", so it can be a program name with args.
6696 set dummy mt; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6700   $as_echo_n "(cached) " >&6
6701 else
6702   if test -n "$ac_ct_MANIFEST_TOOL"; then
6703   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708   IFS=$as_save_IFS
6709   test -z "$as_dir" && as_dir=.
6710     for ac_exec_ext in '' $ac_executable_extensions; do
6711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714     break 2
6715   fi
6716 done
6717   done
6718 IFS=$as_save_IFS
6719
6720 fi
6721 fi
6722 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6723 if test -n "$ac_ct_MANIFEST_TOOL"; then
6724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6725 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6726 else
6727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6729 fi
6730
6731   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6732     MANIFEST_TOOL=":"
6733   else
6734     case $cross_compiling:$ac_tool_warned in
6735 yes:)
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6738 ac_tool_warned=yes ;;
6739 esac
6740     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6741   fi
6742 else
6743   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6744 fi
6745
6746 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6748 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6749 if ${lt_cv_path_mainfest_tool+:} false; then :
6750   $as_echo_n "(cached) " >&6
6751 else
6752   lt_cv_path_mainfest_tool=no
6753   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6754   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6755   cat conftest.err >&5
6756   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6757     lt_cv_path_mainfest_tool=yes
6758   fi
6759   rm -f conftest*
6760 fi
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6762 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6763 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6764   MANIFEST_TOOL=:
6765 fi
6766
6767
6768
6769
6770
6771
6772   case $host_os in
6773     rhapsody* | darwin*)
6774     if test -n "$ac_tool_prefix"; then
6775   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6776 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6780   $as_echo_n "(cached) " >&6
6781 else
6782   if test -n "$DSYMUTIL"; then
6783   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788   IFS=$as_save_IFS
6789   test -z "$as_dir" && as_dir=.
6790     for ac_exec_ext in '' $ac_executable_extensions; do
6791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6792     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794     break 2
6795   fi
6796 done
6797   done
6798 IFS=$as_save_IFS
6799
6800 fi
6801 fi
6802 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6803 if test -n "$DSYMUTIL"; then
6804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6805 $as_echo "$DSYMUTIL" >&6; }
6806 else
6807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808 $as_echo "no" >&6; }
6809 fi
6810
6811
6812 fi
6813 if test -z "$ac_cv_prog_DSYMUTIL"; then
6814   ac_ct_DSYMUTIL=$DSYMUTIL
6815   # Extract the first word of "dsymutil", so it can be a program name with args.
6816 set dummy dsymutil; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6820   $as_echo_n "(cached) " >&6
6821 else
6822   if test -n "$ac_ct_DSYMUTIL"; then
6823   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828   IFS=$as_save_IFS
6829   test -z "$as_dir" && as_dir=.
6830     for ac_exec_ext in '' $ac_executable_extensions; do
6831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6832     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834     break 2
6835   fi
6836 done
6837   done
6838 IFS=$as_save_IFS
6839
6840 fi
6841 fi
6842 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6843 if test -n "$ac_ct_DSYMUTIL"; then
6844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6845 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6846 else
6847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6849 fi
6850
6851   if test "x$ac_ct_DSYMUTIL" = x; then
6852     DSYMUTIL=":"
6853   else
6854     case $cross_compiling:$ac_tool_warned in
6855 yes:)
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6858 ac_tool_warned=yes ;;
6859 esac
6860     DSYMUTIL=$ac_ct_DSYMUTIL
6861   fi
6862 else
6863   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6864 fi
6865
6866     if test -n "$ac_tool_prefix"; then
6867   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6868 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if ${ac_cv_prog_NMEDIT+:} false; then :
6872   $as_echo_n "(cached) " >&6
6873 else
6874   if test -n "$NMEDIT"; then
6875   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880   IFS=$as_save_IFS
6881   test -z "$as_dir" && as_dir=.
6882     for ac_exec_ext in '' $ac_executable_extensions; do
6883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886     break 2
6887   fi
6888 done
6889   done
6890 IFS=$as_save_IFS
6891
6892 fi
6893 fi
6894 NMEDIT=$ac_cv_prog_NMEDIT
6895 if test -n "$NMEDIT"; then
6896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6897 $as_echo "$NMEDIT" >&6; }
6898 else
6899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6901 fi
6902
6903
6904 fi
6905 if test -z "$ac_cv_prog_NMEDIT"; then
6906   ac_ct_NMEDIT=$NMEDIT
6907   # Extract the first word of "nmedit", so it can be a program name with args.
6908 set dummy nmedit; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6912   $as_echo_n "(cached) " >&6
6913 else
6914   if test -n "$ac_ct_NMEDIT"; then
6915   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6916 else
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920   IFS=$as_save_IFS
6921   test -z "$as_dir" && as_dir=.
6922     for ac_exec_ext in '' $ac_executable_extensions; do
6923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6924     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926     break 2
6927   fi
6928 done
6929   done
6930 IFS=$as_save_IFS
6931
6932 fi
6933 fi
6934 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6935 if test -n "$ac_ct_NMEDIT"; then
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6937 $as_echo "$ac_ct_NMEDIT" >&6; }
6938 else
6939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6941 fi
6942
6943   if test "x$ac_ct_NMEDIT" = x; then
6944     NMEDIT=":"
6945   else
6946     case $cross_compiling:$ac_tool_warned in
6947 yes:)
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6950 ac_tool_warned=yes ;;
6951 esac
6952     NMEDIT=$ac_ct_NMEDIT
6953   fi
6954 else
6955   NMEDIT="$ac_cv_prog_NMEDIT"
6956 fi
6957
6958     if test -n "$ac_tool_prefix"; then
6959   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6960 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962 $as_echo_n "checking for $ac_word... " >&6; }
6963 if ${ac_cv_prog_LIPO+:} false; then :
6964   $as_echo_n "(cached) " >&6
6965 else
6966   if test -n "$LIPO"; then
6967   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6968 else
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 for as_dir in $PATH
6971 do
6972   IFS=$as_save_IFS
6973   test -z "$as_dir" && as_dir=.
6974     for ac_exec_ext in '' $ac_executable_extensions; do
6975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6976     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978     break 2
6979   fi
6980 done
6981   done
6982 IFS=$as_save_IFS
6983
6984 fi
6985 fi
6986 LIPO=$ac_cv_prog_LIPO
6987 if test -n "$LIPO"; then
6988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6989 $as_echo "$LIPO" >&6; }
6990 else
6991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992 $as_echo "no" >&6; }
6993 fi
6994
6995
6996 fi
6997 if test -z "$ac_cv_prog_LIPO"; then
6998   ac_ct_LIPO=$LIPO
6999   # Extract the first word of "lipo", so it can be a program name with args.
7000 set dummy lipo; ac_word=$2
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7002 $as_echo_n "checking for $ac_word... " >&6; }
7003 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7004   $as_echo_n "(cached) " >&6
7005 else
7006   if test -n "$ac_ct_LIPO"; then
7007   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7008 else
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH
7011 do
7012   IFS=$as_save_IFS
7013   test -z "$as_dir" && as_dir=.
7014     for ac_exec_ext in '' $ac_executable_extensions; do
7015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7016     ac_cv_prog_ac_ct_LIPO="lipo"
7017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018     break 2
7019   fi
7020 done
7021   done
7022 IFS=$as_save_IFS
7023
7024 fi
7025 fi
7026 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7027 if test -n "$ac_ct_LIPO"; then
7028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7029 $as_echo "$ac_ct_LIPO" >&6; }
7030 else
7031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032 $as_echo "no" >&6; }
7033 fi
7034
7035   if test "x$ac_ct_LIPO" = x; then
7036     LIPO=":"
7037   else
7038     case $cross_compiling:$ac_tool_warned in
7039 yes:)
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7042 ac_tool_warned=yes ;;
7043 esac
7044     LIPO=$ac_ct_LIPO
7045   fi
7046 else
7047   LIPO="$ac_cv_prog_LIPO"
7048 fi
7049
7050     if test -n "$ac_tool_prefix"; then
7051   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7052 set dummy ${ac_tool_prefix}otool; ac_word=$2
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054 $as_echo_n "checking for $ac_word... " >&6; }
7055 if ${ac_cv_prog_OTOOL+:} false; then :
7056   $as_echo_n "(cached) " >&6
7057 else
7058   if test -n "$OTOOL"; then
7059   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7060 else
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7063 do
7064   IFS=$as_save_IFS
7065   test -z "$as_dir" && as_dir=.
7066     for ac_exec_ext in '' $ac_executable_extensions; do
7067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7068     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070     break 2
7071   fi
7072 done
7073   done
7074 IFS=$as_save_IFS
7075
7076 fi
7077 fi
7078 OTOOL=$ac_cv_prog_OTOOL
7079 if test -n "$OTOOL"; then
7080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7081 $as_echo "$OTOOL" >&6; }
7082 else
7083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084 $as_echo "no" >&6; }
7085 fi
7086
7087
7088 fi
7089 if test -z "$ac_cv_prog_OTOOL"; then
7090   ac_ct_OTOOL=$OTOOL
7091   # Extract the first word of "otool", so it can be a program name with args.
7092 set dummy otool; ac_word=$2
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094 $as_echo_n "checking for $ac_word... " >&6; }
7095 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7096   $as_echo_n "(cached) " >&6
7097 else
7098   if test -n "$ac_ct_OTOOL"; then
7099   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7100 else
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7103 do
7104   IFS=$as_save_IFS
7105   test -z "$as_dir" && as_dir=.
7106     for ac_exec_ext in '' $ac_executable_extensions; do
7107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108     ac_cv_prog_ac_ct_OTOOL="otool"
7109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110     break 2
7111   fi
7112 done
7113   done
7114 IFS=$as_save_IFS
7115
7116 fi
7117 fi
7118 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7119 if test -n "$ac_ct_OTOOL"; then
7120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7121 $as_echo "$ac_ct_OTOOL" >&6; }
7122 else
7123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124 $as_echo "no" >&6; }
7125 fi
7126
7127   if test "x$ac_ct_OTOOL" = x; then
7128     OTOOL=":"
7129   else
7130     case $cross_compiling:$ac_tool_warned in
7131 yes:)
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7134 ac_tool_warned=yes ;;
7135 esac
7136     OTOOL=$ac_ct_OTOOL
7137   fi
7138 else
7139   OTOOL="$ac_cv_prog_OTOOL"
7140 fi
7141
7142     if test -n "$ac_tool_prefix"; then
7143   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7144 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146 $as_echo_n "checking for $ac_word... " >&6; }
7147 if ${ac_cv_prog_OTOOL64+:} false; then :
7148   $as_echo_n "(cached) " >&6
7149 else
7150   if test -n "$OTOOL64"; then
7151   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7152 else
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7155 do
7156   IFS=$as_save_IFS
7157   test -z "$as_dir" && as_dir=.
7158     for ac_exec_ext in '' $ac_executable_extensions; do
7159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7160     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162     break 2
7163   fi
7164 done
7165   done
7166 IFS=$as_save_IFS
7167
7168 fi
7169 fi
7170 OTOOL64=$ac_cv_prog_OTOOL64
7171 if test -n "$OTOOL64"; then
7172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7173 $as_echo "$OTOOL64" >&6; }
7174 else
7175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 $as_echo "no" >&6; }
7177 fi
7178
7179
7180 fi
7181 if test -z "$ac_cv_prog_OTOOL64"; then
7182   ac_ct_OTOOL64=$OTOOL64
7183   # Extract the first word of "otool64", so it can be a program name with args.
7184 set dummy otool64; ac_word=$2
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186 $as_echo_n "checking for $ac_word... " >&6; }
7187 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7188   $as_echo_n "(cached) " >&6
7189 else
7190   if test -n "$ac_ct_OTOOL64"; then
7191   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7192 else
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196   IFS=$as_save_IFS
7197   test -z "$as_dir" && as_dir=.
7198     for ac_exec_ext in '' $ac_executable_extensions; do
7199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200     ac_cv_prog_ac_ct_OTOOL64="otool64"
7201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202     break 2
7203   fi
7204 done
7205   done
7206 IFS=$as_save_IFS
7207
7208 fi
7209 fi
7210 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7211 if test -n "$ac_ct_OTOOL64"; then
7212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7213 $as_echo "$ac_ct_OTOOL64" >&6; }
7214 else
7215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216 $as_echo "no" >&6; }
7217 fi
7218
7219   if test "x$ac_ct_OTOOL64" = x; then
7220     OTOOL64=":"
7221   else
7222     case $cross_compiling:$ac_tool_warned in
7223 yes:)
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7226 ac_tool_warned=yes ;;
7227 esac
7228     OTOOL64=$ac_ct_OTOOL64
7229   fi
7230 else
7231   OTOOL64="$ac_cv_prog_OTOOL64"
7232 fi
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7261 $as_echo_n "checking for -single_module linker flag... " >&6; }
7262 if ${lt_cv_apple_cc_single_mod+:} false; then :
7263   $as_echo_n "(cached) " >&6
7264 else
7265   lt_cv_apple_cc_single_mod=no
7266       if test -z "${LT_MULTI_MODULE}"; then
7267         # By default we will add the -single_module flag. You can override
7268         # by either setting the environment variable LT_MULTI_MODULE
7269         # non-empty at configure time, or by adding -multi_module to the
7270         # link flags.
7271         rm -rf libconftest.dylib*
7272         echo "int foo(void){return 1;}" > conftest.c
7273         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7274 -dynamiclib -Wl,-single_module conftest.c" >&5
7275         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7276           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7277         _lt_result=$?
7278         # If there is a non-empty error log, and "single_module"
7279         # appears in it, assume the flag caused a linker warning
7280         if test -s conftest.err && $GREP single_module conftest.err; then
7281           cat conftest.err >&5
7282         # Otherwise, if the output was created with a 0 exit code from
7283         # the compiler, it worked.
7284         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7285           lt_cv_apple_cc_single_mod=yes
7286         else
7287           cat conftest.err >&5
7288         fi
7289         rm -rf libconftest.dylib*
7290         rm -f conftest.*
7291       fi
7292 fi
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7294 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7295
7296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7297 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7298 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7299   $as_echo_n "(cached) " >&6
7300 else
7301   lt_cv_ld_exported_symbols_list=no
7302       save_LDFLAGS=$LDFLAGS
7303       echo "_main" > conftest.sym
7304       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7305       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h.  */
7307
7308 int
7309 main ()
7310 {
7311
7312   ;
7313   return 0;
7314 }
7315 _ACEOF
7316 if ac_fn_c_try_link "$LINENO"; then :
7317   lt_cv_ld_exported_symbols_list=yes
7318 else
7319   lt_cv_ld_exported_symbols_list=no
7320 fi
7321 rm -f core conftest.err conftest.$ac_objext \
7322     conftest$ac_exeext conftest.$ac_ext
7323         LDFLAGS="$save_LDFLAGS"
7324
7325 fi
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7327 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7328
7329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7330 $as_echo_n "checking for -force_load linker flag... " >&6; }
7331 if ${lt_cv_ld_force_load+:} false; then :
7332   $as_echo_n "(cached) " >&6
7333 else
7334   lt_cv_ld_force_load=no
7335       cat > conftest.c << _LT_EOF
7336 int forced_loaded() { return 2;}
7337 _LT_EOF
7338       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7339       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7340       echo "$AR cru libconftest.a conftest.o" >&5
7341       $AR cru libconftest.a conftest.o 2>&5
7342       echo "$RANLIB libconftest.a" >&5
7343       $RANLIB libconftest.a 2>&5
7344       cat > conftest.c << _LT_EOF
7345 int main() { return 0;}
7346 _LT_EOF
7347       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7348       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7349       _lt_result=$?
7350       if test -s conftest.err && $GREP force_load conftest.err; then
7351         cat conftest.err >&5
7352       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7353         lt_cv_ld_force_load=yes
7354       else
7355         cat conftest.err >&5
7356       fi
7357         rm -f conftest.err libconftest.a conftest conftest.c
7358         rm -rf conftest.dSYM
7359
7360 fi
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7362 $as_echo "$lt_cv_ld_force_load" >&6; }
7363     case $host_os in
7364     rhapsody* | darwin1.[012])
7365       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7366     darwin1.*)
7367       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7368     darwin*) # darwin 5.x on
7369       # if running on 10.5 or later, the deployment target defaults
7370       # to the OS version, if on x86, and 10.4, the deployment
7371       # target defaults to 10.4. Don't you love it?
7372       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7373         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7374           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7375         10.[012]*)
7376           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7377         10.*)
7378           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7379       esac
7380     ;;
7381   esac
7382     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7383       _lt_dar_single_mod='$single_module'
7384     fi
7385     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7386       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7387     else
7388       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7389     fi
7390     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7391       _lt_dsymutil='~$DSYMUTIL $lib || :'
7392     else
7393       _lt_dsymutil=
7394     fi
7395     ;;
7396   esac
7397
7398 ac_ext=c
7399 ac_cpp='$CPP $CPPFLAGS'
7400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7404 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7405 # On Suns, sometimes $CPP names a directory.
7406 if test -n "$CPP" && test -d "$CPP"; then
7407   CPP=
7408 fi
7409 if test -z "$CPP"; then
7410   if ${ac_cv_prog_CPP+:} false; then :
7411   $as_echo_n "(cached) " >&6
7412 else
7413       # Double quotes because CPP needs to be expanded
7414     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7415     do
7416       ac_preproc_ok=false
7417 for ac_c_preproc_warn_flag in '' yes
7418 do
7419   # Use a header file that comes with gcc, so configuring glibc
7420   # with a fresh cross-compiler works.
7421   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7422   # <limits.h> exists even on freestanding compilers.
7423   # On the NeXT, cc -E runs the code through the compiler's parser,
7424   # not just through cpp. "Syntax error" is here to catch this case.
7425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h.  */
7427 #ifdef __STDC__
7428 # include <limits.h>
7429 #else
7430 # include <assert.h>
7431 #endif
7432                      Syntax error
7433 _ACEOF
7434 if ac_fn_c_try_cpp "$LINENO"; then :
7435
7436 else
7437   # Broken: fails on valid input.
7438 continue
7439 fi
7440 rm -f conftest.err conftest.i conftest.$ac_ext
7441
7442   # OK, works on sane cases.  Now check whether nonexistent headers
7443   # can be detected and how.
7444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h.  */
7446 #include <ac_nonexistent.h>
7447 _ACEOF
7448 if ac_fn_c_try_cpp "$LINENO"; then :
7449   # Broken: success on invalid input.
7450 continue
7451 else
7452   # Passes both tests.
7453 ac_preproc_ok=:
7454 break
7455 fi
7456 rm -f conftest.err conftest.i conftest.$ac_ext
7457
7458 done
7459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7460 rm -f conftest.i conftest.err conftest.$ac_ext
7461 if $ac_preproc_ok; then :
7462   break
7463 fi
7464
7465     done
7466     ac_cv_prog_CPP=$CPP
7467
7468 fi
7469   CPP=$ac_cv_prog_CPP
7470 else
7471   ac_cv_prog_CPP=$CPP
7472 fi
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7474 $as_echo "$CPP" >&6; }
7475 ac_preproc_ok=false
7476 for ac_c_preproc_warn_flag in '' yes
7477 do
7478   # Use a header file that comes with gcc, so configuring glibc
7479   # with a fresh cross-compiler works.
7480   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7481   # <limits.h> exists even on freestanding compilers.
7482   # On the NeXT, cc -E runs the code through the compiler's parser,
7483   # not just through cpp. "Syntax error" is here to catch this case.
7484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h.  */
7486 #ifdef __STDC__
7487 # include <limits.h>
7488 #else
7489 # include <assert.h>
7490 #endif
7491                      Syntax error
7492 _ACEOF
7493 if ac_fn_c_try_cpp "$LINENO"; then :
7494
7495 else
7496   # Broken: fails on valid input.
7497 continue
7498 fi
7499 rm -f conftest.err conftest.i conftest.$ac_ext
7500
7501   # OK, works on sane cases.  Now check whether nonexistent headers
7502   # can be detected and how.
7503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h.  */
7505 #include <ac_nonexistent.h>
7506 _ACEOF
7507 if ac_fn_c_try_cpp "$LINENO"; then :
7508   # Broken: success on invalid input.
7509 continue
7510 else
7511   # Passes both tests.
7512 ac_preproc_ok=:
7513 break
7514 fi
7515 rm -f conftest.err conftest.i conftest.$ac_ext
7516
7517 done
7518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7519 rm -f conftest.i conftest.err conftest.$ac_ext
7520 if $ac_preproc_ok; then :
7521
7522 else
7523   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7525 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7526 See \`config.log' for more details" "$LINENO" 5; }
7527 fi
7528
7529 ac_ext=c
7530 ac_cpp='$CPP $CPPFLAGS'
7531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7534
7535
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7537 $as_echo_n "checking for ANSI C header files... " >&6; }
7538 if ${ac_cv_header_stdc+:} false; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h.  */
7543 #include <stdlib.h>
7544 #include <stdarg.h>
7545 #include <string.h>
7546 #include <float.h>
7547
7548 int
7549 main ()
7550 {
7551
7552   ;
7553   return 0;
7554 }
7555 _ACEOF
7556 if ac_fn_c_try_compile "$LINENO"; then :
7557   ac_cv_header_stdc=yes
7558 else
7559   ac_cv_header_stdc=no
7560 fi
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562
7563 if test $ac_cv_header_stdc = yes; then
7564   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h.  */
7567 #include <string.h>
7568
7569 _ACEOF
7570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7571   $EGREP "memchr" >/dev/null 2>&1; then :
7572
7573 else
7574   ac_cv_header_stdc=no
7575 fi
7576 rm -f conftest*
7577
7578 fi
7579
7580 if test $ac_cv_header_stdc = yes; then
7581   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h.  */
7584 #include <stdlib.h>
7585
7586 _ACEOF
7587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7588   $EGREP "free" >/dev/null 2>&1; then :
7589
7590 else
7591   ac_cv_header_stdc=no
7592 fi
7593 rm -f conftest*
7594
7595 fi
7596
7597 if test $ac_cv_header_stdc = yes; then
7598   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7599   if test "$cross_compiling" = yes; then :
7600   :
7601 else
7602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h.  */
7604 #include <ctype.h>
7605 #include <stdlib.h>
7606 #if ((' ' & 0x0FF) == 0x020)
7607 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7608 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7609 #else
7610 # define ISLOWER(c) \
7611                    (('a' <= (c) && (c) <= 'i') \
7612                      || ('j' <= (c) && (c) <= 'r') \
7613                      || ('s' <= (c) && (c) <= 'z'))
7614 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7615 #endif
7616
7617 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7618 int
7619 main ()
7620 {
7621   int i;
7622   for (i = 0; i < 256; i++)
7623     if (XOR (islower (i), ISLOWER (i))
7624         || toupper (i) != TOUPPER (i))
7625       return 2;
7626   return 0;
7627 }
7628 _ACEOF
7629 if ac_fn_c_try_run "$LINENO"; then :
7630
7631 else
7632   ac_cv_header_stdc=no
7633 fi
7634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7635   conftest.$ac_objext conftest.beam conftest.$ac_ext
7636 fi
7637
7638 fi
7639 fi
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7641 $as_echo "$ac_cv_header_stdc" >&6; }
7642 if test $ac_cv_header_stdc = yes; then
7643
7644 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7645
7646 fi
7647
7648 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7649 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7650                   inttypes.h stdint.h unistd.h
7651 do :
7652   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7653 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7654 "
7655 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7656   cat >>confdefs.h <<_ACEOF
7657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7658 _ACEOF
7659
7660 fi
7661
7662 done
7663
7664
7665 for ac_header in dlfcn.h
7666 do :
7667   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7668 "
7669 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7670   cat >>confdefs.h <<_ACEOF
7671 #define HAVE_DLFCN_H 1
7672 _ACEOF
7673
7674 fi
7675
7676 done
7677
7678
7679
7680
7681
7682 # Set options
7683 enable_win32_dll=yes
7684
7685 case $host in
7686 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7687   if test -n "$ac_tool_prefix"; then
7688   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7689 set dummy ${ac_tool_prefix}as; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if ${ac_cv_prog_AS+:} false; then :
7693   $as_echo_n "(cached) " >&6
7694 else
7695   if test -n "$AS"; then
7696   ac_cv_prog_AS="$AS" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701   IFS=$as_save_IFS
7702   test -z "$as_dir" && as_dir=.
7703     for ac_exec_ext in '' $ac_executable_extensions; do
7704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705     ac_cv_prog_AS="${ac_tool_prefix}as"
7706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707     break 2
7708   fi
7709 done
7710   done
7711 IFS=$as_save_IFS
7712
7713 fi
7714 fi
7715 AS=$ac_cv_prog_AS
7716 if test -n "$AS"; then
7717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7718 $as_echo "$AS" >&6; }
7719 else
7720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7722 fi
7723
7724
7725 fi
7726 if test -z "$ac_cv_prog_AS"; then
7727   ac_ct_AS=$AS
7728   # Extract the first word of "as", so it can be a program name with args.
7729 set dummy as; ac_word=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7733   $as_echo_n "(cached) " >&6
7734 else
7735   if test -n "$ac_ct_AS"; then
7736   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7737 else
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7740 do
7741   IFS=$as_save_IFS
7742   test -z "$as_dir" && as_dir=.
7743     for ac_exec_ext in '' $ac_executable_extensions; do
7744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745     ac_cv_prog_ac_ct_AS="as"
7746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747     break 2
7748   fi
7749 done
7750   done
7751 IFS=$as_save_IFS
7752
7753 fi
7754 fi
7755 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7756 if test -n "$ac_ct_AS"; then
7757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7758 $as_echo "$ac_ct_AS" >&6; }
7759 else
7760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7762 fi
7763
7764   if test "x$ac_ct_AS" = x; then
7765     AS="false"
7766   else
7767     case $cross_compiling:$ac_tool_warned in
7768 yes:)
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7771 ac_tool_warned=yes ;;
7772 esac
7773     AS=$ac_ct_AS
7774   fi
7775 else
7776   AS="$ac_cv_prog_AS"
7777 fi
7778
7779   if test -n "$ac_tool_prefix"; then
7780   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7781 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if ${ac_cv_prog_DLLTOOL+:} false; then :
7785   $as_echo_n "(cached) " >&6
7786 else
7787   if test -n "$DLLTOOL"; then
7788   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793   IFS=$as_save_IFS
7794   test -z "$as_dir" && as_dir=.
7795     for ac_exec_ext in '' $ac_executable_extensions; do
7796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7797     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799     break 2
7800   fi
7801 done
7802   done
7803 IFS=$as_save_IFS
7804
7805 fi
7806 fi
7807 DLLTOOL=$ac_cv_prog_DLLTOOL
7808 if test -n "$DLLTOOL"; then
7809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7810 $as_echo "$DLLTOOL" >&6; }
7811 else
7812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7814 fi
7815
7816
7817 fi
7818 if test -z "$ac_cv_prog_DLLTOOL"; then
7819   ac_ct_DLLTOOL=$DLLTOOL
7820   # Extract the first word of "dlltool", so it can be a program name with args.
7821 set dummy dlltool; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7825   $as_echo_n "(cached) " >&6
7826 else
7827   if test -n "$ac_ct_DLLTOOL"; then
7828   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833   IFS=$as_save_IFS
7834   test -z "$as_dir" && as_dir=.
7835     for ac_exec_ext in '' $ac_executable_extensions; do
7836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839     break 2
7840   fi
7841 done
7842   done
7843 IFS=$as_save_IFS
7844
7845 fi
7846 fi
7847 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7848 if test -n "$ac_ct_DLLTOOL"; then
7849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7850 $as_echo "$ac_ct_DLLTOOL" >&6; }
7851 else
7852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7854 fi
7855
7856   if test "x$ac_ct_DLLTOOL" = x; then
7857     DLLTOOL="false"
7858   else
7859     case $cross_compiling:$ac_tool_warned in
7860 yes:)
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7863 ac_tool_warned=yes ;;
7864 esac
7865     DLLTOOL=$ac_ct_DLLTOOL
7866   fi
7867 else
7868   DLLTOOL="$ac_cv_prog_DLLTOOL"
7869 fi
7870
7871   if test -n "$ac_tool_prefix"; then
7872   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7873 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if ${ac_cv_prog_OBJDUMP+:} false; then :
7877   $as_echo_n "(cached) " >&6
7878 else
7879   if test -n "$OBJDUMP"; then
7880   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7881 else
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885   IFS=$as_save_IFS
7886   test -z "$as_dir" && as_dir=.
7887     for ac_exec_ext in '' $ac_executable_extensions; do
7888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891     break 2
7892   fi
7893 done
7894   done
7895 IFS=$as_save_IFS
7896
7897 fi
7898 fi
7899 OBJDUMP=$ac_cv_prog_OBJDUMP
7900 if test -n "$OBJDUMP"; then
7901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7902 $as_echo "$OBJDUMP" >&6; }
7903 else
7904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7906 fi
7907
7908
7909 fi
7910 if test -z "$ac_cv_prog_OBJDUMP"; then
7911   ac_ct_OBJDUMP=$OBJDUMP
7912   # Extract the first word of "objdump", so it can be a program name with args.
7913 set dummy objdump; ac_word=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7917   $as_echo_n "(cached) " >&6
7918 else
7919   if test -n "$ac_ct_OBJDUMP"; then
7920   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925   IFS=$as_save_IFS
7926   test -z "$as_dir" && as_dir=.
7927     for ac_exec_ext in '' $ac_executable_extensions; do
7928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931     break 2
7932   fi
7933 done
7934   done
7935 IFS=$as_save_IFS
7936
7937 fi
7938 fi
7939 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7940 if test -n "$ac_ct_OBJDUMP"; then
7941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7942 $as_echo "$ac_ct_OBJDUMP" >&6; }
7943 else
7944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7946 fi
7947
7948   if test "x$ac_ct_OBJDUMP" = x; then
7949     OBJDUMP="false"
7950   else
7951     case $cross_compiling:$ac_tool_warned in
7952 yes:)
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7955 ac_tool_warned=yes ;;
7956 esac
7957     OBJDUMP=$ac_ct_OBJDUMP
7958   fi
7959 else
7960   OBJDUMP="$ac_cv_prog_OBJDUMP"
7961 fi
7962
7963   ;;
7964 esac
7965
7966 test -z "$AS" && AS=as
7967
7968
7969
7970
7971
7972 test -z "$DLLTOOL" && DLLTOOL=dlltool
7973
7974
7975
7976
7977
7978 test -z "$OBJDUMP" && OBJDUMP=objdump
7979
7980
7981
7982
7983
7984
7985
7986         enable_dlopen=no
7987
7988
7989
7990             # Check whether --enable-shared was given.
7991 if test "${enable_shared+set}" = set; then :
7992   enableval=$enable_shared; p=${PACKAGE-default}
7993     case $enableval in
7994     yes) enable_shared=yes ;;
7995     no) enable_shared=no ;;
7996     *)
7997       enable_shared=no
7998       # Look at the argument we got.  We use all the common list separators.
7999       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8000       for pkg in $enableval; do
8001         IFS="$lt_save_ifs"
8002         if test "X$pkg" = "X$p"; then
8003           enable_shared=yes
8004         fi
8005       done
8006       IFS="$lt_save_ifs"
8007       ;;
8008     esac
8009 else
8010   enable_shared=yes
8011 fi
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021   # Check whether --enable-static was given.
8022 if test "${enable_static+set}" = set; then :
8023   enableval=$enable_static; p=${PACKAGE-default}
8024     case $enableval in
8025     yes) enable_static=yes ;;
8026     no) enable_static=no ;;
8027     *)
8028      enable_static=no
8029       # Look at the argument we got.  We use all the common list separators.
8030       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8031       for pkg in $enableval; do
8032         IFS="$lt_save_ifs"
8033         if test "X$pkg" = "X$p"; then
8034           enable_static=yes
8035         fi
8036       done
8037       IFS="$lt_save_ifs"
8038       ;;
8039     esac
8040 else
8041   enable_static=yes
8042 fi
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053 # Check whether --with-pic was given.
8054 if test "${with_pic+set}" = set; then :
8055   withval=$with_pic; lt_p=${PACKAGE-default}
8056     case $withval in
8057     yes|no) pic_mode=$withval ;;
8058     *)
8059       pic_mode=default
8060       # Look at the argument we got.  We use all the common list separators.
8061       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8062       for lt_pkg in $withval; do
8063         IFS="$lt_save_ifs"
8064         if test "X$lt_pkg" = "X$lt_p"; then
8065           pic_mode=yes
8066         fi
8067       done
8068       IFS="$lt_save_ifs"
8069       ;;
8070     esac
8071 else
8072   pic_mode=default
8073 fi
8074
8075
8076 test -z "$pic_mode" && pic_mode=default
8077
8078
8079
8080
8081
8082
8083
8084   # Check whether --enable-fast-install was given.
8085 if test "${enable_fast_install+set}" = set; then :
8086   enableval=$enable_fast_install; p=${PACKAGE-default}
8087     case $enableval in
8088     yes) enable_fast_install=yes ;;
8089     no) enable_fast_install=no ;;
8090     *)
8091       enable_fast_install=no
8092       # Look at the argument we got.  We use all the common list separators.
8093       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8094       for pkg in $enableval; do
8095         IFS="$lt_save_ifs"
8096         if test "X$pkg" = "X$p"; then
8097           enable_fast_install=yes
8098         fi
8099       done
8100       IFS="$lt_save_ifs"
8101       ;;
8102     esac
8103 else
8104   enable_fast_install=yes
8105 fi
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117 # This can be used to rebuild libtool when needed
8118 LIBTOOL_DEPS="$ltmain"
8119
8120 # Always use our own libtool.
8121 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152 test -z "$LN_S" && LN_S="ln -s"
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167 if test -n "${ZSH_VERSION+set}" ; then
8168    setopt NO_GLOB_SUBST
8169 fi
8170
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8172 $as_echo_n "checking for objdir... " >&6; }
8173 if ${lt_cv_objdir+:} false; then :
8174   $as_echo_n "(cached) " >&6
8175 else
8176   rm -f .libs 2>/dev/null
8177 mkdir .libs 2>/dev/null
8178 if test -d .libs; then
8179   lt_cv_objdir=.libs
8180 else
8181   # MS-DOS does not allow filenames that begin with a dot.
8182   lt_cv_objdir=_libs
8183 fi
8184 rmdir .libs 2>/dev/null
8185 fi
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8187 $as_echo "$lt_cv_objdir" >&6; }
8188 objdir=$lt_cv_objdir
8189
8190
8191
8192
8193
8194 cat >>confdefs.h <<_ACEOF
8195 #define LT_OBJDIR "$lt_cv_objdir/"
8196 _ACEOF
8197
8198
8199
8200
8201 case $host_os in
8202 aix3*)
8203   # AIX sometimes has problems with the GCC collect2 program.  For some
8204   # reason, if we set the COLLECT_NAMES environment variable, the problems
8205   # vanish in a puff of smoke.
8206   if test "X${COLLECT_NAMES+set}" != Xset; then
8207     COLLECT_NAMES=
8208     export COLLECT_NAMES
8209   fi
8210   ;;
8211 esac
8212
8213 # Global variables:
8214 ofile=libtool
8215 can_build_shared=yes
8216
8217 # All known linkers require a `.a' archive for static linking (except MSVC,
8218 # which needs '.lib').
8219 libext=a
8220
8221 with_gnu_ld="$lt_cv_prog_gnu_ld"
8222
8223 old_CC="$CC"
8224 old_CFLAGS="$CFLAGS"
8225
8226 # Set sane defaults for various variables
8227 test -z "$CC" && CC=cc
8228 test -z "$LTCC" && LTCC=$CC
8229 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8230 test -z "$LD" && LD=ld
8231 test -z "$ac_objext" && ac_objext=o
8232
8233 for cc_temp in $compiler""; do
8234   case $cc_temp in
8235     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8236     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8237     \-*) ;;
8238     *) break;;
8239   esac
8240 done
8241 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8242
8243
8244 # Only perform the check for file, if the check method requires it
8245 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8246 case $deplibs_check_method in
8247 file_magic*)
8248   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8250 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8251 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8252   $as_echo_n "(cached) " >&6
8253 else
8254   case $MAGIC_CMD in
8255 [\\/*] |  ?:[\\/]*)
8256   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8257   ;;
8258 *)
8259   lt_save_MAGIC_CMD="$MAGIC_CMD"
8260   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8261   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8262   for ac_dir in $ac_dummy; do
8263     IFS="$lt_save_ifs"
8264     test -z "$ac_dir" && ac_dir=.
8265     if test -f $ac_dir/${ac_tool_prefix}file; then
8266       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8267       if test -n "$file_magic_test_file"; then
8268         case $deplibs_check_method in
8269         "file_magic "*)
8270           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8271           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8272           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8273             $EGREP "$file_magic_regex" > /dev/null; then
8274             :
8275           else
8276             cat <<_LT_EOF 1>&2
8277
8278 *** Warning: the command libtool uses to detect shared libraries,
8279 *** $file_magic_cmd, produces output that libtool cannot recognize.
8280 *** The result is that libtool may fail to recognize shared libraries
8281 *** as such.  This will affect the creation of libtool libraries that
8282 *** depend on shared libraries, but programs linked with such libtool
8283 *** libraries will work regardless of this problem.  Nevertheless, you
8284 *** may want to report the problem to your system manager and/or to
8285 *** bug-libtool@gnu.org
8286
8287 _LT_EOF
8288           fi ;;
8289         esac
8290       fi
8291       break
8292     fi
8293   done
8294   IFS="$lt_save_ifs"
8295   MAGIC_CMD="$lt_save_MAGIC_CMD"
8296   ;;
8297 esac
8298 fi
8299
8300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8301 if test -n "$MAGIC_CMD"; then
8302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8303 $as_echo "$MAGIC_CMD" >&6; }
8304 else
8305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8307 fi
8308
8309
8310
8311
8312
8313 if test -z "$lt_cv_path_MAGIC_CMD"; then
8314   if test -n "$ac_tool_prefix"; then
8315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8316 $as_echo_n "checking for file... " >&6; }
8317 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8318   $as_echo_n "(cached) " >&6
8319 else
8320   case $MAGIC_CMD in
8321 [\\/*] |  ?:[\\/]*)
8322   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8323   ;;
8324 *)
8325   lt_save_MAGIC_CMD="$MAGIC_CMD"
8326   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8327   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8328   for ac_dir in $ac_dummy; do
8329     IFS="$lt_save_ifs"
8330     test -z "$ac_dir" && ac_dir=.
8331     if test -f $ac_dir/file; then
8332       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8333       if test -n "$file_magic_test_file"; then
8334         case $deplibs_check_method in
8335         "file_magic "*)
8336           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8337           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8338           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8339             $EGREP "$file_magic_regex" > /dev/null; then
8340             :
8341           else
8342             cat <<_LT_EOF 1>&2
8343
8344 *** Warning: the command libtool uses to detect shared libraries,
8345 *** $file_magic_cmd, produces output that libtool cannot recognize.
8346 *** The result is that libtool may fail to recognize shared libraries
8347 *** as such.  This will affect the creation of libtool libraries that
8348 *** depend on shared libraries, but programs linked with such libtool
8349 *** libraries will work regardless of this problem.  Nevertheless, you
8350 *** may want to report the problem to your system manager and/or to
8351 *** bug-libtool@gnu.org
8352
8353 _LT_EOF
8354           fi ;;
8355         esac
8356       fi
8357       break
8358     fi
8359   done
8360   IFS="$lt_save_ifs"
8361   MAGIC_CMD="$lt_save_MAGIC_CMD"
8362   ;;
8363 esac
8364 fi
8365
8366 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8367 if test -n "$MAGIC_CMD"; then
8368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8369 $as_echo "$MAGIC_CMD" >&6; }
8370 else
8371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8373 fi
8374
8375
8376   else
8377     MAGIC_CMD=:
8378   fi
8379 fi
8380
8381   fi
8382   ;;
8383 esac
8384
8385 # Use C for the default configuration in the libtool script
8386
8387 lt_save_CC="$CC"
8388 ac_ext=c
8389 ac_cpp='$CPP $CPPFLAGS'
8390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8393
8394
8395 # Source file extension for C test sources.
8396 ac_ext=c
8397
8398 # Object file extension for compiled C test sources.
8399 objext=o
8400 objext=$objext
8401
8402 # Code to be used in simple compile tests
8403 lt_simple_compile_test_code="int some_variable = 0;"
8404
8405 # Code to be used in simple link tests
8406 lt_simple_link_test_code='int main(){return(0);}'
8407
8408
8409
8410
8411
8412
8413
8414 # If no C compiler was specified, use CC.
8415 LTCC=${LTCC-"$CC"}
8416
8417 # If no C compiler flags were specified, use CFLAGS.
8418 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8419
8420 # Allow CC to be a program name with arguments.
8421 compiler=$CC
8422
8423 # Save the default compiler, since it gets overwritten when the other
8424 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8425 compiler_DEFAULT=$CC
8426
8427 # save warnings/boilerplate of simple test code
8428 ac_outfile=conftest.$ac_objext
8429 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8430 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8431 _lt_compiler_boilerplate=`cat conftest.err`
8432 $RM conftest*
8433
8434 ac_outfile=conftest.$ac_objext
8435 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8436 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8437 _lt_linker_boilerplate=`cat conftest.err`
8438 $RM -r conftest*
8439
8440
8441 ## CAVEAT EMPTOR:
8442 ## There is no encapsulation within the following macros, do not change
8443 ## the running order or otherwise move them around unless you know exactly
8444 ## what you are doing...
8445 if test -n "$compiler"; then
8446
8447 lt_prog_compiler_no_builtin_flag=
8448
8449 if test "$GCC" = yes; then
8450   case $cc_basename in
8451   nvcc*)
8452     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8453   *)
8454     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8455   esac
8456
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8458 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8459 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8460   $as_echo_n "(cached) " >&6
8461 else
8462   lt_cv_prog_compiler_rtti_exceptions=no
8463    ac_outfile=conftest.$ac_objext
8464    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8465    lt_compiler_flag="-fno-rtti -fno-exceptions"
8466    # Insert the option either (1) after the last *FLAGS variable, or
8467    # (2) before a word containing "conftest.", or (3) at the end.
8468    # Note that $ac_compile itself does not contain backslashes and begins
8469    # with a dollar sign (not a hyphen), so the echo should work correctly.
8470    # The option is referenced via a variable to avoid confusing sed.
8471    lt_compile=`echo "$ac_compile" | $SED \
8472    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8473    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8474    -e 's:$: $lt_compiler_flag:'`
8475    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8476    (eval "$lt_compile" 2>conftest.err)
8477    ac_status=$?
8478    cat conftest.err >&5
8479    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480    if (exit $ac_status) && test -s "$ac_outfile"; then
8481      # The compiler can only warn and ignore the option if not recognized
8482      # So say no if there are warnings other than the usual output.
8483      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8484      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8485      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8486        lt_cv_prog_compiler_rtti_exceptions=yes
8487      fi
8488    fi
8489    $RM conftest*
8490
8491 fi
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8493 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8494
8495 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8496     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8497 else
8498     :
8499 fi
8500
8501 fi
8502
8503
8504
8505
8506
8507
8508   lt_prog_compiler_wl=
8509 lt_prog_compiler_pic=
8510 lt_prog_compiler_static=
8511
8512
8513   if test "$GCC" = yes; then
8514     lt_prog_compiler_wl='-Wl,'
8515     lt_prog_compiler_static='-static'
8516
8517     case $host_os in
8518       aix*)
8519       # All AIX code is PIC.
8520       if test "$host_cpu" = ia64; then
8521         # AIX 5 now supports IA64 processor
8522         lt_prog_compiler_static='-Bstatic'
8523       fi
8524       ;;
8525
8526     amigaos*)
8527       case $host_cpu in
8528       powerpc)
8529             # see comment about AmigaOS4 .so support
8530             lt_prog_compiler_pic='-fPIC'
8531         ;;
8532       m68k)
8533             # FIXME: we need at least 68020 code to build shared libraries, but
8534             # adding the `-m68020' flag to GCC prevents building anything better,
8535             # like `-m68040'.
8536             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8537         ;;
8538       esac
8539       ;;
8540
8541     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8542       # PIC is the default for these OSes.
8543       ;;
8544
8545     mingw* | cygwin* | pw32* | os2* | cegcc*)
8546       # This hack is so that the source file can tell whether it is being
8547       # built for inclusion in a dll (and should export symbols for example).
8548       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8549       # (--disable-auto-import) libraries
8550       lt_prog_compiler_pic='-DDLL_EXPORT'
8551       ;;
8552
8553     darwin* | rhapsody*)
8554       # PIC is the default on this platform
8555       # Common symbols not allowed in MH_DYLIB files
8556       lt_prog_compiler_pic='-fno-common'
8557       ;;
8558
8559     haiku*)
8560       # PIC is the default for Haiku.
8561       # The "-static" flag exists, but is broken.
8562       lt_prog_compiler_static=
8563       ;;
8564
8565     hpux*)
8566       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8567       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8568       # sets the default TLS model and affects inlining.
8569       case $host_cpu in
8570       hppa*64*)
8571         # +Z the default
8572         ;;
8573       *)
8574         lt_prog_compiler_pic='-fPIC'
8575         ;;
8576       esac
8577       ;;
8578
8579     interix[3-9]*)
8580       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8581       # Instead, we relocate shared libraries at runtime.
8582       ;;
8583
8584     msdosdjgpp*)
8585       # Just because we use GCC doesn't mean we suddenly get shared libraries
8586       # on systems that don't support them.
8587       lt_prog_compiler_can_build_shared=no
8588       enable_shared=no
8589       ;;
8590
8591     *nto* | *qnx*)
8592       # QNX uses GNU C++, but need to define -shared option too, otherwise
8593       # it will coredump.
8594       lt_prog_compiler_pic='-fPIC -shared'
8595       ;;
8596
8597     sysv4*MP*)
8598       if test -d /usr/nec; then
8599         lt_prog_compiler_pic=-Kconform_pic
8600       fi
8601       ;;
8602
8603     *)
8604       lt_prog_compiler_pic='-fPIC'
8605       ;;
8606     esac
8607
8608     case $cc_basename in
8609     nvcc*) # Cuda Compiler Driver 2.2
8610       lt_prog_compiler_wl='-Xlinker '
8611       if test -n "$lt_prog_compiler_pic"; then
8612         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8613       fi
8614       ;;
8615     esac
8616   else
8617     # PORTME Check for flag to pass linker flags through the system compiler.
8618     case $host_os in
8619     aix*)
8620       lt_prog_compiler_wl='-Wl,'
8621       if test "$host_cpu" = ia64; then
8622         # AIX 5 now supports IA64 processor
8623         lt_prog_compiler_static='-Bstatic'
8624       else
8625         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8626       fi
8627       ;;
8628
8629     mingw* | cygwin* | pw32* | os2* | cegcc*)
8630       # This hack is so that the source file can tell whether it is being
8631       # built for inclusion in a dll (and should export symbols for example).
8632       lt_prog_compiler_pic='-DDLL_EXPORT'
8633       ;;
8634
8635     hpux9* | hpux10* | hpux11*)
8636       lt_prog_compiler_wl='-Wl,'
8637       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8638       # not for PA HP-UX.
8639       case $host_cpu in
8640       hppa*64*|ia64*)
8641         # +Z the default
8642         ;;
8643       *)
8644         lt_prog_compiler_pic='+Z'
8645         ;;
8646       esac
8647       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8648       lt_prog_compiler_static='${wl}-a ${wl}archive'
8649       ;;
8650
8651     irix5* | irix6* | nonstopux*)
8652       lt_prog_compiler_wl='-Wl,'
8653       # PIC (with -KPIC) is the default.
8654       lt_prog_compiler_static='-non_shared'
8655       ;;
8656
8657     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8658       case $cc_basename in
8659       # old Intel for x86_64 which still supported -KPIC.
8660       ecc*)
8661         lt_prog_compiler_wl='-Wl,'
8662         lt_prog_compiler_pic='-KPIC'
8663         lt_prog_compiler_static='-static'
8664         ;;
8665       # icc used to be incompatible with GCC.
8666       # ICC 10 doesn't accept -KPIC any more.
8667       icc* | ifort*)
8668         lt_prog_compiler_wl='-Wl,'
8669         lt_prog_compiler_pic='-fPIC'
8670         lt_prog_compiler_static='-static'
8671         ;;
8672       # Lahey Fortran 8.1.
8673       lf95*)
8674         lt_prog_compiler_wl='-Wl,'
8675         lt_prog_compiler_pic='--shared'
8676         lt_prog_compiler_static='--static'
8677         ;;
8678       nagfor*)
8679         # NAG Fortran compiler
8680         lt_prog_compiler_wl='-Wl,-Wl,,'
8681         lt_prog_compiler_pic='-PIC'
8682         lt_prog_compiler_static='-Bstatic'
8683         ;;
8684       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8685         # Portland Group compilers (*not* the Pentium gcc compiler,
8686         # which looks to be a dead project)
8687         lt_prog_compiler_wl='-Wl,'
8688         lt_prog_compiler_pic='-fpic'
8689         lt_prog_compiler_static='-Bstatic'
8690         ;;
8691       ccc*)
8692         lt_prog_compiler_wl='-Wl,'
8693         # All Alpha code is PIC.
8694         lt_prog_compiler_static='-non_shared'
8695         ;;
8696       xl* | bgxl* | bgf* | mpixl*)
8697         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8698         lt_prog_compiler_wl='-Wl,'
8699         lt_prog_compiler_pic='-qpic'
8700         lt_prog_compiler_static='-qstaticlink'
8701         ;;
8702       *)
8703         case `$CC -V 2>&1 | sed 5q` in
8704         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8705           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8706           lt_prog_compiler_pic='-KPIC'
8707           lt_prog_compiler_static='-Bstatic'
8708           lt_prog_compiler_wl=''
8709           ;;
8710         *Sun\ F* | *Sun*Fortran*)
8711           lt_prog_compiler_pic='-KPIC'
8712           lt_prog_compiler_static='-Bstatic'
8713           lt_prog_compiler_wl='-Qoption ld '
8714           ;;
8715         *Sun\ C*)
8716           # Sun C 5.9
8717           lt_prog_compiler_pic='-KPIC'
8718           lt_prog_compiler_static='-Bstatic'
8719           lt_prog_compiler_wl='-Wl,'
8720           ;;
8721         *Intel*\ [CF]*Compiler*)
8722           lt_prog_compiler_wl='-Wl,'
8723           lt_prog_compiler_pic='-fPIC'
8724           lt_prog_compiler_static='-static'
8725           ;;
8726         *Portland\ Group*)
8727           lt_prog_compiler_wl='-Wl,'
8728           lt_prog_compiler_pic='-fpic'
8729           lt_prog_compiler_static='-Bstatic'
8730           ;;
8731         esac
8732         ;;
8733       esac
8734       ;;
8735
8736     newsos6)
8737       lt_prog_compiler_pic='-KPIC'
8738       lt_prog_compiler_static='-Bstatic'
8739       ;;
8740
8741     *nto* | *qnx*)
8742       # QNX uses GNU C++, but need to define -shared option too, otherwise
8743       # it will coredump.
8744       lt_prog_compiler_pic='-fPIC -shared'
8745       ;;
8746
8747     osf3* | osf4* | osf5*)
8748       lt_prog_compiler_wl='-Wl,'
8749       # All OSF/1 code is PIC.
8750       lt_prog_compiler_static='-non_shared'
8751       ;;
8752
8753     rdos*)
8754       lt_prog_compiler_static='-non_shared'
8755       ;;
8756
8757     solaris*)
8758       lt_prog_compiler_pic='-KPIC'
8759       lt_prog_compiler_static='-Bstatic'
8760       case $cc_basename in
8761       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8762         lt_prog_compiler_wl='-Qoption ld ';;
8763       *)
8764         lt_prog_compiler_wl='-Wl,';;
8765       esac
8766       ;;
8767
8768     sunos4*)
8769       lt_prog_compiler_wl='-Qoption ld '
8770       lt_prog_compiler_pic='-PIC'
8771       lt_prog_compiler_static='-Bstatic'
8772       ;;
8773
8774     sysv4 | sysv4.2uw2* | sysv4.3*)
8775       lt_prog_compiler_wl='-Wl,'
8776       lt_prog_compiler_pic='-KPIC'
8777       lt_prog_compiler_static='-Bstatic'
8778       ;;
8779
8780     sysv4*MP*)
8781       if test -d /usr/nec ;then
8782         lt_prog_compiler_pic='-Kconform_pic'
8783         lt_prog_compiler_static='-Bstatic'
8784       fi
8785       ;;
8786
8787     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8788       lt_prog_compiler_wl='-Wl,'
8789       lt_prog_compiler_pic='-KPIC'
8790       lt_prog_compiler_static='-Bstatic'
8791       ;;
8792
8793     unicos*)
8794       lt_prog_compiler_wl='-Wl,'
8795       lt_prog_compiler_can_build_shared=no
8796       ;;
8797
8798     uts4*)
8799       lt_prog_compiler_pic='-pic'
8800       lt_prog_compiler_static='-Bstatic'
8801       ;;
8802
8803     *)
8804       lt_prog_compiler_can_build_shared=no
8805       ;;
8806     esac
8807   fi
8808
8809 case $host_os in
8810   # For platforms which do not support PIC, -DPIC is meaningless:
8811   *djgpp*)
8812     lt_prog_compiler_pic=
8813     ;;
8814   *)
8815     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8816     ;;
8817 esac
8818
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8820 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8821 if ${lt_cv_prog_compiler_pic+:} false; then :
8822   $as_echo_n "(cached) " >&6
8823 else
8824   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8825 fi
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8827 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8828 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8829
8830 #
8831 # Check to make sure the PIC flag actually works.
8832 #
8833 if test -n "$lt_prog_compiler_pic"; then
8834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8835 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8836 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8837   $as_echo_n "(cached) " >&6
8838 else
8839   lt_cv_prog_compiler_pic_works=no
8840    ac_outfile=conftest.$ac_objext
8841    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8842    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8843    # Insert the option either (1) after the last *FLAGS variable, or
8844    # (2) before a word containing "conftest.", or (3) at the end.
8845    # Note that $ac_compile itself does not contain backslashes and begins
8846    # with a dollar sign (not a hyphen), so the echo should work correctly.
8847    # The option is referenced via a variable to avoid confusing sed.
8848    lt_compile=`echo "$ac_compile" | $SED \
8849    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8850    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8851    -e 's:$: $lt_compiler_flag:'`
8852    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8853    (eval "$lt_compile" 2>conftest.err)
8854    ac_status=$?
8855    cat conftest.err >&5
8856    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857    if (exit $ac_status) && test -s "$ac_outfile"; then
8858      # The compiler can only warn and ignore the option if not recognized
8859      # So say no if there are warnings other than the usual output.
8860      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8861      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8862      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8863        lt_cv_prog_compiler_pic_works=yes
8864      fi
8865    fi
8866    $RM conftest*
8867
8868 fi
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8870 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8871
8872 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8873     case $lt_prog_compiler_pic in
8874      "" | " "*) ;;
8875      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8876      esac
8877 else
8878     lt_prog_compiler_pic=
8879      lt_prog_compiler_can_build_shared=no
8880 fi
8881
8882 fi
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894 #
8895 # Check to make sure the static flag actually works.
8896 #
8897 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8899 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8900 if ${lt_cv_prog_compiler_static_works+:} false; then :
8901   $as_echo_n "(cached) " >&6
8902 else
8903   lt_cv_prog_compiler_static_works=no
8904    save_LDFLAGS="$LDFLAGS"
8905    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8906    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8907    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8908      # The linker can only warn and ignore the option if not recognized
8909      # So say no if there are warnings
8910      if test -s conftest.err; then
8911        # Append any errors to the config.log.
8912        cat conftest.err 1>&5
8913        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8914        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8915        if diff conftest.exp conftest.er2 >/dev/null; then
8916          lt_cv_prog_compiler_static_works=yes
8917        fi
8918      else
8919        lt_cv_prog_compiler_static_works=yes
8920      fi
8921    fi
8922    $RM -r conftest*
8923    LDFLAGS="$save_LDFLAGS"
8924
8925 fi
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8927 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8928
8929 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8930     :
8931 else
8932     lt_prog_compiler_static=
8933 fi
8934
8935
8936
8937
8938
8939
8940
8941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8942 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8943 if ${lt_cv_prog_compiler_c_o+:} false; then :
8944   $as_echo_n "(cached) " >&6
8945 else
8946   lt_cv_prog_compiler_c_o=no
8947    $RM -r conftest 2>/dev/null
8948    mkdir conftest
8949    cd conftest
8950    mkdir out
8951    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8952
8953    lt_compiler_flag="-o out/conftest2.$ac_objext"
8954    # Insert the option either (1) after the last *FLAGS variable, or
8955    # (2) before a word containing "conftest.", or (3) at the end.
8956    # Note that $ac_compile itself does not contain backslashes and begins
8957    # with a dollar sign (not a hyphen), so the echo should work correctly.
8958    lt_compile=`echo "$ac_compile" | $SED \
8959    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8960    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8961    -e 's:$: $lt_compiler_flag:'`
8962    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8963    (eval "$lt_compile" 2>out/conftest.err)
8964    ac_status=$?
8965    cat out/conftest.err >&5
8966    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8968    then
8969      # The compiler can only warn and ignore the option if not recognized
8970      # So say no if there are warnings
8971      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8972      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8973      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8974        lt_cv_prog_compiler_c_o=yes
8975      fi
8976    fi
8977    chmod u+w . 2>&5
8978    $RM conftest*
8979    # SGI C++ compiler will create directory out/ii_files/ for
8980    # template instantiation
8981    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8982    $RM out/* && rmdir out
8983    cd ..
8984    $RM -r conftest
8985    $RM conftest*
8986
8987 fi
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8989 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8990
8991
8992
8993
8994
8995
8996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8997 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8998 if ${lt_cv_prog_compiler_c_o+:} false; then :
8999   $as_echo_n "(cached) " >&6
9000 else
9001   lt_cv_prog_compiler_c_o=no
9002    $RM -r conftest 2>/dev/null
9003    mkdir conftest
9004    cd conftest
9005    mkdir out
9006    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9007
9008    lt_compiler_flag="-o out/conftest2.$ac_objext"
9009    # Insert the option either (1) after the last *FLAGS variable, or
9010    # (2) before a word containing "conftest.", or (3) at the end.
9011    # Note that $ac_compile itself does not contain backslashes and begins
9012    # with a dollar sign (not a hyphen), so the echo should work correctly.
9013    lt_compile=`echo "$ac_compile" | $SED \
9014    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9015    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9016    -e 's:$: $lt_compiler_flag:'`
9017    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9018    (eval "$lt_compile" 2>out/conftest.err)
9019    ac_status=$?
9020    cat out/conftest.err >&5
9021    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9023    then
9024      # The compiler can only warn and ignore the option if not recognized
9025      # So say no if there are warnings
9026      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9027      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9028      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9029        lt_cv_prog_compiler_c_o=yes
9030      fi
9031    fi
9032    chmod u+w . 2>&5
9033    $RM conftest*
9034    # SGI C++ compiler will create directory out/ii_files/ for
9035    # template instantiation
9036    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9037    $RM out/* && rmdir out
9038    cd ..
9039    $RM -r conftest
9040    $RM conftest*
9041
9042 fi
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9044 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9045
9046
9047
9048
9049 hard_links="nottested"
9050 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9051   # do not overwrite the value of need_locks provided by the user
9052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9053 $as_echo_n "checking if we can lock with hard links... " >&6; }
9054   hard_links=yes
9055   $RM conftest*
9056   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9057   touch conftest.a
9058   ln conftest.a conftest.b 2>&5 || hard_links=no
9059   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9061 $as_echo "$hard_links" >&6; }
9062   if test "$hard_links" = no; then
9063     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9064 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9065     need_locks=warn
9066   fi
9067 else
9068   need_locks=no
9069 fi
9070
9071
9072
9073
9074
9075
9076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9077 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9078
9079   runpath_var=
9080   allow_undefined_flag=
9081   always_export_symbols=no
9082   archive_cmds=
9083   archive_expsym_cmds=
9084   compiler_needs_object=no
9085   enable_shared_with_static_runtimes=no
9086   export_dynamic_flag_spec=
9087   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9088   hardcode_automatic=no
9089   hardcode_direct=no
9090   hardcode_direct_absolute=no
9091   hardcode_libdir_flag_spec=
9092   hardcode_libdir_separator=
9093   hardcode_minus_L=no
9094   hardcode_shlibpath_var=unsupported
9095   inherit_rpath=no
9096   link_all_deplibs=unknown
9097   module_cmds=
9098   module_expsym_cmds=
9099   old_archive_from_new_cmds=
9100   old_archive_from_expsyms_cmds=
9101   thread_safe_flag_spec=
9102   whole_archive_flag_spec=
9103   # include_expsyms should be a list of space-separated symbols to be *always*
9104   # included in the symbol list
9105   include_expsyms=
9106   # exclude_expsyms can be an extended regexp of symbols to exclude
9107   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9108   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9109   # as well as any symbol that contains `d'.
9110   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9111   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9112   # platforms (ab)use it in PIC code, but their linkers get confused if
9113   # the symbol is explicitly referenced.  Since portable code cannot
9114   # rely on this symbol name, it's probably fine to never include it in
9115   # preloaded symbol tables.
9116   # Exclude shared library initialization/finalization symbols.
9117   extract_expsyms_cmds=
9118
9119   case $host_os in
9120   cygwin* | mingw* | pw32* | cegcc*)
9121     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9122     # When not using gcc, we currently assume that we are using
9123     # Microsoft Visual C++.
9124     if test "$GCC" != yes; then
9125       with_gnu_ld=no
9126     fi
9127     ;;
9128   interix*)
9129     # we just hope/assume this is gcc and not c89 (= MSVC++)
9130     with_gnu_ld=yes
9131     ;;
9132   openbsd*)
9133     with_gnu_ld=no
9134     ;;
9135   linux* | k*bsd*-gnu | gnu*)
9136     link_all_deplibs=no
9137     ;;
9138   esac
9139
9140   ld_shlibs=yes
9141
9142   # On some targets, GNU ld is compatible enough with the native linker
9143   # that we're better off using the native interface for both.
9144   lt_use_gnu_ld_interface=no
9145   if test "$with_gnu_ld" = yes; then
9146     case $host_os in
9147       aix*)
9148         # The AIX port of GNU ld has always aspired to compatibility
9149         # with the native linker.  However, as the warning in the GNU ld
9150         # block says, versions before 2.19.5* couldn't really create working
9151         # shared libraries, regardless of the interface used.
9152         case `$LD -v 2>&1` in
9153           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9154           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9155           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9156           *)
9157             lt_use_gnu_ld_interface=yes
9158             ;;
9159         esac
9160         ;;
9161       *)
9162         lt_use_gnu_ld_interface=yes
9163         ;;
9164     esac
9165   fi
9166
9167   if test "$lt_use_gnu_ld_interface" = yes; then
9168     # If archive_cmds runs LD, not CC, wlarc should be empty
9169     wlarc='${wl}'
9170
9171     # Set some defaults for GNU ld with shared library support. These
9172     # are reset later if shared libraries are not supported. Putting them
9173     # here allows them to be overridden if necessary.
9174     runpath_var=LD_RUN_PATH
9175     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9176     export_dynamic_flag_spec='${wl}--export-dynamic'
9177     # ancient GNU ld didn't support --whole-archive et. al.
9178     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9179       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9180     else
9181       whole_archive_flag_spec=
9182     fi
9183     supports_anon_versioning=no
9184     case `$LD -v 2>&1` in
9185       *GNU\ gold*) supports_anon_versioning=yes ;;
9186       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9187       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9188       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9189       *\ 2.11.*) ;; # other 2.11 versions
9190       *) supports_anon_versioning=yes ;;
9191     esac
9192
9193     # See if GNU ld supports shared libraries.
9194     case $host_os in
9195     aix[3-9]*)
9196       # On AIX/PPC, the GNU linker is very broken
9197       if test "$host_cpu" != ia64; then
9198         ld_shlibs=no
9199         cat <<_LT_EOF 1>&2
9200
9201 *** Warning: the GNU linker, at least up to release 2.19, is reported
9202 *** to be unable to reliably create shared libraries on AIX.
9203 *** Therefore, libtool is disabling shared libraries support.  If you
9204 *** really care for shared libraries, you may want to install binutils
9205 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9206 *** You will then need to restart the configuration process.
9207
9208 _LT_EOF
9209       fi
9210       ;;
9211
9212     amigaos*)
9213       case $host_cpu in
9214       powerpc)
9215             # see comment about AmigaOS4 .so support
9216             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217             archive_expsym_cmds=''
9218         ;;
9219       m68k)
9220             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9221             hardcode_libdir_flag_spec='-L$libdir'
9222             hardcode_minus_L=yes
9223         ;;
9224       esac
9225       ;;
9226
9227     beos*)
9228       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9229         allow_undefined_flag=unsupported
9230         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9231         # support --undefined.  This deserves some investigation.  FIXME
9232         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9233       else
9234         ld_shlibs=no
9235       fi
9236       ;;
9237
9238     cygwin* | mingw* | pw32* | cegcc*)
9239       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9240       # as there is no search path for DLLs.
9241       hardcode_libdir_flag_spec='-L$libdir'
9242       export_dynamic_flag_spec='${wl}--export-all-symbols'
9243       allow_undefined_flag=unsupported
9244       always_export_symbols=no
9245       enable_shared_with_static_runtimes=yes
9246       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9247       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9248
9249       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9250         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9251         # If the export-symbols file already is a .def file (1st line
9252         # is EXPORTS), use it as is; otherwise, prepend...
9253         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9254           cp $export_symbols $output_objdir/$soname.def;
9255         else
9256           echo EXPORTS > $output_objdir/$soname.def;
9257           cat $export_symbols >> $output_objdir/$soname.def;
9258         fi~
9259         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9260       else
9261         ld_shlibs=no
9262       fi
9263       ;;
9264
9265     haiku*)
9266       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9267       link_all_deplibs=yes
9268       ;;
9269
9270     interix[3-9]*)
9271       hardcode_direct=no
9272       hardcode_shlibpath_var=no
9273       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9274       export_dynamic_flag_spec='${wl}-E'
9275       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9276       # Instead, shared libraries are loaded at an image base (0x10000000 by
9277       # default) and relocated if they conflict, which is a slow very memory
9278       # consuming and fragmenting process.  To avoid this, we pick a random,
9279       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9280       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9281       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9282       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9283       ;;
9284
9285     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9286       tmp_diet=no
9287       if test "$host_os" = linux-dietlibc; then
9288         case $cc_basename in
9289           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9290         esac
9291       fi
9292       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9293          && test "$tmp_diet" = no
9294       then
9295         tmp_addflag=' $pic_flag'
9296         tmp_sharedflag='-shared'
9297         case $cc_basename,$host_cpu in
9298         pgcc*)                          # Portland Group C compiler
9299           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9300           tmp_addflag=' $pic_flag'
9301           ;;
9302         pgf77* | pgf90* | pgf95* | pgfortran*)
9303                                         # Portland Group f77 and f90 compilers
9304           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9305           tmp_addflag=' $pic_flag -Mnomain' ;;
9306         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9307           tmp_addflag=' -i_dynamic' ;;
9308         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9309           tmp_addflag=' -i_dynamic -nofor_main' ;;
9310         ifc* | ifort*)                  # Intel Fortran compiler
9311           tmp_addflag=' -nofor_main' ;;
9312         lf95*)                          # Lahey Fortran 8.1
9313           whole_archive_flag_spec=
9314           tmp_sharedflag='--shared' ;;
9315         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9316           tmp_sharedflag='-qmkshrobj'
9317           tmp_addflag= ;;
9318         nvcc*)  # Cuda Compiler Driver 2.2
9319           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9320           compiler_needs_object=yes
9321           ;;
9322         esac
9323         case `$CC -V 2>&1 | sed 5q` in
9324         *Sun\ C*)                       # Sun C 5.9
9325           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9326           compiler_needs_object=yes
9327           tmp_sharedflag='-G' ;;
9328         *Sun\ F*)                       # Sun Fortran 8.3
9329           tmp_sharedflag='-G' ;;
9330         esac
9331         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9332
9333         if test "x$supports_anon_versioning" = xyes; then
9334           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9335             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9336             echo "local: *; };" >> $output_objdir/$libname.ver~
9337             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9338         fi
9339
9340         case $cc_basename in
9341         xlf* | bgf* | bgxlf* | mpixlf*)
9342           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9343           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9344           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9345           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9346           if test "x$supports_anon_versioning" = xyes; then
9347             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9348               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9349               echo "local: *; };" >> $output_objdir/$libname.ver~
9350               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9351           fi
9352           ;;
9353         esac
9354       else
9355         ld_shlibs=no
9356       fi
9357       ;;
9358
9359     netbsd* | netbsdelf*-gnu)
9360       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9361         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9362         wlarc=
9363       else
9364         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9365         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9366       fi
9367       ;;
9368
9369     solaris*)
9370       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9371         ld_shlibs=no
9372         cat <<_LT_EOF 1>&2
9373
9374 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9375 *** create shared libraries on Solaris systems.  Therefore, libtool
9376 *** is disabling shared libraries support.  We urge you to upgrade GNU
9377 *** binutils to release 2.9.1 or newer.  Another option is to modify
9378 *** your PATH or compiler configuration so that the native linker is
9379 *** used, and then restart.
9380
9381 _LT_EOF
9382       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9383         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9385       else
9386         ld_shlibs=no
9387       fi
9388       ;;
9389
9390     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9391       case `$LD -v 2>&1` in
9392         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9393         ld_shlibs=no
9394         cat <<_LT_EOF 1>&2
9395
9396 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9397 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9398 *** is disabling shared libraries support.  We urge you to upgrade GNU
9399 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9400 *** your PATH or compiler configuration so that the native linker is
9401 *** used, and then restart.
9402
9403 _LT_EOF
9404         ;;
9405         *)
9406           # For security reasons, it is highly recommended that you always
9407           # use absolute paths for naming shared libraries, and exclude the
9408           # DT_RUNPATH tag from executables and libraries.  But doing so
9409           # requires that you compile everything twice, which is a pain.
9410           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9411             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9412             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9413             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9414           else
9415             ld_shlibs=no
9416           fi
9417         ;;
9418       esac
9419       ;;
9420
9421     sunos4*)
9422       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9423       wlarc=
9424       hardcode_direct=yes
9425       hardcode_shlibpath_var=no
9426       ;;
9427
9428     *)
9429       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9430         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9432       else
9433         ld_shlibs=no
9434       fi
9435       ;;
9436     esac
9437
9438     if test "$ld_shlibs" = no; then
9439       runpath_var=
9440       hardcode_libdir_flag_spec=
9441       export_dynamic_flag_spec=
9442       whole_archive_flag_spec=
9443     fi
9444   else
9445     # PORTME fill in a description of your system's linker (not GNU ld)
9446     case $host_os in
9447     aix3*)
9448       allow_undefined_flag=unsupported
9449       always_export_symbols=yes
9450       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9451       # Note: this linker hardcodes the directories in LIBPATH if there
9452       # are no directories specified by -L.
9453       hardcode_minus_L=yes
9454       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9455         # Neither direct hardcoding nor static linking is supported with a
9456         # broken collect2.
9457         hardcode_direct=unsupported
9458       fi
9459       ;;
9460
9461     aix[4-9]*)
9462       if test "$host_cpu" = ia64; then
9463         # On IA64, the linker does run time linking by default, so we don't
9464         # have to do anything special.
9465         aix_use_runtimelinking=no
9466         exp_sym_flag='-Bexport'
9467         no_entry_flag=""
9468       else
9469         # If we're using GNU nm, then we don't want the "-C" option.
9470         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9471         # Also, AIX nm treats weak defined symbols like other global
9472         # defined symbols, whereas GNU nm marks them as "W".
9473         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9474           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9475         else
9476           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9477         fi
9478         aix_use_runtimelinking=no
9479
9480         # Test if we are trying to use run time linking or normal
9481         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9482         # need to do runtime linking.
9483         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9484           for ld_flag in $LDFLAGS; do
9485           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9486             aix_use_runtimelinking=yes
9487             break
9488           fi
9489           done
9490           ;;
9491         esac
9492
9493         exp_sym_flag='-bexport'
9494         no_entry_flag='-bnoentry'
9495       fi
9496
9497       # When large executables or shared objects are built, AIX ld can
9498       # have problems creating the table of contents.  If linking a library
9499       # or program results in "error TOC overflow" add -mminimal-toc to
9500       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9501       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9502
9503       archive_cmds=''
9504       hardcode_direct=yes
9505       hardcode_direct_absolute=yes
9506       hardcode_libdir_separator=':'
9507       link_all_deplibs=yes
9508       file_list_spec='${wl}-f,'
9509
9510       if test "$GCC" = yes; then
9511         case $host_os in aix4.[012]|aix4.[012].*)
9512         # We only want to do this on AIX 4.2 and lower, the check
9513         # below for broken collect2 doesn't work under 4.3+
9514           collect2name=`${CC} -print-prog-name=collect2`
9515           if test -f "$collect2name" &&
9516            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9517           then
9518           # We have reworked collect2
9519           :
9520           else
9521           # We have old collect2
9522           hardcode_direct=unsupported
9523           # It fails to find uninstalled libraries when the uninstalled
9524           # path is not listed in the libpath.  Setting hardcode_minus_L
9525           # to unsupported forces relinking
9526           hardcode_minus_L=yes
9527           hardcode_libdir_flag_spec='-L$libdir'
9528           hardcode_libdir_separator=
9529           fi
9530           ;;
9531         esac
9532         shared_flag='-shared'
9533         if test "$aix_use_runtimelinking" = yes; then
9534           shared_flag="$shared_flag "'${wl}-G'
9535         fi
9536         link_all_deplibs=no
9537       else
9538         # not using gcc
9539         if test "$host_cpu" = ia64; then
9540         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9541         # chokes on -Wl,-G. The following line is correct:
9542           shared_flag='-G'
9543         else
9544           if test "$aix_use_runtimelinking" = yes; then
9545             shared_flag='${wl}-G'
9546           else
9547             shared_flag='${wl}-bM:SRE'
9548           fi
9549         fi
9550       fi
9551
9552       export_dynamic_flag_spec='${wl}-bexpall'
9553       # It seems that -bexpall does not export symbols beginning with
9554       # underscore (_), so it is better to generate a list of symbols to export.
9555       always_export_symbols=yes
9556       if test "$aix_use_runtimelinking" = yes; then
9557         # Warning - without using the other runtime loading flags (-brtl),
9558         # -berok will link without error, but may produce a broken library.
9559         allow_undefined_flag='-berok'
9560         # Determine the default libpath from the value encoded in an
9561         # empty executable.
9562         if test "${lt_cv_aix_libpath+set}" = set; then
9563   aix_libpath=$lt_cv_aix_libpath
9564 else
9565   if ${lt_cv_aix_libpath_+:} false; then :
9566   $as_echo_n "(cached) " >&6
9567 else
9568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h.  */
9570
9571 int
9572 main ()
9573 {
9574
9575   ;
9576   return 0;
9577 }
9578 _ACEOF
9579 if ac_fn_c_try_link "$LINENO"; then :
9580
9581   lt_aix_libpath_sed='
9582       /Import File Strings/,/^$/ {
9583           /^0/ {
9584               s/^0  *\([^ ]*\) *$/\1/
9585               p
9586           }
9587       }'
9588   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9589   # Check for a 64-bit object if we didn't find anything.
9590   if test -z "$lt_cv_aix_libpath_"; then
9591     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9592   fi
9593 fi
9594 rm -f core conftest.err conftest.$ac_objext \
9595     conftest$ac_exeext conftest.$ac_ext
9596   if test -z "$lt_cv_aix_libpath_"; then
9597     lt_cv_aix_libpath_="/usr/lib:/lib"
9598   fi
9599
9600 fi
9601
9602   aix_libpath=$lt_cv_aix_libpath_
9603 fi
9604
9605         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9606         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9607       else
9608         if test "$host_cpu" = ia64; then
9609           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9610           allow_undefined_flag="-z nodefs"
9611           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9612         else
9613          # Determine the default libpath from the value encoded in an
9614          # empty executable.
9615          if test "${lt_cv_aix_libpath+set}" = set; then
9616   aix_libpath=$lt_cv_aix_libpath
9617 else
9618   if ${lt_cv_aix_libpath_+:} false; then :
9619   $as_echo_n "(cached) " >&6
9620 else
9621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h.  */
9623
9624 int
9625 main ()
9626 {
9627
9628   ;
9629   return 0;
9630 }
9631 _ACEOF
9632 if ac_fn_c_try_link "$LINENO"; then :
9633
9634   lt_aix_libpath_sed='
9635       /Import File Strings/,/^$/ {
9636           /^0/ {
9637               s/^0  *\([^ ]*\) *$/\1/
9638               p
9639           }
9640       }'
9641   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9642   # Check for a 64-bit object if we didn't find anything.
9643   if test -z "$lt_cv_aix_libpath_"; then
9644     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9645   fi
9646 fi
9647 rm -f core conftest.err conftest.$ac_objext \
9648     conftest$ac_exeext conftest.$ac_ext
9649   if test -z "$lt_cv_aix_libpath_"; then
9650     lt_cv_aix_libpath_="/usr/lib:/lib"
9651   fi
9652
9653 fi
9654
9655   aix_libpath=$lt_cv_aix_libpath_
9656 fi
9657
9658          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9659           # Warning - without using the other run time loading flags,
9660           # -berok will link without error, but may produce a broken library.
9661           no_undefined_flag=' ${wl}-bernotok'
9662           allow_undefined_flag=' ${wl}-berok'
9663           if test "$with_gnu_ld" = yes; then
9664             # We only use this code for GNU lds that support --whole-archive.
9665             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9666           else
9667             # Exported symbols can be pulled into shared objects from archives
9668             whole_archive_flag_spec='$convenience'
9669           fi
9670           archive_cmds_need_lc=yes
9671           # This is similar to how AIX traditionally builds its shared libraries.
9672           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9673         fi
9674       fi
9675       ;;
9676
9677     amigaos*)
9678       case $host_cpu in
9679       powerpc)
9680             # see comment about AmigaOS4 .so support
9681             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9682             archive_expsym_cmds=''
9683         ;;
9684       m68k)
9685             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9686             hardcode_libdir_flag_spec='-L$libdir'
9687             hardcode_minus_L=yes
9688         ;;
9689       esac
9690       ;;
9691
9692     bsdi[45]*)
9693       export_dynamic_flag_spec=-rdynamic
9694       ;;
9695
9696     cygwin* | mingw* | pw32* | cegcc*)
9697       # When not using gcc, we currently assume that we are using
9698       # Microsoft Visual C++.
9699       # hardcode_libdir_flag_spec is actually meaningless, as there is
9700       # no search path for DLLs.
9701       case $cc_basename in
9702       cl*)
9703         # Native MSVC
9704         hardcode_libdir_flag_spec=' '
9705         allow_undefined_flag=unsupported
9706         always_export_symbols=yes
9707         file_list_spec='@'
9708         # Tell ltmain to make .lib files, not .a files.
9709         libext=lib
9710         # Tell ltmain to make .dll files, not .so files.
9711         shrext_cmds=".dll"
9712         # FIXME: Setting linknames here is a bad hack.
9713         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9714         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9715             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9716           else
9717             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9718           fi~
9719           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9720           linknames='
9721         # The linker will not automatically build a static lib if we build a DLL.
9722         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9723         enable_shared_with_static_runtimes=yes
9724         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9725         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9726         # Don't use ranlib
9727         old_postinstall_cmds='chmod 644 $oldlib'
9728         postlink_cmds='lt_outputfile="@OUTPUT@"~
9729           lt_tool_outputfile="@TOOL_OUTPUT@"~
9730           case $lt_outputfile in
9731             *.exe|*.EXE) ;;
9732             *)
9733               lt_outputfile="$lt_outputfile.exe"
9734               lt_tool_outputfile="$lt_tool_outputfile.exe"
9735               ;;
9736           esac~
9737           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9738             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9739             $RM "$lt_outputfile.manifest";
9740           fi'
9741         ;;
9742       *)
9743         # Assume MSVC wrapper
9744         hardcode_libdir_flag_spec=' '
9745         allow_undefined_flag=unsupported
9746         # Tell ltmain to make .lib files, not .a files.
9747         libext=lib
9748         # Tell ltmain to make .dll files, not .so files.
9749         shrext_cmds=".dll"
9750         # FIXME: Setting linknames here is a bad hack.
9751         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9752         # The linker will automatically build a .lib file if we build a DLL.
9753         old_archive_from_new_cmds='true'
9754         # FIXME: Should let the user specify the lib program.
9755         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9756         enable_shared_with_static_runtimes=yes
9757         ;;
9758       esac
9759       ;;
9760
9761     darwin* | rhapsody*)
9762
9763
9764   archive_cmds_need_lc=no
9765   hardcode_direct=no
9766   hardcode_automatic=yes
9767   hardcode_shlibpath_var=unsupported
9768   if test "$lt_cv_ld_force_load" = "yes"; then
9769     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9770
9771   else
9772     whole_archive_flag_spec=''
9773   fi
9774   link_all_deplibs=yes
9775   allow_undefined_flag="$_lt_dar_allow_undefined"
9776   case $cc_basename in
9777      ifort*) _lt_dar_can_shared=yes ;;
9778      *) _lt_dar_can_shared=$GCC ;;
9779   esac
9780   if test "$_lt_dar_can_shared" = "yes"; then
9781     output_verbose_link_cmd=func_echo_all
9782     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9783     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9784     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9785     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9786
9787   else
9788   ld_shlibs=no
9789   fi
9790
9791       ;;
9792
9793     dgux*)
9794       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9795       hardcode_libdir_flag_spec='-L$libdir'
9796       hardcode_shlibpath_var=no
9797       ;;
9798
9799     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9800     # support.  Future versions do this automatically, but an explicit c++rt0.o
9801     # does not break anything, and helps significantly (at the cost of a little
9802     # extra space).
9803     freebsd2.2*)
9804       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9805       hardcode_libdir_flag_spec='-R$libdir'
9806       hardcode_direct=yes
9807       hardcode_shlibpath_var=no
9808       ;;
9809
9810     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9811     freebsd2.*)
9812       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9813       hardcode_direct=yes
9814       hardcode_minus_L=yes
9815       hardcode_shlibpath_var=no
9816       ;;
9817
9818     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9819     freebsd* | dragonfly*)
9820       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9821       hardcode_libdir_flag_spec='-R$libdir'
9822       hardcode_direct=yes
9823       hardcode_shlibpath_var=no
9824       ;;
9825
9826     hpux9*)
9827       if test "$GCC" = yes; then
9828         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9829       else
9830         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9831       fi
9832       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9833       hardcode_libdir_separator=:
9834       hardcode_direct=yes
9835
9836       # hardcode_minus_L: Not really in the search PATH,
9837       # but as the default location of the library.
9838       hardcode_minus_L=yes
9839       export_dynamic_flag_spec='${wl}-E'
9840       ;;
9841
9842     hpux10*)
9843       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9844         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9845       else
9846         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9847       fi
9848       if test "$with_gnu_ld" = no; then
9849         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9850         hardcode_libdir_separator=:
9851         hardcode_direct=yes
9852         hardcode_direct_absolute=yes
9853         export_dynamic_flag_spec='${wl}-E'
9854         # hardcode_minus_L: Not really in the search PATH,
9855         # but as the default location of the library.
9856         hardcode_minus_L=yes
9857       fi
9858       ;;
9859
9860     hpux11*)
9861       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9862         case $host_cpu in
9863         hppa*64*)
9864           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9865           ;;
9866         ia64*)
9867           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9868           ;;
9869         *)
9870           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9871           ;;
9872         esac
9873       else
9874         case $host_cpu in
9875         hppa*64*)
9876           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9877           ;;
9878         ia64*)
9879           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9880           ;;
9881         *)
9882
9883           # Older versions of the 11.00 compiler do not understand -b yet
9884           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9885           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9886 $as_echo_n "checking if $CC understands -b... " >&6; }
9887 if ${lt_cv_prog_compiler__b+:} false; then :
9888   $as_echo_n "(cached) " >&6
9889 else
9890   lt_cv_prog_compiler__b=no
9891    save_LDFLAGS="$LDFLAGS"
9892    LDFLAGS="$LDFLAGS -b"
9893    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9894    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9895      # The linker can only warn and ignore the option if not recognized
9896      # So say no if there are warnings
9897      if test -s conftest.err; then
9898        # Append any errors to the config.log.
9899        cat conftest.err 1>&5
9900        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9901        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9902        if diff conftest.exp conftest.er2 >/dev/null; then
9903          lt_cv_prog_compiler__b=yes
9904        fi
9905      else
9906        lt_cv_prog_compiler__b=yes
9907      fi
9908    fi
9909    $RM -r conftest*
9910    LDFLAGS="$save_LDFLAGS"
9911
9912 fi
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9914 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9915
9916 if test x"$lt_cv_prog_compiler__b" = xyes; then
9917     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9918 else
9919     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9920 fi
9921
9922           ;;
9923         esac
9924       fi
9925       if test "$with_gnu_ld" = no; then
9926         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9927         hardcode_libdir_separator=:
9928
9929         case $host_cpu in
9930         hppa*64*|ia64*)
9931           hardcode_direct=no
9932           hardcode_shlibpath_var=no
9933           ;;
9934         *)
9935           hardcode_direct=yes
9936           hardcode_direct_absolute=yes
9937           export_dynamic_flag_spec='${wl}-E'
9938
9939           # hardcode_minus_L: Not really in the search PATH,
9940           # but as the default location of the library.
9941           hardcode_minus_L=yes
9942           ;;
9943         esac
9944       fi
9945       ;;
9946
9947     irix5* | irix6* | nonstopux*)
9948       if test "$GCC" = yes; then
9949         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9950         # Try to use the -exported_symbol ld option, if it does not
9951         # work, assume that -exports_file does not work either and
9952         # implicitly export all symbols.
9953         # This should be the same for all languages, so no per-tag cache variable.
9954         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9955 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9956 if ${lt_cv_irix_exported_symbol+:} false; then :
9957   $as_echo_n "(cached) " >&6
9958 else
9959   save_LDFLAGS="$LDFLAGS"
9960            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9961            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h.  */
9963 int foo (void) { return 0; }
9964 _ACEOF
9965 if ac_fn_c_try_link "$LINENO"; then :
9966   lt_cv_irix_exported_symbol=yes
9967 else
9968   lt_cv_irix_exported_symbol=no
9969 fi
9970 rm -f core conftest.err conftest.$ac_objext \
9971     conftest$ac_exeext conftest.$ac_ext
9972            LDFLAGS="$save_LDFLAGS"
9973 fi
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9975 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9976         if test "$lt_cv_irix_exported_symbol" = yes; then
9977           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9978         fi
9979       else
9980         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9981         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9982       fi
9983       archive_cmds_need_lc='no'
9984       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9985       hardcode_libdir_separator=:
9986       inherit_rpath=yes
9987       link_all_deplibs=yes
9988       ;;
9989
9990     netbsd* | netbsdelf*-gnu)
9991       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9992         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9993       else
9994         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9995       fi
9996       hardcode_libdir_flag_spec='-R$libdir'
9997       hardcode_direct=yes
9998       hardcode_shlibpath_var=no
9999       ;;
10000
10001     newsos6)
10002       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003       hardcode_direct=yes
10004       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10005       hardcode_libdir_separator=:
10006       hardcode_shlibpath_var=no
10007       ;;
10008
10009     *nto* | *qnx*)
10010       ;;
10011
10012     openbsd*)
10013       if test -f /usr/libexec/ld.so; then
10014         hardcode_direct=yes
10015         hardcode_shlibpath_var=no
10016         hardcode_direct_absolute=yes
10017         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10018           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10019           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10020           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10021           export_dynamic_flag_spec='${wl}-E'
10022         else
10023           case $host_os in
10024            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10025              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10026              hardcode_libdir_flag_spec='-R$libdir'
10027              ;;
10028            *)
10029              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10030              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10031              ;;
10032           esac
10033         fi
10034       else
10035         ld_shlibs=no
10036       fi
10037       ;;
10038
10039     os2*)
10040       hardcode_libdir_flag_spec='-L$libdir'
10041       hardcode_minus_L=yes
10042       allow_undefined_flag=unsupported
10043       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10044       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10045       ;;
10046
10047     osf3*)
10048       if test "$GCC" = yes; then
10049         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10050         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10051       else
10052         allow_undefined_flag=' -expect_unresolved \*'
10053         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10054       fi
10055       archive_cmds_need_lc='no'
10056       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10057       hardcode_libdir_separator=:
10058       ;;
10059
10060     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10061       if test "$GCC" = yes; then
10062         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10063         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10064         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10065       else
10066         allow_undefined_flag=' -expect_unresolved \*'
10067         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10068         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10069         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10070
10071         # Both c and cxx compiler support -rpath directly
10072         hardcode_libdir_flag_spec='-rpath $libdir'
10073       fi
10074       archive_cmds_need_lc='no'
10075       hardcode_libdir_separator=:
10076       ;;
10077
10078     solaris*)
10079       no_undefined_flag=' -z defs'
10080       if test "$GCC" = yes; then
10081         wlarc='${wl}'
10082         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10083         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10084           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10085       else
10086         case `$CC -V 2>&1` in
10087         *"Compilers 5.0"*)
10088           wlarc=''
10089           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10090           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10091           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10092           ;;
10093         *)
10094           wlarc='${wl}'
10095           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10096           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10097           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10098           ;;
10099         esac
10100       fi
10101       hardcode_libdir_flag_spec='-R$libdir'
10102       hardcode_shlibpath_var=no
10103       case $host_os in
10104       solaris2.[0-5] | solaris2.[0-5].*) ;;
10105       *)
10106         # The compiler driver will combine and reorder linker options,
10107         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10108         # but is careful enough not to reorder.
10109         # Supported since Solaris 2.6 (maybe 2.5.1?)
10110         if test "$GCC" = yes; then
10111           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10112         else
10113           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10114         fi
10115         ;;
10116       esac
10117       link_all_deplibs=yes
10118       ;;
10119
10120     sunos4*)
10121       if test "x$host_vendor" = xsequent; then
10122         # Use $CC to link under sequent, because it throws in some extra .o
10123         # files that make .init and .fini sections work.
10124         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10125       else
10126         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10127       fi
10128       hardcode_libdir_flag_spec='-L$libdir'
10129       hardcode_direct=yes
10130       hardcode_minus_L=yes
10131       hardcode_shlibpath_var=no
10132       ;;
10133
10134     sysv4)
10135       case $host_vendor in
10136         sni)
10137           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138           hardcode_direct=yes # is this really true???
10139         ;;
10140         siemens)
10141           ## LD is ld it makes a PLAMLIB
10142           ## CC just makes a GrossModule.
10143           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10144           reload_cmds='$CC -r -o $output$reload_objs'
10145           hardcode_direct=no
10146         ;;
10147         motorola)
10148           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10150         ;;
10151       esac
10152       runpath_var='LD_RUN_PATH'
10153       hardcode_shlibpath_var=no
10154       ;;
10155
10156     sysv4.3*)
10157       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10158       hardcode_shlibpath_var=no
10159       export_dynamic_flag_spec='-Bexport'
10160       ;;
10161
10162     sysv4*MP*)
10163       if test -d /usr/nec; then
10164         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10165         hardcode_shlibpath_var=no
10166         runpath_var=LD_RUN_PATH
10167         hardcode_runpath_var=yes
10168         ld_shlibs=yes
10169       fi
10170       ;;
10171
10172     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10173       no_undefined_flag='${wl}-z,text'
10174       archive_cmds_need_lc=no
10175       hardcode_shlibpath_var=no
10176       runpath_var='LD_RUN_PATH'
10177
10178       if test "$GCC" = yes; then
10179         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181       else
10182         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10183         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184       fi
10185       ;;
10186
10187     sysv5* | sco3.2v5* | sco5v6*)
10188       # Note: We can NOT use -z defs as we might desire, because we do not
10189       # link with -lc, and that would cause any symbols used from libc to
10190       # always be unresolved, which means just about no library would
10191       # ever link correctly.  If we're not using GNU ld we use -z text
10192       # though, which does catch some bad symbols but isn't as heavy-handed
10193       # as -z defs.
10194       no_undefined_flag='${wl}-z,text'
10195       allow_undefined_flag='${wl}-z,nodefs'
10196       archive_cmds_need_lc=no
10197       hardcode_shlibpath_var=no
10198       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10199       hardcode_libdir_separator=':'
10200       link_all_deplibs=yes
10201       export_dynamic_flag_spec='${wl}-Bexport'
10202       runpath_var='LD_RUN_PATH'
10203
10204       if test "$GCC" = yes; then
10205         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10206         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10207       else
10208         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10209         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10210       fi
10211       ;;
10212
10213     uts4*)
10214       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215       hardcode_libdir_flag_spec='-L$libdir'
10216       hardcode_shlibpath_var=no
10217       ;;
10218
10219     *)
10220       ld_shlibs=no
10221       ;;
10222     esac
10223
10224     if test x$host_vendor = xsni; then
10225       case $host in
10226       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10227         export_dynamic_flag_spec='${wl}-Blargedynsym'
10228         ;;
10229       esac
10230     fi
10231   fi
10232
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10234 $as_echo "$ld_shlibs" >&6; }
10235 test "$ld_shlibs" = no && can_build_shared=no
10236
10237 with_gnu_ld=$with_gnu_ld
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253 #
10254 # Do we need to explicitly link libc?
10255 #
10256 case "x$archive_cmds_need_lc" in
10257 x|xyes)
10258   # Assume -lc should be added
10259   archive_cmds_need_lc=yes
10260
10261   if test "$enable_shared" = yes && test "$GCC" = yes; then
10262     case $archive_cmds in
10263     *'~'*)
10264       # FIXME: we may have to deal with multi-command sequences.
10265       ;;
10266     '$CC '*)
10267       # Test whether the compiler implicitly links with -lc since on some
10268       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10269       # to ld, don't add -lc before -lgcc.
10270       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10271 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10272 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10273   $as_echo_n "(cached) " >&6
10274 else
10275   $RM conftest*
10276         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10277
10278         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10279   (eval $ac_compile) 2>&5
10280   ac_status=$?
10281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10282   test $ac_status = 0; } 2>conftest.err; then
10283           soname=conftest
10284           lib=conftest
10285           libobjs=conftest.$ac_objext
10286           deplibs=
10287           wl=$lt_prog_compiler_wl
10288           pic_flag=$lt_prog_compiler_pic
10289           compiler_flags=-v
10290           linker_flags=-v
10291           verstring=
10292           output_objdir=.
10293           libname=conftest
10294           lt_save_allow_undefined_flag=$allow_undefined_flag
10295           allow_undefined_flag=
10296           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10297   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10298   ac_status=$?
10299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10300   test $ac_status = 0; }
10301           then
10302             lt_cv_archive_cmds_need_lc=no
10303           else
10304             lt_cv_archive_cmds_need_lc=yes
10305           fi
10306           allow_undefined_flag=$lt_save_allow_undefined_flag
10307         else
10308           cat conftest.err 1>&5
10309         fi
10310         $RM conftest*
10311
10312 fi
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10314 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10315       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10316       ;;
10317     esac
10318   fi
10319   ;;
10320 esac
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10474 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10475
10476 if test "$GCC" = yes; then
10477   case $host_os in
10478     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10479     *) lt_awk_arg="/^libraries:/" ;;
10480   esac
10481   case $host_os in
10482     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10483     *) lt_sed_strip_eq="s,=/,/,g" ;;
10484   esac
10485   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10486   case $lt_search_path_spec in
10487   *\;*)
10488     # if the path contains ";" then we assume it to be the separator
10489     # otherwise default to the standard path separator (i.e. ":") - it is
10490     # assumed that no part of a normal pathname contains ";" but that should
10491     # okay in the real world where ";" in dirpaths is itself problematic.
10492     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10493     ;;
10494   *)
10495     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10496     ;;
10497   esac
10498   # Ok, now we have the path, separated by spaces, we can step through it
10499   # and add multilib dir if necessary.
10500   lt_tmp_lt_search_path_spec=
10501   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10502   for lt_sys_path in $lt_search_path_spec; do
10503     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10504       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10505     else
10506       test -d "$lt_sys_path" && \
10507         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10508     fi
10509   done
10510   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10511 BEGIN {RS=" "; FS="/|\n";} {
10512   lt_foo="";
10513   lt_count=0;
10514   for (lt_i = NF; lt_i > 0; lt_i--) {
10515     if ($lt_i != "" && $lt_i != ".") {
10516       if ($lt_i == "..") {
10517         lt_count++;
10518       } else {
10519         if (lt_count == 0) {
10520           lt_foo="/" $lt_i lt_foo;
10521         } else {
10522           lt_count--;
10523         }
10524       }
10525     }
10526   }
10527   if (lt_foo != "") { lt_freq[lt_foo]++; }
10528   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10529 }'`
10530   # AWK program above erroneously prepends '/' to C:/dos/paths
10531   # for these hosts.
10532   case $host_os in
10533     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10534       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10535   esac
10536   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10537 else
10538   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10539 fi
10540 library_names_spec=
10541 libname_spec='lib$name'
10542 soname_spec=
10543 shrext_cmds=".so"
10544 postinstall_cmds=
10545 postuninstall_cmds=
10546 finish_cmds=
10547 finish_eval=
10548 shlibpath_var=
10549 shlibpath_overrides_runpath=unknown
10550 version_type=none
10551 dynamic_linker="$host_os ld.so"
10552 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10553 need_lib_prefix=unknown
10554 hardcode_into_libs=no
10555
10556 # when you set need_version to no, make sure it does not cause -set_version
10557 # flags to be left without arguments
10558 need_version=unknown
10559
10560 case $host_os in
10561 aix3*)
10562   version_type=linux # correct to gnu/linux during the next big refactor
10563   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10564   shlibpath_var=LIBPATH
10565
10566   # AIX 3 has no versioning support, so we append a major version to the name.
10567   soname_spec='${libname}${release}${shared_ext}$major'
10568   ;;
10569
10570 aix[4-9]*)
10571   version_type=linux # correct to gnu/linux during the next big refactor
10572   need_lib_prefix=no
10573   need_version=no
10574   hardcode_into_libs=yes
10575   if test "$host_cpu" = ia64; then
10576     # AIX 5 supports IA64
10577     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10578     shlibpath_var=LD_LIBRARY_PATH
10579   else
10580     # With GCC up to 2.95.x, collect2 would create an import file
10581     # for dependence libraries.  The import file would start with
10582     # the line `#! .'.  This would cause the generated library to
10583     # depend on `.', always an invalid library.  This was fixed in
10584     # development snapshots of GCC prior to 3.0.
10585     case $host_os in
10586       aix4 | aix4.[01] | aix4.[01].*)
10587       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10588            echo ' yes '
10589            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10590         :
10591       else
10592         can_build_shared=no
10593       fi
10594       ;;
10595     esac
10596     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10597     # soname into executable. Probably we can add versioning support to
10598     # collect2, so additional links can be useful in future.
10599     if test "$aix_use_runtimelinking" = yes; then
10600       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10601       # instead of lib<name>.a to let people know that these are not
10602       # typical AIX shared libraries.
10603       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604     else
10605       # We preserve .a as extension for shared libraries through AIX4.2
10606       # and later when we are not doing run time linking.
10607       library_names_spec='${libname}${release}.a $libname.a'
10608       soname_spec='${libname}${release}${shared_ext}$major'
10609     fi
10610     shlibpath_var=LIBPATH
10611   fi
10612   ;;
10613
10614 amigaos*)
10615   case $host_cpu in
10616   powerpc)
10617     # Since July 2007 AmigaOS4 officially supports .so libraries.
10618     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10619     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620     ;;
10621   m68k)
10622     library_names_spec='$libname.ixlibrary $libname.a'
10623     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10624     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10625     ;;
10626   esac
10627   ;;
10628
10629 beos*)
10630   library_names_spec='${libname}${shared_ext}'
10631   dynamic_linker="$host_os ld.so"
10632   shlibpath_var=LIBRARY_PATH
10633   ;;
10634
10635 bsdi[45]*)
10636   version_type=linux # correct to gnu/linux during the next big refactor
10637   need_version=no
10638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639   soname_spec='${libname}${release}${shared_ext}$major'
10640   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10641   shlibpath_var=LD_LIBRARY_PATH
10642   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10643   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10644   # the default ld.so.conf also contains /usr/contrib/lib and
10645   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10646   # libtool to hard-code these into programs
10647   ;;
10648
10649 cygwin* | mingw* | pw32* | cegcc*)
10650   version_type=windows
10651   shrext_cmds=".dll"
10652   need_version=no
10653   need_lib_prefix=no
10654
10655   case $GCC,$cc_basename in
10656   yes,*)
10657     # gcc
10658     library_names_spec='$libname.dll.a'
10659     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10660     postinstall_cmds='base_file=`basename \${file}`~
10661       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10662       dldir=$destdir/`dirname \$dlpath`~
10663       test -d \$dldir || mkdir -p \$dldir~
10664       $install_prog $dir/$dlname \$dldir/$dlname~
10665       chmod a+x \$dldir/$dlname~
10666       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10667         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10668       fi'
10669     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10670       dlpath=$dir/\$dldll~
10671        $RM \$dlpath'
10672     shlibpath_overrides_runpath=yes
10673
10674     case $host_os in
10675     cygwin*)
10676       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10677       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10678
10679       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10680       ;;
10681     mingw* | cegcc*)
10682       # MinGW DLLs use traditional 'lib' prefix
10683       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10684       ;;
10685     pw32*)
10686       # pw32 DLLs use 'pw' prefix rather than 'lib'
10687       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10688       ;;
10689     esac
10690     dynamic_linker='Win32 ld.exe'
10691     ;;
10692
10693   *,cl*)
10694     # Native MSVC
10695     libname_spec='$name'
10696     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10697     library_names_spec='${libname}.dll.lib'
10698
10699     case $build_os in
10700     mingw*)
10701       sys_lib_search_path_spec=
10702       lt_save_ifs=$IFS
10703       IFS=';'
10704       for lt_path in $LIB
10705       do
10706         IFS=$lt_save_ifs
10707         # Let DOS variable expansion print the short 8.3 style file name.
10708         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10709         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10710       done
10711       IFS=$lt_save_ifs
10712       # Convert to MSYS style.
10713       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10714       ;;
10715     cygwin*)
10716       # Convert to unix form, then to dos form, then back to unix form
10717       # but this time dos style (no spaces!) so that the unix form looks
10718       # like /cygdrive/c/PROGRA~1:/cygdr...
10719       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10720       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10721       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10722       ;;
10723     *)
10724       sys_lib_search_path_spec="$LIB"
10725       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10726         # It is most probably a Windows format PATH.
10727         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10728       else
10729         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10730       fi
10731       # FIXME: find the short name or the path components, as spaces are
10732       # common. (e.g. "Program Files" -> "PROGRA~1")
10733       ;;
10734     esac
10735
10736     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10737     postinstall_cmds='base_file=`basename \${file}`~
10738       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10739       dldir=$destdir/`dirname \$dlpath`~
10740       test -d \$dldir || mkdir -p \$dldir~
10741       $install_prog $dir/$dlname \$dldir/$dlname'
10742     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10743       dlpath=$dir/\$dldll~
10744        $RM \$dlpath'
10745     shlibpath_overrides_runpath=yes
10746     dynamic_linker='Win32 link.exe'
10747     ;;
10748
10749   *)
10750     # Assume MSVC wrapper
10751     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10752     dynamic_linker='Win32 ld.exe'
10753     ;;
10754   esac
10755   # FIXME: first we should search . and the directory the executable is in
10756   shlibpath_var=PATH
10757   ;;
10758
10759 darwin* | rhapsody*)
10760   dynamic_linker="$host_os dyld"
10761   version_type=darwin
10762   need_lib_prefix=no
10763   need_version=no
10764   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10765   soname_spec='${libname}${release}${major}$shared_ext'
10766   shlibpath_overrides_runpath=yes
10767   shlibpath_var=DYLD_LIBRARY_PATH
10768   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10769
10770   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10771   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10772   ;;
10773
10774 dgux*)
10775   version_type=linux # correct to gnu/linux during the next big refactor
10776   need_lib_prefix=no
10777   need_version=no
10778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10779   soname_spec='${libname}${release}${shared_ext}$major'
10780   shlibpath_var=LD_LIBRARY_PATH
10781   ;;
10782
10783 freebsd* | dragonfly*)
10784   # DragonFly does not have aout.  When/if they implement a new
10785   # versioning mechanism, adjust this.
10786   if test -x /usr/bin/objformat; then
10787     objformat=`/usr/bin/objformat`
10788   else
10789     case $host_os in
10790     freebsd[23].*) objformat=aout ;;
10791     *) objformat=elf ;;
10792     esac
10793   fi
10794   version_type=freebsd-$objformat
10795   case $version_type in
10796     freebsd-elf*)
10797       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10798       need_version=no
10799       need_lib_prefix=no
10800       ;;
10801     freebsd-*)
10802       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10803       need_version=yes
10804       ;;
10805   esac
10806   shlibpath_var=LD_LIBRARY_PATH
10807   case $host_os in
10808   freebsd2.*)
10809     shlibpath_overrides_runpath=yes
10810     ;;
10811   freebsd3.[01]* | freebsdelf3.[01]*)
10812     shlibpath_overrides_runpath=yes
10813     hardcode_into_libs=yes
10814     ;;
10815   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10816   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10817     shlibpath_overrides_runpath=no
10818     hardcode_into_libs=yes
10819     ;;
10820   *) # from 4.6 on, and DragonFly
10821     shlibpath_overrides_runpath=yes
10822     hardcode_into_libs=yes
10823     ;;
10824   esac
10825   ;;
10826
10827 haiku*)
10828   version_type=linux # correct to gnu/linux during the next big refactor
10829   need_lib_prefix=no
10830   need_version=no
10831   dynamic_linker="$host_os runtime_loader"
10832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10833   soname_spec='${libname}${release}${shared_ext}$major'
10834   shlibpath_var=LIBRARY_PATH
10835   shlibpath_overrides_runpath=yes
10836   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10837   hardcode_into_libs=yes
10838   ;;
10839
10840 hpux9* | hpux10* | hpux11*)
10841   # Give a soname corresponding to the major version so that dld.sl refuses to
10842   # link against other versions.
10843   version_type=sunos
10844   need_lib_prefix=no
10845   need_version=no
10846   case $host_cpu in
10847   ia64*)
10848     shrext_cmds='.so'
10849     hardcode_into_libs=yes
10850     dynamic_linker="$host_os dld.so"
10851     shlibpath_var=LD_LIBRARY_PATH
10852     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10853     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854     soname_spec='${libname}${release}${shared_ext}$major'
10855     if test "X$HPUX_IA64_MODE" = X32; then
10856       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10857     else
10858       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10859     fi
10860     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10861     ;;
10862   hppa*64*)
10863     shrext_cmds='.sl'
10864     hardcode_into_libs=yes
10865     dynamic_linker="$host_os dld.sl"
10866     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10867     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10868     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869     soname_spec='${libname}${release}${shared_ext}$major'
10870     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10871     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10872     ;;
10873   *)
10874     shrext_cmds='.sl'
10875     dynamic_linker="$host_os dld.sl"
10876     shlibpath_var=SHLIB_PATH
10877     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10878     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879     soname_spec='${libname}${release}${shared_ext}$major'
10880     ;;
10881   esac
10882   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10883   postinstall_cmds='chmod 555 $lib'
10884   # or fails outright, so override atomically:
10885   install_override_mode=555
10886   ;;
10887
10888 interix[3-9]*)
10889   version_type=linux # correct to gnu/linux during the next big refactor
10890   need_lib_prefix=no
10891   need_version=no
10892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10893   soname_spec='${libname}${release}${shared_ext}$major'
10894   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10895   shlibpath_var=LD_LIBRARY_PATH
10896   shlibpath_overrides_runpath=no
10897   hardcode_into_libs=yes
10898   ;;
10899
10900 irix5* | irix6* | nonstopux*)
10901   case $host_os in
10902     nonstopux*) version_type=nonstopux ;;
10903     *)
10904         if test "$lt_cv_prog_gnu_ld" = yes; then
10905                 version_type=linux # correct to gnu/linux during the next big refactor
10906         else
10907                 version_type=irix
10908         fi ;;
10909   esac
10910   need_lib_prefix=no
10911   need_version=no
10912   soname_spec='${libname}${release}${shared_ext}$major'
10913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10914   case $host_os in
10915   irix5* | nonstopux*)
10916     libsuff= shlibsuff=
10917     ;;
10918   *)
10919     case $LD in # libtool.m4 will add one of these switches to LD
10920     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10921       libsuff= shlibsuff= libmagic=32-bit;;
10922     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10923       libsuff=32 shlibsuff=N32 libmagic=N32;;
10924     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10925       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10926     *) libsuff= shlibsuff= libmagic=never-match;;
10927     esac
10928     ;;
10929   esac
10930   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10931   shlibpath_overrides_runpath=no
10932   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10933   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10934   hardcode_into_libs=yes
10935   ;;
10936
10937 # No shared lib support for Linux oldld, aout, or coff.
10938 linux*oldld* | linux*aout* | linux*coff*)
10939   dynamic_linker=no
10940   ;;
10941
10942 # This must be glibc/ELF.
10943 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10944   version_type=linux # correct to gnu/linux during the next big refactor
10945   need_lib_prefix=no
10946   need_version=no
10947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948   soname_spec='${libname}${release}${shared_ext}$major'
10949   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10950   shlibpath_var=LD_LIBRARY_PATH
10951   shlibpath_overrides_runpath=no
10952
10953   # Some binutils ld are patched to set DT_RUNPATH
10954   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10955   $as_echo_n "(cached) " >&6
10956 else
10957   lt_cv_shlibpath_overrides_runpath=no
10958     save_LDFLAGS=$LDFLAGS
10959     save_libdir=$libdir
10960     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10961          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10962     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h.  */
10964
10965 int
10966 main ()
10967 {
10968
10969   ;
10970   return 0;
10971 }
10972 _ACEOF
10973 if ac_fn_c_try_link "$LINENO"; then :
10974   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10975   lt_cv_shlibpath_overrides_runpath=yes
10976 fi
10977 fi
10978 rm -f core conftest.err conftest.$ac_objext \
10979     conftest$ac_exeext conftest.$ac_ext
10980     LDFLAGS=$save_LDFLAGS
10981     libdir=$save_libdir
10982
10983 fi
10984
10985   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10986
10987   # This implies no fast_install, which is unacceptable.
10988   # Some rework will be needed to allow for fast_install
10989   # before this can be enabled.
10990   hardcode_into_libs=yes
10991
10992   # Append ld.so.conf contents to the search path
10993   if test -f /etc/ld.so.conf; then
10994     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10995     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10996   fi
10997
10998   # We used to test for /lib/ld.so.1 and disable shared libraries on
10999   # powerpc, because MkLinux only supported shared libraries with the
11000   # GNU dynamic linker.  Since this was broken with cross compilers,
11001   # most powerpc-linux boxes support dynamic linking these days and
11002   # people can always --disable-shared, the test was removed, and we
11003   # assume the GNU/Linux dynamic linker is in use.
11004   dynamic_linker='GNU/Linux ld.so'
11005   ;;
11006
11007 netbsdelf*-gnu)
11008   version_type=linux
11009   need_lib_prefix=no
11010   need_version=no
11011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11012   soname_spec='${libname}${release}${shared_ext}$major'
11013   shlibpath_var=LD_LIBRARY_PATH
11014   shlibpath_overrides_runpath=no
11015   hardcode_into_libs=yes
11016   dynamic_linker='NetBSD ld.elf_so'
11017   ;;
11018
11019 netbsd*)
11020   version_type=sunos
11021   need_lib_prefix=no
11022   need_version=no
11023   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11025     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11026     dynamic_linker='NetBSD (a.out) ld.so'
11027   else
11028     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11029     soname_spec='${libname}${release}${shared_ext}$major'
11030     dynamic_linker='NetBSD ld.elf_so'
11031   fi
11032   shlibpath_var=LD_LIBRARY_PATH
11033   shlibpath_overrides_runpath=yes
11034   hardcode_into_libs=yes
11035   ;;
11036
11037 newsos6)
11038   version_type=linux # correct to gnu/linux during the next big refactor
11039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040   shlibpath_var=LD_LIBRARY_PATH
11041   shlibpath_overrides_runpath=yes
11042   ;;
11043
11044 *nto* | *qnx*)
11045   version_type=qnx
11046   need_lib_prefix=no
11047   need_version=no
11048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049   soname_spec='${libname}${release}${shared_ext}$major'
11050   shlibpath_var=LD_LIBRARY_PATH
11051   shlibpath_overrides_runpath=no
11052   hardcode_into_libs=yes
11053   dynamic_linker='ldqnx.so'
11054   ;;
11055
11056 openbsd*)
11057   version_type=sunos
11058   sys_lib_dlsearch_path_spec="/usr/lib"
11059   need_lib_prefix=no
11060   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11061   case $host_os in
11062     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11063     *)                          need_version=no  ;;
11064   esac
11065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11066   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11067   shlibpath_var=LD_LIBRARY_PATH
11068   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11069     case $host_os in
11070       openbsd2.[89] | openbsd2.[89].*)
11071         shlibpath_overrides_runpath=no
11072         ;;
11073       *)
11074         shlibpath_overrides_runpath=yes
11075         ;;
11076       esac
11077   else
11078     shlibpath_overrides_runpath=yes
11079   fi
11080   ;;
11081
11082 os2*)
11083   libname_spec='$name'
11084   shrext_cmds=".dll"
11085   need_lib_prefix=no
11086   library_names_spec='$libname${shared_ext} $libname.a'
11087   dynamic_linker='OS/2 ld.exe'
11088   shlibpath_var=LIBPATH
11089   ;;
11090
11091 osf3* | osf4* | osf5*)
11092   version_type=osf
11093   need_lib_prefix=no
11094   need_version=no
11095   soname_spec='${libname}${release}${shared_ext}$major'
11096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11097   shlibpath_var=LD_LIBRARY_PATH
11098   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11099   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11100   ;;
11101
11102 rdos*)
11103   dynamic_linker=no
11104   ;;
11105
11106 solaris*)
11107   version_type=linux # correct to gnu/linux during the next big refactor
11108   need_lib_prefix=no
11109   need_version=no
11110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111   soname_spec='${libname}${release}${shared_ext}$major'
11112   shlibpath_var=LD_LIBRARY_PATH
11113   shlibpath_overrides_runpath=yes
11114   hardcode_into_libs=yes
11115   # ldd complains unless libraries are executable
11116   postinstall_cmds='chmod +x $lib'
11117   ;;
11118
11119 sunos4*)
11120   version_type=sunos
11121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11122   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11123   shlibpath_var=LD_LIBRARY_PATH
11124   shlibpath_overrides_runpath=yes
11125   if test "$with_gnu_ld" = yes; then
11126     need_lib_prefix=no
11127   fi
11128   need_version=yes
11129   ;;
11130
11131 sysv4 | sysv4.3*)
11132   version_type=linux # correct to gnu/linux during the next big refactor
11133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11134   soname_spec='${libname}${release}${shared_ext}$major'
11135   shlibpath_var=LD_LIBRARY_PATH
11136   case $host_vendor in
11137     sni)
11138       shlibpath_overrides_runpath=no
11139       need_lib_prefix=no
11140       runpath_var=LD_RUN_PATH
11141       ;;
11142     siemens)
11143       need_lib_prefix=no
11144       ;;
11145     motorola)
11146       need_lib_prefix=no
11147       need_version=no
11148       shlibpath_overrides_runpath=no
11149       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11150       ;;
11151   esac
11152   ;;
11153
11154 sysv4*MP*)
11155   if test -d /usr/nec ;then
11156     version_type=linux # correct to gnu/linux during the next big refactor
11157     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11158     soname_spec='$libname${shared_ext}.$major'
11159     shlibpath_var=LD_LIBRARY_PATH
11160   fi
11161   ;;
11162
11163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11164   version_type=freebsd-elf
11165   need_lib_prefix=no
11166   need_version=no
11167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11168   soname_spec='${libname}${release}${shared_ext}$major'
11169   shlibpath_var=LD_LIBRARY_PATH
11170   shlibpath_overrides_runpath=yes
11171   hardcode_into_libs=yes
11172   if test "$with_gnu_ld" = yes; then
11173     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11174   else
11175     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11176     case $host_os in
11177       sco3.2v5*)
11178         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11179         ;;
11180     esac
11181   fi
11182   sys_lib_dlsearch_path_spec='/usr/lib'
11183   ;;
11184
11185 tpf*)
11186   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11187   version_type=linux # correct to gnu/linux during the next big refactor
11188   need_lib_prefix=no
11189   need_version=no
11190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191   shlibpath_var=LD_LIBRARY_PATH
11192   shlibpath_overrides_runpath=no
11193   hardcode_into_libs=yes
11194   ;;
11195
11196 uts4*)
11197   version_type=linux # correct to gnu/linux during the next big refactor
11198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11199   soname_spec='${libname}${release}${shared_ext}$major'
11200   shlibpath_var=LD_LIBRARY_PATH
11201   ;;
11202
11203 *)
11204   dynamic_linker=no
11205   ;;
11206 esac
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11208 $as_echo "$dynamic_linker" >&6; }
11209 test "$dynamic_linker" = no && can_build_shared=no
11210
11211 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11212 if test "$GCC" = yes; then
11213   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11214 fi
11215
11216 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11217   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11218 fi
11219 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11220   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11221 fi
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11315 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11316 hardcode_action=
11317 if test -n "$hardcode_libdir_flag_spec" ||
11318    test -n "$runpath_var" ||
11319    test "X$hardcode_automatic" = "Xyes" ; then
11320
11321   # We can hardcode non-existent directories.
11322   if test "$hardcode_direct" != no &&
11323      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11324      # have to relink, otherwise we might link with an installed library
11325      # when we should be linking with a yet-to-be-installed one
11326      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11327      test "$hardcode_minus_L" != no; then
11328     # Linking always hardcodes the temporary library directory.
11329     hardcode_action=relink
11330   else
11331     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11332     hardcode_action=immediate
11333   fi
11334 else
11335   # We cannot hardcode anything, or else we can only hardcode existing
11336   # directories.
11337   hardcode_action=unsupported
11338 fi
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11340 $as_echo "$hardcode_action" >&6; }
11341
11342 if test "$hardcode_action" = relink ||
11343    test "$inherit_rpath" = yes; then
11344   # Fast installation is not supported
11345   enable_fast_install=no
11346 elif test "$shlibpath_overrides_runpath" = yes ||
11347      test "$enable_shared" = no; then
11348   # Fast installation is not necessary
11349   enable_fast_install=needless
11350 fi
11351
11352
11353
11354
11355
11356
11357   if test "x$enable_dlopen" != xyes; then
11358   enable_dlopen=unknown
11359   enable_dlopen_self=unknown
11360   enable_dlopen_self_static=unknown
11361 else
11362   lt_cv_dlopen=no
11363   lt_cv_dlopen_libs=
11364
11365   case $host_os in
11366   beos*)
11367     lt_cv_dlopen="load_add_on"
11368     lt_cv_dlopen_libs=
11369     lt_cv_dlopen_self=yes
11370     ;;
11371
11372   mingw* | pw32* | cegcc*)
11373     lt_cv_dlopen="LoadLibrary"
11374     lt_cv_dlopen_libs=
11375     ;;
11376
11377   cygwin*)
11378     lt_cv_dlopen="dlopen"
11379     lt_cv_dlopen_libs=
11380     ;;
11381
11382   darwin*)
11383   # if libdl is installed we need to link against it
11384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11385 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11386 if ${ac_cv_lib_dl_dlopen+:} false; then :
11387   $as_echo_n "(cached) " >&6
11388 else
11389   ac_check_lib_save_LIBS=$LIBS
11390 LIBS="-ldl  $LIBS"
11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h.  */
11393
11394 /* Override any GCC internal prototype to avoid an error.
11395    Use char because int might match the return type of a GCC
11396    builtin and then its argument prototype would still apply.  */
11397 #ifdef __cplusplus
11398 extern "C"
11399 #endif
11400 char dlopen ();
11401 int
11402 main ()
11403 {
11404 return dlopen ();
11405   ;
11406   return 0;
11407 }
11408 _ACEOF
11409 if ac_fn_c_try_link "$LINENO"; then :
11410   ac_cv_lib_dl_dlopen=yes
11411 else
11412   ac_cv_lib_dl_dlopen=no
11413 fi
11414 rm -f core conftest.err conftest.$ac_objext \
11415     conftest$ac_exeext conftest.$ac_ext
11416 LIBS=$ac_check_lib_save_LIBS
11417 fi
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11419 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11420 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11421   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11422 else
11423
11424     lt_cv_dlopen="dyld"
11425     lt_cv_dlopen_libs=
11426     lt_cv_dlopen_self=yes
11427
11428 fi
11429
11430     ;;
11431
11432   *)
11433     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11434 if test "x$ac_cv_func_shl_load" = xyes; then :
11435   lt_cv_dlopen="shl_load"
11436 else
11437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11438 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11439 if ${ac_cv_lib_dld_shl_load+:} false; then :
11440   $as_echo_n "(cached) " >&6
11441 else
11442   ac_check_lib_save_LIBS=$LIBS
11443 LIBS="-ldld  $LIBS"
11444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445 /* end confdefs.h.  */
11446
11447 /* Override any GCC internal prototype to avoid an error.
11448    Use char because int might match the return type of a GCC
11449    builtin and then its argument prototype would still apply.  */
11450 #ifdef __cplusplus
11451 extern "C"
11452 #endif
11453 char shl_load ();
11454 int
11455 main ()
11456 {
11457 return shl_load ();
11458   ;
11459   return 0;
11460 }
11461 _ACEOF
11462 if ac_fn_c_try_link "$LINENO"; then :
11463   ac_cv_lib_dld_shl_load=yes
11464 else
11465   ac_cv_lib_dld_shl_load=no
11466 fi
11467 rm -f core conftest.err conftest.$ac_objext \
11468     conftest$ac_exeext conftest.$ac_ext
11469 LIBS=$ac_check_lib_save_LIBS
11470 fi
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11472 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11473 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11474   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11475 else
11476   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11477 if test "x$ac_cv_func_dlopen" = xyes; then :
11478   lt_cv_dlopen="dlopen"
11479 else
11480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11481 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11482 if ${ac_cv_lib_dl_dlopen+:} false; then :
11483   $as_echo_n "(cached) " >&6
11484 else
11485   ac_check_lib_save_LIBS=$LIBS
11486 LIBS="-ldl  $LIBS"
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h.  */
11489
11490 /* Override any GCC internal prototype to avoid an error.
11491    Use char because int might match the return type of a GCC
11492    builtin and then its argument prototype would still apply.  */
11493 #ifdef __cplusplus
11494 extern "C"
11495 #endif
11496 char dlopen ();
11497 int
11498 main ()
11499 {
11500 return dlopen ();
11501   ;
11502   return 0;
11503 }
11504 _ACEOF
11505 if ac_fn_c_try_link "$LINENO"; then :
11506   ac_cv_lib_dl_dlopen=yes
11507 else
11508   ac_cv_lib_dl_dlopen=no
11509 fi
11510 rm -f core conftest.err conftest.$ac_objext \
11511     conftest$ac_exeext conftest.$ac_ext
11512 LIBS=$ac_check_lib_save_LIBS
11513 fi
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11515 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11516 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11517   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11518 else
11519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11520 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11521 if ${ac_cv_lib_svld_dlopen+:} false; then :
11522   $as_echo_n "(cached) " >&6
11523 else
11524   ac_check_lib_save_LIBS=$LIBS
11525 LIBS="-lsvld  $LIBS"
11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h.  */
11528
11529 /* Override any GCC internal prototype to avoid an error.
11530    Use char because int might match the return type of a GCC
11531    builtin and then its argument prototype would still apply.  */
11532 #ifdef __cplusplus
11533 extern "C"
11534 #endif
11535 char dlopen ();
11536 int
11537 main ()
11538 {
11539 return dlopen ();
11540   ;
11541   return 0;
11542 }
11543 _ACEOF
11544 if ac_fn_c_try_link "$LINENO"; then :
11545   ac_cv_lib_svld_dlopen=yes
11546 else
11547   ac_cv_lib_svld_dlopen=no
11548 fi
11549 rm -f core conftest.err conftest.$ac_objext \
11550     conftest$ac_exeext conftest.$ac_ext
11551 LIBS=$ac_check_lib_save_LIBS
11552 fi
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11554 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11555 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11556   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11557 else
11558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11559 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11560 if ${ac_cv_lib_dld_dld_link+:} false; then :
11561   $as_echo_n "(cached) " >&6
11562 else
11563   ac_check_lib_save_LIBS=$LIBS
11564 LIBS="-ldld  $LIBS"
11565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566 /* end confdefs.h.  */
11567
11568 /* Override any GCC internal prototype to avoid an error.
11569    Use char because int might match the return type of a GCC
11570    builtin and then its argument prototype would still apply.  */
11571 #ifdef __cplusplus
11572 extern "C"
11573 #endif
11574 char dld_link ();
11575 int
11576 main ()
11577 {
11578 return dld_link ();
11579   ;
11580   return 0;
11581 }
11582 _ACEOF
11583 if ac_fn_c_try_link "$LINENO"; then :
11584   ac_cv_lib_dld_dld_link=yes
11585 else
11586   ac_cv_lib_dld_dld_link=no
11587 fi
11588 rm -f core conftest.err conftest.$ac_objext \
11589     conftest$ac_exeext conftest.$ac_ext
11590 LIBS=$ac_check_lib_save_LIBS
11591 fi
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11593 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11594 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11595   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11596 fi
11597
11598
11599 fi
11600
11601
11602 fi
11603
11604
11605 fi
11606
11607
11608 fi
11609
11610
11611 fi
11612
11613     ;;
11614   esac
11615
11616   if test "x$lt_cv_dlopen" != xno; then
11617     enable_dlopen=yes
11618   else
11619     enable_dlopen=no
11620   fi
11621
11622   case $lt_cv_dlopen in
11623   dlopen)
11624     save_CPPFLAGS="$CPPFLAGS"
11625     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11626
11627     save_LDFLAGS="$LDFLAGS"
11628     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11629
11630     save_LIBS="$LIBS"
11631     LIBS="$lt_cv_dlopen_libs $LIBS"
11632
11633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11634 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11635 if ${lt_cv_dlopen_self+:} false; then :
11636   $as_echo_n "(cached) " >&6
11637 else
11638           if test "$cross_compiling" = yes; then :
11639   lt_cv_dlopen_self=cross
11640 else
11641   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11642   lt_status=$lt_dlunknown
11643   cat > conftest.$ac_ext <<_LT_EOF
11644 #line $LINENO "configure"
11645 #include "confdefs.h"
11646
11647 #if HAVE_DLFCN_H
11648 #include <dlfcn.h>
11649 #endif
11650
11651 #include <stdio.h>
11652
11653 #ifdef RTLD_GLOBAL
11654 #  define LT_DLGLOBAL           RTLD_GLOBAL
11655 #else
11656 #  ifdef DL_GLOBAL
11657 #    define LT_DLGLOBAL         DL_GLOBAL
11658 #  else
11659 #    define LT_DLGLOBAL         0
11660 #  endif
11661 #endif
11662
11663 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11664    find out it does not work in some platform. */
11665 #ifndef LT_DLLAZY_OR_NOW
11666 #  ifdef RTLD_LAZY
11667 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11668 #  else
11669 #    ifdef DL_LAZY
11670 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11671 #    else
11672 #      ifdef RTLD_NOW
11673 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11674 #      else
11675 #        ifdef DL_NOW
11676 #          define LT_DLLAZY_OR_NOW      DL_NOW
11677 #        else
11678 #          define LT_DLLAZY_OR_NOW      0
11679 #        endif
11680 #      endif
11681 #    endif
11682 #  endif
11683 #endif
11684
11685 /* When -fvisbility=hidden is used, assume the code has been annotated
11686    correspondingly for the symbols needed.  */
11687 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11688 int fnord () __attribute__((visibility("default")));
11689 #endif
11690
11691 int fnord () { return 42; }
11692 int main ()
11693 {
11694   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11695   int status = $lt_dlunknown;
11696
11697   if (self)
11698     {
11699       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11700       else
11701         {
11702           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11703           else puts (dlerror ());
11704         }
11705       /* dlclose (self); */
11706     }
11707   else
11708     puts (dlerror ());
11709
11710   return status;
11711 }
11712 _LT_EOF
11713   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11714   (eval $ac_link) 2>&5
11715   ac_status=$?
11716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11717   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11718     (./conftest; exit; ) >&5 2>/dev/null
11719     lt_status=$?
11720     case x$lt_status in
11721       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11722       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11723       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11724     esac
11725   else :
11726     # compilation failed
11727     lt_cv_dlopen_self=no
11728   fi
11729 fi
11730 rm -fr conftest*
11731
11732
11733 fi
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11735 $as_echo "$lt_cv_dlopen_self" >&6; }
11736
11737     if test "x$lt_cv_dlopen_self" = xyes; then
11738       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11739       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11740 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11741 if ${lt_cv_dlopen_self_static+:} false; then :
11742   $as_echo_n "(cached) " >&6
11743 else
11744           if test "$cross_compiling" = yes; then :
11745   lt_cv_dlopen_self_static=cross
11746 else
11747   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11748   lt_status=$lt_dlunknown
11749   cat > conftest.$ac_ext <<_LT_EOF
11750 #line $LINENO "configure"
11751 #include "confdefs.h"
11752
11753 #if HAVE_DLFCN_H
11754 #include <dlfcn.h>
11755 #endif
11756
11757 #include <stdio.h>
11758
11759 #ifdef RTLD_GLOBAL
11760 #  define LT_DLGLOBAL           RTLD_GLOBAL
11761 #else
11762 #  ifdef DL_GLOBAL
11763 #    define LT_DLGLOBAL         DL_GLOBAL
11764 #  else
11765 #    define LT_DLGLOBAL         0
11766 #  endif
11767 #endif
11768
11769 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11770    find out it does not work in some platform. */
11771 #ifndef LT_DLLAZY_OR_NOW
11772 #  ifdef RTLD_LAZY
11773 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11774 #  else
11775 #    ifdef DL_LAZY
11776 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11777 #    else
11778 #      ifdef RTLD_NOW
11779 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11780 #      else
11781 #        ifdef DL_NOW
11782 #          define LT_DLLAZY_OR_NOW      DL_NOW
11783 #        else
11784 #          define LT_DLLAZY_OR_NOW      0
11785 #        endif
11786 #      endif
11787 #    endif
11788 #  endif
11789 #endif
11790
11791 /* When -fvisbility=hidden is used, assume the code has been annotated
11792    correspondingly for the symbols needed.  */
11793 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11794 int fnord () __attribute__((visibility("default")));
11795 #endif
11796
11797 int fnord () { return 42; }
11798 int main ()
11799 {
11800   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11801   int status = $lt_dlunknown;
11802
11803   if (self)
11804     {
11805       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11806       else
11807         {
11808           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11809           else puts (dlerror ());
11810         }
11811       /* dlclose (self); */
11812     }
11813   else
11814     puts (dlerror ());
11815
11816   return status;
11817 }
11818 _LT_EOF
11819   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11820   (eval $ac_link) 2>&5
11821   ac_status=$?
11822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11823   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11824     (./conftest; exit; ) >&5 2>/dev/null
11825     lt_status=$?
11826     case x$lt_status in
11827       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11828       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11829       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11830     esac
11831   else :
11832     # compilation failed
11833     lt_cv_dlopen_self_static=no
11834   fi
11835 fi
11836 rm -fr conftest*
11837
11838
11839 fi
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11841 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11842     fi
11843
11844     CPPFLAGS="$save_CPPFLAGS"
11845     LDFLAGS="$save_LDFLAGS"
11846     LIBS="$save_LIBS"
11847     ;;
11848   esac
11849
11850   case $lt_cv_dlopen_self in
11851   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11852   *) enable_dlopen_self=unknown ;;
11853   esac
11854
11855   case $lt_cv_dlopen_self_static in
11856   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11857   *) enable_dlopen_self_static=unknown ;;
11858   esac
11859 fi
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877 striplib=
11878 old_striplib=
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11880 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11881 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11882   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11883   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11885 $as_echo "yes" >&6; }
11886 else
11887 # FIXME - insert some real tests, host_os isn't really good enough
11888   case $host_os in
11889   darwin*)
11890     if test -n "$STRIP" ; then
11891       striplib="$STRIP -x"
11892       old_striplib="$STRIP -S"
11893       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11894 $as_echo "yes" >&6; }
11895     else
11896       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11898     fi
11899     ;;
11900   *)
11901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11903     ;;
11904   esac
11905 fi
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918   # Report which library types will actually be built
11919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11920 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11922 $as_echo "$can_build_shared" >&6; }
11923
11924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11925 $as_echo_n "checking whether to build shared libraries... " >&6; }
11926   test "$can_build_shared" = "no" && enable_shared=no
11927
11928   # On AIX, shared libraries and static libraries use the same namespace, and
11929   # are all built from PIC.
11930   case $host_os in
11931   aix3*)
11932     test "$enable_shared" = yes && enable_static=no
11933     if test -n "$RANLIB"; then
11934       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11935       postinstall_cmds='$RANLIB $lib'
11936     fi
11937     ;;
11938
11939   aix[4-9]*)
11940     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11941       test "$enable_shared" = yes && enable_static=no
11942     fi
11943     ;;
11944   esac
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11946 $as_echo "$enable_shared" >&6; }
11947
11948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11949 $as_echo_n "checking whether to build static libraries... " >&6; }
11950   # Make sure either enable_shared or enable_static is yes.
11951   test "$enable_shared" = yes || enable_static=yes
11952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11953 $as_echo "$enable_static" >&6; }
11954
11955
11956
11957
11958 fi
11959 ac_ext=c
11960 ac_cpp='$CPP $CPPFLAGS'
11961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11964
11965 CC="$lt_save_CC"
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981         ac_config_commands="$ac_config_commands libtool"
11982
11983
11984
11985
11986 # Only expand once:
11987
11988
11989
11990
11991
11992   for ac_func in $ac_func_list
11993 do :
11994   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11995 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11996 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11997   cat >>confdefs.h <<_ACEOF
11998 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11999 _ACEOF
12000
12001 fi
12002 done
12003
12004
12005
12006
12007
12008
12009
12010 # Checks for programs.
12011
12012
12013
12014
12015
12016
12017
12018 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12019         if test -n "$ac_tool_prefix"; then
12020   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12021 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12023 $as_echo_n "checking for $ac_word... " >&6; }
12024 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12025   $as_echo_n "(cached) " >&6
12026 else
12027   case $PKG_CONFIG in
12028   [\\/]* | ?:[\\/]*)
12029   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12030   ;;
12031   *)
12032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033 for as_dir in $PATH
12034 do
12035   IFS=$as_save_IFS
12036   test -z "$as_dir" && as_dir=.
12037     for ac_exec_ext in '' $ac_executable_extensions; do
12038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12039     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12041     break 2
12042   fi
12043 done
12044   done
12045 IFS=$as_save_IFS
12046
12047   ;;
12048 esac
12049 fi
12050 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12051 if test -n "$PKG_CONFIG"; then
12052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12053 $as_echo "$PKG_CONFIG" >&6; }
12054 else
12055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056 $as_echo "no" >&6; }
12057 fi
12058
12059
12060 fi
12061 if test -z "$ac_cv_path_PKG_CONFIG"; then
12062   ac_pt_PKG_CONFIG=$PKG_CONFIG
12063   # Extract the first word of "pkg-config", so it can be a program name with args.
12064 set dummy pkg-config; ac_word=$2
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12066 $as_echo_n "checking for $ac_word... " >&6; }
12067 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12068   $as_echo_n "(cached) " >&6
12069 else
12070   case $ac_pt_PKG_CONFIG in
12071   [\\/]* | ?:[\\/]*)
12072   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12073   ;;
12074   *)
12075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076 for as_dir in $PATH
12077 do
12078   IFS=$as_save_IFS
12079   test -z "$as_dir" && as_dir=.
12080     for ac_exec_ext in '' $ac_executable_extensions; do
12081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12082     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12084     break 2
12085   fi
12086 done
12087   done
12088 IFS=$as_save_IFS
12089
12090   ;;
12091 esac
12092 fi
12093 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12094 if test -n "$ac_pt_PKG_CONFIG"; then
12095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12096 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12097 else
12098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099 $as_echo "no" >&6; }
12100 fi
12101
12102   if test "x$ac_pt_PKG_CONFIG" = x; then
12103     PKG_CONFIG=""
12104   else
12105     case $cross_compiling:$ac_tool_warned in
12106 yes:)
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12109 ac_tool_warned=yes ;;
12110 esac
12111     PKG_CONFIG=$ac_pt_PKG_CONFIG
12112   fi
12113 else
12114   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12115 fi
12116
12117 fi
12118 if test -n "$PKG_CONFIG"; then
12119         _pkg_min_version=0.23
12120         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12121 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12122         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12123                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12124 $as_echo "yes" >&6; }
12125         else
12126                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12128                 PKG_CONFIG=""
12129         fi
12130 fi
12131 ac_ext=c
12132 ac_cpp='$CPP $CPPFLAGS'
12133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12136 if test -n "$ac_tool_prefix"; then
12137   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12138 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140 $as_echo_n "checking for $ac_word... " >&6; }
12141 if ${ac_cv_prog_CC+:} false; then :
12142   $as_echo_n "(cached) " >&6
12143 else
12144   if test -n "$CC"; then
12145   ac_cv_prog_CC="$CC" # Let the user override the test.
12146 else
12147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148 for as_dir in $PATH
12149 do
12150   IFS=$as_save_IFS
12151   test -z "$as_dir" && as_dir=.
12152     for ac_exec_ext in '' $ac_executable_extensions; do
12153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12154     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12156     break 2
12157   fi
12158 done
12159   done
12160 IFS=$as_save_IFS
12161
12162 fi
12163 fi
12164 CC=$ac_cv_prog_CC
12165 if test -n "$CC"; then
12166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12167 $as_echo "$CC" >&6; }
12168 else
12169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170 $as_echo "no" >&6; }
12171 fi
12172
12173
12174 fi
12175 if test -z "$ac_cv_prog_CC"; then
12176   ac_ct_CC=$CC
12177   # Extract the first word of "gcc", so it can be a program name with args.
12178 set dummy gcc; ac_word=$2
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180 $as_echo_n "checking for $ac_word... " >&6; }
12181 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12182   $as_echo_n "(cached) " >&6
12183 else
12184   if test -n "$ac_ct_CC"; then
12185   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12186 else
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12189 do
12190   IFS=$as_save_IFS
12191   test -z "$as_dir" && as_dir=.
12192     for ac_exec_ext in '' $ac_executable_extensions; do
12193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12194     ac_cv_prog_ac_ct_CC="gcc"
12195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12196     break 2
12197   fi
12198 done
12199   done
12200 IFS=$as_save_IFS
12201
12202 fi
12203 fi
12204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12205 if test -n "$ac_ct_CC"; then
12206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12207 $as_echo "$ac_ct_CC" >&6; }
12208 else
12209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12211 fi
12212
12213   if test "x$ac_ct_CC" = x; then
12214     CC=""
12215   else
12216     case $cross_compiling:$ac_tool_warned in
12217 yes:)
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12220 ac_tool_warned=yes ;;
12221 esac
12222     CC=$ac_ct_CC
12223   fi
12224 else
12225   CC="$ac_cv_prog_CC"
12226 fi
12227
12228 if test -z "$CC"; then
12229           if test -n "$ac_tool_prefix"; then
12230     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12231 set dummy ${ac_tool_prefix}cc; ac_word=$2
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12233 $as_echo_n "checking for $ac_word... " >&6; }
12234 if ${ac_cv_prog_CC+:} false; then :
12235   $as_echo_n "(cached) " >&6
12236 else
12237   if test -n "$CC"; then
12238   ac_cv_prog_CC="$CC" # Let the user override the test.
12239 else
12240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241 for as_dir in $PATH
12242 do
12243   IFS=$as_save_IFS
12244   test -z "$as_dir" && as_dir=.
12245     for ac_exec_ext in '' $ac_executable_extensions; do
12246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12247     ac_cv_prog_CC="${ac_tool_prefix}cc"
12248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12249     break 2
12250   fi
12251 done
12252   done
12253 IFS=$as_save_IFS
12254
12255 fi
12256 fi
12257 CC=$ac_cv_prog_CC
12258 if test -n "$CC"; then
12259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12260 $as_echo "$CC" >&6; }
12261 else
12262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12264 fi
12265
12266
12267   fi
12268 fi
12269 if test -z "$CC"; then
12270   # Extract the first word of "cc", so it can be a program name with args.
12271 set dummy cc; ac_word=$2
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273 $as_echo_n "checking for $ac_word... " >&6; }
12274 if ${ac_cv_prog_CC+:} false; then :
12275   $as_echo_n "(cached) " >&6
12276 else
12277   if test -n "$CC"; then
12278   ac_cv_prog_CC="$CC" # Let the user override the test.
12279 else
12280   ac_prog_rejected=no
12281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282 for as_dir in $PATH
12283 do
12284   IFS=$as_save_IFS
12285   test -z "$as_dir" && as_dir=.
12286     for ac_exec_ext in '' $ac_executable_extensions; do
12287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12288     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12289        ac_prog_rejected=yes
12290        continue
12291      fi
12292     ac_cv_prog_CC="cc"
12293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12294     break 2
12295   fi
12296 done
12297   done
12298 IFS=$as_save_IFS
12299
12300 if test $ac_prog_rejected = yes; then
12301   # We found a bogon in the path, so make sure we never use it.
12302   set dummy $ac_cv_prog_CC
12303   shift
12304   if test $# != 0; then
12305     # We chose a different compiler from the bogus one.
12306     # However, it has the same basename, so the bogon will be chosen
12307     # first if we set CC to just the basename; use the full file name.
12308     shift
12309     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12310   fi
12311 fi
12312 fi
12313 fi
12314 CC=$ac_cv_prog_CC
12315 if test -n "$CC"; then
12316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12317 $as_echo "$CC" >&6; }
12318 else
12319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12320 $as_echo "no" >&6; }
12321 fi
12322
12323
12324 fi
12325 if test -z "$CC"; then
12326   if test -n "$ac_tool_prefix"; then
12327   for ac_prog in cl.exe
12328   do
12329     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12332 $as_echo_n "checking for $ac_word... " >&6; }
12333 if ${ac_cv_prog_CC+:} false; then :
12334   $as_echo_n "(cached) " >&6
12335 else
12336   if test -n "$CC"; then
12337   ac_cv_prog_CC="$CC" # Let the user override the test.
12338 else
12339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340 for as_dir in $PATH
12341 do
12342   IFS=$as_save_IFS
12343   test -z "$as_dir" && as_dir=.
12344     for ac_exec_ext in '' $ac_executable_extensions; do
12345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12346     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12348     break 2
12349   fi
12350 done
12351   done
12352 IFS=$as_save_IFS
12353
12354 fi
12355 fi
12356 CC=$ac_cv_prog_CC
12357 if test -n "$CC"; then
12358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12359 $as_echo "$CC" >&6; }
12360 else
12361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362 $as_echo "no" >&6; }
12363 fi
12364
12365
12366     test -n "$CC" && break
12367   done
12368 fi
12369 if test -z "$CC"; then
12370   ac_ct_CC=$CC
12371   for ac_prog in cl.exe
12372 do
12373   # Extract the first word of "$ac_prog", so it can be a program name with args.
12374 set dummy $ac_prog; ac_word=$2
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376 $as_echo_n "checking for $ac_word... " >&6; }
12377 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12378   $as_echo_n "(cached) " >&6
12379 else
12380   if test -n "$ac_ct_CC"; then
12381   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12382 else
12383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384 for as_dir in $PATH
12385 do
12386   IFS=$as_save_IFS
12387   test -z "$as_dir" && as_dir=.
12388     for ac_exec_ext in '' $ac_executable_extensions; do
12389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12390     ac_cv_prog_ac_ct_CC="$ac_prog"
12391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12392     break 2
12393   fi
12394 done
12395   done
12396 IFS=$as_save_IFS
12397
12398 fi
12399 fi
12400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12401 if test -n "$ac_ct_CC"; then
12402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12403 $as_echo "$ac_ct_CC" >&6; }
12404 else
12405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12407 fi
12408
12409
12410   test -n "$ac_ct_CC" && break
12411 done
12412
12413   if test "x$ac_ct_CC" = x; then
12414     CC=""
12415   else
12416     case $cross_compiling:$ac_tool_warned in
12417 yes:)
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12420 ac_tool_warned=yes ;;
12421 esac
12422     CC=$ac_ct_CC
12423   fi
12424 fi
12425
12426 fi
12427
12428
12429 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12431 as_fn_error $? "no acceptable C compiler found in \$PATH
12432 See \`config.log' for more details" "$LINENO" 5; }
12433
12434 # Provide some information about the compiler.
12435 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12436 set X $ac_compile
12437 ac_compiler=$2
12438 for ac_option in --version -v -V -qversion; do
12439   { { ac_try="$ac_compiler $ac_option >&5"
12440 case "(($ac_try" in
12441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442   *) ac_try_echo=$ac_try;;
12443 esac
12444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12445 $as_echo "$ac_try_echo"; } >&5
12446   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12447   ac_status=$?
12448   if test -s conftest.err; then
12449     sed '10a\
12450 ... rest of stderr output deleted ...
12451          10q' conftest.err >conftest.er1
12452     cat conftest.er1 >&5
12453   fi
12454   rm -f conftest.er1 conftest.err
12455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12456   test $ac_status = 0; }
12457 done
12458
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12460 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12461 if ${ac_cv_c_compiler_gnu+:} false; then :
12462   $as_echo_n "(cached) " >&6
12463 else
12464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h.  */
12466
12467 int
12468 main ()
12469 {
12470 #ifndef __GNUC__
12471        choke me
12472 #endif
12473
12474   ;
12475   return 0;
12476 }
12477 _ACEOF
12478 if ac_fn_c_try_compile "$LINENO"; then :
12479   ac_compiler_gnu=yes
12480 else
12481   ac_compiler_gnu=no
12482 fi
12483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12485
12486 fi
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12488 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12489 if test $ac_compiler_gnu = yes; then
12490   GCC=yes
12491 else
12492   GCC=
12493 fi
12494 ac_test_CFLAGS=${CFLAGS+set}
12495 ac_save_CFLAGS=$CFLAGS
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12497 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12498 if ${ac_cv_prog_cc_g+:} false; then :
12499   $as_echo_n "(cached) " >&6
12500 else
12501   ac_save_c_werror_flag=$ac_c_werror_flag
12502    ac_c_werror_flag=yes
12503    ac_cv_prog_cc_g=no
12504    CFLAGS="-g"
12505    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h.  */
12507
12508 int
12509 main ()
12510 {
12511
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 if ac_fn_c_try_compile "$LINENO"; then :
12517   ac_cv_prog_cc_g=yes
12518 else
12519   CFLAGS=""
12520       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h.  */
12522
12523 int
12524 main ()
12525 {
12526
12527   ;
12528   return 0;
12529 }
12530 _ACEOF
12531 if ac_fn_c_try_compile "$LINENO"; then :
12532
12533 else
12534   ac_c_werror_flag=$ac_save_c_werror_flag
12535          CFLAGS="-g"
12536          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h.  */
12538
12539 int
12540 main ()
12541 {
12542
12543   ;
12544   return 0;
12545 }
12546 _ACEOF
12547 if ac_fn_c_try_compile "$LINENO"; then :
12548   ac_cv_prog_cc_g=yes
12549 fi
12550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551 fi
12552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555    ac_c_werror_flag=$ac_save_c_werror_flag
12556 fi
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12558 $as_echo "$ac_cv_prog_cc_g" >&6; }
12559 if test "$ac_test_CFLAGS" = set; then
12560   CFLAGS=$ac_save_CFLAGS
12561 elif test $ac_cv_prog_cc_g = yes; then
12562   if test "$GCC" = yes; then
12563     CFLAGS="-g -O2"
12564   else
12565     CFLAGS="-g"
12566   fi
12567 else
12568   if test "$GCC" = yes; then
12569     CFLAGS="-O2"
12570   else
12571     CFLAGS=
12572   fi
12573 fi
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12575 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12576 if ${ac_cv_prog_cc_c89+:} false; then :
12577   $as_echo_n "(cached) " >&6
12578 else
12579   ac_cv_prog_cc_c89=no
12580 ac_save_CC=$CC
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h.  */
12583 #include <stdarg.h>
12584 #include <stdio.h>
12585 struct stat;
12586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12587 struct buf { int x; };
12588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12589 static char *e (p, i)
12590      char **p;
12591      int i;
12592 {
12593   return p[i];
12594 }
12595 static char *f (char * (*g) (char **, int), char **p, ...)
12596 {
12597   char *s;
12598   va_list v;
12599   va_start (v,p);
12600   s = g (p, va_arg (v,int));
12601   va_end (v);
12602   return s;
12603 }
12604
12605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12606    function prototypes and stuff, but not '\xHH' hex character constants.
12607    These don't provoke an error unfortunately, instead are silently treated
12608    as 'x'.  The following induces an error, until -std is added to get
12609    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12610    array size at least.  It's necessary to write '\x00'==0 to get something
12611    that's true only with -std.  */
12612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12613
12614 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12615    inside strings and character constants.  */
12616 #define FOO(x) 'x'
12617 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12618
12619 int test (int i, double x);
12620 struct s1 {int (*f) (int a);};
12621 struct s2 {int (*f) (double a);};
12622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12623 int argc;
12624 char **argv;
12625 int
12626 main ()
12627 {
12628 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12629   ;
12630   return 0;
12631 }
12632 _ACEOF
12633 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12634         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12635 do
12636   CC="$ac_save_CC $ac_arg"
12637   if ac_fn_c_try_compile "$LINENO"; then :
12638   ac_cv_prog_cc_c89=$ac_arg
12639 fi
12640 rm -f core conftest.err conftest.$ac_objext
12641   test "x$ac_cv_prog_cc_c89" != "xno" && break
12642 done
12643 rm -f conftest.$ac_ext
12644 CC=$ac_save_CC
12645
12646 fi
12647 # AC_CACHE_VAL
12648 case "x$ac_cv_prog_cc_c89" in
12649   x)
12650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12651 $as_echo "none needed" >&6; } ;;
12652   xno)
12653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12654 $as_echo "unsupported" >&6; } ;;
12655   *)
12656     CC="$CC $ac_cv_prog_cc_c89"
12657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12658 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12659 esac
12660 if test "x$ac_cv_prog_cc_c89" != xno; then :
12661
12662 fi
12663
12664 ac_ext=c
12665 ac_cpp='$CPP $CPPFLAGS'
12666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12669
12670 ac_ext=c
12671 ac_cpp='$CPP $CPPFLAGS'
12672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12676 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12677 if ${am_cv_prog_cc_c_o+:} false; then :
12678   $as_echo_n "(cached) " >&6
12679 else
12680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h.  */
12682
12683 int
12684 main ()
12685 {
12686
12687   ;
12688   return 0;
12689 }
12690 _ACEOF
12691   # Make sure it works both with $CC and with simple cc.
12692   # Following AC_PROG_CC_C_O, we do the test twice because some
12693   # compilers refuse to overwrite an existing .o file with -o,
12694   # though they will create one.
12695   am_cv_prog_cc_c_o=yes
12696   for am_i in 1 2; do
12697     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12698    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12699    ac_status=$?
12700    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701    (exit $ac_status); } \
12702          && test -f conftest2.$ac_objext; then
12703       : OK
12704     else
12705       am_cv_prog_cc_c_o=no
12706       break
12707     fi
12708   done
12709   rm -f core conftest*
12710   unset am_i
12711 fi
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12713 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12714 if test "$am_cv_prog_cc_c_o" != yes; then
12715    # Losing compiler, so override with the script.
12716    # FIXME: It is wrong to rewrite CC.
12717    # But if we don't then we get into trouble of one sort or another.
12718    # A longer-term fix would be to have automake use am__CC in this case,
12719    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12720    CC="$am_aux_dir/compile $CC"
12721 fi
12722 ac_ext=c
12723 ac_cpp='$CPP $CPPFLAGS'
12724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12727
12728
12729 depcc="$CC"   am_compiler_list=
12730
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12732 $as_echo_n "checking dependency style of $depcc... " >&6; }
12733 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12734   $as_echo_n "(cached) " >&6
12735 else
12736   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12737   # We make a subdir and do the tests there.  Otherwise we can end up
12738   # making bogus files that we don't know about and never remove.  For
12739   # instance it was reported that on HP-UX the gcc test will end up
12740   # making a dummy file named 'D' -- because '-MD' means "put the output
12741   # in D".
12742   rm -rf conftest.dir
12743   mkdir conftest.dir
12744   # Copy depcomp to subdir because otherwise we won't find it if we're
12745   # using a relative directory.
12746   cp "$am_depcomp" conftest.dir
12747   cd conftest.dir
12748   # We will build objects and dependencies in a subdirectory because
12749   # it helps to detect inapplicable dependency modes.  For instance
12750   # both Tru64's cc and ICC support -MD to output dependencies as a
12751   # side effect of compilation, but ICC will put the dependencies in
12752   # the current directory while Tru64 will put them in the object
12753   # directory.
12754   mkdir sub
12755
12756   am_cv_CC_dependencies_compiler_type=none
12757   if test "$am_compiler_list" = ""; then
12758      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12759   fi
12760   am__universal=false
12761   case " $depcc " in #(
12762      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12763      esac
12764
12765   for depmode in $am_compiler_list; do
12766     # Setup a source with many dependencies, because some compilers
12767     # like to wrap large dependency lists on column 80 (with \), and
12768     # we should not choose a depcomp mode which is confused by this.
12769     #
12770     # We need to recreate these files for each test, as the compiler may
12771     # overwrite some of them when testing with obscure command lines.
12772     # This happens at least with the AIX C compiler.
12773     : > sub/conftest.c
12774     for i in 1 2 3 4 5 6; do
12775       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12776       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12777       # Solaris 10 /bin/sh.
12778       echo '/* dummy */' > sub/conftst$i.h
12779     done
12780     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12781
12782     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12783     # mode.  It turns out that the SunPro C++ compiler does not properly
12784     # handle '-M -o', and we need to detect this.  Also, some Intel
12785     # versions had trouble with output in subdirs.
12786     am__obj=sub/conftest.${OBJEXT-o}
12787     am__minus_obj="-o $am__obj"
12788     case $depmode in
12789     gcc)
12790       # This depmode causes a compiler race in universal mode.
12791       test "$am__universal" = false || continue
12792       ;;
12793     nosideeffect)
12794       # After this tag, mechanisms are not by side-effect, so they'll
12795       # only be used when explicitly requested.
12796       if test "x$enable_dependency_tracking" = xyes; then
12797         continue
12798       else
12799         break
12800       fi
12801       ;;
12802     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12803       # This compiler won't grok '-c -o', but also, the minuso test has
12804       # not run yet.  These depmodes are late enough in the game, and
12805       # so weak that their functioning should not be impacted.
12806       am__obj=conftest.${OBJEXT-o}
12807       am__minus_obj=
12808       ;;
12809     none) break ;;
12810     esac
12811     if depmode=$depmode \
12812        source=sub/conftest.c object=$am__obj \
12813        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12814        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12815          >/dev/null 2>conftest.err &&
12816        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12817        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12818        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12819        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12820       # icc doesn't choke on unknown options, it will just issue warnings
12821       # or remarks (even with -Werror).  So we grep stderr for any message
12822       # that says an option was ignored or not supported.
12823       # When given -MP, icc 7.0 and 7.1 complain thusly:
12824       #   icc: Command line warning: ignoring option '-M'; no argument required
12825       # The diagnosis changed in icc 8.0:
12826       #   icc: Command line remark: option '-MP' not supported
12827       if (grep 'ignoring option' conftest.err ||
12828           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12829         am_cv_CC_dependencies_compiler_type=$depmode
12830         break
12831       fi
12832     fi
12833   done
12834
12835   cd ..
12836   rm -rf conftest.dir
12837 else
12838   am_cv_CC_dependencies_compiler_type=none
12839 fi
12840
12841 fi
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12843 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12844 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12845
12846  if
12847   test "x$enable_dependency_tracking" != xno \
12848   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12849   am__fastdepCC_TRUE=
12850   am__fastdepCC_FALSE='#'
12851 else
12852   am__fastdepCC_TRUE='#'
12853   am__fastdepCC_FALSE=
12854 fi
12855
12856
12857
12858 # Extract the first word of "valac", so it can be a program name with args.
12859 set dummy valac; ac_word=$2
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12861 $as_echo_n "checking for $ac_word... " >&6; }
12862 if ${ac_cv_path_VALAC+:} false; then :
12863   $as_echo_n "(cached) " >&6
12864 else
12865   case $VALAC in
12866   [\\/]* | ?:[\\/]*)
12867   ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
12868   ;;
12869   *)
12870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12871 for as_dir in $PATH
12872 do
12873   IFS=$as_save_IFS
12874   test -z "$as_dir" && as_dir=.
12875     for ac_exec_ext in '' $ac_executable_extensions; do
12876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12877     ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
12878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12879     break 2
12880   fi
12881 done
12882   done
12883 IFS=$as_save_IFS
12884
12885   test -z "$ac_cv_path_VALAC" && ac_cv_path_VALAC="valac"
12886   ;;
12887 esac
12888 fi
12889 VALAC=$ac_cv_path_VALAC
12890 if test -n "$VALAC"; then
12891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
12892 $as_echo "$VALAC" >&6; }
12893 else
12894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12896 fi
12897
12898
12899    if test "$VALAC" != valac && test -n "0.9"; then :
12900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $VALAC is at least version 0.9" >&5
12901 $as_echo_n "checking whether $VALAC is at least version 0.9... " >&6; }
12902        am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
12903        as_arg_v1=0.9
12904 as_arg_v2="$am__vala_version"
12905 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12906 case $? in #(
12907   1) :
12908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12909 $as_echo "yes" >&6; } ;; #(
12910   0) :
12911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12912 $as_echo "yes" >&6; } ;; #(
12913   2) :
12914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915 $as_echo "no" >&6; }
12916           VALAC=valac ;; #(
12917   *) :
12918      ;;
12919 esac
12920 fi
12921     if test "$VALAC" = valac; then
12922       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no proper vala compiler found" >&5
12923 $as_echo "$as_me: WARNING: no proper vala compiler found" >&2;}
12924          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: you will not be able to compile vala source files" >&5
12925 $as_echo "$as_me: WARNING: you will not be able to compile vala source files" >&2;}
12926     else
12927       :
12928     fi
12929
12930 # Platform checks
12931
12932
12933 case "$host" in
12934   *-*-mingw*)
12935     win32=yes
12936     macos=no
12937     linux=no
12938     SERVER_IPC_MODULE="msrpc-glib2-1.0"
12939     CLIENT_IPC_MODULE="msrpc-mingw-1.0"
12940
12941 pkg_failed=no
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12943 $as_echo_n "checking for GTK... " >&6; }
12944
12945 if test -n "$GTK_CFLAGS"; then
12946     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12947  elif test -n "$PKG_CONFIG"; then
12948     if test -n "$PKG_CONFIG" && \
12949     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12950   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12951   ac_status=$?
12952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12953   test $ac_status = 0; }; then
12954   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
12955                       test "x$?" != "x0" && pkg_failed=yes
12956 else
12957   pkg_failed=yes
12958 fi
12959  else
12960     pkg_failed=untried
12961 fi
12962 if test -n "$GTK_LIBS"; then
12963     pkg_cv_GTK_LIBS="$GTK_LIBS"
12964  elif test -n "$PKG_CONFIG"; then
12965     if test -n "$PKG_CONFIG" && \
12966     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12967   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12968   ac_status=$?
12969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12970   test $ac_status = 0; }; then
12971   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
12972                       test "x$?" != "x0" && pkg_failed=yes
12973 else
12974   pkg_failed=yes
12975 fi
12976  else
12977     pkg_failed=untried
12978 fi
12979
12980
12981
12982 if test $pkg_failed = yes; then
12983         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12984 $as_echo "no" >&6; }
12985
12986 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12987         _pkg_short_errors_supported=yes
12988 else
12989         _pkg_short_errors_supported=no
12990 fi
12991         if test $_pkg_short_errors_supported = yes; then
12992                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12993         else
12994                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12995         fi
12996         # Put the nasty error message in config.log where it belongs
12997         echo "$GTK_PKG_ERRORS" >&5
12998
12999         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13000
13001 $GTK_PKG_ERRORS
13002
13003 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13004 installed software in a non-standard prefix.
13005
13006 Alternatively, you may set the environment variables GTK_CFLAGS
13007 and GTK_LIBS to avoid the need to call pkg-config.
13008 See the pkg-config man page for more details." "$LINENO" 5
13009 elif test $pkg_failed = untried; then
13010         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011 $as_echo "no" >&6; }
13012         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13014 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13015 is in your PATH or set the PKG_CONFIG environment variable to the full
13016 path to pkg-config.
13017
13018 Alternatively, you may set the environment variables GTK_CFLAGS
13019 and GTK_LIBS to avoid the need to call pkg-config.
13020 See the pkg-config man page for more details.
13021
13022 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13023 See \`config.log' for more details" "$LINENO" 5; }
13024 else
13025         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13026         GTK_LIBS=$pkg_cv_GTK_LIBS
13027         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13028 $as_echo "yes" >&6; }
13029         GTK_VERSION="gtk+-2.0"
13030
13031 fi
13032     ;;
13033
13034   *darwin*)
13035     win32=no
13036     macos=yes
13037     linux=no
13038
13039     # We require dbus-glib for the client library even if we are using GDBus
13040     # in the server. The reason we can't always use dbus-glib in the server is
13041     # because Vala drops support for it, but as it ships with DBus there is very
13042     # little danger of it being dropped by distros any time soon.
13043     CLIENT_IPC_MODULE="dbus-glib-1"
13044         SERVER_IPC_MODULE="dbus-glib-1"
13045
13046
13047 pkg_failed=no
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAC" >&5
13049 $as_echo_n "checking for MAC... " >&6; }
13050
13051 if test -n "$MAC_CFLAGS"; then
13052     pkg_cv_MAC_CFLAGS="$MAC_CFLAGS"
13053  elif test -n "$PKG_CONFIG"; then
13054     if test -n "$PKG_CONFIG" && \
13055     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
13056         \""; } >&5
13057   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
13058         ") 2>&5
13059   ac_status=$?
13060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13061   test $ac_status = 0; }; then
13062   pkg_cv_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration >= 1.0.1
13063         " 2>/dev/null`
13064                       test "x$?" != "x0" && pkg_failed=yes
13065 else
13066   pkg_failed=yes
13067 fi
13068  else
13069     pkg_failed=untried
13070 fi
13071 if test -n "$MAC_LIBS"; then
13072     pkg_cv_MAC_LIBS="$MAC_LIBS"
13073  elif test -n "$PKG_CONFIG"; then
13074     if test -n "$PKG_CONFIG" && \
13075     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
13076         \""; } >&5
13077   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
13078         ") 2>&5
13079   ac_status=$?
13080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13081   test $ac_status = 0; }; then
13082   pkg_cv_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration >= 1.0.1
13083         " 2>/dev/null`
13084                       test "x$?" != "x0" && pkg_failed=yes
13085 else
13086   pkg_failed=yes
13087 fi
13088  else
13089     pkg_failed=untried
13090 fi
13091
13092
13093
13094 if test $pkg_failed = yes; then
13095         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096 $as_echo "no" >&6; }
13097
13098 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13099         _pkg_short_errors_supported=yes
13100 else
13101         _pkg_short_errors_supported=no
13102 fi
13103         if test $_pkg_short_errors_supported = yes; then
13104                 MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
13105         " 2>&1`
13106         else
13107                 MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
13108         " 2>&1`
13109         fi
13110         # Put the nasty error message in config.log where it belongs
13111         echo "$MAC_PKG_ERRORS" >&5
13112
13113         as_fn_error $? "Package requirements (gtk-mac-integration >= 1.0.1
13114         ) were not met:
13115
13116 $MAC_PKG_ERRORS
13117
13118 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13119 installed software in a non-standard prefix.
13120
13121 Alternatively, you may set the environment variables MAC_CFLAGS
13122 and MAC_LIBS to avoid the need to call pkg-config.
13123 See the pkg-config man page for more details." "$LINENO" 5
13124 elif test $pkg_failed = untried; then
13125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126 $as_echo "no" >&6; }
13127         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13129 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13130 is in your PATH or set the PKG_CONFIG environment variable to the full
13131 path to pkg-config.
13132
13133 Alternatively, you may set the environment variables MAC_CFLAGS
13134 and MAC_LIBS to avoid the need to call pkg-config.
13135 See the pkg-config man page for more details.
13136
13137 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13138 See \`config.log' for more details" "$LINENO" 5; }
13139 else
13140         MAC_CFLAGS=$pkg_cv_MAC_CFLAGS
13141         MAC_LIBS=$pkg_cv_MAC_LIBS
13142         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13143 $as_echo "yes" >&6; }
13144
13145 fi
13146
13147 # TODO: Move to GTK+-3
13148 #            [gtk+-3.0 >= 2.0],
13149 #            [GTK_VERSION="gtk+-3.0"]
13150
13151 pkg_failed=no
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
13153 $as_echo_n "checking for GTK... " >&6; }
13154
13155 if test -n "$GTK_CFLAGS"; then
13156     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13157  elif test -n "$PKG_CONFIG"; then
13158     if test -n "$PKG_CONFIG" && \
13159     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13160   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13161   ac_status=$?
13162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13163   test $ac_status = 0; }; then
13164   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
13165                       test "x$?" != "x0" && pkg_failed=yes
13166 else
13167   pkg_failed=yes
13168 fi
13169  else
13170     pkg_failed=untried
13171 fi
13172 if test -n "$GTK_LIBS"; then
13173     pkg_cv_GTK_LIBS="$GTK_LIBS"
13174  elif test -n "$PKG_CONFIG"; then
13175     if test -n "$PKG_CONFIG" && \
13176     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13177   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13178   ac_status=$?
13179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13180   test $ac_status = 0; }; then
13181   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
13182                       test "x$?" != "x0" && pkg_failed=yes
13183 else
13184   pkg_failed=yes
13185 fi
13186  else
13187     pkg_failed=untried
13188 fi
13189
13190
13191
13192 if test $pkg_failed = yes; then
13193         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13194 $as_echo "no" >&6; }
13195
13196 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13197         _pkg_short_errors_supported=yes
13198 else
13199         _pkg_short_errors_supported=no
13200 fi
13201         if test $_pkg_short_errors_supported = yes; then
13202                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13203         else
13204                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13205         fi
13206         # Put the nasty error message in config.log where it belongs
13207         echo "$GTK_PKG_ERRORS" >&5
13208
13209         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13210
13211 $GTK_PKG_ERRORS
13212
13213 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13214 installed software in a non-standard prefix.
13215
13216 Alternatively, you may set the environment variables GTK_CFLAGS
13217 and GTK_LIBS to avoid the need to call pkg-config.
13218 See the pkg-config man page for more details." "$LINENO" 5
13219 elif test $pkg_failed = untried; then
13220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221 $as_echo "no" >&6; }
13222         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13224 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13225 is in your PATH or set the PKG_CONFIG environment variable to the full
13226 path to pkg-config.
13227
13228 Alternatively, you may set the environment variables GTK_CFLAGS
13229 and GTK_LIBS to avoid the need to call pkg-config.
13230 See the pkg-config man page for more details.
13231
13232 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13233 See \`config.log' for more details" "$LINENO" 5; }
13234 else
13235         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13236         GTK_LIBS=$pkg_cv_GTK_LIBS
13237         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13238 $as_echo "yes" >&6; }
13239         GTK_VERSION="gtk+-2.0"
13240
13241 fi
13242
13243     ;;
13244   *)
13245     macos=no
13246     win32=no
13247     linux=yes
13248
13249     # We require dbus-glib for the client library even if we are using GDBus
13250     # in the server. The reason we can't always use dbus-glib in the server is
13251     # because Vala drops support for it, but as it ships with DBus there is very
13252     # little danger of it being dropped by distros any time soon.
13253     CLIENT_IPC_MODULE="dbus-glib-1"
13254
13255 pkg_failed=no
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDBUS" >&5
13257 $as_echo_n "checking for GDBUS... " >&6; }
13258
13259 if test -n "$GDBUS_CFLAGS"; then
13260     pkg_cv_GDBUS_CFLAGS="$GDBUS_CFLAGS"
13261  elif test -n "$PKG_CONFIG"; then
13262     if test -n "$PKG_CONFIG" && \
13263     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
13264   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
13265   ac_status=$?
13266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13267   test $ac_status = 0; }; then
13268   pkg_cv_GDBUS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
13269                       test "x$?" != "x0" && pkg_failed=yes
13270 else
13271   pkg_failed=yes
13272 fi
13273  else
13274     pkg_failed=untried
13275 fi
13276 if test -n "$GDBUS_LIBS"; then
13277     pkg_cv_GDBUS_LIBS="$GDBUS_LIBS"
13278  elif test -n "$PKG_CONFIG"; then
13279     if test -n "$PKG_CONFIG" && \
13280     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
13281   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
13282   ac_status=$?
13283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13284   test $ac_status = 0; }; then
13285   pkg_cv_GDBUS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
13286                       test "x$?" != "x0" && pkg_failed=yes
13287 else
13288   pkg_failed=yes
13289 fi
13290  else
13291     pkg_failed=untried
13292 fi
13293
13294
13295
13296 if test $pkg_failed = yes; then
13297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13299
13300 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13301         _pkg_short_errors_supported=yes
13302 else
13303         _pkg_short_errors_supported=no
13304 fi
13305         if test $_pkg_short_errors_supported = yes; then
13306                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
13307         else
13308                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
13309         fi
13310         # Put the nasty error message in config.log where it belongs
13311         echo "$GDBUS_PKG_ERRORS" >&5
13312
13313         SERVER_IPC_MODULE="dbus-glib-1"
13314
13315 elif test $pkg_failed = untried; then
13316         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317 $as_echo "no" >&6; }
13318         SERVER_IPC_MODULE="dbus-glib-1"
13319
13320 else
13321         GDBUS_CFLAGS=$pkg_cv_GDBUS_CFLAGS
13322         GDBUS_LIBS=$pkg_cv_GDBUS_LIBS
13323         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13324 $as_echo "yes" >&6; }
13325         SERVER_IPC_MODULE="gio-2.0"
13326 fi
13327 # TODO: Move to GTK+-3
13328 #            [gtk+-3.0 >= 2.0],
13329 #            [GTK_VERSION="gtk+-3.0"]
13330
13331 pkg_failed=no
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
13333 $as_echo_n "checking for GTK... " >&6; }
13334
13335 if test -n "$GTK_CFLAGS"; then
13336     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13337  elif test -n "$PKG_CONFIG"; then
13338     if test -n "$PKG_CONFIG" && \
13339     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13340   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13341   ac_status=$?
13342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13343   test $ac_status = 0; }; then
13344   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
13345                       test "x$?" != "x0" && pkg_failed=yes
13346 else
13347   pkg_failed=yes
13348 fi
13349  else
13350     pkg_failed=untried
13351 fi
13352 if test -n "$GTK_LIBS"; then
13353     pkg_cv_GTK_LIBS="$GTK_LIBS"
13354  elif test -n "$PKG_CONFIG"; then
13355     if test -n "$PKG_CONFIG" && \
13356     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13357   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13358   ac_status=$?
13359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13360   test $ac_status = 0; }; then
13361   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
13362                       test "x$?" != "x0" && pkg_failed=yes
13363 else
13364   pkg_failed=yes
13365 fi
13366  else
13367     pkg_failed=untried
13368 fi
13369
13370
13371
13372 if test $pkg_failed = yes; then
13373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13374 $as_echo "no" >&6; }
13375
13376 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13377         _pkg_short_errors_supported=yes
13378 else
13379         _pkg_short_errors_supported=no
13380 fi
13381         if test $_pkg_short_errors_supported = yes; then
13382                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13383         else
13384                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13385         fi
13386         # Put the nasty error message in config.log where it belongs
13387         echo "$GTK_PKG_ERRORS" >&5
13388
13389         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13390
13391 $GTK_PKG_ERRORS
13392
13393 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13394 installed software in a non-standard prefix.
13395
13396 Alternatively, you may set the environment variables GTK_CFLAGS
13397 and GTK_LIBS to avoid the need to call pkg-config.
13398 See the pkg-config man page for more details." "$LINENO" 5
13399 elif test $pkg_failed = untried; then
13400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401 $as_echo "no" >&6; }
13402         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13404 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13405 is in your PATH or set the PKG_CONFIG environment variable to the full
13406 path to pkg-config.
13407
13408 Alternatively, you may set the environment variables GTK_CFLAGS
13409 and GTK_LIBS to avoid the need to call pkg-config.
13410 See the pkg-config man page for more details.
13411
13412 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13413 See \`config.log' for more details" "$LINENO" 5; }
13414 else
13415         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13416         GTK_LIBS=$pkg_cv_GTK_LIBS
13417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13418 $as_echo "yes" >&6; }
13419         GTK_VERSION="gtk+-2.0"
13420
13421 fi
13422
13423     ;;
13424 esac
13425
13426  if test "$linux" = "yes"; then
13427   OS_LINUX_TRUE=
13428   OS_LINUX_FALSE='#'
13429 else
13430   OS_LINUX_TRUE='#'
13431   OS_LINUX_FALSE=
13432 fi
13433
13434  if test "$win32" = "yes"; then
13435   OS_WIN32_TRUE=
13436   OS_WIN32_FALSE='#'
13437 else
13438   OS_WIN32_TRUE='#'
13439   OS_WIN32_FALSE=
13440 fi
13441
13442  if test "$macos" = "yes"; then
13443   OS_MACOS_TRUE=
13444   OS_MACOS_FALSE='#'
13445 else
13446   OS_MACOS_TRUE='#'
13447   OS_MACOS_FALSE=
13448 fi
13449
13450
13451  if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
13452   IPC_MSRPC_TRUE=
13453   IPC_MSRPC_FALSE='#'
13454 else
13455   IPC_MSRPC_TRUE='#'
13456   IPC_MSRPC_FALSE=
13457 fi
13458
13459  if test "$SERVER_IPC_MODULE" != "msrpc-glib2-1.0"; then
13460   IPC_DBUS_TRUE=
13461   IPC_DBUS_FALSE='#'
13462 else
13463   IPC_DBUS_TRUE='#'
13464   IPC_DBUS_FALSE=
13465 fi
13466
13467  if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
13468   IPC_DBUS_GLIB_TRUE=
13469   IPC_DBUS_GLIB_FALSE='#'
13470 else
13471   IPC_DBUS_GLIB_TRUE='#'
13472   IPC_DBUS_GLIB_FALSE=
13473 fi
13474
13475  if test "$SERVER_IPC_MODULE" = "gio-2.0"; then
13476   IPC_GDBUS_TRUE=
13477   IPC_GDBUS_FALSE='#'
13478 else
13479   IPC_GDBUS_TRUE='#'
13480   IPC_GDBUS_FALSE=
13481 fi
13482
13483
13484 vala_version=`$VALAC --version | sed 's/Vala  *//'`
13485 as_arg_v1="$vala_version"
13486 as_arg_v2=0.11.1
13487 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13488 case $? in #(
13489   1) :
13490     gio_vapi_uses_arrays="no" ;; #(
13491   0) :
13492     gio_vapi_uses_arrays="yes" ;; #(
13493   2) :
13494     gio_vapi_uses_arrays="yes" ;; #(
13495   *) :
13496      ;;
13497 esac
13498  if test "$gio_vapi_uses_arrays" = "yes"; then
13499   GIO_VAPI_USES_ARRAYS_TRUE=
13500   GIO_VAPI_USES_ARRAYS_FALSE='#'
13501 else
13502   GIO_VAPI_USES_ARRAYS_TRUE='#'
13503   GIO_VAPI_USES_ARRAYS_FALSE=
13504 fi
13505
13506 if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
13507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is no greater than 0.12.1" >&5
13508 $as_echo_n "checking $VALAC is no greater than 0.12.1... " >&6; }
13509   as_arg_v1=0.12.2
13510 as_arg_v2="$vala_version"
13511 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13512 case $? in #(
13513   1) :
13514     vala_supports_dbus_glib="no" ;; #(
13515   0) :
13516     vala_supports_dbus_glib="no" ;; #(
13517   2) :
13518     vala_supports_dbus_glib="yes" ;; #(
13519   *) :
13520      ;;
13521 esac
13522
13523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vala_supports_dbus_glib" >&5
13524 $as_echo "$vala_supports_dbus_glib" >&6; }
13525   if test "$vala_supports_dbus_glib" = "no"; then
13526     as_fn_error $? "
13527 *** Vala 0.12.1 or earlier is required for dbus-glib support. Newer versions
13528 *** require that you have GLib 2.26 or newer (for GDBus support)." "$LINENO" 5
13529   fi
13530 fi
13531
13532 if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
13533   # MS RPC utilities
13534
13535   pkg_config_args="msrpc-mingw-1.0"
13536
13537
13538
13539
13540
13541
13542
13543
13544 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13545         if test -n "$ac_tool_prefix"; then
13546   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13547 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13549 $as_echo_n "checking for $ac_word... " >&6; }
13550 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13551   $as_echo_n "(cached) " >&6
13552 else
13553   case $PKG_CONFIG in
13554   [\\/]* | ?:[\\/]*)
13555   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13556   ;;
13557   *)
13558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13559 for as_dir in $PATH
13560 do
13561   IFS=$as_save_IFS
13562   test -z "$as_dir" && as_dir=.
13563     for ac_exec_ext in '' $ac_executable_extensions; do
13564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13565     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13567     break 2
13568   fi
13569 done
13570   done
13571 IFS=$as_save_IFS
13572
13573   ;;
13574 esac
13575 fi
13576 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13577 if test -n "$PKG_CONFIG"; then
13578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13579 $as_echo "$PKG_CONFIG" >&6; }
13580 else
13581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582 $as_echo "no" >&6; }
13583 fi
13584
13585
13586 fi
13587 if test -z "$ac_cv_path_PKG_CONFIG"; then
13588   ac_pt_PKG_CONFIG=$PKG_CONFIG
13589   # Extract the first word of "pkg-config", so it can be a program name with args.
13590 set dummy pkg-config; ac_word=$2
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13592 $as_echo_n "checking for $ac_word... " >&6; }
13593 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13594   $as_echo_n "(cached) " >&6
13595 else
13596   case $ac_pt_PKG_CONFIG in
13597   [\\/]* | ?:[\\/]*)
13598   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13599   ;;
13600   *)
13601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13602 for as_dir in $PATH
13603 do
13604   IFS=$as_save_IFS
13605   test -z "$as_dir" && as_dir=.
13606     for ac_exec_ext in '' $ac_executable_extensions; do
13607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13608     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13610     break 2
13611   fi
13612 done
13613   done
13614 IFS=$as_save_IFS
13615
13616   ;;
13617 esac
13618 fi
13619 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13620 if test -n "$ac_pt_PKG_CONFIG"; then
13621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13622 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13623 else
13624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13625 $as_echo "no" >&6; }
13626 fi
13627
13628   if test "x$ac_pt_PKG_CONFIG" = x; then
13629     PKG_CONFIG=""
13630   else
13631     case $cross_compiling:$ac_tool_warned in
13632 yes:)
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13635 ac_tool_warned=yes ;;
13636 esac
13637     PKG_CONFIG=$ac_pt_PKG_CONFIG
13638   fi
13639 else
13640   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13641 fi
13642
13643 fi
13644 if test -n "$PKG_CONFIG"; then
13645         _pkg_min_version=0.16
13646         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13647 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13648         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13649                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13650 $as_echo "yes" >&6; }
13651         else
13652                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13654                 PKG_CONFIG=""
13655         fi
13656 fi
13657
13658   no_msrpc=""
13659
13660   if test "x$PKG_CONFIG" = x ; then
13661     no_msrpc=yes
13662     PKG_CONFIG=no
13663   fi
13664
13665   min_msrpc_mingw_version=0.1.0
13666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msrpc-mingw - version >= $min_msrpc_version" >&5
13667 $as_echo_n "checking for msrpc-mingw - version >= $min_msrpc_version... " >&6; }
13668
13669   if test x$PKG_CONFIG != xno ; then
13670     if $PKG_CONFIG --uninstalled $pkg_config_args; then
13671       echo "Will use uninstalled version of msrpc-mingw found in PKG_CONFIG_PATH"
13672     fi
13673
13674     if $PKG_CONFIG --atleast-version $min_msrpc_mingw_version $pkg_config_args; then
13675       :
13676     else
13677       no_msrpc=yes
13678     fi
13679   fi
13680
13681   if test x"$no_msrpc" = x ; then
13682     MIDL_WRAPPER=`$PKG_CONFIG --variable=midl_wrapper msrpc-mingw-1.0`
13683     MSRPC_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13684     MSRPC_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13685   fi
13686
13687   if test "x$no_msrpc" = x ; then
13688      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13689 $as_echo "yes" >&6; }
13690      :
13691   else
13692      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13693 $as_echo "no" >&6; }
13694      if test "$PKG_CONFIG" = "no" ; then
13695        echo "*** A new enough version of pkg-config was not found."
13696        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13697      else
13698        echo "not found"
13699      fi
13700      MSRPC_CFLAGS=""
13701      MSRPC_LIBS=""
13702      MIDL_WRAPPER=""
13703      as_fn_error $? "
13704 *** msrpc-mingw 0.1.0 or better is required." "$LINENO" 5
13705   fi
13706
13707
13708
13709
13710
13711   # Extract the first word of "midl", so it can be a program name with args.
13712 set dummy midl; ac_word=$2
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13714 $as_echo_n "checking for $ac_word... " >&6; }
13715 if ${ac_cv_path_MIDL+:} false; then :
13716   $as_echo_n "(cached) " >&6
13717 else
13718   case $MIDL in
13719   [\\/]* | ?:[\\/]*)
13720   ac_cv_path_MIDL="$MIDL" # Let the user override the test with a path.
13721   ;;
13722   *)
13723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13724 for as_dir in /c/Program\ Files/Microsoft\ SDKs/Windows/v7.0/Bin$PATH_SEPARATOR$PATH
13725 do
13726   IFS=$as_save_IFS
13727   test -z "$as_dir" && as_dir=.
13728     for ac_exec_ext in '' $ac_executable_extensions; do
13729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13730     ac_cv_path_MIDL="$as_dir/$ac_word$ac_exec_ext"
13731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13732     break 2
13733   fi
13734 done
13735   done
13736 IFS=$as_save_IFS
13737
13738   test -z "$ac_cv_path_MIDL" && ac_cv_path_MIDL="no"
13739   ;;
13740 esac
13741 fi
13742 MIDL=$ac_cv_path_MIDL
13743 if test -n "$MIDL"; then
13744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIDL" >&5
13745 $as_echo "$MIDL" >&6; }
13746 else
13747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13749 fi
13750
13751
13752   if test "$MIDL" = "no"; then
13753      as_fn_error $? "
13754 *** Could not find the Microsoft interface compiler MIDL.EXE.
13755 *** This program is available as part of the MS Windows SDK, in
13756 *** the Win32 Development Tools package. If it is not in the PATH
13757 *** or its default location you may set the 'MIDL' environment
13758 *** variable to point to its location and rerun configure." "$LINENO" 5
13759   fi
13760 fi
13761
13762 if test "$win32" = "yes"; then
13763   # Other Windows-specific tools
13764
13765   # LIB.EXE from MSVC to build an MSVC-compatible import library.
13766   # Extract the first word of "lib", so it can be a program name with args.
13767 set dummy lib; ac_word=$2
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13769 $as_echo_n "checking for $ac_word... " >&6; }
13770 if ${ac_cv_path_MSVC_LIB+:} false; then :
13771   $as_echo_n "(cached) " >&6
13772 else
13773   case $MSVC_LIB in
13774   [\\/]* | ?:[\\/]*)
13775   ac_cv_path_MSVC_LIB="$MSVC_LIB" # Let the user override the test with a path.
13776   ;;
13777   *)
13778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13779 for as_dir in /c/Program\ Files/Microsoft\ Visual\ Studio\ 9.0/VC/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/VC/bin$PATH_SEPARATOR$PATH
13780 do
13781   IFS=$as_save_IFS
13782   test -z "$as_dir" && as_dir=.
13783     for ac_exec_ext in '' $ac_executable_extensions; do
13784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13785     ac_cv_path_MSVC_LIB="$as_dir/$ac_word$ac_exec_ext"
13786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13787     break 2
13788   fi
13789 done
13790   done
13791 IFS=$as_save_IFS
13792
13793   test -z "$ac_cv_path_MSVC_LIB" && ac_cv_path_MSVC_LIB="no"
13794   ;;
13795 esac
13796 fi
13797 MSVC_LIB=$ac_cv_path_MSVC_LIB
13798 if test -n "$MSVC_LIB"; then
13799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_LIB" >&5
13800 $as_echo "$MSVC_LIB" >&6; }
13801 else
13802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803 $as_echo "no" >&6; }
13804 fi
13805
13806
13807
13808   if test "$MSVC_LIB" = "no"; then
13809      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13810 *** Could not find the Microsoft 'LIB.EXE' program. This is required
13811 *** to build the Visual C import library for libmoonshot. Use the
13812 *** MSVC_LIB environment variable to pass its location if this is
13813 *** outside the PATH." >&5
13814 $as_echo "$as_me: WARNING:
13815 *** Could not find the Microsoft 'LIB.EXE' program. This is required
13816 *** to build the Visual C import library for libmoonshot. Use the
13817 *** MSVC_LIB environment variable to pass its location if this is
13818 *** outside the PATH." >&2;}
13819   fi
13820
13821
13822   # ImageMagick for the 'make icons' target. Note that
13823   # c:/windows/system32/convert.exe is nothing to do with ImageMagick.
13824   # Extract the first word of "convert", so it can be a program name with args.
13825 set dummy convert; ac_word=$2
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13827 $as_echo_n "checking for $ac_word... " >&6; }
13828 if ${ac_cv_path_IMAGEMAGICK_CONVERT+:} false; then :
13829   $as_echo_n "(cached) " >&6
13830 else
13831   case $IMAGEMAGICK_CONVERT in
13832   [\\/]* | ?:[\\/]*)
13833   ac_cv_path_IMAGEMAGICK_CONVERT="$IMAGEMAGICK_CONVERT" # Let the user override the test with a path.
13834   ;;
13835   *)
13836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837 for as_dir in /c/Program\ Files/ImageMagick$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/ImageMagick$PATH_SEPARATOR$PATH
13838 do
13839   IFS=$as_save_IFS
13840   test -z "$as_dir" && as_dir=.
13841     for ac_exec_ext in '' $ac_executable_extensions; do
13842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13843     ac_cv_path_IMAGEMAGICK_CONVERT="$as_dir/$ac_word$ac_exec_ext"
13844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13845     break 2
13846   fi
13847 done
13848   done
13849 IFS=$as_save_IFS
13850
13851   test -z "$ac_cv_path_IMAGEMAGICK_CONVERT" && ac_cv_path_IMAGEMAGICK_CONVERT="no"
13852   ;;
13853 esac
13854 fi
13855 IMAGEMAGICK_CONVERT=$ac_cv_path_IMAGEMAGICK_CONVERT
13856 if test -n "$IMAGEMAGICK_CONVERT"; then
13857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CONVERT" >&5
13858 $as_echo "$IMAGEMAGICK_CONVERT" >&6; }
13859 else
13860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861 $as_echo "no" >&6; }
13862 fi
13863
13864
13865
13866   if test "$IMAGEMAGICK_CONVERT" = "no" || test "$IMAGEMAGICK_CONVERT" = "/c/windows/system32/convert"; then
13867      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13868 *** Could not find ImageMagick convert.exe. This is required for the
13869 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
13870 *** variable to pass its location if this is outside the PATH." >&5
13871 $as_echo "$as_me: WARNING:
13872 *** Could not find ImageMagick convert.exe. This is required for the
13873 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
13874 *** variable to pass its location if this is outside the PATH." >&2;}
13875   fi
13876
13877
13878   # Windows Installer XML tools
13879   # Extract the first word of "candle", so it can be a program name with args.
13880 set dummy candle; ac_word=$2
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882 $as_echo_n "checking for $ac_word... " >&6; }
13883 if ${ac_cv_path_WIX_CANDLE+:} false; then :
13884   $as_echo_n "(cached) " >&6
13885 else
13886   case $WIX_CANDLE in
13887   [\\/]* | ?:[\\/]*)
13888   ac_cv_path_WIX_CANDLE="$WIX_CANDLE" # Let the user override the test with a path.
13889   ;;
13890   *)
13891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13892 for as_dir in /c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH
13893 do
13894   IFS=$as_save_IFS
13895   test -z "$as_dir" && as_dir=.
13896     for ac_exec_ext in '' $ac_executable_extensions; do
13897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13898     ac_cv_path_WIX_CANDLE="$as_dir/$ac_word$ac_exec_ext"
13899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13900     break 2
13901   fi
13902 done
13903   done
13904 IFS=$as_save_IFS
13905
13906   test -z "$ac_cv_path_WIX_CANDLE" && ac_cv_path_WIX_CANDLE="no"
13907   ;;
13908 esac
13909 fi
13910 WIX_CANDLE=$ac_cv_path_WIX_CANDLE
13911 if test -n "$WIX_CANDLE"; then
13912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_CANDLE" >&5
13913 $as_echo "$WIX_CANDLE" >&6; }
13914 else
13915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916 $as_echo "no" >&6; }
13917 fi
13918
13919
13920   # Extract the first word of "light", so it can be a program name with args.
13921 set dummy light; ac_word=$2
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13923 $as_echo_n "checking for $ac_word... " >&6; }
13924 if ${ac_cv_path_WIX_LIGHT+:} false; then :
13925   $as_echo_n "(cached) " >&6
13926 else
13927   case $WIX_LIGHT in
13928   [\\/]* | ?:[\\/]*)
13929   ac_cv_path_WIX_LIGHT="$WIX_LIGHT" # Let the user override the test with a path.
13930   ;;
13931   *)
13932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13933 for as_dir in /c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH
13934 do
13935   IFS=$as_save_IFS
13936   test -z "$as_dir" && as_dir=.
13937     for ac_exec_ext in '' $ac_executable_extensions; do
13938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13939     ac_cv_path_WIX_LIGHT="$as_dir/$ac_word$ac_exec_ext"
13940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13941     break 2
13942   fi
13943 done
13944   done
13945 IFS=$as_save_IFS
13946
13947   test -z "$ac_cv_path_WIX_LIGHT" && ac_cv_path_WIX_LIGHT="no"
13948   ;;
13949 esac
13950 fi
13951 WIX_LIGHT=$ac_cv_path_WIX_LIGHT
13952 if test -n "$WIX_LIGHT"; then
13953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_LIGHT" >&5
13954 $as_echo "$WIX_LIGHT" >&6; }
13955 else
13956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13957 $as_echo "no" >&6; }
13958 fi
13959
13960
13961
13962   if test "$WIX_CANDLE" = "no" || test "$WIX_LIGHT" = "no"; then
13963      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13964 *** Could not find the Windows Installer XML tools. These are required
13965 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
13966 *** environment variables to pass their locations if they are outside
13967 *** the PATH." >&5
13968 $as_echo "$as_me: WARNING:
13969 *** Could not find the Windows Installer XML tools. These are required
13970 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
13971 *** environment variables to pass their locations if they are outside
13972 *** the PATH." >&2;}
13973   fi
13974 fi
13975
13976 if test "$linux" = "yes"; then
13977   # Extract the first word of "update-mime-database", so it can be a program name with args.
13978 set dummy update-mime-database; ac_word=$2
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13980 $as_echo_n "checking for $ac_word... " >&6; }
13981 if ${ac_cv_path_UPDATE_MIME_DATABASE+:} false; then :
13982   $as_echo_n "(cached) " >&6
13983 else
13984   case $UPDATE_MIME_DATABASE in
13985   [\\/]* | ?:[\\/]*)
13986   ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
13987   ;;
13988   *)
13989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13990 for as_dir in $PATH
13991 do
13992   IFS=$as_save_IFS
13993   test -z "$as_dir" && as_dir=.
13994     for ac_exec_ext in '' $ac_executable_extensions; do
13995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13996     ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
13997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13998     break 2
13999   fi
14000 done
14001   done
14002 IFS=$as_save_IFS
14003
14004   test -z "$ac_cv_path_UPDATE_MIME_DATABASE" && ac_cv_path_UPDATE_MIME_DATABASE="no"
14005   ;;
14006 esac
14007 fi
14008 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
14009 if test -n "$UPDATE_MIME_DATABASE"; then
14010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
14011 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
14012 else
14013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014 $as_echo "no" >&6; }
14015 fi
14016
14017
14018   if test "$UPDATE_MIME_DATABASE" = "no"; then
14019     as_fn_error $? "
14020 *** Could not find the Freedesktop.org  mime database update tool.
14021 *** Web provisioning files could not be automatically installed." "$LINENO" 5
14022   fi
14023   # Extract the first word of "update-desktop-database", so it can be a program name with args.
14024 set dummy update-desktop-database; ac_word=$2
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14026 $as_echo_n "checking for $ac_word... " >&6; }
14027 if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
14028   $as_echo_n "(cached) " >&6
14029 else
14030   case $UPDATE_DESKTOP_DATABASE in
14031   [\\/]* | ?:[\\/]*)
14032   ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
14033   ;;
14034   *)
14035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14036 for as_dir in $PATH
14037 do
14038   IFS=$as_save_IFS
14039   test -z "$as_dir" && as_dir=.
14040     for ac_exec_ext in '' $ac_executable_extensions; do
14041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14042     ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
14043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14044     break 2
14045   fi
14046 done
14047   done
14048 IFS=$as_save_IFS
14049
14050   test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
14051   ;;
14052 esac
14053 fi
14054 UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
14055 if test -n "$UPDATE_DESKTOP_DATABASE"; then
14056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
14057 $as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
14058 else
14059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14060 $as_echo "no" >&6; }
14061 fi
14062
14063
14064   if test "$UPDATE_DESKTOP_DATABASE" = "no"; then
14065     as_fn_error $? "
14066 *** Could not find the Freedesktop.org desktop entry database update
14067 *** tool. Web provisioning files could not be automatically installed." "$LINENO" 5
14068   fi
14069 fi
14070
14071 MOONSHOT_APP="$bindir/moonshot"
14072 MOONSHOT_WEBP="$bindir/moonshot-webp"
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084 # Dependencies
14085
14086 pkg_failed=no
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot" >&5
14088 $as_echo_n "checking for moonshot... " >&6; }
14089
14090 if test -n "$moonshot_CFLAGS"; then
14091     pkg_cv_moonshot_CFLAGS="$moonshot_CFLAGS"
14092  elif test -n "$PKG_CONFIG"; then
14093     if test -n "$PKG_CONFIG" && \
14094     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14095         atk >= 1.20
14096         glib-2.0 >= 2.22
14097         gobject-2.0 >= 2.22
14098         \$GTK_VERSION
14099         gee-0.8 >= 0.5
14100         \$SERVER_IPC_MODULE
14101                 \$MAC
14102 \""; } >&5
14103   ($PKG_CONFIG --exists --print-errors "
14104         atk >= 1.20
14105         glib-2.0 >= 2.22
14106         gobject-2.0 >= 2.22
14107         $GTK_VERSION
14108         gee-0.8 >= 0.5
14109         $SERVER_IPC_MODULE
14110                 $MAC
14111 ") 2>&5
14112   ac_status=$?
14113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14114   test $ac_status = 0; }; then
14115   pkg_cv_moonshot_CFLAGS=`$PKG_CONFIG --cflags "
14116         atk >= 1.20
14117         glib-2.0 >= 2.22
14118         gobject-2.0 >= 2.22
14119         $GTK_VERSION
14120         gee-0.8 >= 0.5
14121         $SERVER_IPC_MODULE
14122                 $MAC
14123 " 2>/dev/null`
14124                       test "x$?" != "x0" && pkg_failed=yes
14125 else
14126   pkg_failed=yes
14127 fi
14128  else
14129     pkg_failed=untried
14130 fi
14131 if test -n "$moonshot_LIBS"; then
14132     pkg_cv_moonshot_LIBS="$moonshot_LIBS"
14133  elif test -n "$PKG_CONFIG"; then
14134     if test -n "$PKG_CONFIG" && \
14135     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14136         atk >= 1.20
14137         glib-2.0 >= 2.22
14138         gobject-2.0 >= 2.22
14139         \$GTK_VERSION
14140         gee-0.8 >= 0.5
14141         \$SERVER_IPC_MODULE
14142                 \$MAC
14143 \""; } >&5
14144   ($PKG_CONFIG --exists --print-errors "
14145         atk >= 1.20
14146         glib-2.0 >= 2.22
14147         gobject-2.0 >= 2.22
14148         $GTK_VERSION
14149         gee-0.8 >= 0.5
14150         $SERVER_IPC_MODULE
14151                 $MAC
14152 ") 2>&5
14153   ac_status=$?
14154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14155   test $ac_status = 0; }; then
14156   pkg_cv_moonshot_LIBS=`$PKG_CONFIG --libs "
14157         atk >= 1.20
14158         glib-2.0 >= 2.22
14159         gobject-2.0 >= 2.22
14160         $GTK_VERSION
14161         gee-0.8 >= 0.5
14162         $SERVER_IPC_MODULE
14163                 $MAC
14164 " 2>/dev/null`
14165                       test "x$?" != "x0" && pkg_failed=yes
14166 else
14167   pkg_failed=yes
14168 fi
14169  else
14170     pkg_failed=untried
14171 fi
14172
14173
14174
14175 if test $pkg_failed = yes; then
14176         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177 $as_echo "no" >&6; }
14178
14179 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14180         _pkg_short_errors_supported=yes
14181 else
14182         _pkg_short_errors_supported=no
14183 fi
14184         if test $_pkg_short_errors_supported = yes; then
14185                 moonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
14186         atk >= 1.20
14187         glib-2.0 >= 2.22
14188         gobject-2.0 >= 2.22
14189         $GTK_VERSION
14190         gee-0.8 >= 0.5
14191         $SERVER_IPC_MODULE
14192                 $MAC
14193 " 2>&1`
14194         else
14195                 moonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
14196         atk >= 1.20
14197         glib-2.0 >= 2.22
14198         gobject-2.0 >= 2.22
14199         $GTK_VERSION
14200         gee-0.8 >= 0.5
14201         $SERVER_IPC_MODULE
14202                 $MAC
14203 " 2>&1`
14204         fi
14205         # Put the nasty error message in config.log where it belongs
14206         echo "$moonshot_PKG_ERRORS" >&5
14207
14208         as_fn_error $? "Package requirements (
14209         atk >= 1.20
14210         glib-2.0 >= 2.22
14211         gobject-2.0 >= 2.22
14212         $GTK_VERSION
14213         gee-0.8 >= 0.5
14214         $SERVER_IPC_MODULE
14215                 $MAC
14216 ) were not met:
14217
14218 $moonshot_PKG_ERRORS
14219
14220 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14221 installed software in a non-standard prefix.
14222
14223 Alternatively, you may set the environment variables moonshot_CFLAGS
14224 and moonshot_LIBS to avoid the need to call pkg-config.
14225 See the pkg-config man page for more details." "$LINENO" 5
14226 elif test $pkg_failed = untried; then
14227         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14228 $as_echo "no" >&6; }
14229         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14231 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14232 is in your PATH or set the PKG_CONFIG environment variable to the full
14233 path to pkg-config.
14234
14235 Alternatively, you may set the environment variables moonshot_CFLAGS
14236 and moonshot_LIBS to avoid the need to call pkg-config.
14237 See the pkg-config man page for more details.
14238
14239 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14240 See \`config.log' for more details" "$LINENO" 5; }
14241 else
14242         moonshot_CFLAGS=$pkg_cv_moonshot_CFLAGS
14243         moonshot_LIBS=$pkg_cv_moonshot_LIBS
14244         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14245 $as_echo "yes" >&6; }
14246
14247 fi
14248
14249
14250 pkg_failed=no
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmoonshot" >&5
14252 $as_echo_n "checking for libmoonshot... " >&6; }
14253
14254 if test -n "$libmoonshot_CFLAGS"; then
14255     pkg_cv_libmoonshot_CFLAGS="$libmoonshot_CFLAGS"
14256  elif test -n "$PKG_CONFIG"; then
14257     if test -n "$PKG_CONFIG" && \
14258     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14259         \$CLIENT_IPC_MODULE
14260 \""; } >&5
14261   ($PKG_CONFIG --exists --print-errors "
14262         $CLIENT_IPC_MODULE
14263 ") 2>&5
14264   ac_status=$?
14265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14266   test $ac_status = 0; }; then
14267   pkg_cv_libmoonshot_CFLAGS=`$PKG_CONFIG --cflags "
14268         $CLIENT_IPC_MODULE
14269 " 2>/dev/null`
14270                       test "x$?" != "x0" && pkg_failed=yes
14271 else
14272   pkg_failed=yes
14273 fi
14274  else
14275     pkg_failed=untried
14276 fi
14277 if test -n "$libmoonshot_LIBS"; then
14278     pkg_cv_libmoonshot_LIBS="$libmoonshot_LIBS"
14279  elif test -n "$PKG_CONFIG"; then
14280     if test -n "$PKG_CONFIG" && \
14281     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14282         \$CLIENT_IPC_MODULE
14283 \""; } >&5
14284   ($PKG_CONFIG --exists --print-errors "
14285         $CLIENT_IPC_MODULE
14286 ") 2>&5
14287   ac_status=$?
14288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14289   test $ac_status = 0; }; then
14290   pkg_cv_libmoonshot_LIBS=`$PKG_CONFIG --libs "
14291         $CLIENT_IPC_MODULE
14292 " 2>/dev/null`
14293                       test "x$?" != "x0" && pkg_failed=yes
14294 else
14295   pkg_failed=yes
14296 fi
14297  else
14298     pkg_failed=untried
14299 fi
14300
14301
14302
14303 if test $pkg_failed = yes; then
14304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14305 $as_echo "no" >&6; }
14306
14307 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14308         _pkg_short_errors_supported=yes
14309 else
14310         _pkg_short_errors_supported=no
14311 fi
14312         if test $_pkg_short_errors_supported = yes; then
14313                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
14314         $CLIENT_IPC_MODULE
14315 " 2>&1`
14316         else
14317                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
14318         $CLIENT_IPC_MODULE
14319 " 2>&1`
14320         fi
14321         # Put the nasty error message in config.log where it belongs
14322         echo "$libmoonshot_PKG_ERRORS" >&5
14323
14324         as_fn_error $? "Package requirements (
14325         $CLIENT_IPC_MODULE
14326 ) were not met:
14327
14328 $libmoonshot_PKG_ERRORS
14329
14330 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14331 installed software in a non-standard prefix.
14332
14333 Alternatively, you may set the environment variables libmoonshot_CFLAGS
14334 and libmoonshot_LIBS to avoid the need to call pkg-config.
14335 See the pkg-config man page for more details." "$LINENO" 5
14336 elif test $pkg_failed = untried; then
14337         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14338 $as_echo "no" >&6; }
14339         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14341 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14342 is in your PATH or set the PKG_CONFIG environment variable to the full
14343 path to pkg-config.
14344
14345 Alternatively, you may set the environment variables libmoonshot_CFLAGS
14346 and libmoonshot_LIBS to avoid the need to call pkg-config.
14347 See the pkg-config man page for more details.
14348
14349 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14350 See \`config.log' for more details" "$LINENO" 5; }
14351 else
14352         libmoonshot_CFLAGS=$pkg_cv_libmoonshot_CFLAGS
14353         libmoonshot_LIBS=$pkg_cv_libmoonshot_LIBS
14354         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14355 $as_echo "yes" >&6; }
14356
14357 fi
14358
14359 # i18n stuff
14360
14361 mkdir_p="$MKDIR_P"
14362 case $mkdir_p in
14363   [\\/$]* | ?:[\\/]*) ;;
14364   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
14365 esac
14366
14367
14368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14369 $as_echo_n "checking whether NLS is requested... " >&6; }
14370     # Check whether --enable-nls was given.
14371 if test "${enable_nls+set}" = set; then :
14372   enableval=$enable_nls; USE_NLS=$enableval
14373 else
14374   USE_NLS=yes
14375 fi
14376
14377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14378 $as_echo "$USE_NLS" >&6; }
14379
14380
14381
14382
14383       GETTEXT_MACRO_VERSION=0.18
14384
14385
14386
14387
14388 # Prepare PATH_SEPARATOR.
14389 # The user is always right.
14390 if test "${PATH_SEPARATOR+set}" != set; then
14391   echo "#! /bin/sh" >conf$$.sh
14392   echo  "exit 0"   >>conf$$.sh
14393   chmod +x conf$$.sh
14394   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14395     PATH_SEPARATOR=';'
14396   else
14397     PATH_SEPARATOR=:
14398   fi
14399   rm -f conf$$.sh
14400 fi
14401
14402 # Find out how to test for executable files. Don't use a zero-byte file,
14403 # as systems may use methods other than mode bits to determine executability.
14404 cat >conf$$.file <<_ASEOF
14405 #! /bin/sh
14406 exit 0
14407 _ASEOF
14408 chmod +x conf$$.file
14409 if test -x conf$$.file >/dev/null 2>&1; then
14410   ac_executable_p="test -x"
14411 else
14412   ac_executable_p="test -f"
14413 fi
14414 rm -f conf$$.file
14415
14416 # Extract the first word of "msgfmt", so it can be a program name with args.
14417 set dummy msgfmt; ac_word=$2
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14419 $as_echo_n "checking for $ac_word... " >&6; }
14420 if ${ac_cv_path_MSGFMT+:} false; then :
14421   $as_echo_n "(cached) " >&6
14422 else
14423   case "$MSGFMT" in
14424   [\\/]* | ?:[\\/]*)
14425     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14426     ;;
14427   *)
14428     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14429     for ac_dir in $PATH; do
14430       IFS="$ac_save_IFS"
14431       test -z "$ac_dir" && ac_dir=.
14432       for ac_exec_ext in '' $ac_executable_extensions; do
14433         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14434           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14435           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14436      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14437             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14438             break 2
14439           fi
14440         fi
14441       done
14442     done
14443     IFS="$ac_save_IFS"
14444   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14445     ;;
14446 esac
14447 fi
14448 MSGFMT="$ac_cv_path_MSGFMT"
14449 if test "$MSGFMT" != ":"; then
14450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14451 $as_echo "$MSGFMT" >&6; }
14452 else
14453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14454 $as_echo "no" >&6; }
14455 fi
14456
14457   # Extract the first word of "gmsgfmt", so it can be a program name with args.
14458 set dummy gmsgfmt; ac_word=$2
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14460 $as_echo_n "checking for $ac_word... " >&6; }
14461 if ${ac_cv_path_GMSGFMT+:} false; then :
14462   $as_echo_n "(cached) " >&6
14463 else
14464   case $GMSGFMT in
14465   [\\/]* | ?:[\\/]*)
14466   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14467   ;;
14468   *)
14469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14470 for as_dir in $PATH
14471 do
14472   IFS=$as_save_IFS
14473   test -z "$as_dir" && as_dir=.
14474     for ac_exec_ext in '' $ac_executable_extensions; do
14475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14476     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14478     break 2
14479   fi
14480 done
14481   done
14482 IFS=$as_save_IFS
14483
14484   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14485   ;;
14486 esac
14487 fi
14488 GMSGFMT=$ac_cv_path_GMSGFMT
14489 if test -n "$GMSGFMT"; then
14490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14491 $as_echo "$GMSGFMT" >&6; }
14492 else
14493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14494 $as_echo "no" >&6; }
14495 fi
14496
14497
14498
14499     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14500     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14501     *) MSGFMT_015=$MSGFMT ;;
14502   esac
14503
14504   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14505     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14506     *) GMSGFMT_015=$GMSGFMT ;;
14507   esac
14508
14509
14510
14511 # Prepare PATH_SEPARATOR.
14512 # The user is always right.
14513 if test "${PATH_SEPARATOR+set}" != set; then
14514   echo "#! /bin/sh" >conf$$.sh
14515   echo  "exit 0"   >>conf$$.sh
14516   chmod +x conf$$.sh
14517   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14518     PATH_SEPARATOR=';'
14519   else
14520     PATH_SEPARATOR=:
14521   fi
14522   rm -f conf$$.sh
14523 fi
14524
14525 # Find out how to test for executable files. Don't use a zero-byte file,
14526 # as systems may use methods other than mode bits to determine executability.
14527 cat >conf$$.file <<_ASEOF
14528 #! /bin/sh
14529 exit 0
14530 _ASEOF
14531 chmod +x conf$$.file
14532 if test -x conf$$.file >/dev/null 2>&1; then
14533   ac_executable_p="test -x"
14534 else
14535   ac_executable_p="test -f"
14536 fi
14537 rm -f conf$$.file
14538
14539 # Extract the first word of "xgettext", so it can be a program name with args.
14540 set dummy xgettext; ac_word=$2
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14542 $as_echo_n "checking for $ac_word... " >&6; }
14543 if ${ac_cv_path_XGETTEXT+:} false; then :
14544   $as_echo_n "(cached) " >&6
14545 else
14546   case "$XGETTEXT" in
14547   [\\/]* | ?:[\\/]*)
14548     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14549     ;;
14550   *)
14551     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14552     for ac_dir in $PATH; do
14553       IFS="$ac_save_IFS"
14554       test -z "$ac_dir" && ac_dir=.
14555       for ac_exec_ext in '' $ac_executable_extensions; do
14556         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14557           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14558           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14559      (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
14560             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14561             break 2
14562           fi
14563         fi
14564       done
14565     done
14566     IFS="$ac_save_IFS"
14567   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14568     ;;
14569 esac
14570 fi
14571 XGETTEXT="$ac_cv_path_XGETTEXT"
14572 if test "$XGETTEXT" != ":"; then
14573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14574 $as_echo "$XGETTEXT" >&6; }
14575 else
14576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14577 $as_echo "no" >&6; }
14578 fi
14579
14580     rm -f messages.po
14581
14582     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14583     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14584     *) XGETTEXT_015=$XGETTEXT ;;
14585   esac
14586
14587
14588
14589 # Prepare PATH_SEPARATOR.
14590 # The user is always right.
14591 if test "${PATH_SEPARATOR+set}" != set; then
14592   echo "#! /bin/sh" >conf$$.sh
14593   echo  "exit 0"   >>conf$$.sh
14594   chmod +x conf$$.sh
14595   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14596     PATH_SEPARATOR=';'
14597   else
14598     PATH_SEPARATOR=:
14599   fi
14600   rm -f conf$$.sh
14601 fi
14602
14603 # Find out how to test for executable files. Don't use a zero-byte file,
14604 # as systems may use methods other than mode bits to determine executability.
14605 cat >conf$$.file <<_ASEOF
14606 #! /bin/sh
14607 exit 0
14608 _ASEOF
14609 chmod +x conf$$.file
14610 if test -x conf$$.file >/dev/null 2>&1; then
14611   ac_executable_p="test -x"
14612 else
14613   ac_executable_p="test -f"
14614 fi
14615 rm -f conf$$.file
14616
14617 # Extract the first word of "msgmerge", so it can be a program name with args.
14618 set dummy msgmerge; ac_word=$2
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14620 $as_echo_n "checking for $ac_word... " >&6; }
14621 if ${ac_cv_path_MSGMERGE+:} false; then :
14622   $as_echo_n "(cached) " >&6
14623 else
14624   case "$MSGMERGE" in
14625   [\\/]* | ?:[\\/]*)
14626     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14627     ;;
14628   *)
14629     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14630     for ac_dir in $PATH; do
14631       IFS="$ac_save_IFS"
14632       test -z "$ac_dir" && ac_dir=.
14633       for ac_exec_ext in '' $ac_executable_extensions; do
14634         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14635           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14636           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14637             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14638             break 2
14639           fi
14640         fi
14641       done
14642     done
14643     IFS="$ac_save_IFS"
14644   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14645     ;;
14646 esac
14647 fi
14648 MSGMERGE="$ac_cv_path_MSGMERGE"
14649 if test "$MSGMERGE" != ":"; then
14650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14651 $as_echo "$MSGMERGE" >&6; }
14652 else
14653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14654 $as_echo "no" >&6; }
14655 fi
14656
14657
14658         test -n "$localedir" || localedir='${datadir}/locale'
14659
14660
14661     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14662
14663
14664   ac_config_commands="$ac_config_commands po-directories"
14665
14666
14667
14668       if test "X$prefix" = "XNONE"; then
14669     acl_final_prefix="$ac_default_prefix"
14670   else
14671     acl_final_prefix="$prefix"
14672   fi
14673   if test "X$exec_prefix" = "XNONE"; then
14674     acl_final_exec_prefix='${prefix}'
14675   else
14676     acl_final_exec_prefix="$exec_prefix"
14677   fi
14678   acl_save_prefix="$prefix"
14679   prefix="$acl_final_prefix"
14680   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14681   prefix="$acl_save_prefix"
14682
14683
14684 # Check whether --with-gnu-ld was given.
14685 if test "${with_gnu_ld+set}" = set; then :
14686   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14687 else
14688   with_gnu_ld=no
14689 fi
14690
14691 # Prepare PATH_SEPARATOR.
14692 # The user is always right.
14693 if test "${PATH_SEPARATOR+set}" != set; then
14694   echo "#! /bin/sh" >conf$$.sh
14695   echo  "exit 0"   >>conf$$.sh
14696   chmod +x conf$$.sh
14697   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14698     PATH_SEPARATOR=';'
14699   else
14700     PATH_SEPARATOR=:
14701   fi
14702   rm -f conf$$.sh
14703 fi
14704 ac_prog=ld
14705 if test "$GCC" = yes; then
14706   # Check if gcc -print-prog-name=ld gives a path.
14707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14708 $as_echo_n "checking for ld used by GCC... " >&6; }
14709   case $host in
14710   *-*-mingw*)
14711     # gcc leaves a trailing carriage return which upsets mingw
14712     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14713   *)
14714     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14715   esac
14716   case $ac_prog in
14717     # Accept absolute paths.
14718     [\\/]* | [A-Za-z]:[\\/]*)
14719       re_direlt='/[^/][^/]*/\.\./'
14720       # Canonicalize the path of ld
14721       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14722       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14723         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14724       done
14725       test -z "$LD" && LD="$ac_prog"
14726       ;;
14727   "")
14728     # If it fails, then pretend we aren't using GCC.
14729     ac_prog=ld
14730     ;;
14731   *)
14732     # If it is relative, then search for the first ld in PATH.
14733     with_gnu_ld=unknown
14734     ;;
14735   esac
14736 elif test "$with_gnu_ld" = yes; then
14737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14738 $as_echo_n "checking for GNU ld... " >&6; }
14739 else
14740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14741 $as_echo_n "checking for non-GNU ld... " >&6; }
14742 fi
14743 if ${acl_cv_path_LD+:} false; then :
14744   $as_echo_n "(cached) " >&6
14745 else
14746   if test -z "$LD"; then
14747   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14748   for ac_dir in $PATH; do
14749     test -z "$ac_dir" && ac_dir=.
14750     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14751       acl_cv_path_LD="$ac_dir/$ac_prog"
14752       # Check to see if the program is GNU ld.  I'd rather use --version,
14753       # but apparently some GNU ld's only accept -v.
14754       # Break only if it was the GNU/non-GNU ld that we prefer.
14755       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14756       *GNU* | *'with BFD'*)
14757         test "$with_gnu_ld" != no && break ;;
14758       *)
14759         test "$with_gnu_ld" != yes && break ;;
14760       esac
14761     fi
14762   done
14763   IFS="$ac_save_ifs"
14764 else
14765   acl_cv_path_LD="$LD" # Let the user override the test with a path.
14766 fi
14767 fi
14768
14769 LD="$acl_cv_path_LD"
14770 if test -n "$LD"; then
14771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14772 $as_echo "$LD" >&6; }
14773 else
14774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14775 $as_echo "no" >&6; }
14776 fi
14777 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14779 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14780 if ${acl_cv_prog_gnu_ld+:} false; then :
14781   $as_echo_n "(cached) " >&6
14782 else
14783   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14784 case `$LD -v 2>&1 </dev/null` in
14785 *GNU* | *'with BFD'*)
14786   acl_cv_prog_gnu_ld=yes ;;
14787 *)
14788   acl_cv_prog_gnu_ld=no ;;
14789 esac
14790 fi
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14792 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14793 with_gnu_ld=$acl_cv_prog_gnu_ld
14794
14795
14796
14797
14798                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14799 $as_echo_n "checking for shared library run path origin... " >&6; }
14800 if ${acl_cv_rpath+:} false; then :
14801   $as_echo_n "(cached) " >&6
14802 else
14803
14804     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14805     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14806     . ./conftest.sh
14807     rm -f ./conftest.sh
14808     acl_cv_rpath=done
14809
14810 fi
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14812 $as_echo "$acl_cv_rpath" >&6; }
14813   wl="$acl_cv_wl"
14814   acl_libext="$acl_cv_libext"
14815   acl_shlibext="$acl_cv_shlibext"
14816   acl_libname_spec="$acl_cv_libname_spec"
14817   acl_library_names_spec="$acl_cv_library_names_spec"
14818   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14819   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14820   acl_hardcode_direct="$acl_cv_hardcode_direct"
14821   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14822     # Check whether --enable-rpath was given.
14823 if test "${enable_rpath+set}" = set; then :
14824   enableval=$enable_rpath; :
14825 else
14826   enable_rpath=yes
14827 fi
14828
14829
14830
14831
14832   acl_libdirstem=lib
14833   acl_libdirstem2=
14834   case "$host_os" in
14835     solaris*)
14836                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
14837 $as_echo_n "checking for 64-bit host... " >&6; }
14838 if ${gl_cv_solaris_64bit+:} false; then :
14839   $as_echo_n "(cached) " >&6
14840 else
14841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14842 /* end confdefs.h.  */
14843
14844 #ifdef _LP64
14845 sixtyfour bits
14846 #endif
14847
14848 _ACEOF
14849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14850   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
14851   gl_cv_solaris_64bit=yes
14852 else
14853   gl_cv_solaris_64bit=no
14854 fi
14855 rm -f conftest*
14856
14857
14858 fi
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14860 $as_echo "$gl_cv_solaris_64bit" >&6; }
14861       if test $gl_cv_solaris_64bit = yes; then
14862         acl_libdirstem=lib/64
14863         case "$host_cpu" in
14864           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
14865           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14866         esac
14867       fi
14868       ;;
14869     *)
14870       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14871       if test -n "$searchpath"; then
14872         acl_save_IFS="${IFS=    }"; IFS=":"
14873         for searchdir in $searchpath; do
14874           if test -d "$searchdir"; then
14875             case "$searchdir" in
14876               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14877               */../ | */.. )
14878                 # Better ignore directories of this form. They are misleading.
14879                 ;;
14880               *) searchdir=`cd "$searchdir" && pwd`
14881                  case "$searchdir" in
14882                    */lib64 ) acl_libdirstem=lib64 ;;
14883                  esac ;;
14884             esac
14885           fi
14886         done
14887         IFS="$acl_save_IFS"
14888       fi
14889       ;;
14890   esac
14891   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904     use_additional=yes
14905
14906   acl_save_prefix="$prefix"
14907   prefix="$acl_final_prefix"
14908   acl_save_exec_prefix="$exec_prefix"
14909   exec_prefix="$acl_final_exec_prefix"
14910
14911     eval additional_includedir=\"$includedir\"
14912     eval additional_libdir=\"$libdir\"
14913
14914   exec_prefix="$acl_save_exec_prefix"
14915   prefix="$acl_save_prefix"
14916
14917
14918 # Check whether --with-libiconv-prefix was given.
14919 if test "${with_libiconv_prefix+set}" = set; then :
14920   withval=$with_libiconv_prefix;
14921     if test "X$withval" = "Xno"; then
14922       use_additional=no
14923     else
14924       if test "X$withval" = "X"; then
14925
14926   acl_save_prefix="$prefix"
14927   prefix="$acl_final_prefix"
14928   acl_save_exec_prefix="$exec_prefix"
14929   exec_prefix="$acl_final_exec_prefix"
14930
14931           eval additional_includedir=\"$includedir\"
14932           eval additional_libdir=\"$libdir\"
14933
14934   exec_prefix="$acl_save_exec_prefix"
14935   prefix="$acl_save_prefix"
14936
14937       else
14938         additional_includedir="$withval/include"
14939         additional_libdir="$withval/$acl_libdirstem"
14940         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14941            && ! test -d "$withval/$acl_libdirstem"; then
14942           additional_libdir="$withval/$acl_libdirstem2"
14943         fi
14944       fi
14945     fi
14946
14947 fi
14948
14949       LIBICONV=
14950   LTLIBICONV=
14951   INCICONV=
14952   LIBICONV_PREFIX=
14953       HAVE_LIBICONV=
14954   rpathdirs=
14955   ltrpathdirs=
14956   names_already_handled=
14957   names_next_round='iconv '
14958   while test -n "$names_next_round"; do
14959     names_this_round="$names_next_round"
14960     names_next_round=
14961     for name in $names_this_round; do
14962       already_handled=
14963       for n in $names_already_handled; do
14964         if test "$n" = "$name"; then
14965           already_handled=yes
14966           break
14967         fi
14968       done
14969       if test -z "$already_handled"; then
14970         names_already_handled="$names_already_handled $name"
14971                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14972         eval value=\"\$HAVE_LIB$uppername\"
14973         if test -n "$value"; then
14974           if test "$value" = yes; then
14975             eval value=\"\$LIB$uppername\"
14976             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14977             eval value=\"\$LTLIB$uppername\"
14978             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14979           else
14980                                     :
14981           fi
14982         else
14983                               found_dir=
14984           found_la=
14985           found_so=
14986           found_a=
14987           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14988           if test -n "$acl_shlibext"; then
14989             shrext=".$acl_shlibext"             # typically: shrext=.so
14990           else
14991             shrext=
14992           fi
14993           if test $use_additional = yes; then
14994             dir="$additional_libdir"
14995                                     if test -n "$acl_shlibext"; then
14996               if test -f "$dir/$libname$shrext"; then
14997                 found_dir="$dir"
14998                 found_so="$dir/$libname$shrext"
14999               else
15000                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15001                   ver=`(cd "$dir" && \
15002                         for f in "$libname$shrext".*; do echo "$f"; done \
15003                         | sed -e "s,^$libname$shrext\\\\.,," \
15004                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15005                         | sed 1q ) 2>/dev/null`
15006                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15007                     found_dir="$dir"
15008                     found_so="$dir/$libname$shrext.$ver"
15009                   fi
15010                 else
15011                   eval library_names=\"$acl_library_names_spec\"
15012                   for f in $library_names; do
15013                     if test -f "$dir/$f"; then
15014                       found_dir="$dir"
15015                       found_so="$dir/$f"
15016                       break
15017                     fi
15018                   done
15019                 fi
15020               fi
15021             fi
15022                         if test "X$found_dir" = "X"; then
15023               if test -f "$dir/$libname.$acl_libext"; then
15024                 found_dir="$dir"
15025                 found_a="$dir/$libname.$acl_libext"
15026               fi
15027             fi
15028             if test "X$found_dir" != "X"; then
15029               if test -f "$dir/$libname.la"; then
15030                 found_la="$dir/$libname.la"
15031               fi
15032             fi
15033           fi
15034           if test "X$found_dir" = "X"; then
15035             for x in $LDFLAGS $LTLIBICONV; do
15036
15037   acl_save_prefix="$prefix"
15038   prefix="$acl_final_prefix"
15039   acl_save_exec_prefix="$exec_prefix"
15040   exec_prefix="$acl_final_exec_prefix"
15041   eval x=\"$x\"
15042   exec_prefix="$acl_save_exec_prefix"
15043   prefix="$acl_save_prefix"
15044
15045               case "$x" in
15046                 -L*)
15047                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15048                                     if test -n "$acl_shlibext"; then
15049                     if test -f "$dir/$libname$shrext"; then
15050                       found_dir="$dir"
15051                       found_so="$dir/$libname$shrext"
15052                     else
15053                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15054                         ver=`(cd "$dir" && \
15055                               for f in "$libname$shrext".*; do echo "$f"; done \
15056                               | sed -e "s,^$libname$shrext\\\\.,," \
15057                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15058                               | sed 1q ) 2>/dev/null`
15059                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15060                           found_dir="$dir"
15061                           found_so="$dir/$libname$shrext.$ver"
15062                         fi
15063                       else
15064                         eval library_names=\"$acl_library_names_spec\"
15065                         for f in $library_names; do
15066                           if test -f "$dir/$f"; then
15067                             found_dir="$dir"
15068                             found_so="$dir/$f"
15069                             break
15070                           fi
15071                         done
15072                       fi
15073                     fi
15074                   fi
15075                                     if test "X$found_dir" = "X"; then
15076                     if test -f "$dir/$libname.$acl_libext"; then
15077                       found_dir="$dir"
15078                       found_a="$dir/$libname.$acl_libext"
15079                     fi
15080                   fi
15081                   if test "X$found_dir" != "X"; then
15082                     if test -f "$dir/$libname.la"; then
15083                       found_la="$dir/$libname.la"
15084                     fi
15085                   fi
15086                   ;;
15087               esac
15088               if test "X$found_dir" != "X"; then
15089                 break
15090               fi
15091             done
15092           fi
15093           if test "X$found_dir" != "X"; then
15094                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15095             if test "X$found_so" != "X"; then
15096                                                         if test "$enable_rpath" = no \
15097                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15098                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15099                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15100               else
15101                                                                                 haveit=
15102                 for x in $ltrpathdirs; do
15103                   if test "X$x" = "X$found_dir"; then
15104                     haveit=yes
15105                     break
15106                   fi
15107                 done
15108                 if test -z "$haveit"; then
15109                   ltrpathdirs="$ltrpathdirs $found_dir"
15110                 fi
15111                                 if test "$acl_hardcode_direct" = yes; then
15112                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15113                 else
15114                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15115                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15116                                                             haveit=
15117                     for x in $rpathdirs; do
15118                       if test "X$x" = "X$found_dir"; then
15119                         haveit=yes
15120                         break
15121                       fi
15122                     done
15123                     if test -z "$haveit"; then
15124                       rpathdirs="$rpathdirs $found_dir"
15125                     fi
15126                   else
15127                                                                                 haveit=
15128                     for x in $LDFLAGS $LIBICONV; do
15129
15130   acl_save_prefix="$prefix"
15131   prefix="$acl_final_prefix"
15132   acl_save_exec_prefix="$exec_prefix"
15133   exec_prefix="$acl_final_exec_prefix"
15134   eval x=\"$x\"
15135   exec_prefix="$acl_save_exec_prefix"
15136   prefix="$acl_save_prefix"
15137
15138                       if test "X$x" = "X-L$found_dir"; then
15139                         haveit=yes
15140                         break
15141                       fi
15142                     done
15143                     if test -z "$haveit"; then
15144                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15145                     fi
15146                     if test "$acl_hardcode_minus_L" != no; then
15147                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15148                     else
15149                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15150                     fi
15151                   fi
15152                 fi
15153               fi
15154             else
15155               if test "X$found_a" != "X"; then
15156                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15157               else
15158                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15159               fi
15160             fi
15161                         additional_includedir=
15162             case "$found_dir" in
15163               */$acl_libdirstem | */$acl_libdirstem/)
15164                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15165                 if test "$name" = 'iconv'; then
15166                   LIBICONV_PREFIX="$basedir"
15167                 fi
15168                 additional_includedir="$basedir/include"
15169                 ;;
15170               */$acl_libdirstem2 | */$acl_libdirstem2/)
15171                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15172                 if test "$name" = 'iconv'; then
15173                   LIBICONV_PREFIX="$basedir"
15174                 fi
15175                 additional_includedir="$basedir/include"
15176                 ;;
15177             esac
15178             if test "X$additional_includedir" != "X"; then
15179                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15180                 haveit=
15181                 if test "X$additional_includedir" = "X/usr/local/include"; then
15182                   if test -n "$GCC"; then
15183                     case $host_os in
15184                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15185                     esac
15186                   fi
15187                 fi
15188                 if test -z "$haveit"; then
15189                   for x in $CPPFLAGS $INCICONV; do
15190
15191   acl_save_prefix="$prefix"
15192   prefix="$acl_final_prefix"
15193   acl_save_exec_prefix="$exec_prefix"
15194   exec_prefix="$acl_final_exec_prefix"
15195   eval x=\"$x\"
15196   exec_prefix="$acl_save_exec_prefix"
15197   prefix="$acl_save_prefix"
15198
15199                     if test "X$x" = "X-I$additional_includedir"; then
15200                       haveit=yes
15201                       break
15202                     fi
15203                   done
15204                   if test -z "$haveit"; then
15205                     if test -d "$additional_includedir"; then
15206                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15207                     fi
15208                   fi
15209                 fi
15210               fi
15211             fi
15212                         if test -n "$found_la"; then
15213                                                         save_libdir="$libdir"
15214               case "$found_la" in
15215                 */* | *\\*) . "$found_la" ;;
15216                 *) . "./$found_la" ;;
15217               esac
15218               libdir="$save_libdir"
15219                             for dep in $dependency_libs; do
15220                 case "$dep" in
15221                   -L*)
15222                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15223                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15224                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15225                       haveit=
15226                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15227                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15228                         if test -n "$GCC"; then
15229                           case $host_os in
15230                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15231                           esac
15232                         fi
15233                       fi
15234                       if test -z "$haveit"; then
15235                         haveit=
15236                         for x in $LDFLAGS $LIBICONV; do
15237
15238   acl_save_prefix="$prefix"
15239   prefix="$acl_final_prefix"
15240   acl_save_exec_prefix="$exec_prefix"
15241   exec_prefix="$acl_final_exec_prefix"
15242   eval x=\"$x\"
15243   exec_prefix="$acl_save_exec_prefix"
15244   prefix="$acl_save_prefix"
15245
15246                           if test "X$x" = "X-L$additional_libdir"; then
15247                             haveit=yes
15248                             break
15249                           fi
15250                         done
15251                         if test -z "$haveit"; then
15252                           if test -d "$additional_libdir"; then
15253                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15254                           fi
15255                         fi
15256                         haveit=
15257                         for x in $LDFLAGS $LTLIBICONV; do
15258
15259   acl_save_prefix="$prefix"
15260   prefix="$acl_final_prefix"
15261   acl_save_exec_prefix="$exec_prefix"
15262   exec_prefix="$acl_final_exec_prefix"
15263   eval x=\"$x\"
15264   exec_prefix="$acl_save_exec_prefix"
15265   prefix="$acl_save_prefix"
15266
15267                           if test "X$x" = "X-L$additional_libdir"; then
15268                             haveit=yes
15269                             break
15270                           fi
15271                         done
15272                         if test -z "$haveit"; then
15273                           if test -d "$additional_libdir"; then
15274                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15275                           fi
15276                         fi
15277                       fi
15278                     fi
15279                     ;;
15280                   -R*)
15281                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15282                     if test "$enable_rpath" != no; then
15283                                                                   haveit=
15284                       for x in $rpathdirs; do
15285                         if test "X$x" = "X$dir"; then
15286                           haveit=yes
15287                           break
15288                         fi
15289                       done
15290                       if test -z "$haveit"; then
15291                         rpathdirs="$rpathdirs $dir"
15292                       fi
15293                                                                   haveit=
15294                       for x in $ltrpathdirs; do
15295                         if test "X$x" = "X$dir"; then
15296                           haveit=yes
15297                           break
15298                         fi
15299                       done
15300                       if test -z "$haveit"; then
15301                         ltrpathdirs="$ltrpathdirs $dir"
15302                       fi
15303                     fi
15304                     ;;
15305                   -l*)
15306                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15307                     ;;
15308                   *.la)
15309                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15310                     ;;
15311                   *)
15312                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15313                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15314                     ;;
15315                 esac
15316               done
15317             fi
15318           else
15319                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15320             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15321           fi
15322         fi
15323       fi
15324     done
15325   done
15326   if test "X$rpathdirs" != "X"; then
15327     if test -n "$acl_hardcode_libdir_separator"; then
15328                         alldirs=
15329       for found_dir in $rpathdirs; do
15330         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15331       done
15332             acl_save_libdir="$libdir"
15333       libdir="$alldirs"
15334       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15335       libdir="$acl_save_libdir"
15336       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15337     else
15338             for found_dir in $rpathdirs; do
15339         acl_save_libdir="$libdir"
15340         libdir="$found_dir"
15341         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15342         libdir="$acl_save_libdir"
15343         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15344       done
15345     fi
15346   fi
15347   if test "X$ltrpathdirs" != "X"; then
15348             for found_dir in $ltrpathdirs; do
15349       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15350     done
15351   fi
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15384 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15385 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15386   $as_echo_n "(cached) " >&6
15387 else
15388   gt_save_LIBS="$LIBS"
15389      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15390      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391 /* end confdefs.h.  */
15392 #include <CoreFoundation/CFPreferences.h>
15393 int
15394 main ()
15395 {
15396 CFPreferencesCopyAppValue(NULL, NULL)
15397   ;
15398   return 0;
15399 }
15400 _ACEOF
15401 if ac_fn_c_try_link "$LINENO"; then :
15402   gt_cv_func_CFPreferencesCopyAppValue=yes
15403 else
15404   gt_cv_func_CFPreferencesCopyAppValue=no
15405 fi
15406 rm -f core conftest.err conftest.$ac_objext \
15407     conftest$ac_exeext conftest.$ac_ext
15408      LIBS="$gt_save_LIBS"
15409 fi
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15411 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15412   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15413
15414 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15415
15416   fi
15417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15418 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15419 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15420   $as_echo_n "(cached) " >&6
15421 else
15422   gt_save_LIBS="$LIBS"
15423      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15424      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h.  */
15426 #include <CoreFoundation/CFLocale.h>
15427 int
15428 main ()
15429 {
15430 CFLocaleCopyCurrent();
15431   ;
15432   return 0;
15433 }
15434 _ACEOF
15435 if ac_fn_c_try_link "$LINENO"; then :
15436   gt_cv_func_CFLocaleCopyCurrent=yes
15437 else
15438   gt_cv_func_CFLocaleCopyCurrent=no
15439 fi
15440 rm -f core conftest.err conftest.$ac_objext \
15441     conftest$ac_exeext conftest.$ac_ext
15442      LIBS="$gt_save_LIBS"
15443 fi
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15445 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15446   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15447
15448 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15449
15450   fi
15451   INTL_MACOSX_LIBS=
15452   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15453     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15454   fi
15455
15456
15457
15458
15459
15460
15461   LIBINTL=
15462   LTLIBINTL=
15463   POSUB=
15464
15465     case " $gt_needs " in
15466     *" need-formatstring-macros "*) gt_api_version=3 ;;
15467     *" need-ngettext "*) gt_api_version=2 ;;
15468     *) gt_api_version=1 ;;
15469   esac
15470   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15471   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15472
15473     if test "$USE_NLS" = "yes"; then
15474     gt_use_preinstalled_gnugettext=no
15475
15476
15477         if test $gt_api_version -ge 3; then
15478           gt_revision_test_code='
15479 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15480 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15481 #endif
15482 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15483 '
15484         else
15485           gt_revision_test_code=
15486         fi
15487         if test $gt_api_version -ge 2; then
15488           gt_expression_test_code=' + * ngettext ("", "", 0)'
15489         else
15490           gt_expression_test_code=
15491         fi
15492
15493         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15494 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15495 if eval \${$gt_func_gnugettext_libc+:} false; then :
15496   $as_echo_n "(cached) " >&6
15497 else
15498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499 /* end confdefs.h.  */
15500 #include <libintl.h>
15501 $gt_revision_test_code
15502 extern int _nl_msg_cat_cntr;
15503 extern int *_nl_domain_bindings;
15504 int
15505 main ()
15506 {
15507 bindtextdomain ("", "");
15508 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15509   ;
15510   return 0;
15511 }
15512 _ACEOF
15513 if ac_fn_c_try_link "$LINENO"; then :
15514   eval "$gt_func_gnugettext_libc=yes"
15515 else
15516   eval "$gt_func_gnugettext_libc=no"
15517 fi
15518 rm -f core conftest.err conftest.$ac_objext \
15519     conftest$ac_exeext conftest.$ac_ext
15520 fi
15521 eval ac_res=\$$gt_func_gnugettext_libc
15522                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15523 $as_echo "$ac_res" >&6; }
15524
15525         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15526
15527
15528
15529
15530
15531           am_save_CPPFLAGS="$CPPFLAGS"
15532
15533   for element in $INCICONV; do
15534     haveit=
15535     for x in $CPPFLAGS; do
15536
15537   acl_save_prefix="$prefix"
15538   prefix="$acl_final_prefix"
15539   acl_save_exec_prefix="$exec_prefix"
15540   exec_prefix="$acl_final_exec_prefix"
15541   eval x=\"$x\"
15542   exec_prefix="$acl_save_exec_prefix"
15543   prefix="$acl_save_prefix"
15544
15545       if test "X$x" = "X$element"; then
15546         haveit=yes
15547         break
15548       fi
15549     done
15550     if test -z "$haveit"; then
15551       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15552     fi
15553   done
15554
15555
15556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15557 $as_echo_n "checking for iconv... " >&6; }
15558 if ${am_cv_func_iconv+:} false; then :
15559   $as_echo_n "(cached) " >&6
15560 else
15561
15562     am_cv_func_iconv="no, consider installing GNU libiconv"
15563     am_cv_lib_iconv=no
15564     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h.  */
15566 #include <stdlib.h>
15567 #include <iconv.h>
15568 int
15569 main ()
15570 {
15571 iconv_t cd = iconv_open("","");
15572        iconv(cd,NULL,NULL,NULL,NULL);
15573        iconv_close(cd);
15574   ;
15575   return 0;
15576 }
15577 _ACEOF
15578 if ac_fn_c_try_link "$LINENO"; then :
15579   am_cv_func_iconv=yes
15580 fi
15581 rm -f core conftest.err conftest.$ac_objext \
15582     conftest$ac_exeext conftest.$ac_ext
15583     if test "$am_cv_func_iconv" != yes; then
15584       am_save_LIBS="$LIBS"
15585       LIBS="$LIBS $LIBICONV"
15586       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h.  */
15588 #include <stdlib.h>
15589 #include <iconv.h>
15590 int
15591 main ()
15592 {
15593 iconv_t cd = iconv_open("","");
15594          iconv(cd,NULL,NULL,NULL,NULL);
15595          iconv_close(cd);
15596   ;
15597   return 0;
15598 }
15599 _ACEOF
15600 if ac_fn_c_try_link "$LINENO"; then :
15601   am_cv_lib_iconv=yes
15602         am_cv_func_iconv=yes
15603 fi
15604 rm -f core conftest.err conftest.$ac_objext \
15605     conftest$ac_exeext conftest.$ac_ext
15606       LIBS="$am_save_LIBS"
15607     fi
15608
15609 fi
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15611 $as_echo "$am_cv_func_iconv" >&6; }
15612   if test "$am_cv_func_iconv" = yes; then
15613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15614 $as_echo_n "checking for working iconv... " >&6; }
15615 if ${am_cv_func_iconv_works+:} false; then :
15616   $as_echo_n "(cached) " >&6
15617 else
15618
15619             am_save_LIBS="$LIBS"
15620       if test $am_cv_lib_iconv = yes; then
15621         LIBS="$LIBS $LIBICONV"
15622       fi
15623       if test "$cross_compiling" = yes; then :
15624   case "$host_os" in
15625            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15626            *)            am_cv_func_iconv_works="guessing yes" ;;
15627          esac
15628 else
15629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15630 /* end confdefs.h.  */
15631
15632 #include <iconv.h>
15633 #include <string.h>
15634 int main ()
15635 {
15636   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15637      returns.  */
15638   {
15639     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15640     if (cd_utf8_to_88591 != (iconv_t)(-1))
15641       {
15642         static const char input[] = "\342\202\254"; /* EURO SIGN */
15643         char buf[10];
15644         const char *inptr = input;
15645         size_t inbytesleft = strlen (input);
15646         char *outptr = buf;
15647         size_t outbytesleft = sizeof (buf);
15648         size_t res = iconv (cd_utf8_to_88591,
15649                             (char **) &inptr, &inbytesleft,
15650                             &outptr, &outbytesleft);
15651         if (res == 0)
15652           return 1;
15653       }
15654   }
15655   /* Test against Solaris 10 bug: Failures are not distinguishable from
15656      successful returns.  */
15657   {
15658     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15659     if (cd_ascii_to_88591 != (iconv_t)(-1))
15660       {
15661         static const char input[] = "\263";
15662         char buf[10];
15663         const char *inptr = input;
15664         size_t inbytesleft = strlen (input);
15665         char *outptr = buf;
15666         size_t outbytesleft = sizeof (buf);
15667         size_t res = iconv (cd_ascii_to_88591,
15668                             (char **) &inptr, &inbytesleft,
15669                             &outptr, &outbytesleft);
15670         if (res == 0)
15671           return 1;
15672       }
15673   }
15674 #if 0 /* This bug could be worked around by the caller.  */
15675   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15676   {
15677     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15678     if (cd_88591_to_utf8 != (iconv_t)(-1))
15679       {
15680         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15681         char buf[50];
15682         const char *inptr = input;
15683         size_t inbytesleft = strlen (input);
15684         char *outptr = buf;
15685         size_t outbytesleft = sizeof (buf);
15686         size_t res = iconv (cd_88591_to_utf8,
15687                             (char **) &inptr, &inbytesleft,
15688                             &outptr, &outbytesleft);
15689         if ((int)res > 0)
15690           return 1;
15691       }
15692   }
15693 #endif
15694   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15695      provided.  */
15696   if (/* Try standardized names.  */
15697       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15698       /* Try IRIX, OSF/1 names.  */
15699       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15700       /* Try AIX names.  */
15701       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15702       /* Try HP-UX names.  */
15703       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15704     return 1;
15705   return 0;
15706 }
15707 _ACEOF
15708 if ac_fn_c_try_run "$LINENO"; then :
15709   am_cv_func_iconv_works=yes
15710 else
15711   am_cv_func_iconv_works=no
15712 fi
15713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15714   conftest.$ac_objext conftest.beam conftest.$ac_ext
15715 fi
15716
15717       LIBS="$am_save_LIBS"
15718
15719 fi
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15721 $as_echo "$am_cv_func_iconv_works" >&6; }
15722     case "$am_cv_func_iconv_works" in
15723       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15724       *)   am_func_iconv=yes ;;
15725     esac
15726   else
15727     am_func_iconv=no am_cv_lib_iconv=no
15728   fi
15729   if test "$am_func_iconv" = yes; then
15730
15731 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15732
15733   fi
15734   if test "$am_cv_lib_iconv" = yes; then
15735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15736 $as_echo_n "checking how to link with libiconv... " >&6; }
15737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15738 $as_echo "$LIBICONV" >&6; }
15739   else
15740             CPPFLAGS="$am_save_CPPFLAGS"
15741     LIBICONV=
15742     LTLIBICONV=
15743   fi
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755     use_additional=yes
15756
15757   acl_save_prefix="$prefix"
15758   prefix="$acl_final_prefix"
15759   acl_save_exec_prefix="$exec_prefix"
15760   exec_prefix="$acl_final_exec_prefix"
15761
15762     eval additional_includedir=\"$includedir\"
15763     eval additional_libdir=\"$libdir\"
15764
15765   exec_prefix="$acl_save_exec_prefix"
15766   prefix="$acl_save_prefix"
15767
15768
15769 # Check whether --with-libintl-prefix was given.
15770 if test "${with_libintl_prefix+set}" = set; then :
15771   withval=$with_libintl_prefix;
15772     if test "X$withval" = "Xno"; then
15773       use_additional=no
15774     else
15775       if test "X$withval" = "X"; then
15776
15777   acl_save_prefix="$prefix"
15778   prefix="$acl_final_prefix"
15779   acl_save_exec_prefix="$exec_prefix"
15780   exec_prefix="$acl_final_exec_prefix"
15781
15782           eval additional_includedir=\"$includedir\"
15783           eval additional_libdir=\"$libdir\"
15784
15785   exec_prefix="$acl_save_exec_prefix"
15786   prefix="$acl_save_prefix"
15787
15788       else
15789         additional_includedir="$withval/include"
15790         additional_libdir="$withval/$acl_libdirstem"
15791         if test "$acl_libdirstem2" != "$acl_libdirstem" \
15792            && ! test -d "$withval/$acl_libdirstem"; then
15793           additional_libdir="$withval/$acl_libdirstem2"
15794         fi
15795       fi
15796     fi
15797
15798 fi
15799
15800       LIBINTL=
15801   LTLIBINTL=
15802   INCINTL=
15803   LIBINTL_PREFIX=
15804       HAVE_LIBINTL=
15805   rpathdirs=
15806   ltrpathdirs=
15807   names_already_handled=
15808   names_next_round='intl '
15809   while test -n "$names_next_round"; do
15810     names_this_round="$names_next_round"
15811     names_next_round=
15812     for name in $names_this_round; do
15813       already_handled=
15814       for n in $names_already_handled; do
15815         if test "$n" = "$name"; then
15816           already_handled=yes
15817           break
15818         fi
15819       done
15820       if test -z "$already_handled"; then
15821         names_already_handled="$names_already_handled $name"
15822                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15823         eval value=\"\$HAVE_LIB$uppername\"
15824         if test -n "$value"; then
15825           if test "$value" = yes; then
15826             eval value=\"\$LIB$uppername\"
15827             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15828             eval value=\"\$LTLIB$uppername\"
15829             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15830           else
15831                                     :
15832           fi
15833         else
15834                               found_dir=
15835           found_la=
15836           found_so=
15837           found_a=
15838           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15839           if test -n "$acl_shlibext"; then
15840             shrext=".$acl_shlibext"             # typically: shrext=.so
15841           else
15842             shrext=
15843           fi
15844           if test $use_additional = yes; then
15845             dir="$additional_libdir"
15846                                     if test -n "$acl_shlibext"; then
15847               if test -f "$dir/$libname$shrext"; then
15848                 found_dir="$dir"
15849                 found_so="$dir/$libname$shrext"
15850               else
15851                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15852                   ver=`(cd "$dir" && \
15853                         for f in "$libname$shrext".*; do echo "$f"; done \
15854                         | sed -e "s,^$libname$shrext\\\\.,," \
15855                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15856                         | sed 1q ) 2>/dev/null`
15857                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15858                     found_dir="$dir"
15859                     found_so="$dir/$libname$shrext.$ver"
15860                   fi
15861                 else
15862                   eval library_names=\"$acl_library_names_spec\"
15863                   for f in $library_names; do
15864                     if test -f "$dir/$f"; then
15865                       found_dir="$dir"
15866                       found_so="$dir/$f"
15867                       break
15868                     fi
15869                   done
15870                 fi
15871               fi
15872             fi
15873                         if test "X$found_dir" = "X"; then
15874               if test -f "$dir/$libname.$acl_libext"; then
15875                 found_dir="$dir"
15876                 found_a="$dir/$libname.$acl_libext"
15877               fi
15878             fi
15879             if test "X$found_dir" != "X"; then
15880               if test -f "$dir/$libname.la"; then
15881                 found_la="$dir/$libname.la"
15882               fi
15883             fi
15884           fi
15885           if test "X$found_dir" = "X"; then
15886             for x in $LDFLAGS $LTLIBINTL; do
15887
15888   acl_save_prefix="$prefix"
15889   prefix="$acl_final_prefix"
15890   acl_save_exec_prefix="$exec_prefix"
15891   exec_prefix="$acl_final_exec_prefix"
15892   eval x=\"$x\"
15893   exec_prefix="$acl_save_exec_prefix"
15894   prefix="$acl_save_prefix"
15895
15896               case "$x" in
15897                 -L*)
15898                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15899                                     if test -n "$acl_shlibext"; then
15900                     if test -f "$dir/$libname$shrext"; then
15901                       found_dir="$dir"
15902                       found_so="$dir/$libname$shrext"
15903                     else
15904                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15905                         ver=`(cd "$dir" && \
15906                               for f in "$libname$shrext".*; do echo "$f"; done \
15907                               | sed -e "s,^$libname$shrext\\\\.,," \
15908                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15909                               | sed 1q ) 2>/dev/null`
15910                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15911                           found_dir="$dir"
15912                           found_so="$dir/$libname$shrext.$ver"
15913                         fi
15914                       else
15915                         eval library_names=\"$acl_library_names_spec\"
15916                         for f in $library_names; do
15917                           if test -f "$dir/$f"; then
15918                             found_dir="$dir"
15919                             found_so="$dir/$f"
15920                             break
15921                           fi
15922                         done
15923                       fi
15924                     fi
15925                   fi
15926                                     if test "X$found_dir" = "X"; then
15927                     if test -f "$dir/$libname.$acl_libext"; then
15928                       found_dir="$dir"
15929                       found_a="$dir/$libname.$acl_libext"
15930                     fi
15931                   fi
15932                   if test "X$found_dir" != "X"; then
15933                     if test -f "$dir/$libname.la"; then
15934                       found_la="$dir/$libname.la"
15935                     fi
15936                   fi
15937                   ;;
15938               esac
15939               if test "X$found_dir" != "X"; then
15940                 break
15941               fi
15942             done
15943           fi
15944           if test "X$found_dir" != "X"; then
15945                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15946             if test "X$found_so" != "X"; then
15947                                                         if test "$enable_rpath" = no \
15948                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15949                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15950                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15951               else
15952                                                                                 haveit=
15953                 for x in $ltrpathdirs; do
15954                   if test "X$x" = "X$found_dir"; then
15955                     haveit=yes
15956                     break
15957                   fi
15958                 done
15959                 if test -z "$haveit"; then
15960                   ltrpathdirs="$ltrpathdirs $found_dir"
15961                 fi
15962                                 if test "$acl_hardcode_direct" = yes; then
15963                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15964                 else
15965                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15966                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15967                                                             haveit=
15968                     for x in $rpathdirs; do
15969                       if test "X$x" = "X$found_dir"; then
15970                         haveit=yes
15971                         break
15972                       fi
15973                     done
15974                     if test -z "$haveit"; then
15975                       rpathdirs="$rpathdirs $found_dir"
15976                     fi
15977                   else
15978                                                                                 haveit=
15979                     for x in $LDFLAGS $LIBINTL; do
15980
15981   acl_save_prefix="$prefix"
15982   prefix="$acl_final_prefix"
15983   acl_save_exec_prefix="$exec_prefix"
15984   exec_prefix="$acl_final_exec_prefix"
15985   eval x=\"$x\"
15986   exec_prefix="$acl_save_exec_prefix"
15987   prefix="$acl_save_prefix"
15988
15989                       if test "X$x" = "X-L$found_dir"; then
15990                         haveit=yes
15991                         break
15992                       fi
15993                     done
15994                     if test -z "$haveit"; then
15995                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15996                     fi
15997                     if test "$acl_hardcode_minus_L" != no; then
15998                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15999                     else
16000                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16001                     fi
16002                   fi
16003                 fi
16004               fi
16005             else
16006               if test "X$found_a" != "X"; then
16007                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16008               else
16009                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16010               fi
16011             fi
16012                         additional_includedir=
16013             case "$found_dir" in
16014               */$acl_libdirstem | */$acl_libdirstem/)
16015                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16016                 if test "$name" = 'intl'; then
16017                   LIBINTL_PREFIX="$basedir"
16018                 fi
16019                 additional_includedir="$basedir/include"
16020                 ;;
16021               */$acl_libdirstem2 | */$acl_libdirstem2/)
16022                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16023                 if test "$name" = 'intl'; then
16024                   LIBINTL_PREFIX="$basedir"
16025                 fi
16026                 additional_includedir="$basedir/include"
16027                 ;;
16028             esac
16029             if test "X$additional_includedir" != "X"; then
16030                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16031                 haveit=
16032                 if test "X$additional_includedir" = "X/usr/local/include"; then
16033                   if test -n "$GCC"; then
16034                     case $host_os in
16035                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16036                     esac
16037                   fi
16038                 fi
16039                 if test -z "$haveit"; then
16040                   for x in $CPPFLAGS $INCINTL; do
16041
16042   acl_save_prefix="$prefix"
16043   prefix="$acl_final_prefix"
16044   acl_save_exec_prefix="$exec_prefix"
16045   exec_prefix="$acl_final_exec_prefix"
16046   eval x=\"$x\"
16047   exec_prefix="$acl_save_exec_prefix"
16048   prefix="$acl_save_prefix"
16049
16050                     if test "X$x" = "X-I$additional_includedir"; then
16051                       haveit=yes
16052                       break
16053                     fi
16054                   done
16055                   if test -z "$haveit"; then
16056                     if test -d "$additional_includedir"; then
16057                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16058                     fi
16059                   fi
16060                 fi
16061               fi
16062             fi
16063                         if test -n "$found_la"; then
16064                                                         save_libdir="$libdir"
16065               case "$found_la" in
16066                 */* | *\\*) . "$found_la" ;;
16067                 *) . "./$found_la" ;;
16068               esac
16069               libdir="$save_libdir"
16070                             for dep in $dependency_libs; do
16071                 case "$dep" in
16072                   -L*)
16073                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16074                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16075                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16076                       haveit=
16077                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16078                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16079                         if test -n "$GCC"; then
16080                           case $host_os in
16081                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16082                           esac
16083                         fi
16084                       fi
16085                       if test -z "$haveit"; then
16086                         haveit=
16087                         for x in $LDFLAGS $LIBINTL; do
16088
16089   acl_save_prefix="$prefix"
16090   prefix="$acl_final_prefix"
16091   acl_save_exec_prefix="$exec_prefix"
16092   exec_prefix="$acl_final_exec_prefix"
16093   eval x=\"$x\"
16094   exec_prefix="$acl_save_exec_prefix"
16095   prefix="$acl_save_prefix"
16096
16097                           if test "X$x" = "X-L$additional_libdir"; then
16098                             haveit=yes
16099                             break
16100                           fi
16101                         done
16102                         if test -z "$haveit"; then
16103                           if test -d "$additional_libdir"; then
16104                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16105                           fi
16106                         fi
16107                         haveit=
16108                         for x in $LDFLAGS $LTLIBINTL; do
16109
16110   acl_save_prefix="$prefix"
16111   prefix="$acl_final_prefix"
16112   acl_save_exec_prefix="$exec_prefix"
16113   exec_prefix="$acl_final_exec_prefix"
16114   eval x=\"$x\"
16115   exec_prefix="$acl_save_exec_prefix"
16116   prefix="$acl_save_prefix"
16117
16118                           if test "X$x" = "X-L$additional_libdir"; then
16119                             haveit=yes
16120                             break
16121                           fi
16122                         done
16123                         if test -z "$haveit"; then
16124                           if test -d "$additional_libdir"; then
16125                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16126                           fi
16127                         fi
16128                       fi
16129                     fi
16130                     ;;
16131                   -R*)
16132                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16133                     if test "$enable_rpath" != no; then
16134                                                                   haveit=
16135                       for x in $rpathdirs; do
16136                         if test "X$x" = "X$dir"; then
16137                           haveit=yes
16138                           break
16139                         fi
16140                       done
16141                       if test -z "$haveit"; then
16142                         rpathdirs="$rpathdirs $dir"
16143                       fi
16144                                                                   haveit=
16145                       for x in $ltrpathdirs; do
16146                         if test "X$x" = "X$dir"; then
16147                           haveit=yes
16148                           break
16149                         fi
16150                       done
16151                       if test -z "$haveit"; then
16152                         ltrpathdirs="$ltrpathdirs $dir"
16153                       fi
16154                     fi
16155                     ;;
16156                   -l*)
16157                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16158                     ;;
16159                   *.la)
16160                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16161                     ;;
16162                   *)
16163                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16164                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16165                     ;;
16166                 esac
16167               done
16168             fi
16169           else
16170                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16171             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16172           fi
16173         fi
16174       fi
16175     done
16176   done
16177   if test "X$rpathdirs" != "X"; then
16178     if test -n "$acl_hardcode_libdir_separator"; then
16179                         alldirs=
16180       for found_dir in $rpathdirs; do
16181         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16182       done
16183             acl_save_libdir="$libdir"
16184       libdir="$alldirs"
16185       eval flag=\"$acl_hardcode_libdir_flag_spec\"
16186       libdir="$acl_save_libdir"
16187       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16188     else
16189             for found_dir in $rpathdirs; do
16190         acl_save_libdir="$libdir"
16191         libdir="$found_dir"
16192         eval flag=\"$acl_hardcode_libdir_flag_spec\"
16193         libdir="$acl_save_libdir"
16194         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16195       done
16196     fi
16197   fi
16198   if test "X$ltrpathdirs" != "X"; then
16199             for found_dir in $ltrpathdirs; do
16200       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16201     done
16202   fi
16203
16204
16205
16206
16207
16208
16209           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16210 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16211 if eval \${$gt_func_gnugettext_libintl+:} false; then :
16212   $as_echo_n "(cached) " >&6
16213 else
16214   gt_save_CPPFLAGS="$CPPFLAGS"
16215             CPPFLAGS="$CPPFLAGS $INCINTL"
16216             gt_save_LIBS="$LIBS"
16217             LIBS="$LIBS $LIBINTL"
16218                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h.  */
16220 #include <libintl.h>
16221 $gt_revision_test_code
16222 extern int _nl_msg_cat_cntr;
16223 extern
16224 #ifdef __cplusplus
16225 "C"
16226 #endif
16227 const char *_nl_expand_alias (const char *);
16228 int
16229 main ()
16230 {
16231 bindtextdomain ("", "");
16232 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16233   ;
16234   return 0;
16235 }
16236 _ACEOF
16237 if ac_fn_c_try_link "$LINENO"; then :
16238   eval "$gt_func_gnugettext_libintl=yes"
16239 else
16240   eval "$gt_func_gnugettext_libintl=no"
16241 fi
16242 rm -f core conftest.err conftest.$ac_objext \
16243     conftest$ac_exeext conftest.$ac_ext
16244                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16245               LIBS="$LIBS $LIBICONV"
16246               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247 /* end confdefs.h.  */
16248 #include <libintl.h>
16249 $gt_revision_test_code
16250 extern int _nl_msg_cat_cntr;
16251 extern
16252 #ifdef __cplusplus
16253 "C"
16254 #endif
16255 const char *_nl_expand_alias (const char *);
16256 int
16257 main ()
16258 {
16259 bindtextdomain ("", "");
16260 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16261   ;
16262   return 0;
16263 }
16264 _ACEOF
16265 if ac_fn_c_try_link "$LINENO"; then :
16266   LIBINTL="$LIBINTL $LIBICONV"
16267                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16268                 eval "$gt_func_gnugettext_libintl=yes"
16269
16270 fi
16271 rm -f core conftest.err conftest.$ac_objext \
16272     conftest$ac_exeext conftest.$ac_ext
16273             fi
16274             CPPFLAGS="$gt_save_CPPFLAGS"
16275             LIBS="$gt_save_LIBS"
16276 fi
16277 eval ac_res=\$$gt_func_gnugettext_libintl
16278                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16279 $as_echo "$ac_res" >&6; }
16280         fi
16281
16282                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16283            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16284                 && test "$PACKAGE" != gettext-runtime \
16285                 && test "$PACKAGE" != gettext-tools; }; then
16286           gt_use_preinstalled_gnugettext=yes
16287         else
16288                     LIBINTL=
16289           LTLIBINTL=
16290           INCINTL=
16291         fi
16292
16293
16294
16295     if test -n "$INTL_MACOSX_LIBS"; then
16296       if test "$gt_use_preinstalled_gnugettext" = "yes" \
16297          || test "$nls_cv_use_gnu_gettext" = "yes"; then
16298                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16299         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16300       fi
16301     fi
16302
16303     if test "$gt_use_preinstalled_gnugettext" = "yes" \
16304        || test "$nls_cv_use_gnu_gettext" = "yes"; then
16305
16306 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16307
16308     else
16309       USE_NLS=no
16310     fi
16311   fi
16312
16313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16314 $as_echo_n "checking whether to use NLS... " >&6; }
16315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16316 $as_echo "$USE_NLS" >&6; }
16317   if test "$USE_NLS" = "yes"; then
16318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16319 $as_echo_n "checking where the gettext function comes from... " >&6; }
16320     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16321       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16322         gt_source="external libintl"
16323       else
16324         gt_source="libc"
16325       fi
16326     else
16327       gt_source="included intl directory"
16328     fi
16329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16330 $as_echo "$gt_source" >&6; }
16331   fi
16332
16333   if test "$USE_NLS" = "yes"; then
16334
16335     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16336       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16337         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16338 $as_echo_n "checking how to link with libintl... " >&6; }
16339         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16340 $as_echo "$LIBINTL" >&6; }
16341
16342   for element in $INCINTL; do
16343     haveit=
16344     for x in $CPPFLAGS; do
16345
16346   acl_save_prefix="$prefix"
16347   prefix="$acl_final_prefix"
16348   acl_save_exec_prefix="$exec_prefix"
16349   exec_prefix="$acl_final_exec_prefix"
16350   eval x=\"$x\"
16351   exec_prefix="$acl_save_exec_prefix"
16352   prefix="$acl_save_prefix"
16353
16354       if test "X$x" = "X$element"; then
16355         haveit=yes
16356         break
16357       fi
16358     done
16359     if test -z "$haveit"; then
16360       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16361     fi
16362   done
16363
16364       fi
16365
16366
16367 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16368
16369
16370 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16371
16372     fi
16373
16374         POSUB=po
16375   fi
16376
16377
16378
16379     INTLLIBS="$LIBINTL"
16380
16381
16382
16383
16384
16385
16386
16387
16388 GETTEXT_PACKAGE=PACKAGE_TARNAME
16389
16390
16391 $as_echo "#define GETTEXT_PACKAGE PACKAGE_TARNAME" >>confdefs.h
16392
16393
16394 ac_config_files="$ac_config_files Makefile po/Makefile.in moonshot.desktop moonshot-webp.desktop moonshot-ui.spec"
16395
16396
16397 cat >confcache <<\_ACEOF
16398 # This file is a shell script that caches the results of configure
16399 # tests run on this system so they can be shared between configure
16400 # scripts and configure runs, see configure's option --config-cache.
16401 # It is not useful on other systems.  If it contains results you don't
16402 # want to keep, you may remove or edit it.
16403 #
16404 # config.status only pays attention to the cache file if you give it
16405 # the --recheck option to rerun configure.
16406 #
16407 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16408 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16409 # following values.
16410
16411 _ACEOF
16412
16413 # The following way of writing the cache mishandles newlines in values,
16414 # but we know of no workaround that is simple, portable, and efficient.
16415 # So, we kill variables containing newlines.
16416 # Ultrix sh set writes to stderr and can't be redirected directly,
16417 # and sets the high bit in the cache file unless we assign to the vars.
16418 (
16419   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16420     eval ac_val=\$$ac_var
16421     case $ac_val in #(
16422     *${as_nl}*)
16423       case $ac_var in #(
16424       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16425 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16426       esac
16427       case $ac_var in #(
16428       _ | IFS | as_nl) ;; #(
16429       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16430       *) { eval $ac_var=; unset $ac_var;} ;;
16431       esac ;;
16432     esac
16433   done
16434
16435   (set) 2>&1 |
16436     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16437     *${as_nl}ac_space=\ *)
16438       # `set' does not quote correctly, so add quotes: double-quote
16439       # substitution turns \\\\ into \\, and sed turns \\ into \.
16440       sed -n \
16441         "s/'/'\\\\''/g;
16442           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16443       ;; #(
16444     *)
16445       # `set' quotes correctly as required by POSIX, so do not add quotes.
16446       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16447       ;;
16448     esac |
16449     sort
16450 ) |
16451   sed '
16452      /^ac_cv_env_/b end
16453      t clear
16454      :clear
16455      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16456      t end
16457      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16458      :end' >>confcache
16459 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16460   if test -w "$cache_file"; then
16461     if test "x$cache_file" != "x/dev/null"; then
16462       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16463 $as_echo "$as_me: updating cache $cache_file" >&6;}
16464       if test ! -f "$cache_file" || test -h "$cache_file"; then
16465         cat confcache >"$cache_file"
16466       else
16467         case $cache_file in #(
16468         */* | ?:*)
16469           mv -f confcache "$cache_file"$$ &&
16470           mv -f "$cache_file"$$ "$cache_file" ;; #(
16471         *)
16472           mv -f confcache "$cache_file" ;;
16473         esac
16474       fi
16475     fi
16476   else
16477     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16478 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16479   fi
16480 fi
16481 rm -f confcache
16482
16483 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16484 # Let make expand exec_prefix.
16485 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16486
16487 DEFS=-DHAVE_CONFIG_H
16488
16489 ac_libobjs=
16490 ac_ltlibobjs=
16491 U=
16492 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16493   # 1. Remove the extension, and $U if already installed.
16494   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16495   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16496   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16497   #    will be set to the directory where LIBOBJS objects are built.
16498   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16499   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16500 done
16501 LIBOBJS=$ac_libobjs
16502
16503 LTLIBOBJS=$ac_ltlibobjs
16504
16505
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16507 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16508    if test -n "$am_sleep_pid"; then
16509      # Hide warnings about reused PIDs.
16510      wait $am_sleep_pid 2>/dev/null
16511    fi
16512    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16513 $as_echo "done" >&6; }
16514  if test -n "$EXEEXT"; then
16515   am__EXEEXT_TRUE=
16516   am__EXEEXT_FALSE='#'
16517 else
16518   am__EXEEXT_TRUE='#'
16519   am__EXEEXT_FALSE=
16520 fi
16521
16522 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16523   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16525 fi
16526 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16527   as_fn_error $? "conditional \"AMDEP\" was never defined.
16528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16529 fi
16530 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16531   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16533 fi
16534 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16535   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16537 fi
16538 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
16539   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
16540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16541 fi
16542 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
16543   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
16544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16545 fi
16546 if test -z "${OS_MACOS_TRUE}" && test -z "${OS_MACOS_FALSE}"; then
16547   as_fn_error $? "conditional \"OS_MACOS\" was never defined.
16548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16549 fi
16550 if test -z "${IPC_MSRPC_TRUE}" && test -z "${IPC_MSRPC_FALSE}"; then
16551   as_fn_error $? "conditional \"IPC_MSRPC\" was never defined.
16552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16553 fi
16554 if test -z "${IPC_DBUS_TRUE}" && test -z "${IPC_DBUS_FALSE}"; then
16555   as_fn_error $? "conditional \"IPC_DBUS\" was never defined.
16556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16557 fi
16558 if test -z "${IPC_DBUS_GLIB_TRUE}" && test -z "${IPC_DBUS_GLIB_FALSE}"; then
16559   as_fn_error $? "conditional \"IPC_DBUS_GLIB\" was never defined.
16560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16561 fi
16562 if test -z "${IPC_GDBUS_TRUE}" && test -z "${IPC_GDBUS_FALSE}"; then
16563   as_fn_error $? "conditional \"IPC_GDBUS\" was never defined.
16564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16565 fi
16566 if test -z "${GIO_VAPI_USES_ARRAYS_TRUE}" && test -z "${GIO_VAPI_USES_ARRAYS_FALSE}"; then
16567   as_fn_error $? "conditional \"GIO_VAPI_USES_ARRAYS\" was never defined.
16568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16569 fi
16570
16571 : "${CONFIG_STATUS=./config.status}"
16572 ac_write_fail=0
16573 ac_clean_files_save=$ac_clean_files
16574 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16576 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16577 as_write_fail=0
16578 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16579 #! $SHELL
16580 # Generated by $as_me.
16581 # Run this file to recreate the current configuration.
16582 # Compiler output produced by configure, useful for debugging
16583 # configure, is in config.log if it exists.
16584
16585 debug=false
16586 ac_cs_recheck=false
16587 ac_cs_silent=false
16588
16589 SHELL=\${CONFIG_SHELL-$SHELL}
16590 export SHELL
16591 _ASEOF
16592 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16593 ## -------------------- ##
16594 ## M4sh Initialization. ##
16595 ## -------------------- ##
16596
16597 # Be more Bourne compatible
16598 DUALCASE=1; export DUALCASE # for MKS sh
16599 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16600   emulate sh
16601   NULLCMD=:
16602   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16603   # is contrary to our usage.  Disable this feature.
16604   alias -g '${1+"$@"}'='"$@"'
16605   setopt NO_GLOB_SUBST
16606 else
16607   case `(set -o) 2>/dev/null` in #(
16608   *posix*) :
16609     set -o posix ;; #(
16610   *) :
16611      ;;
16612 esac
16613 fi
16614
16615
16616 as_nl='
16617 '
16618 export as_nl
16619 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16620 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16621 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16622 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16623 # Prefer a ksh shell builtin over an external printf program on Solaris,
16624 # but without wasting forks for bash or zsh.
16625 if test -z "$BASH_VERSION$ZSH_VERSION" \
16626     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16627   as_echo='print -r --'
16628   as_echo_n='print -rn --'
16629 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16630   as_echo='printf %s\n'
16631   as_echo_n='printf %s'
16632 else
16633   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16634     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16635     as_echo_n='/usr/ucb/echo -n'
16636   else
16637     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16638     as_echo_n_body='eval
16639       arg=$1;
16640       case $arg in #(
16641       *"$as_nl"*)
16642         expr "X$arg" : "X\\(.*\\)$as_nl";
16643         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16644       esac;
16645       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16646     '
16647     export as_echo_n_body
16648     as_echo_n='sh -c $as_echo_n_body as_echo'
16649   fi
16650   export as_echo_body
16651   as_echo='sh -c $as_echo_body as_echo'
16652 fi
16653
16654 # The user is always right.
16655 if test "${PATH_SEPARATOR+set}" != set; then
16656   PATH_SEPARATOR=:
16657   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16658     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16659       PATH_SEPARATOR=';'
16660   }
16661 fi
16662
16663
16664 # IFS
16665 # We need space, tab and new line, in precisely that order.  Quoting is
16666 # there to prevent editors from complaining about space-tab.
16667 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16668 # splitting by setting IFS to empty value.)
16669 IFS=" ""        $as_nl"
16670
16671 # Find who we are.  Look in the path if we contain no directory separator.
16672 as_myself=
16673 case $0 in #((
16674   *[\\/]* ) as_myself=$0 ;;
16675   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16676 for as_dir in $PATH
16677 do
16678   IFS=$as_save_IFS
16679   test -z "$as_dir" && as_dir=.
16680     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16681   done
16682 IFS=$as_save_IFS
16683
16684      ;;
16685 esac
16686 # We did not find ourselves, most probably we were run as `sh COMMAND'
16687 # in which case we are not to be found in the path.
16688 if test "x$as_myself" = x; then
16689   as_myself=$0
16690 fi
16691 if test ! -f "$as_myself"; then
16692   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16693   exit 1
16694 fi
16695
16696 # Unset variables that we do not need and which cause bugs (e.g. in
16697 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16698 # suppresses any "Segmentation fault" message there.  '((' could
16699 # trigger a bug in pdksh 5.2.14.
16700 for as_var in BASH_ENV ENV MAIL MAILPATH
16701 do eval test x\${$as_var+set} = xset \
16702   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16703 done
16704 PS1='$ '
16705 PS2='> '
16706 PS4='+ '
16707
16708 # NLS nuisances.
16709 LC_ALL=C
16710 export LC_ALL
16711 LANGUAGE=C
16712 export LANGUAGE
16713
16714 # CDPATH.
16715 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16716
16717
16718 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16719 # ----------------------------------------
16720 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16721 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16722 # script with STATUS, using 1 if that was 0.
16723 as_fn_error ()
16724 {
16725   as_status=$1; test $as_status -eq 0 && as_status=1
16726   if test "$4"; then
16727     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16728     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16729   fi
16730   $as_echo "$as_me: error: $2" >&2
16731   as_fn_exit $as_status
16732 } # as_fn_error
16733
16734
16735 # as_fn_set_status STATUS
16736 # -----------------------
16737 # Set $? to STATUS, without forking.
16738 as_fn_set_status ()
16739 {
16740   return $1
16741 } # as_fn_set_status
16742
16743 # as_fn_exit STATUS
16744 # -----------------
16745 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16746 as_fn_exit ()
16747 {
16748   set +e
16749   as_fn_set_status $1
16750   exit $1
16751 } # as_fn_exit
16752
16753 # as_fn_unset VAR
16754 # ---------------
16755 # Portably unset VAR.
16756 as_fn_unset ()
16757 {
16758   { eval $1=; unset $1;}
16759 }
16760 as_unset=as_fn_unset
16761 # as_fn_append VAR VALUE
16762 # ----------------------
16763 # Append the text in VALUE to the end of the definition contained in VAR. Take
16764 # advantage of any shell optimizations that allow amortized linear growth over
16765 # repeated appends, instead of the typical quadratic growth present in naive
16766 # implementations.
16767 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16768   eval 'as_fn_append ()
16769   {
16770     eval $1+=\$2
16771   }'
16772 else
16773   as_fn_append ()
16774   {
16775     eval $1=\$$1\$2
16776   }
16777 fi # as_fn_append
16778
16779 # as_fn_arith ARG...
16780 # ------------------
16781 # Perform arithmetic evaluation on the ARGs, and store the result in the
16782 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16783 # must be portable across $(()) and expr.
16784 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16785   eval 'as_fn_arith ()
16786   {
16787     as_val=$(( $* ))
16788   }'
16789 else
16790   as_fn_arith ()
16791   {
16792     as_val=`expr "$@" || test $? -eq 1`
16793   }
16794 fi # as_fn_arith
16795
16796
16797 if expr a : '\(a\)' >/dev/null 2>&1 &&
16798    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16799   as_expr=expr
16800 else
16801   as_expr=false
16802 fi
16803
16804 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16805   as_basename=basename
16806 else
16807   as_basename=false
16808 fi
16809
16810 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16811   as_dirname=dirname
16812 else
16813   as_dirname=false
16814 fi
16815
16816 as_me=`$as_basename -- "$0" ||
16817 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16818          X"$0" : 'X\(//\)$' \| \
16819          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16820 $as_echo X/"$0" |
16821     sed '/^.*\/\([^/][^/]*\)\/*$/{
16822             s//\1/
16823             q
16824           }
16825           /^X\/\(\/\/\)$/{
16826             s//\1/
16827             q
16828           }
16829           /^X\/\(\/\).*/{
16830             s//\1/
16831             q
16832           }
16833           s/.*/./; q'`
16834
16835 # Avoid depending upon Character Ranges.
16836 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16837 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16838 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16839 as_cr_digits='0123456789'
16840 as_cr_alnum=$as_cr_Letters$as_cr_digits
16841
16842 ECHO_C= ECHO_N= ECHO_T=
16843 case `echo -n x` in #(((((
16844 -n*)
16845   case `echo 'xy\c'` in
16846   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16847   xy)  ECHO_C='\c';;
16848   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16849        ECHO_T=' ';;
16850   esac;;
16851 *)
16852   ECHO_N='-n';;
16853 esac
16854
16855 rm -f conf$$ conf$$.exe conf$$.file
16856 if test -d conf$$.dir; then
16857   rm -f conf$$.dir/conf$$.file
16858 else
16859   rm -f conf$$.dir
16860   mkdir conf$$.dir 2>/dev/null
16861 fi
16862 if (echo >conf$$.file) 2>/dev/null; then
16863   if ln -s conf$$.file conf$$ 2>/dev/null; then
16864     as_ln_s='ln -s'
16865     # ... but there are two gotchas:
16866     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16867     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16868     # In both cases, we have to default to `cp -pR'.
16869     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16870       as_ln_s='cp -pR'
16871   elif ln conf$$.file conf$$ 2>/dev/null; then
16872     as_ln_s=ln
16873   else
16874     as_ln_s='cp -pR'
16875   fi
16876 else
16877   as_ln_s='cp -pR'
16878 fi
16879 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16880 rmdir conf$$.dir 2>/dev/null
16881
16882
16883 # as_fn_mkdir_p
16884 # -------------
16885 # Create "$as_dir" as a directory, including parents if necessary.
16886 as_fn_mkdir_p ()
16887 {
16888
16889   case $as_dir in #(
16890   -*) as_dir=./$as_dir;;
16891   esac
16892   test -d "$as_dir" || eval $as_mkdir_p || {
16893     as_dirs=
16894     while :; do
16895       case $as_dir in #(
16896       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16897       *) as_qdir=$as_dir;;
16898       esac
16899       as_dirs="'$as_qdir' $as_dirs"
16900       as_dir=`$as_dirname -- "$as_dir" ||
16901 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16902          X"$as_dir" : 'X\(//\)[^/]' \| \
16903          X"$as_dir" : 'X\(//\)$' \| \
16904          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16905 $as_echo X"$as_dir" |
16906     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16907             s//\1/
16908             q
16909           }
16910           /^X\(\/\/\)[^/].*/{
16911             s//\1/
16912             q
16913           }
16914           /^X\(\/\/\)$/{
16915             s//\1/
16916             q
16917           }
16918           /^X\(\/\).*/{
16919             s//\1/
16920             q
16921           }
16922           s/.*/./; q'`
16923       test -d "$as_dir" && break
16924     done
16925     test -z "$as_dirs" || eval "mkdir $as_dirs"
16926   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16927
16928
16929 } # as_fn_mkdir_p
16930 if mkdir -p . 2>/dev/null; then
16931   as_mkdir_p='mkdir -p "$as_dir"'
16932 else
16933   test -d ./-p && rmdir ./-p
16934   as_mkdir_p=false
16935 fi
16936
16937
16938 # as_fn_executable_p FILE
16939 # -----------------------
16940 # Test if FILE is an executable regular file.
16941 as_fn_executable_p ()
16942 {
16943   test -f "$1" && test -x "$1"
16944 } # as_fn_executable_p
16945 as_test_x='test -x'
16946 as_executable_p=as_fn_executable_p
16947
16948 # Sed expression to map a string onto a valid CPP name.
16949 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16950
16951 # Sed expression to map a string onto a valid variable name.
16952 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16953
16954
16955 exec 6>&1
16956 ## ----------------------------------- ##
16957 ## Main body of $CONFIG_STATUS script. ##
16958 ## ----------------------------------- ##
16959 _ASEOF
16960 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16961
16962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16963 # Save the log message, to keep $0 and so on meaningful, and to
16964 # report actual input values of CONFIG_FILES etc. instead of their
16965 # values after options handling.
16966 ac_log="
16967 This file was extended by Moonshot-ui $as_me 0.7.2, which was
16968 generated by GNU Autoconf 2.69.  Invocation command line was
16969
16970   CONFIG_FILES    = $CONFIG_FILES
16971   CONFIG_HEADERS  = $CONFIG_HEADERS
16972   CONFIG_LINKS    = $CONFIG_LINKS
16973   CONFIG_COMMANDS = $CONFIG_COMMANDS
16974   $ $0 $@
16975
16976 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16977 "
16978
16979 _ACEOF
16980
16981 case $ac_config_files in *"
16982 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16983 esac
16984
16985 case $ac_config_headers in *"
16986 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16987 esac
16988
16989
16990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16991 # Files that config.status was made for.
16992 config_files="$ac_config_files"
16993 config_headers="$ac_config_headers"
16994 config_commands="$ac_config_commands"
16995
16996 _ACEOF
16997
16998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16999 ac_cs_usage="\
17000 \`$as_me' instantiates files and other configuration actions
17001 from templates according to the current configuration.  Unless the files
17002 and actions are specified as TAGs, all are instantiated by default.
17003
17004 Usage: $0 [OPTION]... [TAG]...
17005
17006   -h, --help       print this help, then exit
17007   -V, --version    print version number and configuration settings, then exit
17008       --config     print configuration, then exit
17009   -q, --quiet, --silent
17010                    do not print progress messages
17011   -d, --debug      don't remove temporary files
17012       --recheck    update $as_me by reconfiguring in the same conditions
17013       --file=FILE[:TEMPLATE]
17014                    instantiate the configuration file FILE
17015       --header=FILE[:TEMPLATE]
17016                    instantiate the configuration header FILE
17017
17018 Configuration files:
17019 $config_files
17020
17021 Configuration headers:
17022 $config_headers
17023
17024 Configuration commands:
17025 $config_commands
17026
17027 Report bugs to <moonshot-community@jiscmail.ac.uk>.
17028 Moonshot-ui home page: <http://www.project-moonshot.org/>."
17029
17030 _ACEOF
17031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17032 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17033 ac_cs_version="\\
17034 Moonshot-ui config.status 0.7.2
17035 configured by $0, generated by GNU Autoconf 2.69,
17036   with options \\"\$ac_cs_config\\"
17037
17038 Copyright (C) 2012 Free Software Foundation, Inc.
17039 This config.status script is free software; the Free Software Foundation
17040 gives unlimited permission to copy, distribute and modify it."
17041
17042 ac_pwd='$ac_pwd'
17043 srcdir='$srcdir'
17044 INSTALL='$INSTALL'
17045 MKDIR_P='$MKDIR_P'
17046 AWK='$AWK'
17047 test -n "\$AWK" || AWK=awk
17048 _ACEOF
17049
17050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17051 # The default lists apply if the user does not specify any file.
17052 ac_need_defaults=:
17053 while test $# != 0
17054 do
17055   case $1 in
17056   --*=?*)
17057     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17058     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17059     ac_shift=:
17060     ;;
17061   --*=)
17062     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17063     ac_optarg=
17064     ac_shift=:
17065     ;;
17066   *)
17067     ac_option=$1
17068     ac_optarg=$2
17069     ac_shift=shift
17070     ;;
17071   esac
17072
17073   case $ac_option in
17074   # Handling of the options.
17075   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17076     ac_cs_recheck=: ;;
17077   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17078     $as_echo "$ac_cs_version"; exit ;;
17079   --config | --confi | --conf | --con | --co | --c )
17080     $as_echo "$ac_cs_config"; exit ;;
17081   --debug | --debu | --deb | --de | --d | -d )
17082     debug=: ;;
17083   --file | --fil | --fi | --f )
17084     $ac_shift
17085     case $ac_optarg in
17086     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17087     '') as_fn_error $? "missing file argument" ;;
17088     esac
17089     as_fn_append CONFIG_FILES " '$ac_optarg'"
17090     ac_need_defaults=false;;
17091   --header | --heade | --head | --hea )
17092     $ac_shift
17093     case $ac_optarg in
17094     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17095     esac
17096     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17097     ac_need_defaults=false;;
17098   --he | --h)
17099     # Conflict between --help and --header
17100     as_fn_error $? "ambiguous option: \`$1'
17101 Try \`$0 --help' for more information.";;
17102   --help | --hel | -h )
17103     $as_echo "$ac_cs_usage"; exit ;;
17104   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17105   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17106     ac_cs_silent=: ;;
17107
17108   # This is an error.
17109   -*) as_fn_error $? "unrecognized option: \`$1'
17110 Try \`$0 --help' for more information." ;;
17111
17112   *) as_fn_append ac_config_targets " $1"
17113      ac_need_defaults=false ;;
17114
17115   esac
17116   shift
17117 done
17118
17119 ac_configure_extra_args=
17120
17121 if $ac_cs_silent; then
17122   exec 6>/dev/null
17123   ac_configure_extra_args="$ac_configure_extra_args --silent"
17124 fi
17125
17126 _ACEOF
17127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17128 if \$ac_cs_recheck; then
17129   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17130   shift
17131   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17132   CONFIG_SHELL='$SHELL'
17133   export CONFIG_SHELL
17134   exec "\$@"
17135 fi
17136
17137 _ACEOF
17138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17139 exec 5>>config.log
17140 {
17141   echo
17142   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17143 ## Running $as_me. ##
17144 _ASBOX
17145   $as_echo "$ac_log"
17146 } >&5
17147
17148 _ACEOF
17149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17150 #
17151 # INIT-COMMANDS
17152 #
17153 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17154
17155
17156 # The HP-UX ksh and POSIX shell print the target directory to stdout
17157 # if CDPATH is set.
17158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17159
17160 sed_quote_subst='$sed_quote_subst'
17161 double_quote_subst='$double_quote_subst'
17162 delay_variable_subst='$delay_variable_subst'
17163 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17164 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17165 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17166 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17167 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17168 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17169 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17170 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17171 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17172 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17173 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17174 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17175 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17176 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17177 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17178 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17179 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17180 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17181 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17182 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17183 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17184 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17185 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17186 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17187 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17188 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17189 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17190 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17191 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17192 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17193 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17194 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17195 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17196 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17197 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17198 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17199 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17200 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17201 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17202 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17203 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17204 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17205 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17206 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17207 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17208 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17209 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17210 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17211 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17212 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17213 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17214 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17215 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17216 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17217 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17218 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17219 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17220 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17221 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17222 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17223 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17224 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17225 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17226 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17227 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17228 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17229 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17230 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17231 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17232 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17233 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17234 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17235 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17236 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17237 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17238 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17239 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17240 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17241 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17242 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17243 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17244 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17245 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17246 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17247 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17248 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17249 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17250 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17251 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17252 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17253 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17254 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17255 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17256 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17257 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17258 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17259 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17260 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17261 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17262 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17263 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17264 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17265 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17266 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17267 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17268 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17269 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17270 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17271 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17272 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17273 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17274 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17275 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17276 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17277 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17278 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17279 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17280 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17281 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17282 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17283 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17284 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17285 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17286 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17287 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17288 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17289 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17290 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17291 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17292 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17293 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17294
17295 LTCC='$LTCC'
17296 LTCFLAGS='$LTCFLAGS'
17297 compiler='$compiler_DEFAULT'
17298
17299 # A function that is used when there is no print builtin or printf.
17300 func_fallback_echo ()
17301 {
17302   eval 'cat <<_LTECHO_EOF
17303 \$1
17304 _LTECHO_EOF'
17305 }
17306
17307 # Quote evaled strings.
17308 for var in AS \
17309 DLLTOOL \
17310 OBJDUMP \
17311 SHELL \
17312 ECHO \
17313 PATH_SEPARATOR \
17314 SED \
17315 GREP \
17316 EGREP \
17317 FGREP \
17318 LD \
17319 NM \
17320 LN_S \
17321 lt_SP2NL \
17322 lt_NL2SP \
17323 reload_flag \
17324 deplibs_check_method \
17325 file_magic_cmd \
17326 file_magic_glob \
17327 want_nocaseglob \
17328 sharedlib_from_linklib_cmd \
17329 AR \
17330 AR_FLAGS \
17331 archiver_list_spec \
17332 STRIP \
17333 RANLIB \
17334 CC \
17335 CFLAGS \
17336 compiler \
17337 lt_cv_sys_global_symbol_pipe \
17338 lt_cv_sys_global_symbol_to_cdecl \
17339 lt_cv_sys_global_symbol_to_c_name_address \
17340 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17341 nm_file_list_spec \
17342 lt_prog_compiler_no_builtin_flag \
17343 lt_prog_compiler_pic \
17344 lt_prog_compiler_wl \
17345 lt_prog_compiler_static \
17346 lt_cv_prog_compiler_c_o \
17347 need_locks \
17348 MANIFEST_TOOL \
17349 DSYMUTIL \
17350 NMEDIT \
17351 LIPO \
17352 OTOOL \
17353 OTOOL64 \
17354 shrext_cmds \
17355 export_dynamic_flag_spec \
17356 whole_archive_flag_spec \
17357 compiler_needs_object \
17358 with_gnu_ld \
17359 allow_undefined_flag \
17360 no_undefined_flag \
17361 hardcode_libdir_flag_spec \
17362 hardcode_libdir_separator \
17363 exclude_expsyms \
17364 include_expsyms \
17365 file_list_spec \
17366 variables_saved_for_relink \
17367 libname_spec \
17368 library_names_spec \
17369 soname_spec \
17370 install_override_mode \
17371 finish_eval \
17372 old_striplib \
17373 striplib; do
17374     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17375     *[\\\\\\\`\\"\\\$]*)
17376       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17377       ;;
17378     *)
17379       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17380       ;;
17381     esac
17382 done
17383
17384 # Double-quote double-evaled strings.
17385 for var in reload_cmds \
17386 old_postinstall_cmds \
17387 old_postuninstall_cmds \
17388 old_archive_cmds \
17389 extract_expsyms_cmds \
17390 old_archive_from_new_cmds \
17391 old_archive_from_expsyms_cmds \
17392 archive_cmds \
17393 archive_expsym_cmds \
17394 module_cmds \
17395 module_expsym_cmds \
17396 export_symbols_cmds \
17397 prelink_cmds \
17398 postlink_cmds \
17399 postinstall_cmds \
17400 postuninstall_cmds \
17401 finish_cmds \
17402 sys_lib_search_path_spec \
17403 sys_lib_dlsearch_path_spec; do
17404     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17405     *[\\\\\\\`\\"\\\$]*)
17406       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17407       ;;
17408     *)
17409       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17410       ;;
17411     esac
17412 done
17413
17414 ac_aux_dir='$ac_aux_dir'
17415 xsi_shell='$xsi_shell'
17416 lt_shell_append='$lt_shell_append'
17417
17418 # See if we are running on zsh, and set the options which allow our
17419 # commands through without removal of \ escapes INIT.
17420 if test -n "\${ZSH_VERSION+set}" ; then
17421    setopt NO_GLOB_SUBST
17422 fi
17423
17424
17425     PACKAGE='$PACKAGE'
17426     VERSION='$VERSION'
17427     TIMESTAMP='$TIMESTAMP'
17428     RM='$RM'
17429     ofile='$ofile'
17430
17431
17432
17433 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17434     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17435     # from automake < 1.5.
17436     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17437     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17438     LINGUAS="${LINGUAS-%UNSET%}"
17439
17440
17441 _ACEOF
17442
17443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17444
17445 # Handling of arguments.
17446 for ac_config_target in $ac_config_targets
17447 do
17448   case $ac_config_target in
17449     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17450     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17451     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17452     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17453     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17454     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17455     "moonshot.desktop") CONFIG_FILES="$CONFIG_FILES moonshot.desktop" ;;
17456     "moonshot-webp.desktop") CONFIG_FILES="$CONFIG_FILES moonshot-webp.desktop" ;;
17457     "moonshot-ui.spec") CONFIG_FILES="$CONFIG_FILES moonshot-ui.spec" ;;
17458
17459   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17460   esac
17461 done
17462
17463
17464 # If the user did not use the arguments to specify the items to instantiate,
17465 # then the envvar interface is used.  Set only those that are not.
17466 # We use the long form for the default assignment because of an extremely
17467 # bizarre bug on SunOS 4.1.3.
17468 if $ac_need_defaults; then
17469   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17470   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17471   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17472 fi
17473
17474 # Have a temporary directory for convenience.  Make it in the build tree
17475 # simply because there is no reason against having it here, and in addition,
17476 # creating and moving files from /tmp can sometimes cause problems.
17477 # Hook for its removal unless debugging.
17478 # Note that there is a small window in which the directory will not be cleaned:
17479 # after its creation but before its name has been assigned to `$tmp'.
17480 $debug ||
17481 {
17482   tmp= ac_tmp=
17483   trap 'exit_status=$?
17484   : "${ac_tmp:=$tmp}"
17485   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17486 ' 0
17487   trap 'as_fn_exit 1' 1 2 13 15
17488 }
17489 # Create a (secure) tmp directory for tmp files.
17490
17491 {
17492   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17493   test -d "$tmp"
17494 }  ||
17495 {
17496   tmp=./conf$$-$RANDOM
17497   (umask 077 && mkdir "$tmp")
17498 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17499 ac_tmp=$tmp
17500
17501 # Set up the scripts for CONFIG_FILES section.
17502 # No need to generate them if there are no CONFIG_FILES.
17503 # This happens for instance with `./config.status config.h'.
17504 if test -n "$CONFIG_FILES"; then
17505
17506
17507 ac_cr=`echo X | tr X '\015'`
17508 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17509 # But we know of no other shell where ac_cr would be empty at this
17510 # point, so we can use a bashism as a fallback.
17511 if test "x$ac_cr" = x; then
17512   eval ac_cr=\$\'\\r\'
17513 fi
17514 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17515 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17516   ac_cs_awk_cr='\\r'
17517 else
17518   ac_cs_awk_cr=$ac_cr
17519 fi
17520
17521 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17522 _ACEOF
17523
17524
17525 {
17526   echo "cat >conf$$subs.awk <<_ACEOF" &&
17527   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17528   echo "_ACEOF"
17529 } >conf$$subs.sh ||
17530   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17531 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17532 ac_delim='%!_!# '
17533 for ac_last_try in false false false false false :; do
17534   . ./conf$$subs.sh ||
17535     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17536
17537   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17538   if test $ac_delim_n = $ac_delim_num; then
17539     break
17540   elif $ac_last_try; then
17541     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17542   else
17543     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17544   fi
17545 done
17546 rm -f conf$$subs.sh
17547
17548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17549 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17550 _ACEOF
17551 sed -n '
17552 h
17553 s/^/S["/; s/!.*/"]=/
17554 p
17555 g
17556 s/^[^!]*!//
17557 :repl
17558 t repl
17559 s/'"$ac_delim"'$//
17560 t delim
17561 :nl
17562 h
17563 s/\(.\{148\}\)..*/\1/
17564 t more1
17565 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17566 p
17567 n
17568 b repl
17569 :more1
17570 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17571 p
17572 g
17573 s/.\{148\}//
17574 t nl
17575 :delim
17576 h
17577 s/\(.\{148\}\)..*/\1/
17578 t more2
17579 s/["\\]/\\&/g; s/^/"/; s/$/"/
17580 p
17581 b
17582 :more2
17583 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17584 p
17585 g
17586 s/.\{148\}//
17587 t delim
17588 ' <conf$$subs.awk | sed '
17589 /^[^""]/{
17590   N
17591   s/\n//
17592 }
17593 ' >>$CONFIG_STATUS || ac_write_fail=1
17594 rm -f conf$$subs.awk
17595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17596 _ACAWK
17597 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17598   for (key in S) S_is_set[key] = 1
17599   FS = "\a"
17600
17601 }
17602 {
17603   line = $ 0
17604   nfields = split(line, field, "@")
17605   substed = 0
17606   len = length(field[1])
17607   for (i = 2; i < nfields; i++) {
17608     key = field[i]
17609     keylen = length(key)
17610     if (S_is_set[key]) {
17611       value = S[key]
17612       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17613       len += length(value) + length(field[++i])
17614       substed = 1
17615     } else
17616       len += 1 + keylen
17617   }
17618
17619   print line
17620 }
17621
17622 _ACAWK
17623 _ACEOF
17624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17625 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17626   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17627 else
17628   cat
17629 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17630   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17631 _ACEOF
17632
17633 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17634 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17635 # trailing colons and then remove the whole line if VPATH becomes empty
17636 # (actually we leave an empty line to preserve line numbers).
17637 if test "x$srcdir" = x.; then
17638   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17639 h
17640 s///
17641 s/^/:/
17642 s/[      ]*$/:/
17643 s/:\$(srcdir):/:/g
17644 s/:\${srcdir}:/:/g
17645 s/:@srcdir@:/:/g
17646 s/^:*//
17647 s/:*$//
17648 x
17649 s/\(=[   ]*\).*/\1/
17650 G
17651 s/\n//
17652 s/^[^=]*=[       ]*$//
17653 }'
17654 fi
17655
17656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17657 fi # test -n "$CONFIG_FILES"
17658
17659 # Set up the scripts for CONFIG_HEADERS section.
17660 # No need to generate them if there are no CONFIG_HEADERS.
17661 # This happens for instance with `./config.status Makefile'.
17662 if test -n "$CONFIG_HEADERS"; then
17663 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17664 BEGIN {
17665 _ACEOF
17666
17667 # Transform confdefs.h into an awk script `defines.awk', embedded as
17668 # here-document in config.status, that substitutes the proper values into
17669 # config.h.in to produce config.h.
17670
17671 # Create a delimiter string that does not exist in confdefs.h, to ease
17672 # handling of long lines.
17673 ac_delim='%!_!# '
17674 for ac_last_try in false false :; do
17675   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17676   if test -z "$ac_tt"; then
17677     break
17678   elif $ac_last_try; then
17679     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17680   else
17681     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17682   fi
17683 done
17684
17685 # For the awk script, D is an array of macro values keyed by name,
17686 # likewise P contains macro parameters if any.  Preserve backslash
17687 # newline sequences.
17688
17689 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17690 sed -n '
17691 s/.\{148\}/&'"$ac_delim"'/g
17692 t rset
17693 :rset
17694 s/^[     ]*#[    ]*define[       ][      ]*/ /
17695 t def
17696 d
17697 :def
17698 s/\\$//
17699 t bsnl
17700 s/["\\]/\\&/g
17701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17702 D["\1"]=" \3"/p
17703 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17704 d
17705 :bsnl
17706 s/["\\]/\\&/g
17707 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17708 D["\1"]=" \3\\\\\\n"\\/p
17709 t cont
17710 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17711 t cont
17712 d
17713 :cont
17714 n
17715 s/.\{148\}/&'"$ac_delim"'/g
17716 t clear
17717 :clear
17718 s/\\$//
17719 t bsnlc
17720 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17721 d
17722 :bsnlc
17723 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17724 b cont
17725 ' <confdefs.h | sed '
17726 s/'"$ac_delim"'/"\\\
17727 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17728
17729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17730   for (key in D) D_is_set[key] = 1
17731   FS = "\a"
17732 }
17733 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17734   line = \$ 0
17735   split(line, arg, " ")
17736   if (arg[1] == "#") {
17737     defundef = arg[2]
17738     mac1 = arg[3]
17739   } else {
17740     defundef = substr(arg[1], 2)
17741     mac1 = arg[2]
17742   }
17743   split(mac1, mac2, "(") #)
17744   macro = mac2[1]
17745   prefix = substr(line, 1, index(line, defundef) - 1)
17746   if (D_is_set[macro]) {
17747     # Preserve the white space surrounding the "#".
17748     print prefix "define", macro P[macro] D[macro]
17749     next
17750   } else {
17751     # Replace #undef with comments.  This is necessary, for example,
17752     # in the case of _POSIX_SOURCE, which is predefined and required
17753     # on some systems where configure will not decide to define it.
17754     if (defundef == "undef") {
17755       print "/*", prefix defundef, macro, "*/"
17756       next
17757     }
17758   }
17759 }
17760 { print }
17761 _ACAWK
17762 _ACEOF
17763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17764   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17765 fi # test -n "$CONFIG_HEADERS"
17766
17767
17768 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17769 shift
17770 for ac_tag
17771 do
17772   case $ac_tag in
17773   :[FHLC]) ac_mode=$ac_tag; continue;;
17774   esac
17775   case $ac_mode$ac_tag in
17776   :[FHL]*:*);;
17777   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17778   :[FH]-) ac_tag=-:-;;
17779   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17780   esac
17781   ac_save_IFS=$IFS
17782   IFS=:
17783   set x $ac_tag
17784   IFS=$ac_save_IFS
17785   shift
17786   ac_file=$1
17787   shift
17788
17789   case $ac_mode in
17790   :L) ac_source=$1;;
17791   :[FH])
17792     ac_file_inputs=
17793     for ac_f
17794     do
17795       case $ac_f in
17796       -) ac_f="$ac_tmp/stdin";;
17797       *) # Look for the file first in the build tree, then in the source tree
17798          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17799          # because $ac_f cannot contain `:'.
17800          test -f "$ac_f" ||
17801            case $ac_f in
17802            [\\/$]*) false;;
17803            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17804            esac ||
17805            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17806       esac
17807       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17808       as_fn_append ac_file_inputs " '$ac_f'"
17809     done
17810
17811     # Let's still pretend it is `configure' which instantiates (i.e., don't
17812     # use $as_me), people would be surprised to read:
17813     #    /* config.h.  Generated by config.status.  */
17814     configure_input='Generated from '`
17815           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17816         `' by configure.'
17817     if test x"$ac_file" != x-; then
17818       configure_input="$ac_file.  $configure_input"
17819       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17820 $as_echo "$as_me: creating $ac_file" >&6;}
17821     fi
17822     # Neutralize special characters interpreted by sed in replacement strings.
17823     case $configure_input in #(
17824     *\&* | *\|* | *\\* )
17825        ac_sed_conf_input=`$as_echo "$configure_input" |
17826        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17827     *) ac_sed_conf_input=$configure_input;;
17828     esac
17829
17830     case $ac_tag in
17831     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17832       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17833     esac
17834     ;;
17835   esac
17836
17837   ac_dir=`$as_dirname -- "$ac_file" ||
17838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17839          X"$ac_file" : 'X\(//\)[^/]' \| \
17840          X"$ac_file" : 'X\(//\)$' \| \
17841          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17842 $as_echo X"$ac_file" |
17843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17844             s//\1/
17845             q
17846           }
17847           /^X\(\/\/\)[^/].*/{
17848             s//\1/
17849             q
17850           }
17851           /^X\(\/\/\)$/{
17852             s//\1/
17853             q
17854           }
17855           /^X\(\/\).*/{
17856             s//\1/
17857             q
17858           }
17859           s/.*/./; q'`
17860   as_dir="$ac_dir"; as_fn_mkdir_p
17861   ac_builddir=.
17862
17863 case "$ac_dir" in
17864 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17865 *)
17866   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17867   # A ".." for each directory in $ac_dir_suffix.
17868   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17869   case $ac_top_builddir_sub in
17870   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17871   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17872   esac ;;
17873 esac
17874 ac_abs_top_builddir=$ac_pwd
17875 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17876 # for backward compatibility:
17877 ac_top_builddir=$ac_top_build_prefix
17878
17879 case $srcdir in
17880   .)  # We are building in place.
17881     ac_srcdir=.
17882     ac_top_srcdir=$ac_top_builddir_sub
17883     ac_abs_top_srcdir=$ac_pwd ;;
17884   [\\/]* | ?:[\\/]* )  # Absolute name.
17885     ac_srcdir=$srcdir$ac_dir_suffix;
17886     ac_top_srcdir=$srcdir
17887     ac_abs_top_srcdir=$srcdir ;;
17888   *) # Relative name.
17889     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17890     ac_top_srcdir=$ac_top_build_prefix$srcdir
17891     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17892 esac
17893 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17894
17895
17896   case $ac_mode in
17897   :F)
17898   #
17899   # CONFIG_FILE
17900   #
17901
17902   case $INSTALL in
17903   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17904   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17905   esac
17906   ac_MKDIR_P=$MKDIR_P
17907   case $MKDIR_P in
17908   [\\/$]* | ?:[\\/]* ) ;;
17909   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17910   esac
17911 _ACEOF
17912
17913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17914 # If the template does not know about datarootdir, expand it.
17915 # FIXME: This hack should be removed a few years after 2.60.
17916 ac_datarootdir_hack=; ac_datarootdir_seen=
17917 ac_sed_dataroot='
17918 /datarootdir/ {
17919   p
17920   q
17921 }
17922 /@datadir@/p
17923 /@docdir@/p
17924 /@infodir@/p
17925 /@localedir@/p
17926 /@mandir@/p'
17927 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17928 *datarootdir*) ac_datarootdir_seen=yes;;
17929 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17930   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17931 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17932 _ACEOF
17933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17934   ac_datarootdir_hack='
17935   s&@datadir@&$datadir&g
17936   s&@docdir@&$docdir&g
17937   s&@infodir@&$infodir&g
17938   s&@localedir@&$localedir&g
17939   s&@mandir@&$mandir&g
17940   s&\\\${datarootdir}&$datarootdir&g' ;;
17941 esac
17942 _ACEOF
17943
17944 # Neutralize VPATH when `$srcdir' = `.'.
17945 # Shell code in configure.ac might set extrasub.
17946 # FIXME: do we really want to maintain this feature?
17947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17948 ac_sed_extra="$ac_vpsub
17949 $extrasub
17950 _ACEOF
17951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17952 :t
17953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17954 s|@configure_input@|$ac_sed_conf_input|;t t
17955 s&@top_builddir@&$ac_top_builddir_sub&;t t
17956 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17957 s&@srcdir@&$ac_srcdir&;t t
17958 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17959 s&@top_srcdir@&$ac_top_srcdir&;t t
17960 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17961 s&@builddir@&$ac_builddir&;t t
17962 s&@abs_builddir@&$ac_abs_builddir&;t t
17963 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17964 s&@INSTALL@&$ac_INSTALL&;t t
17965 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17966 $ac_datarootdir_hack
17967 "
17968 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17969   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17970
17971 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17972   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17973   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17974       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17975   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17976 which seems to be undefined.  Please make sure it is defined" >&5
17977 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17978 which seems to be undefined.  Please make sure it is defined" >&2;}
17979
17980   rm -f "$ac_tmp/stdin"
17981   case $ac_file in
17982   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17983   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17984   esac \
17985   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17986  ;;
17987   :H)
17988   #
17989   # CONFIG_HEADER
17990   #
17991   if test x"$ac_file" != x-; then
17992     {
17993       $as_echo "/* $configure_input  */" \
17994       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17995     } >"$ac_tmp/config.h" \
17996       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17997     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17998       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17999 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18000     else
18001       rm -f "$ac_file"
18002       mv "$ac_tmp/config.h" "$ac_file" \
18003         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18004     fi
18005   else
18006     $as_echo "/* $configure_input  */" \
18007       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18008       || as_fn_error $? "could not create -" "$LINENO" 5
18009   fi
18010 # Compute "$ac_file"'s index in $config_headers.
18011 _am_arg="$ac_file"
18012 _am_stamp_count=1
18013 for _am_header in $config_headers :; do
18014   case $_am_header in
18015     $_am_arg | $_am_arg:* )
18016       break ;;
18017     * )
18018       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18019   esac
18020 done
18021 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18022 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18023          X"$_am_arg" : 'X\(//\)[^/]' \| \
18024          X"$_am_arg" : 'X\(//\)$' \| \
18025          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18026 $as_echo X"$_am_arg" |
18027     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18028             s//\1/
18029             q
18030           }
18031           /^X\(\/\/\)[^/].*/{
18032             s//\1/
18033             q
18034           }
18035           /^X\(\/\/\)$/{
18036             s//\1/
18037             q
18038           }
18039           /^X\(\/\).*/{
18040             s//\1/
18041             q
18042           }
18043           s/.*/./; q'`/stamp-h$_am_stamp_count
18044  ;;
18045
18046   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18047 $as_echo "$as_me: executing $ac_file commands" >&6;}
18048  ;;
18049   esac
18050
18051
18052   case $ac_file$ac_mode in
18053     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18054   # Older Autoconf quotes --file arguments for eval, but not when files
18055   # are listed without --file.  Let's play safe and only enable the eval
18056   # if we detect the quoting.
18057   case $CONFIG_FILES in
18058   *\'*) eval set x "$CONFIG_FILES" ;;
18059   *)   set x $CONFIG_FILES ;;
18060   esac
18061   shift
18062   for mf
18063   do
18064     # Strip MF so we end up with the name of the file.
18065     mf=`echo "$mf" | sed -e 's/:.*$//'`
18066     # Check whether this is an Automake generated Makefile or not.
18067     # We used to match only the files named 'Makefile.in', but
18068     # some people rename them; so instead we look at the file content.
18069     # Grep'ing the first line is not enough: some people post-process
18070     # each Makefile.in and add a new line on top of each file to say so.
18071     # Grep'ing the whole file is not good either: AIX grep has a line
18072     # limit of 2048, but all sed's we know have understand at least 4000.
18073     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18074       dirpart=`$as_dirname -- "$mf" ||
18075 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18076          X"$mf" : 'X\(//\)[^/]' \| \
18077          X"$mf" : 'X\(//\)$' \| \
18078          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18079 $as_echo X"$mf" |
18080     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18081             s//\1/
18082             q
18083           }
18084           /^X\(\/\/\)[^/].*/{
18085             s//\1/
18086             q
18087           }
18088           /^X\(\/\/\)$/{
18089             s//\1/
18090             q
18091           }
18092           /^X\(\/\).*/{
18093             s//\1/
18094             q
18095           }
18096           s/.*/./; q'`
18097     else
18098       continue
18099     fi
18100     # Extract the definition of DEPDIR, am__include, and am__quote
18101     # from the Makefile without running 'make'.
18102     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18103     test -z "$DEPDIR" && continue
18104     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18105     test -z "$am__include" && continue
18106     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18107     # Find all dependency output files, they are included files with
18108     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18109     # simplest approach to changing $(DEPDIR) to its actual value in the
18110     # expansion.
18111     for file in `sed -n "
18112       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18113          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18114       # Make sure the directory exists.
18115       test -f "$dirpart/$file" && continue
18116       fdir=`$as_dirname -- "$file" ||
18117 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18118          X"$file" : 'X\(//\)[^/]' \| \
18119          X"$file" : 'X\(//\)$' \| \
18120          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18121 $as_echo X"$file" |
18122     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18123             s//\1/
18124             q
18125           }
18126           /^X\(\/\/\)[^/].*/{
18127             s//\1/
18128             q
18129           }
18130           /^X\(\/\/\)$/{
18131             s//\1/
18132             q
18133           }
18134           /^X\(\/\).*/{
18135             s//\1/
18136             q
18137           }
18138           s/.*/./; q'`
18139       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18140       # echo "creating $dirpart/$file"
18141       echo '# dummy' > "$dirpart/$file"
18142     done
18143   done
18144 }
18145  ;;
18146     "libtool":C)
18147
18148     # See if we are running on zsh, and set the options which allow our
18149     # commands through without removal of \ escapes.
18150     if test -n "${ZSH_VERSION+set}" ; then
18151       setopt NO_GLOB_SUBST
18152     fi
18153
18154     cfgfile="${ofile}T"
18155     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18156     $RM "$cfgfile"
18157
18158     cat <<_LT_EOF >> "$cfgfile"
18159 #! $SHELL
18160
18161 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18162 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18163 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18164 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18165 #
18166 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18167 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18168 #                 Foundation, Inc.
18169 #   Written by Gordon Matzigkeit, 1996
18170 #
18171 #   This file is part of GNU Libtool.
18172 #
18173 # GNU Libtool is free software; you can redistribute it and/or
18174 # modify it under the terms of the GNU General Public License as
18175 # published by the Free Software Foundation; either version 2 of
18176 # the License, or (at your option) any later version.
18177 #
18178 # As a special exception to the GNU General Public License,
18179 # if you distribute this file as part of a program or library that
18180 # is built using GNU Libtool, you may include this file under the
18181 # same distribution terms that you use for the rest of that program.
18182 #
18183 # GNU Libtool is distributed in the hope that it will be useful,
18184 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18185 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18186 # GNU General Public License for more details.
18187 #
18188 # You should have received a copy of the GNU General Public License
18189 # along with GNU Libtool; see the file COPYING.  If not, a copy
18190 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18191 # obtained by writing to the Free Software Foundation, Inc.,
18192 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18193
18194
18195 # The names of the tagged configurations supported by this script.
18196 available_tags=""
18197
18198 # ### BEGIN LIBTOOL CONFIG
18199
18200 # Which release of libtool.m4 was used?
18201 macro_version=$macro_version
18202 macro_revision=$macro_revision
18203
18204 # Assembler program.
18205 AS=$lt_AS
18206
18207 # DLL creation program.
18208 DLLTOOL=$lt_DLLTOOL
18209
18210 # Object dumper program.
18211 OBJDUMP=$lt_OBJDUMP
18212
18213 # Whether or not to build shared libraries.
18214 build_libtool_libs=$enable_shared
18215
18216 # Whether or not to build static libraries.
18217 build_old_libs=$enable_static
18218
18219 # What type of objects to build.
18220 pic_mode=$pic_mode
18221
18222 # Whether or not to optimize for fast installation.
18223 fast_install=$enable_fast_install
18224
18225 # Shell to use when invoking shell scripts.
18226 SHELL=$lt_SHELL
18227
18228 # An echo program that protects backslashes.
18229 ECHO=$lt_ECHO
18230
18231 # The PATH separator for the build system.
18232 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18233
18234 # The host system.
18235 host_alias=$host_alias
18236 host=$host
18237 host_os=$host_os
18238
18239 # The build system.
18240 build_alias=$build_alias
18241 build=$build
18242 build_os=$build_os
18243
18244 # A sed program that does not truncate output.
18245 SED=$lt_SED
18246
18247 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18248 Xsed="\$SED -e 1s/^X//"
18249
18250 # A grep program that handles long lines.
18251 GREP=$lt_GREP
18252
18253 # An ERE matcher.
18254 EGREP=$lt_EGREP
18255
18256 # A literal string matcher.
18257 FGREP=$lt_FGREP
18258
18259 # A BSD- or MS-compatible name lister.
18260 NM=$lt_NM
18261
18262 # Whether we need soft or hard links.
18263 LN_S=$lt_LN_S
18264
18265 # What is the maximum length of a command?
18266 max_cmd_len=$max_cmd_len
18267
18268 # Object file suffix (normally "o").
18269 objext=$ac_objext
18270
18271 # Executable file suffix (normally "").
18272 exeext=$exeext
18273
18274 # whether the shell understands "unset".
18275 lt_unset=$lt_unset
18276
18277 # turn spaces into newlines.
18278 SP2NL=$lt_lt_SP2NL
18279
18280 # turn newlines into spaces.
18281 NL2SP=$lt_lt_NL2SP
18282
18283 # convert \$build file names to \$host format.
18284 to_host_file_cmd=$lt_cv_to_host_file_cmd
18285
18286 # convert \$build files to toolchain format.
18287 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18288
18289 # Method to check whether dependent libraries are shared objects.
18290 deplibs_check_method=$lt_deplibs_check_method
18291
18292 # Command to use when deplibs_check_method = "file_magic".
18293 file_magic_cmd=$lt_file_magic_cmd
18294
18295 # How to find potential files when deplibs_check_method = "file_magic".
18296 file_magic_glob=$lt_file_magic_glob
18297
18298 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18299 want_nocaseglob=$lt_want_nocaseglob
18300
18301 # Command to associate shared and link libraries.
18302 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18303
18304 # The archiver.
18305 AR=$lt_AR
18306
18307 # Flags to create an archive.
18308 AR_FLAGS=$lt_AR_FLAGS
18309
18310 # How to feed a file listing to the archiver.
18311 archiver_list_spec=$lt_archiver_list_spec
18312
18313 # A symbol stripping program.
18314 STRIP=$lt_STRIP
18315
18316 # Commands used to install an old-style archive.
18317 RANLIB=$lt_RANLIB
18318 old_postinstall_cmds=$lt_old_postinstall_cmds
18319 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18320
18321 # Whether to use a lock for old archive extraction.
18322 lock_old_archive_extraction=$lock_old_archive_extraction
18323
18324 # A C compiler.
18325 LTCC=$lt_CC
18326
18327 # LTCC compiler flags.
18328 LTCFLAGS=$lt_CFLAGS
18329
18330 # Take the output of nm and produce a listing of raw symbols and C names.
18331 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18332
18333 # Transform the output of nm in a proper C declaration.
18334 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18335
18336 # Transform the output of nm in a C name address pair.
18337 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18338
18339 # Transform the output of nm in a C name address pair when lib prefix is needed.
18340 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18341
18342 # Specify filename containing input files for \$NM.
18343 nm_file_list_spec=$lt_nm_file_list_spec
18344
18345 # The root where to search for dependent libraries,and in which our libraries should be installed.
18346 lt_sysroot=$lt_sysroot
18347
18348 # The name of the directory that contains temporary libtool files.
18349 objdir=$objdir
18350
18351 # Used to examine libraries when file_magic_cmd begins with "file".
18352 MAGIC_CMD=$MAGIC_CMD
18353
18354 # Must we lock files when doing compilation?
18355 need_locks=$lt_need_locks
18356
18357 # Manifest tool.
18358 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18359
18360 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18361 DSYMUTIL=$lt_DSYMUTIL
18362
18363 # Tool to change global to local symbols on Mac OS X.
18364 NMEDIT=$lt_NMEDIT
18365
18366 # Tool to manipulate fat objects and archives on Mac OS X.
18367 LIPO=$lt_LIPO
18368
18369 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18370 OTOOL=$lt_OTOOL
18371
18372 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18373 OTOOL64=$lt_OTOOL64
18374
18375 # Old archive suffix (normally "a").
18376 libext=$libext
18377
18378 # Shared library suffix (normally ".so").
18379 shrext_cmds=$lt_shrext_cmds
18380
18381 # The commands to extract the exported symbol list from a shared archive.
18382 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18383
18384 # Variables whose values should be saved in libtool wrapper scripts and
18385 # restored at link time.
18386 variables_saved_for_relink=$lt_variables_saved_for_relink
18387
18388 # Do we need the "lib" prefix for modules?
18389 need_lib_prefix=$need_lib_prefix
18390
18391 # Do we need a version for libraries?
18392 need_version=$need_version
18393
18394 # Library versioning type.
18395 version_type=$version_type
18396
18397 # Shared library runtime path variable.
18398 runpath_var=$runpath_var
18399
18400 # Shared library path variable.
18401 shlibpath_var=$shlibpath_var
18402
18403 # Is shlibpath searched before the hard-coded library search path?
18404 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18405
18406 # Format of library name prefix.
18407 libname_spec=$lt_libname_spec
18408
18409 # List of archive names.  First name is the real one, the rest are links.
18410 # The last name is the one that the linker finds with -lNAME
18411 library_names_spec=$lt_library_names_spec
18412
18413 # The coded name of the library, if different from the real name.
18414 soname_spec=$lt_soname_spec
18415
18416 # Permission mode override for installation of shared libraries.
18417 install_override_mode=$lt_install_override_mode
18418
18419 # Command to use after installation of a shared archive.
18420 postinstall_cmds=$lt_postinstall_cmds
18421
18422 # Command to use after uninstallation of a shared archive.
18423 postuninstall_cmds=$lt_postuninstall_cmds
18424
18425 # Commands used to finish a libtool library installation in a directory.
18426 finish_cmds=$lt_finish_cmds
18427
18428 # As "finish_cmds", except a single script fragment to be evaled but
18429 # not shown.
18430 finish_eval=$lt_finish_eval
18431
18432 # Whether we should hardcode library paths into libraries.
18433 hardcode_into_libs=$hardcode_into_libs
18434
18435 # Compile-time system search path for libraries.
18436 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18437
18438 # Run-time system search path for libraries.
18439 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18440
18441 # Whether dlopen is supported.
18442 dlopen_support=$enable_dlopen
18443
18444 # Whether dlopen of programs is supported.
18445 dlopen_self=$enable_dlopen_self
18446
18447 # Whether dlopen of statically linked programs is supported.
18448 dlopen_self_static=$enable_dlopen_self_static
18449
18450 # Commands to strip libraries.
18451 old_striplib=$lt_old_striplib
18452 striplib=$lt_striplib
18453
18454
18455 # The linker used to build libraries.
18456 LD=$lt_LD
18457
18458 # How to create reloadable object files.
18459 reload_flag=$lt_reload_flag
18460 reload_cmds=$lt_reload_cmds
18461
18462 # Commands used to build an old-style archive.
18463 old_archive_cmds=$lt_old_archive_cmds
18464
18465 # A language specific compiler.
18466 CC=$lt_compiler
18467
18468 # Is the compiler the GNU compiler?
18469 with_gcc=$GCC
18470
18471 # Compiler flag to turn off builtin functions.
18472 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18473
18474 # Additional compiler flags for building library objects.
18475 pic_flag=$lt_lt_prog_compiler_pic
18476
18477 # How to pass a linker flag through the compiler.
18478 wl=$lt_lt_prog_compiler_wl
18479
18480 # Compiler flag to prevent dynamic linking.
18481 link_static_flag=$lt_lt_prog_compiler_static
18482
18483 # Does compiler simultaneously support -c and -o options?
18484 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18485
18486 # Whether or not to add -lc for building shared libraries.
18487 build_libtool_need_lc=$archive_cmds_need_lc
18488
18489 # Whether or not to disallow shared libs when runtime libs are static.
18490 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18491
18492 # Compiler flag to allow reflexive dlopens.
18493 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18494
18495 # Compiler flag to generate shared objects directly from archives.
18496 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18497
18498 # Whether the compiler copes with passing no objects directly.
18499 compiler_needs_object=$lt_compiler_needs_object
18500
18501 # Create an old-style archive from a shared archive.
18502 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18503
18504 # Create a temporary old-style archive to link instead of a shared archive.
18505 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18506
18507 # Commands used to build a shared archive.
18508 archive_cmds=$lt_archive_cmds
18509 archive_expsym_cmds=$lt_archive_expsym_cmds
18510
18511 # Commands used to build a loadable module if different from building
18512 # a shared archive.
18513 module_cmds=$lt_module_cmds
18514 module_expsym_cmds=$lt_module_expsym_cmds
18515
18516 # Whether we are building with GNU ld or not.
18517 with_gnu_ld=$lt_with_gnu_ld
18518
18519 # Flag that allows shared libraries with undefined symbols to be built.
18520 allow_undefined_flag=$lt_allow_undefined_flag
18521
18522 # Flag that enforces no undefined symbols.
18523 no_undefined_flag=$lt_no_undefined_flag
18524
18525 # Flag to hardcode \$libdir into a binary during linking.
18526 # This must work even if \$libdir does not exist
18527 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18528
18529 # Whether we need a single "-rpath" flag with a separated argument.
18530 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18531
18532 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18533 # DIR into the resulting binary.
18534 hardcode_direct=$hardcode_direct
18535
18536 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18537 # DIR into the resulting binary and the resulting library dependency is
18538 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18539 # library is relocated.
18540 hardcode_direct_absolute=$hardcode_direct_absolute
18541
18542 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18543 # into the resulting binary.
18544 hardcode_minus_L=$hardcode_minus_L
18545
18546 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18547 # into the resulting binary.
18548 hardcode_shlibpath_var=$hardcode_shlibpath_var
18549
18550 # Set to "yes" if building a shared library automatically hardcodes DIR
18551 # into the library and all subsequent libraries and executables linked
18552 # against it.
18553 hardcode_automatic=$hardcode_automatic
18554
18555 # Set to yes if linker adds runtime paths of dependent libraries
18556 # to runtime path list.
18557 inherit_rpath=$inherit_rpath
18558
18559 # Whether libtool must link a program against all its dependency libraries.
18560 link_all_deplibs=$link_all_deplibs
18561
18562 # Set to "yes" if exported symbols are required.
18563 always_export_symbols=$always_export_symbols
18564
18565 # The commands to list exported symbols.
18566 export_symbols_cmds=$lt_export_symbols_cmds
18567
18568 # Symbols that should not be listed in the preloaded symbols.
18569 exclude_expsyms=$lt_exclude_expsyms
18570
18571 # Symbols that must always be exported.
18572 include_expsyms=$lt_include_expsyms
18573
18574 # Commands necessary for linking programs (against libraries) with templates.
18575 prelink_cmds=$lt_prelink_cmds
18576
18577 # Commands necessary for finishing linking programs.
18578 postlink_cmds=$lt_postlink_cmds
18579
18580 # Specify filename containing input files.
18581 file_list_spec=$lt_file_list_spec
18582
18583 # How to hardcode a shared library path into an executable.
18584 hardcode_action=$hardcode_action
18585
18586 # ### END LIBTOOL CONFIG
18587
18588 _LT_EOF
18589
18590   case $host_os in
18591   aix3*)
18592     cat <<\_LT_EOF >> "$cfgfile"
18593 # AIX sometimes has problems with the GCC collect2 program.  For some
18594 # reason, if we set the COLLECT_NAMES environment variable, the problems
18595 # vanish in a puff of smoke.
18596 if test "X${COLLECT_NAMES+set}" != Xset; then
18597   COLLECT_NAMES=
18598   export COLLECT_NAMES
18599 fi
18600 _LT_EOF
18601     ;;
18602   esac
18603
18604
18605 ltmain="$ac_aux_dir/ltmain.sh"
18606
18607
18608   # We use sed instead of cat because bash on DJGPP gets confused if
18609   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18610   # text mode, it properly converts lines to CR/LF.  This bash problem
18611   # is reportedly fixed, but why not run on old versions too?
18612   sed '$q' "$ltmain" >> "$cfgfile" \
18613      || (rm -f "$cfgfile"; exit 1)
18614
18615   if test x"$xsi_shell" = xyes; then
18616   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18617 func_dirname ()\
18618 {\
18619 \    case ${1} in\
18620 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18621 \      *  ) func_dirname_result="${3}" ;;\
18622 \    esac\
18623 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18624   && mv -f "$cfgfile.tmp" "$cfgfile" \
18625     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18626 test 0 -eq $? || _lt_function_replace_fail=:
18627
18628
18629   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18630 func_basename ()\
18631 {\
18632 \    func_basename_result="${1##*/}"\
18633 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18634   && mv -f "$cfgfile.tmp" "$cfgfile" \
18635     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18636 test 0 -eq $? || _lt_function_replace_fail=:
18637
18638
18639   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18640 func_dirname_and_basename ()\
18641 {\
18642 \    case ${1} in\
18643 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18644 \      *  ) func_dirname_result="${3}" ;;\
18645 \    esac\
18646 \    func_basename_result="${1##*/}"\
18647 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18648   && mv -f "$cfgfile.tmp" "$cfgfile" \
18649     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18650 test 0 -eq $? || _lt_function_replace_fail=:
18651
18652
18653   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18654 func_stripname ()\
18655 {\
18656 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18657 \    # positional parameters, so assign one to ordinary parameter first.\
18658 \    func_stripname_result=${3}\
18659 \    func_stripname_result=${func_stripname_result#"${1}"}\
18660 \    func_stripname_result=${func_stripname_result%"${2}"}\
18661 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18662   && mv -f "$cfgfile.tmp" "$cfgfile" \
18663     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18664 test 0 -eq $? || _lt_function_replace_fail=:
18665
18666
18667   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18668 func_split_long_opt ()\
18669 {\
18670 \    func_split_long_opt_name=${1%%=*}\
18671 \    func_split_long_opt_arg=${1#*=}\
18672 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18673   && mv -f "$cfgfile.tmp" "$cfgfile" \
18674     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18675 test 0 -eq $? || _lt_function_replace_fail=:
18676
18677
18678   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18679 func_split_short_opt ()\
18680 {\
18681 \    func_split_short_opt_arg=${1#??}\
18682 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18683 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18684   && mv -f "$cfgfile.tmp" "$cfgfile" \
18685     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18686 test 0 -eq $? || _lt_function_replace_fail=:
18687
18688
18689   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18690 func_lo2o ()\
18691 {\
18692 \    case ${1} in\
18693 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18694 \      *)    func_lo2o_result=${1} ;;\
18695 \    esac\
18696 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18697   && mv -f "$cfgfile.tmp" "$cfgfile" \
18698     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18699 test 0 -eq $? || _lt_function_replace_fail=:
18700
18701
18702   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18703 func_xform ()\
18704 {\
18705     func_xform_result=${1%.*}.lo\
18706 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18707   && mv -f "$cfgfile.tmp" "$cfgfile" \
18708     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18709 test 0 -eq $? || _lt_function_replace_fail=:
18710
18711
18712   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18713 func_arith ()\
18714 {\
18715     func_arith_result=$(( $* ))\
18716 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18717   && mv -f "$cfgfile.tmp" "$cfgfile" \
18718     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18719 test 0 -eq $? || _lt_function_replace_fail=:
18720
18721
18722   sed -e '/^func_len ()$/,/^} # func_len /c\
18723 func_len ()\
18724 {\
18725     func_len_result=${#1}\
18726 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18727   && mv -f "$cfgfile.tmp" "$cfgfile" \
18728     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18729 test 0 -eq $? || _lt_function_replace_fail=:
18730
18731 fi
18732
18733 if test x"$lt_shell_append" = xyes; then
18734   sed -e '/^func_append ()$/,/^} # func_append /c\
18735 func_append ()\
18736 {\
18737     eval "${1}+=\\${2}"\
18738 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18739   && mv -f "$cfgfile.tmp" "$cfgfile" \
18740     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18741 test 0 -eq $? || _lt_function_replace_fail=:
18742
18743
18744   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18745 func_append_quoted ()\
18746 {\
18747 \    func_quote_for_eval "${2}"\
18748 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18749 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18750   && mv -f "$cfgfile.tmp" "$cfgfile" \
18751     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18752 test 0 -eq $? || _lt_function_replace_fail=:
18753
18754
18755   # Save a `func_append' function call where possible by direct use of '+='
18756   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18757     && mv -f "$cfgfile.tmp" "$cfgfile" \
18758       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18759   test 0 -eq $? || _lt_function_replace_fail=:
18760 else
18761   # Save a `func_append' function call even when '+=' is not available
18762   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18763     && mv -f "$cfgfile.tmp" "$cfgfile" \
18764       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18765   test 0 -eq $? || _lt_function_replace_fail=:
18766 fi
18767
18768 if test x"$_lt_function_replace_fail" = x":"; then
18769   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18770 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18771 fi
18772
18773
18774    mv -f "$cfgfile" "$ofile" ||
18775     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18776   chmod +x "$ofile"
18777
18778  ;;
18779     "po-directories":C)
18780     for ac_file in $CONFIG_FILES; do
18781       # Support "outfile[:infile[:infile...]]"
18782       case "$ac_file" in
18783         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18784       esac
18785       # PO directories have a Makefile.in generated from Makefile.in.in.
18786       case "$ac_file" in */Makefile.in)
18787         # Adjust a relative srcdir.
18788         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18789         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18790         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18791         # In autoconf-2.13 it is called $ac_given_srcdir.
18792         # In autoconf-2.50 it is called $srcdir.
18793         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18794         case "$ac_given_srcdir" in
18795           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18796           /*) top_srcdir="$ac_given_srcdir" ;;
18797           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18798         esac
18799         # Treat a directory as a PO directory if and only if it has a
18800         # POTFILES.in file. This allows packages to have multiple PO
18801         # directories under different names or in different locations.
18802         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18803           rm -f "$ac_dir/POTFILES"
18804           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18805           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18806           POMAKEFILEDEPS="POTFILES.in"
18807           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18808           # on $ac_dir but don't depend on user-specified configuration
18809           # parameters.
18810           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18811             # The LINGUAS file contains the set of available languages.
18812             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18813               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18814             fi
18815             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18816             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18817             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18818             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18819           else
18820             # The set of available languages was given in configure.in.
18821             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18822             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18823           fi
18824           # Compute POFILES
18825           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18826           # Compute UPDATEPOFILES
18827           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18828           # Compute DUMMYPOFILES
18829           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18830           # Compute GMOFILES
18831           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18832           case "$ac_given_srcdir" in
18833             .) srcdirpre= ;;
18834             *) srcdirpre='$(srcdir)/' ;;
18835           esac
18836           POFILES=
18837           UPDATEPOFILES=
18838           DUMMYPOFILES=
18839           GMOFILES=
18840           for lang in $ALL_LINGUAS; do
18841             POFILES="$POFILES $srcdirpre$lang.po"
18842             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18843             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18844             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18845           done
18846           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18847           # environment variable.
18848           INST_LINGUAS=
18849           if test -n "$ALL_LINGUAS"; then
18850             for presentlang in $ALL_LINGUAS; do
18851               useit=no
18852               if test "%UNSET%" != "$LINGUAS"; then
18853                 desiredlanguages="$LINGUAS"
18854               else
18855                 desiredlanguages="$ALL_LINGUAS"
18856               fi
18857               for desiredlang in $desiredlanguages; do
18858                 # Use the presentlang catalog if desiredlang is
18859                 #   a. equal to presentlang, or
18860                 #   b. a variant of presentlang (because in this case,
18861                 #      presentlang can be used as a fallback for messages
18862                 #      which are not translated in the desiredlang catalog).
18863                 case "$desiredlang" in
18864                   "$presentlang"*) useit=yes;;
18865                 esac
18866               done
18867               if test $useit = yes; then
18868                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18869               fi
18870             done
18871           fi
18872           CATALOGS=
18873           if test -n "$INST_LINGUAS"; then
18874             for lang in $INST_LINGUAS; do
18875               CATALOGS="$CATALOGS $lang.gmo"
18876             done
18877           fi
18878           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18879           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"
18880           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18881             if test -f "$f"; then
18882               case "$f" in
18883                 *.orig | *.bak | *~) ;;
18884                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18885               esac
18886             fi
18887           done
18888         fi
18889         ;;
18890       esac
18891     done ;;
18892
18893   esac
18894 done # for ac_tag
18895
18896
18897 as_fn_exit 0
18898 _ACEOF
18899 ac_clean_files=$ac_clean_files_save
18900
18901 test $ac_write_fail = 0 ||
18902   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18903
18904
18905 # configure is writing to config.log, and then calls config.status.
18906 # config.status does its own redirection, appending to config.log.
18907 # Unfortunately, on DOS this fails, as config.log is still kept open
18908 # by configure, so config.status won't be able to write to it; its
18909 # output is simply discarded.  So we exec the FD to /dev/null,
18910 # effectively closing config.log, so it can be properly (re)opened and
18911 # appended to by config.status.  When coming back to configure, we
18912 # need to make the FD available again.
18913 if test "$no_create" != yes; then
18914   ac_cs_success=:
18915   ac_config_status_args=
18916   test "$silent" = yes &&
18917     ac_config_status_args="$ac_config_status_args --quiet"
18918   exec 5>/dev/null
18919   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18920   exec 5>>config.log
18921   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18922   # would make configure fail if this is the last instruction.
18923   $ac_cs_success || as_fn_exit 1
18924 fi
18925 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18926   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18927 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18928 fi
18929