Rebuild for wheezy-backports.
[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.1.
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.1'
654 PACKAGE_STRING='Moonshot-ui 0.7.1'
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 IPC_GDBUS_FALSE
736 IPC_GDBUS_TRUE
737 IPC_DBUS_GLIB_FALSE
738 IPC_DBUS_GLIB_TRUE
739 IPC_DBUS_FALSE
740 IPC_DBUS_TRUE
741 IPC_MSRPC_FALSE
742 IPC_MSRPC_TRUE
743 OS_MACOS_FALSE
744 OS_MACOS_TRUE
745 OS_WIN32_FALSE
746 OS_WIN32_TRUE
747 OS_LINUX_FALSE
748 OS_LINUX_TRUE
749 GDBUS_LIBS
750 GDBUS_CFLAGS
751 MAC_LIBS
752 MAC_CFLAGS
753 GTK_LIBS
754 GTK_CFLAGS
755 VALAC
756 PKG_CONFIG_LIBDIR
757 PKG_CONFIG_PATH
758 PKG_CONFIG
759 CPP
760 OTOOL64
761 OTOOL
762 LIPO
763 NMEDIT
764 DSYMUTIL
765 MANIFEST_TOOL
766 RANLIB
767 ac_ct_AR
768 AR
769 LN_S
770 NM
771 ac_ct_DUMPBIN
772 DUMPBIN
773 LD
774 FGREP
775 EGREP
776 GREP
777 SED
778 am__fastdepCC_FALSE
779 am__fastdepCC_TRUE
780 CCDEPMODE
781 am__nodep
782 AMDEPBACKSLASH
783 AMDEP_FALSE
784 AMDEP_TRUE
785 am__quote
786 am__include
787 DEPDIR
788 OBJEXT
789 EXEEXT
790 ac_ct_CC
791 CPPFLAGS
792 LDFLAGS
793 CFLAGS
794 CC
795 host_os
796 host_vendor
797 host_cpu
798 host
799 build_os
800 build_vendor
801 build_cpu
802 build
803 LIBTOOL
804 OBJDUMP
805 DLLTOOL
806 AS
807 MAINT
808 MAINTAINER_MODE_FALSE
809 MAINTAINER_MODE_TRUE
810 AM_BACKSLASH
811 AM_DEFAULT_VERBOSITY
812 AM_DEFAULT_V
813 AM_V
814 am__untar
815 am__tar
816 AMTAR
817 am__leading_dot
818 SET_MAKE
819 AWK
820 mkdir_p
821 MKDIR_P
822 INSTALL_STRIP_PROGRAM
823 STRIP
824 install_sh
825 MAKEINFO
826 AUTOHEADER
827 AUTOMAKE
828 AUTOCONF
829 ACLOCAL
830 VERSION
831 PACKAGE
832 CYGPATH_W
833 am__isrc
834 INSTALL_DATA
835 INSTALL_SCRIPT
836 INSTALL_PROGRAM
837 target_alias
838 host_alias
839 build_alias
840 LIBS
841 ECHO_T
842 ECHO_N
843 ECHO_C
844 DEFS
845 mandir
846 localedir
847 libdir
848 psdir
849 pdfdir
850 dvidir
851 htmldir
852 infodir
853 docdir
854 oldincludedir
855 includedir
856 localstatedir
857 sharedstatedir
858 sysconfdir
859 datadir
860 datarootdir
861 libexecdir
862 sbindir
863 bindir
864 program_transform_name
865 prefix
866 exec_prefix
867 PACKAGE_URL
868 PACKAGE_BUGREPORT
869 PACKAGE_STRING
870 PACKAGE_VERSION
871 PACKAGE_TARNAME
872 PACKAGE_NAME
873 PATH_SEPARATOR
874 SHELL'
875 ac_subst_files=''
876 ac_user_opts='
877 enable_option_checking
878 enable_silent_rules
879 enable_maintainer_mode
880 enable_shared
881 enable_static
882 with_pic
883 enable_fast_install
884 enable_dependency_tracking
885 with_gnu_ld
886 with_sysroot
887 enable_libtool_lock
888 enable_nls
889 enable_rpath
890 with_libiconv_prefix
891 with_libintl_prefix
892 '
893       ac_precious_vars='build_alias
894 host_alias
895 target_alias
896 CC
897 CFLAGS
898 LDFLAGS
899 LIBS
900 CPPFLAGS
901 CPP
902 PKG_CONFIG
903 PKG_CONFIG_PATH
904 PKG_CONFIG_LIBDIR
905 GTK_CFLAGS
906 GTK_LIBS
907 MAC_CFLAGS
908 MAC_LIBS
909 GDBUS_CFLAGS
910 GDBUS_LIBS
911 moonshot_CFLAGS
912 moonshot_LIBS
913 libmoonshot_CFLAGS
914 libmoonshot_LIBS'
915
916
917 # Initialize some variables set by options.
918 ac_init_help=
919 ac_init_version=false
920 ac_unrecognized_opts=
921 ac_unrecognized_sep=
922 # The variables have the same names as the options, with
923 # dashes changed to underlines.
924 cache_file=/dev/null
925 exec_prefix=NONE
926 no_create=
927 no_recursion=
928 prefix=NONE
929 program_prefix=NONE
930 program_suffix=NONE
931 program_transform_name=s,x,x,
932 silent=
933 site=
934 srcdir=
935 verbose=
936 x_includes=NONE
937 x_libraries=NONE
938
939 # Installation directory options.
940 # These are left unexpanded so users can "make install exec_prefix=/foo"
941 # and all the variables that are supposed to be based on exec_prefix
942 # by default will actually change.
943 # Use braces instead of parens because sh, perl, etc. also accept them.
944 # (The list follows the same order as the GNU Coding Standards.)
945 bindir='${exec_prefix}/bin'
946 sbindir='${exec_prefix}/sbin'
947 libexecdir='${exec_prefix}/libexec'
948 datarootdir='${prefix}/share'
949 datadir='${datarootdir}'
950 sysconfdir='${prefix}/etc'
951 sharedstatedir='${prefix}/com'
952 localstatedir='${prefix}/var'
953 includedir='${prefix}/include'
954 oldincludedir='/usr/include'
955 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956 infodir='${datarootdir}/info'
957 htmldir='${docdir}'
958 dvidir='${docdir}'
959 pdfdir='${docdir}'
960 psdir='${docdir}'
961 libdir='${exec_prefix}/lib'
962 localedir='${datarootdir}/locale'
963 mandir='${datarootdir}/man'
964
965 ac_prev=
966 ac_dashdash=
967 for ac_option
968 do
969   # If the previous option needs an argument, assign it.
970   if test -n "$ac_prev"; then
971     eval $ac_prev=\$ac_option
972     ac_prev=
973     continue
974   fi
975
976   case $ac_option in
977   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978   *=)   ac_optarg= ;;
979   *)    ac_optarg=yes ;;
980   esac
981
982   # Accept the important Cygnus configure options, so we can diagnose typos.
983
984   case $ac_dashdash$ac_option in
985   --)
986     ac_dashdash=yes ;;
987
988   -bindir | --bindir | --bindi | --bind | --bin | --bi)
989     ac_prev=bindir ;;
990   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
991     bindir=$ac_optarg ;;
992
993   -build | --build | --buil | --bui | --bu)
994     ac_prev=build_alias ;;
995   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996     build_alias=$ac_optarg ;;
997
998   -cache-file | --cache-file | --cache-fil | --cache-fi \
999   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000     ac_prev=cache_file ;;
1001   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003     cache_file=$ac_optarg ;;
1004
1005   --config-cache | -C)
1006     cache_file=config.cache ;;
1007
1008   -datadir | --datadir | --datadi | --datad)
1009     ac_prev=datadir ;;
1010   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011     datadir=$ac_optarg ;;
1012
1013   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014   | --dataroo | --dataro | --datar)
1015     ac_prev=datarootdir ;;
1016   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018     datarootdir=$ac_optarg ;;
1019
1020   -disable-* | --disable-*)
1021     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022     # Reject names that are not valid shell variable names.
1023     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024       as_fn_error $? "invalid feature name: $ac_useropt"
1025     ac_useropt_orig=$ac_useropt
1026     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027     case $ac_user_opts in
1028       *"
1029 "enable_$ac_useropt"
1030 "*) ;;
1031       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1032          ac_unrecognized_sep=', ';;
1033     esac
1034     eval enable_$ac_useropt=no ;;
1035
1036   -docdir | --docdir | --docdi | --doc | --do)
1037     ac_prev=docdir ;;
1038   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1039     docdir=$ac_optarg ;;
1040
1041   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1042     ac_prev=dvidir ;;
1043   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1044     dvidir=$ac_optarg ;;
1045
1046   -enable-* | --enable-*)
1047     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1048     # Reject names that are not valid shell variable names.
1049     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050       as_fn_error $? "invalid feature name: $ac_useropt"
1051     ac_useropt_orig=$ac_useropt
1052     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053     case $ac_user_opts in
1054       *"
1055 "enable_$ac_useropt"
1056 "*) ;;
1057       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058          ac_unrecognized_sep=', ';;
1059     esac
1060     eval enable_$ac_useropt=\$ac_optarg ;;
1061
1062   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064   | --exec | --exe | --ex)
1065     ac_prev=exec_prefix ;;
1066   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068   | --exec=* | --exe=* | --ex=*)
1069     exec_prefix=$ac_optarg ;;
1070
1071   -gas | --gas | --ga | --g)
1072     # Obsolete; use --with-gas.
1073     with_gas=yes ;;
1074
1075   -help | --help | --hel | --he | -h)
1076     ac_init_help=long ;;
1077   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078     ac_init_help=recursive ;;
1079   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080     ac_init_help=short ;;
1081
1082   -host | --host | --hos | --ho)
1083     ac_prev=host_alias ;;
1084   -host=* | --host=* | --hos=* | --ho=*)
1085     host_alias=$ac_optarg ;;
1086
1087   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088     ac_prev=htmldir ;;
1089   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090   | --ht=*)
1091     htmldir=$ac_optarg ;;
1092
1093   -includedir | --includedir | --includedi | --included | --include \
1094   | --includ | --inclu | --incl | --inc)
1095     ac_prev=includedir ;;
1096   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097   | --includ=* | --inclu=* | --incl=* | --inc=*)
1098     includedir=$ac_optarg ;;
1099
1100   -infodir | --infodir | --infodi | --infod | --info | --inf)
1101     ac_prev=infodir ;;
1102   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103     infodir=$ac_optarg ;;
1104
1105   -libdir | --libdir | --libdi | --libd)
1106     ac_prev=libdir ;;
1107   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108     libdir=$ac_optarg ;;
1109
1110   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111   | --libexe | --libex | --libe)
1112     ac_prev=libexecdir ;;
1113   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114   | --libexe=* | --libex=* | --libe=*)
1115     libexecdir=$ac_optarg ;;
1116
1117   -localedir | --localedir | --localedi | --localed | --locale)
1118     ac_prev=localedir ;;
1119   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120     localedir=$ac_optarg ;;
1121
1122   -localstatedir | --localstatedir | --localstatedi | --localstated \
1123   | --localstate | --localstat | --localsta | --localst | --locals)
1124     ac_prev=localstatedir ;;
1125   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127     localstatedir=$ac_optarg ;;
1128
1129   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130     ac_prev=mandir ;;
1131   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132     mandir=$ac_optarg ;;
1133
1134   -nfp | --nfp | --nf)
1135     # Obsolete; use --without-fp.
1136     with_fp=no ;;
1137
1138   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139   | --no-cr | --no-c | -n)
1140     no_create=yes ;;
1141
1142   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144     no_recursion=yes ;;
1145
1146   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148   | --oldin | --oldi | --old | --ol | --o)
1149     ac_prev=oldincludedir ;;
1150   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153     oldincludedir=$ac_optarg ;;
1154
1155   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156     ac_prev=prefix ;;
1157   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158     prefix=$ac_optarg ;;
1159
1160   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161   | --program-pre | --program-pr | --program-p)
1162     ac_prev=program_prefix ;;
1163   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165     program_prefix=$ac_optarg ;;
1166
1167   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168   | --program-suf | --program-su | --program-s)
1169     ac_prev=program_suffix ;;
1170   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172     program_suffix=$ac_optarg ;;
1173
1174   -program-transform-name | --program-transform-name \
1175   | --program-transform-nam | --program-transform-na \
1176   | --program-transform-n | --program-transform- \
1177   | --program-transform | --program-transfor \
1178   | --program-transfo | --program-transf \
1179   | --program-trans | --program-tran \
1180   | --progr-tra | --program-tr | --program-t)
1181     ac_prev=program_transform_name ;;
1182   -program-transform-name=* | --program-transform-name=* \
1183   | --program-transform-nam=* | --program-transform-na=* \
1184   | --program-transform-n=* | --program-transform-=* \
1185   | --program-transform=* | --program-transfor=* \
1186   | --program-transfo=* | --program-transf=* \
1187   | --program-trans=* | --program-tran=* \
1188   | --progr-tra=* | --program-tr=* | --program-t=*)
1189     program_transform_name=$ac_optarg ;;
1190
1191   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192     ac_prev=pdfdir ;;
1193   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194     pdfdir=$ac_optarg ;;
1195
1196   -psdir | --psdir | --psdi | --psd | --ps)
1197     ac_prev=psdir ;;
1198   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199     psdir=$ac_optarg ;;
1200
1201   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202   | -silent | --silent | --silen | --sile | --sil)
1203     silent=yes ;;
1204
1205   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206     ac_prev=sbindir ;;
1207   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208   | --sbi=* | --sb=*)
1209     sbindir=$ac_optarg ;;
1210
1211   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213   | --sharedst | --shareds | --shared | --share | --shar \
1214   | --sha | --sh)
1215     ac_prev=sharedstatedir ;;
1216   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219   | --sha=* | --sh=*)
1220     sharedstatedir=$ac_optarg ;;
1221
1222   -site | --site | --sit)
1223     ac_prev=site ;;
1224   -site=* | --site=* | --sit=*)
1225     site=$ac_optarg ;;
1226
1227   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228     ac_prev=srcdir ;;
1229   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230     srcdir=$ac_optarg ;;
1231
1232   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233   | --syscon | --sysco | --sysc | --sys | --sy)
1234     ac_prev=sysconfdir ;;
1235   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237     sysconfdir=$ac_optarg ;;
1238
1239   -target | --target | --targe | --targ | --tar | --ta | --t)
1240     ac_prev=target_alias ;;
1241   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242     target_alias=$ac_optarg ;;
1243
1244   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245     verbose=yes ;;
1246
1247   -version | --version | --versio | --versi | --vers | -V)
1248     ac_init_version=: ;;
1249
1250   -with-* | --with-*)
1251     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252     # Reject names that are not valid shell variable names.
1253     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254       as_fn_error $? "invalid package name: $ac_useropt"
1255     ac_useropt_orig=$ac_useropt
1256     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257     case $ac_user_opts in
1258       *"
1259 "with_$ac_useropt"
1260 "*) ;;
1261       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262          ac_unrecognized_sep=', ';;
1263     esac
1264     eval with_$ac_useropt=\$ac_optarg ;;
1265
1266   -without-* | --without-*)
1267     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268     # Reject names that are not valid shell variable names.
1269     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270       as_fn_error $? "invalid package name: $ac_useropt"
1271     ac_useropt_orig=$ac_useropt
1272     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273     case $ac_user_opts in
1274       *"
1275 "with_$ac_useropt"
1276 "*) ;;
1277       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278          ac_unrecognized_sep=', ';;
1279     esac
1280     eval with_$ac_useropt=no ;;
1281
1282   --x)
1283     # Obsolete; use --with-x.
1284     with_x=yes ;;
1285
1286   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287   | --x-incl | --x-inc | --x-in | --x-i)
1288     ac_prev=x_includes ;;
1289   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291     x_includes=$ac_optarg ;;
1292
1293   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295     ac_prev=x_libraries ;;
1296   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298     x_libraries=$ac_optarg ;;
1299
1300   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1301 Try \`$0 --help' for more information"
1302     ;;
1303
1304   *=*)
1305     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306     # Reject names that are not valid shell variable names.
1307     case $ac_envvar in #(
1308       '' | [0-9]* | *[!_$as_cr_alnum]* )
1309       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1310     esac
1311     eval $ac_envvar=\$ac_optarg
1312     export $ac_envvar ;;
1313
1314   *)
1315     # FIXME: should be removed in autoconf 3.0.
1316     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1320     ;;
1321
1322   esac
1323 done
1324
1325 if test -n "$ac_prev"; then
1326   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327   as_fn_error $? "missing argument to $ac_option"
1328 fi
1329
1330 if test -n "$ac_unrecognized_opts"; then
1331   case $enable_option_checking in
1332     no) ;;
1333     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335   esac
1336 fi
1337
1338 # Check all directory arguments for consistency.
1339 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340                 datadir sysconfdir sharedstatedir localstatedir includedir \
1341                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342                 libdir localedir mandir
1343 do
1344   eval ac_val=\$$ac_var
1345   # Remove trailing slashes.
1346   case $ac_val in
1347     */ )
1348       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349       eval $ac_var=\$ac_val;;
1350   esac
1351   # Be sure to have absolute directory names.
1352   case $ac_val in
1353     [\\/$]* | ?:[\\/]* )  continue;;
1354     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355   esac
1356   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1357 done
1358
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1362 build=$build_alias
1363 host=$host_alias
1364 target=$target_alias
1365
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368   if test "x$build_alias" = x; then
1369     cross_compiling=maybe
1370   elif test "x$build_alias" != "x$host_alias"; then
1371     cross_compiling=yes
1372   fi
1373 fi
1374
1375 ac_tool_prefix=
1376 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378 test "$silent" = yes && exec 6>/dev/null
1379
1380
1381 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di=`ls -di .` &&
1383 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384   as_fn_error $? "working directory cannot be determined"
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386   as_fn_error $? "pwd does not report name of working directory"
1387
1388
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391   ac_srcdir_defaulted=yes
1392   # Try the directory containing this script, then the parent directory.
1393   ac_confdir=`$as_dirname -- "$as_myself" ||
1394 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395          X"$as_myself" : 'X\(//\)[^/]' \| \
1396          X"$as_myself" : 'X\(//\)$' \| \
1397          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398 $as_echo X"$as_myself" |
1399     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400             s//\1/
1401             q
1402           }
1403           /^X\(\/\/\)[^/].*/{
1404             s//\1/
1405             q
1406           }
1407           /^X\(\/\/\)$/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\).*/{
1412             s//\1/
1413             q
1414           }
1415           s/.*/./; q'`
1416   srcdir=$ac_confdir
1417   if test ! -r "$srcdir/$ac_unique_file"; then
1418     srcdir=..
1419   fi
1420 else
1421   ac_srcdir_defaulted=no
1422 fi
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1426 fi
1427 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428 ac_abs_confdir=`(
1429         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1430         pwd)`
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433   srcdir=.
1434 fi
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1438 case $srcdir in
1439 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440 esac
1441 for ac_var in $ac_precious_vars; do
1442   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443   eval ac_env_${ac_var}_value=\$${ac_var}
1444   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446 done
1447
1448 #
1449 # Report the --help message.
1450 #
1451 if test "$ac_init_help" = "long"; then
1452   # Omit some internal or obsolete options to make the list less imposing.
1453   # This message is too long to be a string in the A/UX 3.1 sh.
1454   cat <<_ACEOF
1455 \`configure' configures Moonshot-ui 0.7.1 to adapt to many kinds of systems.
1456
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE.  See below for descriptions of some of the useful variables.
1461
1462 Defaults for the options are specified in brackets.
1463
1464 Configuration:
1465   -h, --help              display this help and exit
1466       --help=short        display options specific to this package
1467       --help=recursive    display the short help of all the included packages
1468   -V, --version           display version information and exit
1469   -q, --quiet, --silent   do not print \`checking ...' messages
1470       --cache-file=FILE   cache test results in FILE [disabled]
1471   -C, --config-cache      alias for \`--cache-file=config.cache'
1472   -n, --no-create         do not create output files
1473       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1474
1475 Installation directories:
1476   --prefix=PREFIX         install architecture-independent files in PREFIX
1477                           [$ac_default_prefix]
1478   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1479                           [PREFIX]
1480
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1485
1486 For better control, use the options below.
1487
1488 Fine tuning of the installation directories:
1489   --bindir=DIR            user executables [EPREFIX/bin]
1490   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1491   --libexecdir=DIR        program executables [EPREFIX/libexec]
1492   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1493   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1494   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1495   --libdir=DIR            object code libraries [EPREFIX/lib]
1496   --includedir=DIR        C header files [PREFIX/include]
1497   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1498   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1499   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1500   --infodir=DIR           info documentation [DATAROOTDIR/info]
1501   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1502   --mandir=DIR            man documentation [DATAROOTDIR/man]
1503   --docdir=DIR            documentation root [DATAROOTDIR/doc/moonshot-ui]
1504   --htmldir=DIR           html documentation [DOCDIR]
1505   --dvidir=DIR            dvi documentation [DOCDIR]
1506   --pdfdir=DIR            pdf documentation [DOCDIR]
1507   --psdir=DIR             ps documentation [DOCDIR]
1508 _ACEOF
1509
1510   cat <<\_ACEOF
1511
1512 Program names:
1513   --program-prefix=PREFIX            prepend PREFIX to installed program names
1514   --program-suffix=SUFFIX            append SUFFIX to installed program names
1515   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1516
1517 System types:
1518   --build=BUILD     configure for building on BUILD [guessed]
1519   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1520 _ACEOF
1521 fi
1522
1523 if test -n "$ac_init_help"; then
1524   case $ac_init_help in
1525      short | recursive ) echo "Configuration of Moonshot-ui 0.7.1:";;
1526    esac
1527   cat <<\_ACEOF
1528
1529 Optional Features:
1530   --disable-option-checking  ignore unrecognized --enable/--with options
1531   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1532   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1533   --enable-silent-rules   less verbose build output (undo: "make V=1")
1534   --disable-silent-rules  verbose build output (undo: "make V=0")
1535   --disable-maintainer-mode
1536                           disable make rules and dependencies not useful (and
1537                           sometimes confusing) to the casual installer
1538   --enable-shared[=PKGS]  build shared libraries [default=yes]
1539   --enable-static[=PKGS]  build static libraries [default=yes]
1540   --enable-fast-install[=PKGS]
1541                           optimize for fast installation [default=yes]
1542   --enable-dependency-tracking
1543                           do not reject slow dependency extractors
1544   --disable-dependency-tracking
1545                           speeds up one-time build
1546   --disable-libtool-lock  avoid locking (might break parallel builds)
1547   --disable-nls           do not use Native Language Support
1548   --disable-rpath         do not hardcode runtime library paths
1549
1550 Optional Packages:
1551   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1552   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1553   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1554                           both]
1555   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1556   --with-sysroot=DIR Search for dependent libraries within DIR
1557                         (or the compiler's sysroot if not specified).
1558   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1559   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1560   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1561   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1562   --without-libintl-prefix     don't search for libintl in includedir and libdir
1563
1564 Some influential environment variables:
1565   CC          C compiler command
1566   CFLAGS      C compiler flags
1567   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1568               nonstandard directory <lib dir>
1569   LIBS        libraries to pass to the linker, e.g. -l<library>
1570   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1571               you have headers in a nonstandard directory <include dir>
1572   CPP         C preprocessor
1573   PKG_CONFIG  path to pkg-config utility
1574   PKG_CONFIG_PATH
1575               directories to add to pkg-config's search path
1576   PKG_CONFIG_LIBDIR
1577               path overriding pkg-config's built-in search path
1578   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1579   GTK_LIBS    linker flags for GTK, overriding pkg-config
1580   MAC_CFLAGS  C compiler flags for MAC, overriding pkg-config
1581   MAC_LIBS    linker flags for MAC, overriding pkg-config
1582   GDBUS_CFLAGS
1583               C compiler flags for GDBUS, overriding pkg-config
1584   GDBUS_LIBS  linker flags for GDBUS, overriding pkg-config
1585   moonshot_CFLAGS
1586               C compiler flags for moonshot, overriding pkg-config
1587   moonshot_LIBS
1588               linker flags for moonshot, overriding pkg-config
1589   libmoonshot_CFLAGS
1590               C compiler flags for libmoonshot, overriding pkg-config
1591   libmoonshot_LIBS
1592               linker flags for libmoonshot, overriding pkg-config
1593
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1596
1597 Report bugs to <moonshot-community@jiscmail.ac.uk>.
1598 Moonshot-ui home page: <http://www.project-moonshot.org/>.
1599 _ACEOF
1600 ac_status=$?
1601 fi
1602
1603 if test "$ac_init_help" = "recursive"; then
1604   # If there are subdirs, report their specific --help.
1605   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606     test -d "$ac_dir" ||
1607       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608       continue
1609     ac_builddir=.
1610
1611 case "$ac_dir" in
1612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *)
1614   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615   # A ".." for each directory in $ac_dir_suffix.
1616   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617   case $ac_top_builddir_sub in
1618   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620   esac ;;
1621 esac
1622 ac_abs_top_builddir=$ac_pwd
1623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624 # for backward compatibility:
1625 ac_top_builddir=$ac_top_build_prefix
1626
1627 case $srcdir in
1628   .)  # We are building in place.
1629     ac_srcdir=.
1630     ac_top_srcdir=$ac_top_builddir_sub
1631     ac_abs_top_srcdir=$ac_pwd ;;
1632   [\\/]* | ?:[\\/]* )  # Absolute name.
1633     ac_srcdir=$srcdir$ac_dir_suffix;
1634     ac_top_srcdir=$srcdir
1635     ac_abs_top_srcdir=$srcdir ;;
1636   *) # Relative name.
1637     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638     ac_top_srcdir=$ac_top_build_prefix$srcdir
1639     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1640 esac
1641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1642
1643     cd "$ac_dir" || { ac_status=$?; continue; }
1644     # Check for guested configure.
1645     if test -f "$ac_srcdir/configure.gnu"; then
1646       echo &&
1647       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648     elif test -f "$ac_srcdir/configure"; then
1649       echo &&
1650       $SHELL "$ac_srcdir/configure" --help=recursive
1651     else
1652       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653     fi || ac_status=$?
1654     cd "$ac_pwd" || { ac_status=$?; break; }
1655   done
1656 fi
1657
1658 test -n "$ac_init_help" && exit $ac_status
1659 if $ac_init_version; then
1660   cat <<\_ACEOF
1661 Moonshot-ui configure 0.7.1
1662 generated by GNU Autoconf 2.69
1663
1664 Copyright (C) 2012 Free Software Foundation, Inc.
1665 This configure script is free software; the Free Software Foundation
1666 gives unlimited permission to copy, distribute and modify it.
1667 _ACEOF
1668   exit
1669 fi
1670
1671 ## ------------------------ ##
1672 ## Autoconf initialization. ##
1673 ## ------------------------ ##
1674
1675 # ac_fn_c_try_compile LINENO
1676 # --------------------------
1677 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_compile ()
1679 {
1680   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681   rm -f conftest.$ac_objext
1682   if { { ac_try="$ac_compile"
1683 case "(($ac_try" in
1684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685   *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689   (eval "$ac_compile") 2>conftest.err
1690   ac_status=$?
1691   if test -s conftest.err; then
1692     grep -v '^ *+' conftest.err >conftest.er1
1693     cat conftest.er1 >&5
1694     mv -f conftest.er1 conftest.err
1695   fi
1696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697   test $ac_status = 0; } && {
1698          test -z "$ac_c_werror_flag" ||
1699          test ! -s conftest.err
1700        } && test -s conftest.$ac_objext; then :
1701   ac_retval=0
1702 else
1703   $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706         ac_retval=1
1707 fi
1708   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709   as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_compile
1712
1713 # ac_fn_c_try_link LINENO
1714 # -----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_link ()
1717 {
1718   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719   rm -f conftest.$ac_objext conftest$ac_exeext
1720   if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723   *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727   (eval "$ac_link") 2>conftest.err
1728   ac_status=$?
1729   if test -s conftest.err; then
1730     grep -v '^ *+' conftest.err >conftest.er1
1731     cat conftest.er1 >&5
1732     mv -f conftest.er1 conftest.err
1733   fi
1734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735   test $ac_status = 0; } && {
1736          test -z "$ac_c_werror_flag" ||
1737          test ! -s conftest.err
1738        } && test -s conftest$ac_exeext && {
1739          test "$cross_compiling" = yes ||
1740          test -x conftest$ac_exeext
1741        }; then :
1742   ac_retval=0
1743 else
1744   $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747         ac_retval=1
1748 fi
1749   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1750   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1751   # interfere with the next link command; also delete a directory that is
1752   # left behind by Apple's compiler.  We do this before executing the actions.
1753   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755   as_fn_set_status $ac_retval
1756
1757 } # ac_fn_c_try_link
1758
1759 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1760 # -------------------------------------------------------
1761 # Tests whether HEADER exists and can be compiled using the include files in
1762 # INCLUDES, setting the cache variable VAR accordingly.
1763 ac_fn_c_check_header_compile ()
1764 {
1765   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if eval \${$3+:} false; then :
1769   $as_echo_n "(cached) " >&6
1770 else
1771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h.  */
1773 $4
1774 #include <$2>
1775 _ACEOF
1776 if ac_fn_c_try_compile "$LINENO"; then :
1777   eval "$3=yes"
1778 else
1779   eval "$3=no"
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 fi
1783 eval ac_res=\$$3
1784                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785 $as_echo "$ac_res" >&6; }
1786   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787
1788 } # ac_fn_c_check_header_compile
1789
1790 # ac_fn_c_try_cpp LINENO
1791 # ----------------------
1792 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_c_try_cpp ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   if { { ac_try="$ac_cpp conftest.$ac_ext"
1797 case "(($ac_try" in
1798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799   *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1804   ac_status=$?
1805   if test -s conftest.err; then
1806     grep -v '^ *+' conftest.err >conftest.er1
1807     cat conftest.er1 >&5
1808     mv -f conftest.er1 conftest.err
1809   fi
1810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811   test $ac_status = 0; } > conftest.i && {
1812          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1813          test ! -s conftest.err
1814        }; then :
1815   ac_retval=0
1816 else
1817   $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1819
1820     ac_retval=1
1821 fi
1822   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823   as_fn_set_status $ac_retval
1824
1825 } # ac_fn_c_try_cpp
1826
1827 # ac_fn_c_try_run LINENO
1828 # ----------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1830 # that executables *can* be run.
1831 ac_fn_c_try_run ()
1832 {
1833   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834   if { { ac_try="$ac_link"
1835 case "(($ac_try" in
1836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837   *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841   (eval "$ac_link") 2>&5
1842   ac_status=$?
1843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1845   { { case "(($ac_try" in
1846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847   *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851   (eval "$ac_try") 2>&5
1852   ac_status=$?
1853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854   test $ac_status = 0; }; }; then :
1855   ac_retval=0
1856 else
1857   $as_echo "$as_me: program exited with status $ac_status" >&5
1858        $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1860
1861        ac_retval=$ac_status
1862 fi
1863   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1864   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865   as_fn_set_status $ac_retval
1866
1867 } # ac_fn_c_try_run
1868
1869 # ac_fn_c_check_func LINENO FUNC VAR
1870 # ----------------------------------
1871 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1872 ac_fn_c_check_func ()
1873 {
1874   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if eval \${$3+:} false; then :
1878   $as_echo_n "(cached) " >&6
1879 else
1880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h.  */
1882 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1884 #define $2 innocuous_$2
1885
1886 /* System header to define __stub macros and hopefully few prototypes,
1887     which can conflict with char $2 (); below.
1888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1889     <limits.h> exists even on freestanding compilers.  */
1890
1891 #ifdef __STDC__
1892 # include <limits.h>
1893 #else
1894 # include <assert.h>
1895 #endif
1896
1897 #undef $2
1898
1899 /* Override any GCC internal prototype to avoid an error.
1900    Use char because int might match the return type of a GCC
1901    builtin and then its argument prototype would still apply.  */
1902 #ifdef __cplusplus
1903 extern "C"
1904 #endif
1905 char $2 ();
1906 /* The GNU C library defines this for functions which it implements
1907     to always fail with ENOSYS.  Some functions are actually named
1908     something starting with __ and the normal name is an alias.  */
1909 #if defined __stub_$2 || defined __stub___$2
1910 choke me
1911 #endif
1912
1913 int
1914 main ()
1915 {
1916 return $2 ();
1917   ;
1918   return 0;
1919 }
1920 _ACEOF
1921 if ac_fn_c_try_link "$LINENO"; then :
1922   eval "$3=yes"
1923 else
1924   eval "$3=no"
1925 fi
1926 rm -f core conftest.err conftest.$ac_objext \
1927     conftest$ac_exeext conftest.$ac_ext
1928 fi
1929 eval ac_res=\$$3
1930                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933
1934 } # ac_fn_c_check_func
1935 cat >config.log <<_ACEOF
1936 This file contains any messages produced by compilers while
1937 running configure, to aid debugging if configure makes a mistake.
1938
1939 It was created by Moonshot-ui $as_me 0.7.1, which was
1940 generated by GNU Autoconf 2.69.  Invocation command line was
1941
1942   $ $0 $@
1943
1944 _ACEOF
1945 exec 5>>config.log
1946 {
1947 cat <<_ASUNAME
1948 ## --------- ##
1949 ## Platform. ##
1950 ## --------- ##
1951
1952 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1953 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1954 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1955 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1956 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1957
1958 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1959 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1960
1961 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1962 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1963 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1964 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1965 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1966 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1967 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1968
1969 _ASUNAME
1970
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1973 do
1974   IFS=$as_save_IFS
1975   test -z "$as_dir" && as_dir=.
1976     $as_echo "PATH: $as_dir"
1977   done
1978 IFS=$as_save_IFS
1979
1980 } >&5
1981
1982 cat >&5 <<_ACEOF
1983
1984
1985 ## ----------- ##
1986 ## Core tests. ##
1987 ## ----------- ##
1988
1989 _ACEOF
1990
1991
1992 # Keep a trace of the command line.
1993 # Strip out --no-create and --no-recursion so they do not pile up.
1994 # Strip out --silent because we don't want to record it for future runs.
1995 # Also quote any args containing shell meta-characters.
1996 # Make two passes to allow for proper duplicate-argument suppression.
1997 ac_configure_args=
1998 ac_configure_args0=
1999 ac_configure_args1=
2000 ac_must_keep_next=false
2001 for ac_pass in 1 2
2002 do
2003   for ac_arg
2004   do
2005     case $ac_arg in
2006     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2007     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2008     | -silent | --silent | --silen | --sile | --sil)
2009       continue ;;
2010     *\'*)
2011       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2012     esac
2013     case $ac_pass in
2014     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2015     2)
2016       as_fn_append ac_configure_args1 " '$ac_arg'"
2017       if test $ac_must_keep_next = true; then
2018         ac_must_keep_next=false # Got value, back to normal.
2019       else
2020         case $ac_arg in
2021           *=* | --config-cache | -C | -disable-* | --disable-* \
2022           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2023           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2024           | -with-* | --with-* | -without-* | --without-* | --x)
2025             case "$ac_configure_args0 " in
2026               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2027             esac
2028             ;;
2029           -* ) ac_must_keep_next=true ;;
2030         esac
2031       fi
2032       as_fn_append ac_configure_args " '$ac_arg'"
2033       ;;
2034     esac
2035   done
2036 done
2037 { ac_configure_args0=; unset ac_configure_args0;}
2038 { ac_configure_args1=; unset ac_configure_args1;}
2039
2040 # When interrupted or exit'd, cleanup temporary files, and complete
2041 # config.log.  We remove comments because anyway the quotes in there
2042 # would cause problems or look ugly.
2043 # WARNING: Use '\'' to represent an apostrophe within the trap.
2044 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2045 trap 'exit_status=$?
2046   # Save into config.log some information that might help in debugging.
2047   {
2048     echo
2049
2050     $as_echo "## ---------------- ##
2051 ## Cache variables. ##
2052 ## ---------------- ##"
2053     echo
2054     # The following way of writing the cache mishandles newlines in values,
2055 (
2056   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2057     eval ac_val=\$$ac_var
2058     case $ac_val in #(
2059     *${as_nl}*)
2060       case $ac_var in #(
2061       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2062 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2063       esac
2064       case $ac_var in #(
2065       _ | IFS | as_nl) ;; #(
2066       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2067       *) { eval $ac_var=; unset $ac_var;} ;;
2068       esac ;;
2069     esac
2070   done
2071   (set) 2>&1 |
2072     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2073     *${as_nl}ac_space=\ *)
2074       sed -n \
2075         "s/'\''/'\''\\\\'\'''\''/g;
2076           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2077       ;; #(
2078     *)
2079       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2080       ;;
2081     esac |
2082     sort
2083 )
2084     echo
2085
2086     $as_echo "## ----------------- ##
2087 ## Output variables. ##
2088 ## ----------------- ##"
2089     echo
2090     for ac_var in $ac_subst_vars
2091     do
2092       eval ac_val=\$$ac_var
2093       case $ac_val in
2094       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2095       esac
2096       $as_echo "$ac_var='\''$ac_val'\''"
2097     done | sort
2098     echo
2099
2100     if test -n "$ac_subst_files"; then
2101       $as_echo "## ------------------- ##
2102 ## File substitutions. ##
2103 ## ------------------- ##"
2104       echo
2105       for ac_var in $ac_subst_files
2106       do
2107         eval ac_val=\$$ac_var
2108         case $ac_val in
2109         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2110         esac
2111         $as_echo "$ac_var='\''$ac_val'\''"
2112       done | sort
2113       echo
2114     fi
2115
2116     if test -s confdefs.h; then
2117       $as_echo "## ----------- ##
2118 ## confdefs.h. ##
2119 ## ----------- ##"
2120       echo
2121       cat confdefs.h
2122       echo
2123     fi
2124     test "$ac_signal" != 0 &&
2125       $as_echo "$as_me: caught signal $ac_signal"
2126     $as_echo "$as_me: exit $exit_status"
2127   } >&5
2128   rm -f core *.core core.conftest.* &&
2129     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2130     exit $exit_status
2131 ' 0
2132 for ac_signal in 1 2 13 15; do
2133   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2134 done
2135 ac_signal=0
2136
2137 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2138 rm -f -r conftest* confdefs.h
2139
2140 $as_echo "/* confdefs.h */" > confdefs.h
2141
2142 # Predefined preprocessor variables.
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_NAME "$PACKAGE_NAME"
2146 _ACEOF
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2150 _ACEOF
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2154 _ACEOF
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_STRING "$PACKAGE_STRING"
2158 _ACEOF
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2162 _ACEOF
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_URL "$PACKAGE_URL"
2166 _ACEOF
2167
2168
2169 # Let the site file select an alternate cache file if it wants to.
2170 # Prefer an explicitly selected file to automatically selected ones.
2171 ac_site_file1=NONE
2172 ac_site_file2=NONE
2173 if test -n "$CONFIG_SITE"; then
2174   # We do not want a PATH search for config.site.
2175   case $CONFIG_SITE in #((
2176     -*)  ac_site_file1=./$CONFIG_SITE;;
2177     */*) ac_site_file1=$CONFIG_SITE;;
2178     *)   ac_site_file1=./$CONFIG_SITE;;
2179   esac
2180 elif test "x$prefix" != xNONE; then
2181   ac_site_file1=$prefix/share/config.site
2182   ac_site_file2=$prefix/etc/config.site
2183 else
2184   ac_site_file1=$ac_default_prefix/share/config.site
2185   ac_site_file2=$ac_default_prefix/etc/config.site
2186 fi
2187 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2188 do
2189   test "x$ac_site_file" = xNONE && continue
2190   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2191     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2192 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2193     sed 's/^/| /' "$ac_site_file" >&5
2194     . "$ac_site_file" \
2195       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197 as_fn_error $? "failed to load site script $ac_site_file
2198 See \`config.log' for more details" "$LINENO" 5; }
2199   fi
2200 done
2201
2202 if test -r "$cache_file"; then
2203   # Some versions of bash will fail to source /dev/null (special files
2204   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2205   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2206     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2207 $as_echo "$as_me: loading cache $cache_file" >&6;}
2208     case $cache_file in
2209       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2210       *)                      . "./$cache_file";;
2211     esac
2212   fi
2213 else
2214   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2215 $as_echo "$as_me: creating cache $cache_file" >&6;}
2216   >$cache_file
2217 fi
2218
2219 as_fn_append ac_func_list " geteuid"
2220 as_fn_append ac_func_list " getpwuid"
2221 gt_needs="$gt_needs "
2222 # Check that the precious variables saved in the cache have kept the same
2223 # value.
2224 ac_cache_corrupted=false
2225 for ac_var in $ac_precious_vars; do
2226   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2227   eval ac_new_set=\$ac_env_${ac_var}_set
2228   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2229   eval ac_new_val=\$ac_env_${ac_var}_value
2230   case $ac_old_set,$ac_new_set in
2231     set,)
2232       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2233 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2234       ac_cache_corrupted=: ;;
2235     ,set)
2236       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2237 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2238       ac_cache_corrupted=: ;;
2239     ,);;
2240     *)
2241       if test "x$ac_old_val" != "x$ac_new_val"; then
2242         # differences in whitespace do not lead to failure.
2243         ac_old_val_w=`echo x $ac_old_val`
2244         ac_new_val_w=`echo x $ac_new_val`
2245         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2246           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2247 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2248           ac_cache_corrupted=:
2249         else
2250           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2251 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2252           eval $ac_var=\$ac_old_val
2253         fi
2254         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2255 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2256         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2257 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2258       fi;;
2259   esac
2260   # Pass precious variables to config.status.
2261   if test "$ac_new_set" = set; then
2262     case $ac_new_val in
2263     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2264     *) ac_arg=$ac_var=$ac_new_val ;;
2265     esac
2266     case " $ac_configure_args " in
2267       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2268       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2269     esac
2270   fi
2271 done
2272 if $ac_cache_corrupted; then
2273   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2276 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2277   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2278 fi
2279 ## -------------------- ##
2280 ## Main body of script. ##
2281 ## -------------------- ##
2282
2283 ac_ext=c
2284 ac_cpp='$CPP $CPPFLAGS'
2285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288
2289
2290
2291 # Remove this when we can depend on autoconf >= 2.64
2292 PACKAGE_URL=http://www.project-moonshot.org/
2293
2294
2295 $as_echo "#define PACKAGE_URL \"http://www.project-moonshot.org\"" >>confdefs.h
2296
2297 ac_config_headers="$ac_config_headers config.h"
2298
2299
2300
2301 ac_aux_dir=
2302 for ac_dir in build-aux "$srcdir"/build-aux; do
2303   if test -f "$ac_dir/install-sh"; then
2304     ac_aux_dir=$ac_dir
2305     ac_install_sh="$ac_aux_dir/install-sh -c"
2306     break
2307   elif test -f "$ac_dir/install.sh"; then
2308     ac_aux_dir=$ac_dir
2309     ac_install_sh="$ac_aux_dir/install.sh -c"
2310     break
2311   elif test -f "$ac_dir/shtool"; then
2312     ac_aux_dir=$ac_dir
2313     ac_install_sh="$ac_aux_dir/shtool install -c"
2314     break
2315   fi
2316 done
2317 if test -z "$ac_aux_dir"; then
2318   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2319 fi
2320
2321 # These three variables are undocumented and unsupported,
2322 # and are intended to be withdrawn in a future Autoconf release.
2323 # They can cause serious problems if a builder's source tree is in a directory
2324 # whose full name contains unusual characters.
2325 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2326 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2327 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2328
2329
2330
2331 am__api_version='1.14'
2332
2333 # Find a good install program.  We prefer a C program (faster),
2334 # so one script is as good as another.  But avoid the broken or
2335 # incompatible versions:
2336 # SysV /etc/install, /usr/sbin/install
2337 # SunOS /usr/etc/install
2338 # IRIX /sbin/install
2339 # AIX /bin/install
2340 # AmigaOS /C/install, which installs bootblocks on floppy discs
2341 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2342 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2343 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2344 # OS/2's system install, which has a completely different semantic
2345 # ./install, which can be erroneously created by make from ./install.sh.
2346 # Reject install programs that cannot install multiple files.
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2348 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2349 if test -z "$INSTALL"; then
2350 if ${ac_cv_path_install+:} false; then :
2351   $as_echo_n "(cached) " >&6
2352 else
2353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356   IFS=$as_save_IFS
2357   test -z "$as_dir" && as_dir=.
2358     # Account for people who put trailing slashes in PATH elements.
2359 case $as_dir/ in #((
2360   ./ | .// | /[cC]/* | \
2361   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2362   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2363   /usr/ucb/* ) ;;
2364   *)
2365     # OSF1 and SCO ODT 3.0 have their own names for install.
2366     # Don't use installbsd from OSF since it installs stuff as root
2367     # by default.
2368     for ac_prog in ginstall scoinst install; do
2369       for ac_exec_ext in '' $ac_executable_extensions; do
2370         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2371           if test $ac_prog = install &&
2372             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2373             # AIX install.  It has an incompatible calling convention.
2374             :
2375           elif test $ac_prog = install &&
2376             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2377             # program-specific install script used by HP pwplus--don't use.
2378             :
2379           else
2380             rm -rf conftest.one conftest.two conftest.dir
2381             echo one > conftest.one
2382             echo two > conftest.two
2383             mkdir conftest.dir
2384             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2385               test -s conftest.one && test -s conftest.two &&
2386               test -s conftest.dir/conftest.one &&
2387               test -s conftest.dir/conftest.two
2388             then
2389               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2390               break 3
2391             fi
2392           fi
2393         fi
2394       done
2395     done
2396     ;;
2397 esac
2398
2399   done
2400 IFS=$as_save_IFS
2401
2402 rm -rf conftest.one conftest.two conftest.dir
2403
2404 fi
2405   if test "${ac_cv_path_install+set}" = set; then
2406     INSTALL=$ac_cv_path_install
2407   else
2408     # As a last resort, use the slow shell script.  Don't cache a
2409     # value for INSTALL within a source directory, because that will
2410     # break other packages using the cache if that directory is
2411     # removed, or if the value is a relative name.
2412     INSTALL=$ac_install_sh
2413   fi
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2416 $as_echo "$INSTALL" >&6; }
2417
2418 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2419 # It thinks the first close brace ends the variable substitution.
2420 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2421
2422 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2423
2424 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2425
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2427 $as_echo_n "checking whether build environment is sane... " >&6; }
2428 # Reject unsafe characters in $srcdir or the absolute working directory
2429 # name.  Accept space and tab only in the latter.
2430 am_lf='
2431 '
2432 case `pwd` in
2433   *[\\\"\#\$\&\'\`$am_lf]*)
2434     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2435 esac
2436 case $srcdir in
2437   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2438     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2439 esac
2440
2441 # Do 'set' in a subshell so we don't clobber the current shell's
2442 # arguments.  Must try -L first in case configure is actually a
2443 # symlink; some systems play weird games with the mod time of symlinks
2444 # (eg FreeBSD returns the mod time of the symlink's containing
2445 # directory).
2446 if (
2447    am_has_slept=no
2448    for am_try in 1 2; do
2449      echo "timestamp, slept: $am_has_slept" > conftest.file
2450      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2451      if test "$*" = "X"; then
2452         # -L didn't work.
2453         set X `ls -t "$srcdir/configure" conftest.file`
2454      fi
2455      if test "$*" != "X $srcdir/configure conftest.file" \
2456         && test "$*" != "X conftest.file $srcdir/configure"; then
2457
2458         # If neither matched, then we have a broken ls.  This can happen
2459         # if, for instance, CONFIG_SHELL is bash and it inherits a
2460         # broken ls alias from the environment.  This has actually
2461         # happened.  Such a system could not be considered "sane".
2462         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2463   alias in your environment" "$LINENO" 5
2464      fi
2465      if test "$2" = conftest.file || test $am_try -eq 2; then
2466        break
2467      fi
2468      # Just in case.
2469      sleep 1
2470      am_has_slept=yes
2471    done
2472    test "$2" = conftest.file
2473    )
2474 then
2475    # Ok.
2476    :
2477 else
2478    as_fn_error $? "newly created file is older than distributed files!
2479 Check your system clock" "$LINENO" 5
2480 fi
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2482 $as_echo "yes" >&6; }
2483 # If we didn't sleep, we still need to ensure time stamps of config.status and
2484 # generated files are strictly newer.
2485 am_sleep_pid=
2486 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2487   ( sleep 1 ) &
2488   am_sleep_pid=$!
2489 fi
2490
2491 rm -f conftest.file
2492
2493 test "$program_prefix" != NONE &&
2494   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2495 # Use a double $ so make ignores it.
2496 test "$program_suffix" != NONE &&
2497   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2498 # Double any \ or $.
2499 # By default was `s,x,x', remove it if useless.
2500 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2501 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2502
2503 # expand $ac_aux_dir to an absolute path
2504 am_aux_dir=`cd $ac_aux_dir && pwd`
2505
2506 if test x"${MISSING+set}" != xset; then
2507   case $am_aux_dir in
2508   *\ * | *\     *)
2509     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2510   *)
2511     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2512   esac
2513 fi
2514 # Use eval to expand $SHELL
2515 if eval "$MISSING --is-lightweight"; then
2516   am_missing_run="$MISSING "
2517 else
2518   am_missing_run=
2519   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2520 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2521 fi
2522
2523 if test x"${install_sh}" != xset; then
2524   case $am_aux_dir in
2525   *\ * | *\     *)
2526     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2527   *)
2528     install_sh="\${SHELL} $am_aux_dir/install-sh"
2529   esac
2530 fi
2531
2532 # Installed binaries are usually stripped using 'strip' when the user
2533 # run "make install-strip".  However 'strip' might not be the right
2534 # tool to use in cross-compilation environments, therefore Automake
2535 # will honor the 'STRIP' environment variable to overrule this program.
2536 if test "$cross_compiling" != no; then
2537   if test -n "$ac_tool_prefix"; then
2538   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2539 set dummy ${ac_tool_prefix}strip; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_STRIP+:} false; then :
2543   $as_echo_n "(cached) " >&6
2544 else
2545   if test -n "$STRIP"; then
2546   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551   IFS=$as_save_IFS
2552   test -z "$as_dir" && as_dir=.
2553     for ac_exec_ext in '' $ac_executable_extensions; do
2554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557     break 2
2558   fi
2559 done
2560   done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 STRIP=$ac_cv_prog_STRIP
2566 if test -n "$STRIP"; then
2567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2568 $as_echo "$STRIP" >&6; }
2569 else
2570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2572 fi
2573
2574
2575 fi
2576 if test -z "$ac_cv_prog_STRIP"; then
2577   ac_ct_STRIP=$STRIP
2578   # Extract the first word of "strip", so it can be a program name with args.
2579 set dummy strip; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2583   $as_echo_n "(cached) " >&6
2584 else
2585   if test -n "$ac_ct_STRIP"; then
2586   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591   IFS=$as_save_IFS
2592   test -z "$as_dir" && as_dir=.
2593     for ac_exec_ext in '' $ac_executable_extensions; do
2594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595     ac_cv_prog_ac_ct_STRIP="strip"
2596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597     break 2
2598   fi
2599 done
2600   done
2601 IFS=$as_save_IFS
2602
2603 fi
2604 fi
2605 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2606 if test -n "$ac_ct_STRIP"; then
2607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2608 $as_echo "$ac_ct_STRIP" >&6; }
2609 else
2610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611 $as_echo "no" >&6; }
2612 fi
2613
2614   if test "x$ac_ct_STRIP" = x; then
2615     STRIP=":"
2616   else
2617     case $cross_compiling:$ac_tool_warned in
2618 yes:)
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2621 ac_tool_warned=yes ;;
2622 esac
2623     STRIP=$ac_ct_STRIP
2624   fi
2625 else
2626   STRIP="$ac_cv_prog_STRIP"
2627 fi
2628
2629 fi
2630 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2631
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2633 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2634 if test -z "$MKDIR_P"; then
2635   if ${ac_cv_path_mkdir+:} false; then :
2636   $as_echo_n "(cached) " >&6
2637 else
2638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2640 do
2641   IFS=$as_save_IFS
2642   test -z "$as_dir" && as_dir=.
2643     for ac_prog in mkdir gmkdir; do
2644          for ac_exec_ext in '' $ac_executable_extensions; do
2645            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2646            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2647              'mkdir (GNU coreutils) '* | \
2648              'mkdir (coreutils) '* | \
2649              'mkdir (fileutils) '4.1*)
2650                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2651                break 3;;
2652            esac
2653          done
2654        done
2655   done
2656 IFS=$as_save_IFS
2657
2658 fi
2659
2660   test -d ./--version && rmdir ./--version
2661   if test "${ac_cv_path_mkdir+set}" = set; then
2662     MKDIR_P="$ac_cv_path_mkdir -p"
2663   else
2664     # As a last resort, use the slow shell script.  Don't cache a
2665     # value for MKDIR_P within a source directory, because that will
2666     # break other packages using the cache if that directory is
2667     # removed, or if the value is a relative name.
2668     MKDIR_P="$ac_install_sh -d"
2669   fi
2670 fi
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2672 $as_echo "$MKDIR_P" >&6; }
2673
2674 for ac_prog in gawk mawk nawk awk
2675 do
2676   # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if ${ac_cv_prog_AWK+:} false; then :
2681   $as_echo_n "(cached) " >&6
2682 else
2683   if test -n "$AWK"; then
2684   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689   IFS=$as_save_IFS
2690   test -z "$as_dir" && as_dir=.
2691     for ac_exec_ext in '' $ac_executable_extensions; do
2692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693     ac_cv_prog_AWK="$ac_prog"
2694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695     break 2
2696   fi
2697 done
2698   done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 AWK=$ac_cv_prog_AWK
2704 if test -n "$AWK"; then
2705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2706 $as_echo "$AWK" >&6; }
2707 else
2708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2710 fi
2711
2712
2713   test -n "$AWK" && break
2714 done
2715
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2717 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2718 set x ${MAKE-make}
2719 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2720 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2721   $as_echo_n "(cached) " >&6
2722 else
2723   cat >conftest.make <<\_ACEOF
2724 SHELL = /bin/sh
2725 all:
2726         @echo '@@@%%%=$(MAKE)=@@@%%%'
2727 _ACEOF
2728 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2729 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2730   *@@@%%%=?*=@@@%%%*)
2731     eval ac_cv_prog_make_${ac_make}_set=yes;;
2732   *)
2733     eval ac_cv_prog_make_${ac_make}_set=no;;
2734 esac
2735 rm -f conftest.make
2736 fi
2737 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2739 $as_echo "yes" >&6; }
2740   SET_MAKE=
2741 else
2742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 $as_echo "no" >&6; }
2744   SET_MAKE="MAKE=${MAKE-make}"
2745 fi
2746
2747 rm -rf .tst 2>/dev/null
2748 mkdir .tst 2>/dev/null
2749 if test -d .tst; then
2750   am__leading_dot=.
2751 else
2752   am__leading_dot=_
2753 fi
2754 rmdir .tst 2>/dev/null
2755
2756 # Check whether --enable-silent-rules was given.
2757 if test "${enable_silent_rules+set}" = set; then :
2758   enableval=$enable_silent_rules;
2759 fi
2760
2761 case $enable_silent_rules in # (((
2762   yes) AM_DEFAULT_VERBOSITY=0;;
2763    no) AM_DEFAULT_VERBOSITY=1;;
2764     *) AM_DEFAULT_VERBOSITY=1;;
2765 esac
2766 am_make=${MAKE-make}
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2768 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2769 if ${am_cv_make_support_nested_variables+:} false; then :
2770   $as_echo_n "(cached) " >&6
2771 else
2772   if $as_echo 'TRUE=$(BAR$(V))
2773 BAR0=false
2774 BAR1=true
2775 V=1
2776 am__doit:
2777         @$(TRUE)
2778 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2779   am_cv_make_support_nested_variables=yes
2780 else
2781   am_cv_make_support_nested_variables=no
2782 fi
2783 fi
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2785 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2786 if test $am_cv_make_support_nested_variables = yes; then
2787     AM_V='$(V)'
2788   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2789 else
2790   AM_V=$AM_DEFAULT_VERBOSITY
2791   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2792 fi
2793 AM_BACKSLASH='\'
2794
2795 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2796   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2797   # is not polluted with repeated "-I."
2798   am__isrc=' -I$(srcdir)'
2799   # test to see if srcdir already configured
2800   if test -f $srcdir/config.status; then
2801     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2802   fi
2803 fi
2804
2805 # test whether we have cygpath
2806 if test -z "$CYGPATH_W"; then
2807   if (cygpath --version) >/dev/null 2>/dev/null; then
2808     CYGPATH_W='cygpath -w'
2809   else
2810     CYGPATH_W=echo
2811   fi
2812 fi
2813
2814
2815 # Define the identity of the package.
2816  PACKAGE='moonshot-ui'
2817  VERSION='0.7.1'
2818
2819
2820 cat >>confdefs.h <<_ACEOF
2821 #define PACKAGE "$PACKAGE"
2822 _ACEOF
2823
2824
2825 cat >>confdefs.h <<_ACEOF
2826 #define VERSION "$VERSION"
2827 _ACEOF
2828
2829 # Some tools Automake needs.
2830
2831 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2832
2833
2834 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2835
2836
2837 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2838
2839
2840 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2841
2842
2843 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2844
2845 # For better backward compatibility.  To be removed once Automake 1.9.x
2846 # dies out for good.  For more background, see:
2847 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2848 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2849 mkdir_p='$(MKDIR_P)'
2850
2851 # We need awk for the "check" target.  The system "awk" is bad on
2852 # some platforms.
2853 # Always define AMTAR for backward compatibility.  Yes, it's still used
2854 # in the wild :-(  We should find a proper way to deprecate it ...
2855 AMTAR='$${TAR-tar}'
2856
2857
2858 # We'll loop over all known methods to create a tar archive until one works.
2859 _am_tools='gnutar  pax cpio none'
2860
2861
2862
2863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2864 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2865
2866   # Go ahead even if we have the value already cached.  We do so because we
2867   # need to set the values for the 'am__tar' and 'am__untar' variables.
2868   _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2869
2870   for _am_tool in $_am_tools; do
2871     case $_am_tool in
2872     gnutar)
2873       for _am_tar in tar gnutar gtar; do
2874         { echo "$as_me:$LINENO: $_am_tar --version" >&5
2875    ($_am_tar --version) >&5 2>&5
2876    ac_status=$?
2877    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878    (exit $ac_status); } && break
2879       done
2880       am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2881       am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2882       am__untar="$_am_tar -xf -"
2883       ;;
2884     plaintar)
2885       # Must skip GNU tar: if it does not support --format= it doesn't create
2886       # ustar tarball either.
2887       (tar --version) >/dev/null 2>&1 && continue
2888       am__tar='tar chf - "$$tardir"'
2889       am__tar_='tar chf - "$tardir"'
2890       am__untar='tar xf -'
2891       ;;
2892     pax)
2893       am__tar='pax -L -x pax -w "$$tardir"'
2894       am__tar_='pax -L -x pax -w "$tardir"'
2895       am__untar='pax -r'
2896       ;;
2897     cpio)
2898       am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2899       am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2900       am__untar='cpio -i -H pax -d'
2901       ;;
2902     none)
2903       am__tar=false
2904       am__tar_=false
2905       am__untar=false
2906       ;;
2907     esac
2908
2909     # If the value was cached, stop now.  We just wanted to have am__tar
2910     # and am__untar set.
2911     test -n "${am_cv_prog_tar_pax}" && break
2912
2913     # tar/untar a dummy directory, and stop if the command works.
2914     rm -rf conftest.dir
2915     mkdir conftest.dir
2916     echo GrepMe > conftest.dir/file
2917     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2918    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2919    ac_status=$?
2920    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921    (exit $ac_status); }
2922     rm -rf conftest.dir
2923     if test -s conftest.tar; then
2924       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2925    ($am__untar <conftest.tar) >&5 2>&5
2926    ac_status=$?
2927    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928    (exit $ac_status); }
2929       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2930    (cat conftest.dir/file) >&5 2>&5
2931    ac_status=$?
2932    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933    (exit $ac_status); }
2934       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2935     fi
2936   done
2937   rm -rf conftest.dir
2938
2939   if ${am_cv_prog_tar_pax+:} false; then :
2940   $as_echo_n "(cached) " >&6
2941 else
2942   am_cv_prog_tar_pax=$_am_tool
2943 fi
2944
2945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2946 $as_echo "$am_cv_prog_tar_pax" >&6; }
2947
2948
2949
2950
2951
2952
2953 # POSIX will say in a future version that running "rm -f" with no argument
2954 # is OK; and we want to be able to make that assumption in our Makefile
2955 # recipes.  So use an aggressive probe to check that the usage we want is
2956 # actually supported "in the wild" to an acceptable degree.
2957 # See automake bug#10828.
2958 # To make any issue more visible, cause the running configure to be aborted
2959 # by default if the 'rm' program in use doesn't match our expectations; the
2960 # user can still override this though.
2961 if rm -f && rm -fr && rm -rf; then : OK; else
2962   cat >&2 <<'END'
2963 Oops!
2964
2965 Your 'rm' program seems unable to run without file operands specified
2966 on the command line, even when the '-f' option is present.  This is contrary
2967 to the behaviour of most rm programs out there, and not conforming with
2968 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2969
2970 Please tell bug-automake@gnu.org about your system, including the value
2971 of your $PATH and any error possibly output before this message.  This
2972 can help us improve future automake versions.
2973
2974 END
2975   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2976     echo 'Configuration will proceed anyway, since you have set the' >&2
2977     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2978     echo >&2
2979   else
2980     cat >&2 <<'END'
2981 Aborting the configuration process, to ensure you take notice of the issue.
2982
2983 You can download and install GNU coreutils to get an 'rm' implementation
2984 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2985
2986 If you want to complete the configuration process using your problematic
2987 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2988 to "yes", and re-run configure.
2989
2990 END
2991     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2992   fi
2993 fi
2994
2995 # Check whether --enable-silent-rules was given.
2996 if test "${enable_silent_rules+set}" = set; then :
2997   enableval=$enable_silent_rules;
2998 fi
2999
3000 case $enable_silent_rules in # (((
3001   yes) AM_DEFAULT_VERBOSITY=0;;
3002    no) AM_DEFAULT_VERBOSITY=1;;
3003     *) AM_DEFAULT_VERBOSITY=0;;
3004 esac
3005 am_make=${MAKE-make}
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3007 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3008 if ${am_cv_make_support_nested_variables+:} false; then :
3009   $as_echo_n "(cached) " >&6
3010 else
3011   if $as_echo 'TRUE=$(BAR$(V))
3012 BAR0=false
3013 BAR1=true
3014 V=1
3015 am__doit:
3016         @$(TRUE)
3017 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3018   am_cv_make_support_nested_variables=yes
3019 else
3020   am_cv_make_support_nested_variables=no
3021 fi
3022 fi
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3024 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3025 if test $am_cv_make_support_nested_variables = yes; then
3026     AM_V='$(V)'
3027   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3028 else
3029   AM_V=$AM_DEFAULT_VERBOSITY
3030   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3031 fi
3032 AM_BACKSLASH='\'
3033
3034
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3036 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3037     # Check whether --enable-maintainer-mode was given.
3038 if test "${enable_maintainer_mode+set}" = set; then :
3039   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3040 else
3041   USE_MAINTAINER_MODE=yes
3042 fi
3043
3044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3045 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3046    if test $USE_MAINTAINER_MODE = yes; then
3047   MAINTAINER_MODE_TRUE=
3048   MAINTAINER_MODE_FALSE='#'
3049 else
3050   MAINTAINER_MODE_TRUE='#'
3051   MAINTAINER_MODE_FALSE=
3052 fi
3053
3054   MAINT=$MAINTAINER_MODE_TRUE
3055
3056
3057
3058
3059 case `pwd` in
3060   *\ * | *\     *)
3061     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3062 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3063 esac
3064
3065
3066
3067 macro_version='2.4.2'
3068 macro_revision='1.3337'
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082 ltmain="$ac_aux_dir/ltmain.sh"
3083
3084 # Make sure we can run config.sub.
3085 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3086   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3087
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3089 $as_echo_n "checking build system type... " >&6; }
3090 if ${ac_cv_build+:} false; then :
3091   $as_echo_n "(cached) " >&6
3092 else
3093   ac_build_alias=$build_alias
3094 test "x$ac_build_alias" = x &&
3095   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3096 test "x$ac_build_alias" = x &&
3097   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3098 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3099   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3100
3101 fi
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3103 $as_echo "$ac_cv_build" >&6; }
3104 case $ac_cv_build in
3105 *-*-*) ;;
3106 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3107 esac
3108 build=$ac_cv_build
3109 ac_save_IFS=$IFS; IFS='-'
3110 set x $ac_cv_build
3111 shift
3112 build_cpu=$1
3113 build_vendor=$2
3114 shift; shift
3115 # Remember, the first character of IFS is used to create $*,
3116 # except with old shells:
3117 build_os=$*
3118 IFS=$ac_save_IFS
3119 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3120
3121
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3123 $as_echo_n "checking host system type... " >&6; }
3124 if ${ac_cv_host+:} false; then :
3125   $as_echo_n "(cached) " >&6
3126 else
3127   if test "x$host_alias" = x; then
3128   ac_cv_host=$ac_cv_build
3129 else
3130   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3131     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3132 fi
3133
3134 fi
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3136 $as_echo "$ac_cv_host" >&6; }
3137 case $ac_cv_host in
3138 *-*-*) ;;
3139 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3140 esac
3141 host=$ac_cv_host
3142 ac_save_IFS=$IFS; IFS='-'
3143 set x $ac_cv_host
3144 shift
3145 host_cpu=$1
3146 host_vendor=$2
3147 shift; shift
3148 # Remember, the first character of IFS is used to create $*,
3149 # except with old shells:
3150 host_os=$*
3151 IFS=$ac_save_IFS
3152 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3153
3154
3155 # Backslashify metacharacters that are still active within
3156 # double-quoted strings.
3157 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3158
3159 # Same as above, but do not quote variable references.
3160 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3161
3162 # Sed substitution to delay expansion of an escaped shell variable in a
3163 # double_quote_subst'ed string.
3164 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3165
3166 # Sed substitution to delay expansion of an escaped single quote.
3167 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3168
3169 # Sed substitution to avoid accidental globbing in evaled expressions
3170 no_glob_subst='s/\*/\\\*/g'
3171
3172 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3173 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3174 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3175
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3177 $as_echo_n "checking how to print strings... " >&6; }
3178 # Test print first, because it will be a builtin if present.
3179 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3180    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3181   ECHO='print -r --'
3182 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3183   ECHO='printf %s\n'
3184 else
3185   # Use this function as a fallback that always works.
3186   func_fallback_echo ()
3187   {
3188     eval 'cat <<_LTECHO_EOF
3189 $1
3190 _LTECHO_EOF'
3191   }
3192   ECHO='func_fallback_echo'
3193 fi
3194
3195 # func_echo_all arg...
3196 # Invoke $ECHO with all args, space-separated.
3197 func_echo_all ()
3198 {
3199     $ECHO ""
3200 }
3201
3202 case "$ECHO" in
3203   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3204 $as_echo "printf" >&6; } ;;
3205   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3206 $as_echo "print -r" >&6; } ;;
3207   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3208 $as_echo "cat" >&6; } ;;
3209 esac
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224 DEPDIR="${am__leading_dot}deps"
3225
3226 ac_config_commands="$ac_config_commands depfiles"
3227
3228
3229 am_make=${MAKE-make}
3230 cat > confinc << 'END'
3231 am__doit:
3232         @echo this is the am__doit target
3233 .PHONY: am__doit
3234 END
3235 # If we don't find an include directive, just comment out the code.
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3237 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3238 am__include="#"
3239 am__quote=
3240 _am_result=none
3241 # First try GNU make style include.
3242 echo "include confinc" > confmf
3243 # Ignore all kinds of additional output from 'make'.
3244 case `$am_make -s -f confmf 2> /dev/null` in #(
3245 *the\ am__doit\ target*)
3246   am__include=include
3247   am__quote=
3248   _am_result=GNU
3249   ;;
3250 esac
3251 # Now try BSD make style include.
3252 if test "$am__include" = "#"; then
3253    echo '.include "confinc"' > confmf
3254    case `$am_make -s -f confmf 2> /dev/null` in #(
3255    *the\ am__doit\ target*)
3256      am__include=.include
3257      am__quote="\""
3258      _am_result=BSD
3259      ;;
3260    esac
3261 fi
3262
3263
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3265 $as_echo "$_am_result" >&6; }
3266 rm -f confinc confmf
3267
3268 # Check whether --enable-dependency-tracking was given.
3269 if test "${enable_dependency_tracking+set}" = set; then :
3270   enableval=$enable_dependency_tracking;
3271 fi
3272
3273 if test "x$enable_dependency_tracking" != xno; then
3274   am_depcomp="$ac_aux_dir/depcomp"
3275   AMDEPBACKSLASH='\'
3276   am__nodep='_no'
3277 fi
3278  if test "x$enable_dependency_tracking" != xno; then
3279   AMDEP_TRUE=
3280   AMDEP_FALSE='#'
3281 else
3282   AMDEP_TRUE='#'
3283   AMDEP_FALSE=
3284 fi
3285
3286
3287 ac_ext=c
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292 if test -n "$ac_tool_prefix"; then
3293   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3294 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 $as_echo_n "checking for $ac_word... " >&6; }
3297 if ${ac_cv_prog_CC+:} false; then :
3298   $as_echo_n "(cached) " >&6
3299 else
3300   if test -n "$CC"; then
3301   ac_cv_prog_CC="$CC" # Let the user override the test.
3302 else
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306   IFS=$as_save_IFS
3307   test -z "$as_dir" && as_dir=.
3308     for ac_exec_ext in '' $ac_executable_extensions; do
3309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312     break 2
3313   fi
3314 done
3315   done
3316 IFS=$as_save_IFS
3317
3318 fi
3319 fi
3320 CC=$ac_cv_prog_CC
3321 if test -n "$CC"; then
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3323 $as_echo "$CC" >&6; }
3324 else
3325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 fi
3328
3329
3330 fi
3331 if test -z "$ac_cv_prog_CC"; then
3332   ac_ct_CC=$CC
3333   # Extract the first word of "gcc", so it can be a program name with args.
3334 set dummy gcc; ac_word=$2
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3338   $as_echo_n "(cached) " >&6
3339 else
3340   if test -n "$ac_ct_CC"; then
3341   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3342 else
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH
3345 do
3346   IFS=$as_save_IFS
3347   test -z "$as_dir" && as_dir=.
3348     for ac_exec_ext in '' $ac_executable_extensions; do
3349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350     ac_cv_prog_ac_ct_CC="gcc"
3351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352     break 2
3353   fi
3354 done
3355   done
3356 IFS=$as_save_IFS
3357
3358 fi
3359 fi
3360 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3361 if test -n "$ac_ct_CC"; then
3362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3363 $as_echo "$ac_ct_CC" >&6; }
3364 else
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 fi
3368
3369   if test "x$ac_ct_CC" = x; then
3370     CC=""
3371   else
3372     case $cross_compiling:$ac_tool_warned in
3373 yes:)
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376 ac_tool_warned=yes ;;
3377 esac
3378     CC=$ac_ct_CC
3379   fi
3380 else
3381   CC="$ac_cv_prog_CC"
3382 fi
3383
3384 if test -z "$CC"; then
3385           if test -n "$ac_tool_prefix"; then
3386     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3387 set dummy ${ac_tool_prefix}cc; ac_word=$2
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if ${ac_cv_prog_CC+:} false; then :
3391   $as_echo_n "(cached) " >&6
3392 else
3393   if test -n "$CC"; then
3394   ac_cv_prog_CC="$CC" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399   IFS=$as_save_IFS
3400   test -z "$as_dir" && as_dir=.
3401     for ac_exec_ext in '' $ac_executable_extensions; do
3402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403     ac_cv_prog_CC="${ac_tool_prefix}cc"
3404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405     break 2
3406   fi
3407 done
3408   done
3409 IFS=$as_save_IFS
3410
3411 fi
3412 fi
3413 CC=$ac_cv_prog_CC
3414 if test -n "$CC"; then
3415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416 $as_echo "$CC" >&6; }
3417 else
3418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3420 fi
3421
3422
3423   fi
3424 fi
3425 if test -z "$CC"; then
3426   # Extract the first word of "cc", so it can be a program name with args.
3427 set dummy cc; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if ${ac_cv_prog_CC+:} false; then :
3431   $as_echo_n "(cached) " >&6
3432 else
3433   if test -n "$CC"; then
3434   ac_cv_prog_CC="$CC" # Let the user override the test.
3435 else
3436   ac_prog_rejected=no
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440   IFS=$as_save_IFS
3441   test -z "$as_dir" && as_dir=.
3442     for ac_exec_ext in '' $ac_executable_extensions; do
3443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3445        ac_prog_rejected=yes
3446        continue
3447      fi
3448     ac_cv_prog_CC="cc"
3449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450     break 2
3451   fi
3452 done
3453   done
3454 IFS=$as_save_IFS
3455
3456 if test $ac_prog_rejected = yes; then
3457   # We found a bogon in the path, so make sure we never use it.
3458   set dummy $ac_cv_prog_CC
3459   shift
3460   if test $# != 0; then
3461     # We chose a different compiler from the bogus one.
3462     # However, it has the same basename, so the bogon will be chosen
3463     # first if we set CC to just the basename; use the full file name.
3464     shift
3465     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3466   fi
3467 fi
3468 fi
3469 fi
3470 CC=$ac_cv_prog_CC
3471 if test -n "$CC"; then
3472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3473 $as_echo "$CC" >&6; }
3474 else
3475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3477 fi
3478
3479
3480 fi
3481 if test -z "$CC"; then
3482   if test -n "$ac_tool_prefix"; then
3483   for ac_prog in cl.exe
3484   do
3485     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3486 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488 $as_echo_n "checking for $ac_word... " >&6; }
3489 if ${ac_cv_prog_CC+:} false; then :
3490   $as_echo_n "(cached) " >&6
3491 else
3492   if test -n "$CC"; then
3493   ac_cv_prog_CC="$CC" # Let the user override the test.
3494 else
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 for as_dir in $PATH
3497 do
3498   IFS=$as_save_IFS
3499   test -z "$as_dir" && as_dir=.
3500     for ac_exec_ext in '' $ac_executable_extensions; do
3501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3504     break 2
3505   fi
3506 done
3507   done
3508 IFS=$as_save_IFS
3509
3510 fi
3511 fi
3512 CC=$ac_cv_prog_CC
3513 if test -n "$CC"; then
3514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3515 $as_echo "$CC" >&6; }
3516 else
3517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 $as_echo "no" >&6; }
3519 fi
3520
3521
3522     test -n "$CC" && break
3523   done
3524 fi
3525 if test -z "$CC"; then
3526   ac_ct_CC=$CC
3527   for ac_prog in cl.exe
3528 do
3529   # Extract the first word of "$ac_prog", so it can be a program name with args.
3530 set dummy $ac_prog; ac_word=$2
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 $as_echo_n "checking for $ac_word... " >&6; }
3533 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3534   $as_echo_n "(cached) " >&6
3535 else
3536   if test -n "$ac_ct_CC"; then
3537   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3538 else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3541 do
3542   IFS=$as_save_IFS
3543   test -z "$as_dir" && as_dir=.
3544     for ac_exec_ext in '' $ac_executable_extensions; do
3545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546     ac_cv_prog_ac_ct_CC="$ac_prog"
3547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548     break 2
3549   fi
3550 done
3551   done
3552 IFS=$as_save_IFS
3553
3554 fi
3555 fi
3556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3557 if test -n "$ac_ct_CC"; then
3558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3559 $as_echo "$ac_ct_CC" >&6; }
3560 else
3561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3563 fi
3564
3565
3566   test -n "$ac_ct_CC" && break
3567 done
3568
3569   if test "x$ac_ct_CC" = x; then
3570     CC=""
3571   else
3572     case $cross_compiling:$ac_tool_warned in
3573 yes:)
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3576 ac_tool_warned=yes ;;
3577 esac
3578     CC=$ac_ct_CC
3579   fi
3580 fi
3581
3582 fi
3583
3584
3585 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587 as_fn_error $? "no acceptable C compiler found in \$PATH
3588 See \`config.log' for more details" "$LINENO" 5; }
3589
3590 # Provide some information about the compiler.
3591 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3592 set X $ac_compile
3593 ac_compiler=$2
3594 for ac_option in --version -v -V -qversion; do
3595   { { ac_try="$ac_compiler $ac_option >&5"
3596 case "(($ac_try" in
3597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598   *) ac_try_echo=$ac_try;;
3599 esac
3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601 $as_echo "$ac_try_echo"; } >&5
3602   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3603   ac_status=$?
3604   if test -s conftest.err; then
3605     sed '10a\
3606 ... rest of stderr output deleted ...
3607          10q' conftest.err >conftest.er1
3608     cat conftest.er1 >&5
3609   fi
3610   rm -f conftest.er1 conftest.err
3611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612   test $ac_status = 0; }
3613 done
3614
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h.  */
3617
3618 int
3619 main ()
3620 {
3621
3622   ;
3623   return 0;
3624 }
3625 _ACEOF
3626 ac_clean_files_save=$ac_clean_files
3627 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3628 # Try to create an executable without -o first, disregard a.out.
3629 # It will help us diagnose broken compilers, and finding out an intuition
3630 # of exeext.
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3632 $as_echo_n "checking whether the C compiler works... " >&6; }
3633 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3634
3635 # The possible output files:
3636 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3637
3638 ac_rmfiles=
3639 for ac_file in $ac_files
3640 do
3641   case $ac_file in
3642     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3643     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3644   esac
3645 done
3646 rm -f $ac_rmfiles
3647
3648 if { { ac_try="$ac_link_default"
3649 case "(($ac_try" in
3650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651   *) ac_try_echo=$ac_try;;
3652 esac
3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654 $as_echo "$ac_try_echo"; } >&5
3655   (eval "$ac_link_default") 2>&5
3656   ac_status=$?
3657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658   test $ac_status = 0; }; then :
3659   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3660 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3661 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3662 # so that the user can short-circuit this test for compilers unknown to
3663 # Autoconf.
3664 for ac_file in $ac_files ''
3665 do
3666   test -f "$ac_file" || continue
3667   case $ac_file in
3668     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3669         ;;
3670     [ab].out )
3671         # We found the default executable, but exeext='' is most
3672         # certainly right.
3673         break;;
3674     *.* )
3675         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3676         then :; else
3677            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3678         fi
3679         # We set ac_cv_exeext here because the later test for it is not
3680         # safe: cross compilers may not add the suffix if given an `-o'
3681         # argument, so we may need to know it at that point already.
3682         # Even if this section looks crufty: it has the advantage of
3683         # actually working.
3684         break;;
3685     * )
3686         break;;
3687   esac
3688 done
3689 test "$ac_cv_exeext" = no && ac_cv_exeext=
3690
3691 else
3692   ac_file=''
3693 fi
3694 if test -z "$ac_file"; then :
3695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696 $as_echo "no" >&6; }
3697 $as_echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3699
3700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error 77 "C compiler cannot create executables
3703 See \`config.log' for more details" "$LINENO" 5; }
3704 else
3705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3706 $as_echo "yes" >&6; }
3707 fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3709 $as_echo_n "checking for C compiler default output file name... " >&6; }
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3711 $as_echo "$ac_file" >&6; }
3712 ac_exeext=$ac_cv_exeext
3713
3714 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3715 ac_clean_files=$ac_clean_files_save
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3717 $as_echo_n "checking for suffix of executables... " >&6; }
3718 if { { ac_try="$ac_link"
3719 case "(($ac_try" in
3720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721   *) ac_try_echo=$ac_try;;
3722 esac
3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724 $as_echo "$ac_try_echo"; } >&5
3725   (eval "$ac_link") 2>&5
3726   ac_status=$?
3727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728   test $ac_status = 0; }; then :
3729   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3730 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3731 # work properly (i.e., refer to `conftest.exe'), while it won't with
3732 # `rm'.
3733 for ac_file in conftest.exe conftest conftest.*; do
3734   test -f "$ac_file" || continue
3735   case $ac_file in
3736     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3737     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3738           break;;
3739     * ) break;;
3740   esac
3741 done
3742 else
3743   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3746 See \`config.log' for more details" "$LINENO" 5; }
3747 fi
3748 rm -f conftest conftest$ac_cv_exeext
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3750 $as_echo "$ac_cv_exeext" >&6; }
3751
3752 rm -f conftest.$ac_ext
3753 EXEEXT=$ac_cv_exeext
3754 ac_exeext=$EXEEXT
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h.  */
3757 #include <stdio.h>
3758 int
3759 main ()
3760 {
3761 FILE *f = fopen ("conftest.out", "w");
3762  return ferror (f) || fclose (f) != 0;
3763
3764   ;
3765   return 0;
3766 }
3767 _ACEOF
3768 ac_clean_files="$ac_clean_files conftest.out"
3769 # Check that the compiler produces executables we can run.  If not, either
3770 # the compiler is broken, or we cross compile.
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3772 $as_echo_n "checking whether we are cross compiling... " >&6; }
3773 if test "$cross_compiling" != yes; then
3774   { { ac_try="$ac_link"
3775 case "(($ac_try" in
3776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777   *) ac_try_echo=$ac_try;;
3778 esac
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781   (eval "$ac_link") 2>&5
3782   ac_status=$?
3783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784   test $ac_status = 0; }
3785   if { ac_try='./conftest$ac_cv_exeext'
3786   { { case "(($ac_try" in
3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788   *) ac_try_echo=$ac_try;;
3789 esac
3790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791 $as_echo "$ac_try_echo"; } >&5
3792   (eval "$ac_try") 2>&5
3793   ac_status=$?
3794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795   test $ac_status = 0; }; }; then
3796     cross_compiling=no
3797   else
3798     if test "$cross_compiling" = maybe; then
3799         cross_compiling=yes
3800     else
3801         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3803 as_fn_error $? "cannot run C compiled programs.
3804 If you meant to cross compile, use \`--host'.
3805 See \`config.log' for more details" "$LINENO" 5; }
3806     fi
3807   fi
3808 fi
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3810 $as_echo "$cross_compiling" >&6; }
3811
3812 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3813 ac_clean_files=$ac_clean_files_save
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3815 $as_echo_n "checking for suffix of object files... " >&6; }
3816 if ${ac_cv_objext+:} false; then :
3817   $as_echo_n "(cached) " >&6
3818 else
3819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h.  */
3821
3822 int
3823 main ()
3824 {
3825
3826   ;
3827   return 0;
3828 }
3829 _ACEOF
3830 rm -f conftest.o conftest.obj
3831 if { { ac_try="$ac_compile"
3832 case "(($ac_try" in
3833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834   *) ac_try_echo=$ac_try;;
3835 esac
3836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837 $as_echo "$ac_try_echo"; } >&5
3838   (eval "$ac_compile") 2>&5
3839   ac_status=$?
3840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841   test $ac_status = 0; }; then :
3842   for ac_file in conftest.o conftest.obj conftest.*; do
3843   test -f "$ac_file" || continue;
3844   case $ac_file in
3845     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3846     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3847        break;;
3848   esac
3849 done
3850 else
3851   $as_echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3853
3854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3856 as_fn_error $? "cannot compute suffix of object files: cannot compile
3857 See \`config.log' for more details" "$LINENO" 5; }
3858 fi
3859 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3860 fi
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3862 $as_echo "$ac_cv_objext" >&6; }
3863 OBJEXT=$ac_cv_objext
3864 ac_objext=$OBJEXT
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3866 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3867 if ${ac_cv_c_compiler_gnu+:} false; then :
3868   $as_echo_n "(cached) " >&6
3869 else
3870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h.  */
3872
3873 int
3874 main ()
3875 {
3876 #ifndef __GNUC__
3877        choke me
3878 #endif
3879
3880   ;
3881   return 0;
3882 }
3883 _ACEOF
3884 if ac_fn_c_try_compile "$LINENO"; then :
3885   ac_compiler_gnu=yes
3886 else
3887   ac_compiler_gnu=no
3888 fi
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3891
3892 fi
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3894 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3895 if test $ac_compiler_gnu = yes; then
3896   GCC=yes
3897 else
3898   GCC=
3899 fi
3900 ac_test_CFLAGS=${CFLAGS+set}
3901 ac_save_CFLAGS=$CFLAGS
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3903 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3904 if ${ac_cv_prog_cc_g+:} false; then :
3905   $as_echo_n "(cached) " >&6
3906 else
3907   ac_save_c_werror_flag=$ac_c_werror_flag
3908    ac_c_werror_flag=yes
3909    ac_cv_prog_cc_g=no
3910    CFLAGS="-g"
3911    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h.  */
3913
3914 int
3915 main ()
3916 {
3917
3918   ;
3919   return 0;
3920 }
3921 _ACEOF
3922 if ac_fn_c_try_compile "$LINENO"; then :
3923   ac_cv_prog_cc_g=yes
3924 else
3925   CFLAGS=""
3926       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h.  */
3928
3929 int
3930 main ()
3931 {
3932
3933   ;
3934   return 0;
3935 }
3936 _ACEOF
3937 if ac_fn_c_try_compile "$LINENO"; then :
3938
3939 else
3940   ac_c_werror_flag=$ac_save_c_werror_flag
3941          CFLAGS="-g"
3942          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h.  */
3944
3945 int
3946 main ()
3947 {
3948
3949   ;
3950   return 0;
3951 }
3952 _ACEOF
3953 if ac_fn_c_try_compile "$LINENO"; then :
3954   ac_cv_prog_cc_g=yes
3955 fi
3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
3962 fi
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3964 $as_echo "$ac_cv_prog_cc_g" >&6; }
3965 if test "$ac_test_CFLAGS" = set; then
3966   CFLAGS=$ac_save_CFLAGS
3967 elif test $ac_cv_prog_cc_g = yes; then
3968   if test "$GCC" = yes; then
3969     CFLAGS="-g -O2"
3970   else
3971     CFLAGS="-g"
3972   fi
3973 else
3974   if test "$GCC" = yes; then
3975     CFLAGS="-O2"
3976   else
3977     CFLAGS=
3978   fi
3979 fi
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3981 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3982 if ${ac_cv_prog_cc_c89+:} false; then :
3983   $as_echo_n "(cached) " >&6
3984 else
3985   ac_cv_prog_cc_c89=no
3986 ac_save_CC=$CC
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h.  */
3989 #include <stdarg.h>
3990 #include <stdio.h>
3991 struct stat;
3992 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3993 struct buf { int x; };
3994 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3995 static char *e (p, i)
3996      char **p;
3997      int i;
3998 {
3999   return p[i];
4000 }
4001 static char *f (char * (*g) (char **, int), char **p, ...)
4002 {
4003   char *s;
4004   va_list v;
4005   va_start (v,p);
4006   s = g (p, va_arg (v,int));
4007   va_end (v);
4008   return s;
4009 }
4010
4011 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4012    function prototypes and stuff, but not '\xHH' hex character constants.
4013    These don't provoke an error unfortunately, instead are silently treated
4014    as 'x'.  The following induces an error, until -std is added to get
4015    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4016    array size at least.  It's necessary to write '\x00'==0 to get something
4017    that's true only with -std.  */
4018 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4019
4020 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4021    inside strings and character constants.  */
4022 #define FOO(x) 'x'
4023 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4024
4025 int test (int i, double x);
4026 struct s1 {int (*f) (int a);};
4027 struct s2 {int (*f) (double a);};
4028 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4029 int argc;
4030 char **argv;
4031 int
4032 main ()
4033 {
4034 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4035   ;
4036   return 0;
4037 }
4038 _ACEOF
4039 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4040         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4041 do
4042   CC="$ac_save_CC $ac_arg"
4043   if ac_fn_c_try_compile "$LINENO"; then :
4044   ac_cv_prog_cc_c89=$ac_arg
4045 fi
4046 rm -f core conftest.err conftest.$ac_objext
4047   test "x$ac_cv_prog_cc_c89" != "xno" && break
4048 done
4049 rm -f conftest.$ac_ext
4050 CC=$ac_save_CC
4051
4052 fi
4053 # AC_CACHE_VAL
4054 case "x$ac_cv_prog_cc_c89" in
4055   x)
4056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4057 $as_echo "none needed" >&6; } ;;
4058   xno)
4059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4060 $as_echo "unsupported" >&6; } ;;
4061   *)
4062     CC="$CC $ac_cv_prog_cc_c89"
4063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4064 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4065 esac
4066 if test "x$ac_cv_prog_cc_c89" != xno; then :
4067
4068 fi
4069
4070 ac_ext=c
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075
4076 ac_ext=c
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4082 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4083 if ${am_cv_prog_cc_c_o+:} false; then :
4084   $as_echo_n "(cached) " >&6
4085 else
4086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h.  */
4088
4089 int
4090 main ()
4091 {
4092
4093   ;
4094   return 0;
4095 }
4096 _ACEOF
4097   # Make sure it works both with $CC and with simple cc.
4098   # Following AC_PROG_CC_C_O, we do the test twice because some
4099   # compilers refuse to overwrite an existing .o file with -o,
4100   # though they will create one.
4101   am_cv_prog_cc_c_o=yes
4102   for am_i in 1 2; do
4103     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4104    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4105    ac_status=$?
4106    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107    (exit $ac_status); } \
4108          && test -f conftest2.$ac_objext; then
4109       : OK
4110     else
4111       am_cv_prog_cc_c_o=no
4112       break
4113     fi
4114   done
4115   rm -f core conftest*
4116   unset am_i
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4119 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4120 if test "$am_cv_prog_cc_c_o" != yes; then
4121    # Losing compiler, so override with the script.
4122    # FIXME: It is wrong to rewrite CC.
4123    # But if we don't then we get into trouble of one sort or another.
4124    # A longer-term fix would be to have automake use am__CC in this case,
4125    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4126    CC="$am_aux_dir/compile $CC"
4127 fi
4128 ac_ext=c
4129 ac_cpp='$CPP $CPPFLAGS'
4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133
4134
4135 depcc="$CC"   am_compiler_list=
4136
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4138 $as_echo_n "checking dependency style of $depcc... " >&6; }
4139 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4140   $as_echo_n "(cached) " >&6
4141 else
4142   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4143   # We make a subdir and do the tests there.  Otherwise we can end up
4144   # making bogus files that we don't know about and never remove.  For
4145   # instance it was reported that on HP-UX the gcc test will end up
4146   # making a dummy file named 'D' -- because '-MD' means "put the output
4147   # in D".
4148   rm -rf conftest.dir
4149   mkdir conftest.dir
4150   # Copy depcomp to subdir because otherwise we won't find it if we're
4151   # using a relative directory.
4152   cp "$am_depcomp" conftest.dir
4153   cd conftest.dir
4154   # We will build objects and dependencies in a subdirectory because
4155   # it helps to detect inapplicable dependency modes.  For instance
4156   # both Tru64's cc and ICC support -MD to output dependencies as a
4157   # side effect of compilation, but ICC will put the dependencies in
4158   # the current directory while Tru64 will put them in the object
4159   # directory.
4160   mkdir sub
4161
4162   am_cv_CC_dependencies_compiler_type=none
4163   if test "$am_compiler_list" = ""; then
4164      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4165   fi
4166   am__universal=false
4167   case " $depcc " in #(
4168      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4169      esac
4170
4171   for depmode in $am_compiler_list; do
4172     # Setup a source with many dependencies, because some compilers
4173     # like to wrap large dependency lists on column 80 (with \), and
4174     # we should not choose a depcomp mode which is confused by this.
4175     #
4176     # We need to recreate these files for each test, as the compiler may
4177     # overwrite some of them when testing with obscure command lines.
4178     # This happens at least with the AIX C compiler.
4179     : > sub/conftest.c
4180     for i in 1 2 3 4 5 6; do
4181       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4182       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4183       # Solaris 10 /bin/sh.
4184       echo '/* dummy */' > sub/conftst$i.h
4185     done
4186     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4187
4188     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4189     # mode.  It turns out that the SunPro C++ compiler does not properly
4190     # handle '-M -o', and we need to detect this.  Also, some Intel
4191     # versions had trouble with output in subdirs.
4192     am__obj=sub/conftest.${OBJEXT-o}
4193     am__minus_obj="-o $am__obj"
4194     case $depmode in
4195     gcc)
4196       # This depmode causes a compiler race in universal mode.
4197       test "$am__universal" = false || continue
4198       ;;
4199     nosideeffect)
4200       # After this tag, mechanisms are not by side-effect, so they'll
4201       # only be used when explicitly requested.
4202       if test "x$enable_dependency_tracking" = xyes; then
4203         continue
4204       else
4205         break
4206       fi
4207       ;;
4208     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4209       # This compiler won't grok '-c -o', but also, the minuso test has
4210       # not run yet.  These depmodes are late enough in the game, and
4211       # so weak that their functioning should not be impacted.
4212       am__obj=conftest.${OBJEXT-o}
4213       am__minus_obj=
4214       ;;
4215     none) break ;;
4216     esac
4217     if depmode=$depmode \
4218        source=sub/conftest.c object=$am__obj \
4219        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4220        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4221          >/dev/null 2>conftest.err &&
4222        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4223        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4224        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4225        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4226       # icc doesn't choke on unknown options, it will just issue warnings
4227       # or remarks (even with -Werror).  So we grep stderr for any message
4228       # that says an option was ignored or not supported.
4229       # When given -MP, icc 7.0 and 7.1 complain thusly:
4230       #   icc: Command line warning: ignoring option '-M'; no argument required
4231       # The diagnosis changed in icc 8.0:
4232       #   icc: Command line remark: option '-MP' not supported
4233       if (grep 'ignoring option' conftest.err ||
4234           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4235         am_cv_CC_dependencies_compiler_type=$depmode
4236         break
4237       fi
4238     fi
4239   done
4240
4241   cd ..
4242   rm -rf conftest.dir
4243 else
4244   am_cv_CC_dependencies_compiler_type=none
4245 fi
4246
4247 fi
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4249 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4250 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4251
4252  if
4253   test "x$enable_dependency_tracking" != xno \
4254   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4255   am__fastdepCC_TRUE=
4256   am__fastdepCC_FALSE='#'
4257 else
4258   am__fastdepCC_TRUE='#'
4259   am__fastdepCC_FALSE=
4260 fi
4261
4262
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4264 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4265 if ${ac_cv_path_SED+:} false; then :
4266   $as_echo_n "(cached) " >&6
4267 else
4268             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4269      for ac_i in 1 2 3 4 5 6 7; do
4270        ac_script="$ac_script$as_nl$ac_script"
4271      done
4272      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4273      { ac_script=; unset ac_script;}
4274      if test -z "$SED"; then
4275   ac_path_SED_found=false
4276   # Loop through the user's path and test for each of PROGNAME-LIST
4277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280   IFS=$as_save_IFS
4281   test -z "$as_dir" && as_dir=.
4282     for ac_prog in sed gsed; do
4283     for ac_exec_ext in '' $ac_executable_extensions; do
4284       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4285       as_fn_executable_p "$ac_path_SED" || continue
4286 # Check for GNU ac_path_SED and select it if it is found.
4287   # Check for GNU $ac_path_SED
4288 case `"$ac_path_SED" --version 2>&1` in
4289 *GNU*)
4290   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4291 *)
4292   ac_count=0
4293   $as_echo_n 0123456789 >"conftest.in"
4294   while :
4295   do
4296     cat "conftest.in" "conftest.in" >"conftest.tmp"
4297     mv "conftest.tmp" "conftest.in"
4298     cp "conftest.in" "conftest.nl"
4299     $as_echo '' >> "conftest.nl"
4300     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4301     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4302     as_fn_arith $ac_count + 1 && ac_count=$as_val
4303     if test $ac_count -gt ${ac_path_SED_max-0}; then
4304       # Best one so far, save it but keep looking for a better one
4305       ac_cv_path_SED="$ac_path_SED"
4306       ac_path_SED_max=$ac_count
4307     fi
4308     # 10*(2^10) chars as input seems more than enough
4309     test $ac_count -gt 10 && break
4310   done
4311   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4312 esac
4313
4314       $ac_path_SED_found && break 3
4315     done
4316   done
4317   done
4318 IFS=$as_save_IFS
4319   if test -z "$ac_cv_path_SED"; then
4320     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4321   fi
4322 else
4323   ac_cv_path_SED=$SED
4324 fi
4325
4326 fi
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4328 $as_echo "$ac_cv_path_SED" >&6; }
4329  SED="$ac_cv_path_SED"
4330   rm -f conftest.sed
4331
4332 test -z "$SED" && SED=sed
4333 Xsed="$SED -e 1s/^X//"
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4346 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4347 if ${ac_cv_path_GREP+:} false; then :
4348   $as_echo_n "(cached) " >&6
4349 else
4350   if test -z "$GREP"; then
4351   ac_path_GREP_found=false
4352   # Loop through the user's path and test for each of PROGNAME-LIST
4353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355 do
4356   IFS=$as_save_IFS
4357   test -z "$as_dir" && as_dir=.
4358     for ac_prog in grep ggrep; do
4359     for ac_exec_ext in '' $ac_executable_extensions; do
4360       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4361       as_fn_executable_p "$ac_path_GREP" || continue
4362 # Check for GNU ac_path_GREP and select it if it is found.
4363   # Check for GNU $ac_path_GREP
4364 case `"$ac_path_GREP" --version 2>&1` in
4365 *GNU*)
4366   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4367 *)
4368   ac_count=0
4369   $as_echo_n 0123456789 >"conftest.in"
4370   while :
4371   do
4372     cat "conftest.in" "conftest.in" >"conftest.tmp"
4373     mv "conftest.tmp" "conftest.in"
4374     cp "conftest.in" "conftest.nl"
4375     $as_echo 'GREP' >> "conftest.nl"
4376     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4377     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4378     as_fn_arith $ac_count + 1 && ac_count=$as_val
4379     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4380       # Best one so far, save it but keep looking for a better one
4381       ac_cv_path_GREP="$ac_path_GREP"
4382       ac_path_GREP_max=$ac_count
4383     fi
4384     # 10*(2^10) chars as input seems more than enough
4385     test $ac_count -gt 10 && break
4386   done
4387   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4388 esac
4389
4390       $ac_path_GREP_found && break 3
4391     done
4392   done
4393   done
4394 IFS=$as_save_IFS
4395   if test -z "$ac_cv_path_GREP"; then
4396     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4397   fi
4398 else
4399   ac_cv_path_GREP=$GREP
4400 fi
4401
4402 fi
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4404 $as_echo "$ac_cv_path_GREP" >&6; }
4405  GREP="$ac_cv_path_GREP"
4406
4407
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4409 $as_echo_n "checking for egrep... " >&6; }
4410 if ${ac_cv_path_EGREP+:} false; then :
4411   $as_echo_n "(cached) " >&6
4412 else
4413   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4414    then ac_cv_path_EGREP="$GREP -E"
4415    else
4416      if test -z "$EGREP"; then
4417   ac_path_EGREP_found=false
4418   # Loop through the user's path and test for each of PROGNAME-LIST
4419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4421 do
4422   IFS=$as_save_IFS
4423   test -z "$as_dir" && as_dir=.
4424     for ac_prog in egrep; do
4425     for ac_exec_ext in '' $ac_executable_extensions; do
4426       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4427       as_fn_executable_p "$ac_path_EGREP" || continue
4428 # Check for GNU ac_path_EGREP and select it if it is found.
4429   # Check for GNU $ac_path_EGREP
4430 case `"$ac_path_EGREP" --version 2>&1` in
4431 *GNU*)
4432   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4433 *)
4434   ac_count=0
4435   $as_echo_n 0123456789 >"conftest.in"
4436   while :
4437   do
4438     cat "conftest.in" "conftest.in" >"conftest.tmp"
4439     mv "conftest.tmp" "conftest.in"
4440     cp "conftest.in" "conftest.nl"
4441     $as_echo 'EGREP' >> "conftest.nl"
4442     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4443     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4444     as_fn_arith $ac_count + 1 && ac_count=$as_val
4445     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4446       # Best one so far, save it but keep looking for a better one
4447       ac_cv_path_EGREP="$ac_path_EGREP"
4448       ac_path_EGREP_max=$ac_count
4449     fi
4450     # 10*(2^10) chars as input seems more than enough
4451     test $ac_count -gt 10 && break
4452   done
4453   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454 esac
4455
4456       $ac_path_EGREP_found && break 3
4457     done
4458   done
4459   done
4460 IFS=$as_save_IFS
4461   if test -z "$ac_cv_path_EGREP"; then
4462     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4463   fi
4464 else
4465   ac_cv_path_EGREP=$EGREP
4466 fi
4467
4468    fi
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4471 $as_echo "$ac_cv_path_EGREP" >&6; }
4472  EGREP="$ac_cv_path_EGREP"
4473
4474
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4476 $as_echo_n "checking for fgrep... " >&6; }
4477 if ${ac_cv_path_FGREP+:} false; then :
4478   $as_echo_n "(cached) " >&6
4479 else
4480   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4481    then ac_cv_path_FGREP="$GREP -F"
4482    else
4483      if test -z "$FGREP"; then
4484   ac_path_FGREP_found=false
4485   # Loop through the user's path and test for each of PROGNAME-LIST
4486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491     for ac_prog in fgrep; do
4492     for ac_exec_ext in '' $ac_executable_extensions; do
4493       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4494       as_fn_executable_p "$ac_path_FGREP" || continue
4495 # Check for GNU ac_path_FGREP and select it if it is found.
4496   # Check for GNU $ac_path_FGREP
4497 case `"$ac_path_FGREP" --version 2>&1` in
4498 *GNU*)
4499   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4500 *)
4501   ac_count=0
4502   $as_echo_n 0123456789 >"conftest.in"
4503   while :
4504   do
4505     cat "conftest.in" "conftest.in" >"conftest.tmp"
4506     mv "conftest.tmp" "conftest.in"
4507     cp "conftest.in" "conftest.nl"
4508     $as_echo 'FGREP' >> "conftest.nl"
4509     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4510     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4511     as_fn_arith $ac_count + 1 && ac_count=$as_val
4512     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4513       # Best one so far, save it but keep looking for a better one
4514       ac_cv_path_FGREP="$ac_path_FGREP"
4515       ac_path_FGREP_max=$ac_count
4516     fi
4517     # 10*(2^10) chars as input seems more than enough
4518     test $ac_count -gt 10 && break
4519   done
4520   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4521 esac
4522
4523       $ac_path_FGREP_found && break 3
4524     done
4525   done
4526   done
4527 IFS=$as_save_IFS
4528   if test -z "$ac_cv_path_FGREP"; then
4529     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4530   fi
4531 else
4532   ac_cv_path_FGREP=$FGREP
4533 fi
4534
4535    fi
4536 fi
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4538 $as_echo "$ac_cv_path_FGREP" >&6; }
4539  FGREP="$ac_cv_path_FGREP"
4540
4541
4542 test -z "$GREP" && GREP=grep
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562 # Check whether --with-gnu-ld was given.
4563 if test "${with_gnu_ld+set}" = set; then :
4564   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4565 else
4566   with_gnu_ld=no
4567 fi
4568
4569 ac_prog=ld
4570 if test "$GCC" = yes; then
4571   # Check if gcc -print-prog-name=ld gives a path.
4572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4573 $as_echo_n "checking for ld used by $CC... " >&6; }
4574   case $host in
4575   *-*-mingw*)
4576     # gcc leaves a trailing carriage return which upsets mingw
4577     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4578   *)
4579     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4580   esac
4581   case $ac_prog in
4582     # Accept absolute paths.
4583     [\\/]* | ?:[\\/]*)
4584       re_direlt='/[^/][^/]*/\.\./'
4585       # Canonicalize the pathname of ld
4586       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4587       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4588         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4589       done
4590       test -z "$LD" && LD="$ac_prog"
4591       ;;
4592   "")
4593     # If it fails, then pretend we aren't using GCC.
4594     ac_prog=ld
4595     ;;
4596   *)
4597     # If it is relative, then search for the first ld in PATH.
4598     with_gnu_ld=unknown
4599     ;;
4600   esac
4601 elif test "$with_gnu_ld" = yes; then
4602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4603 $as_echo_n "checking for GNU ld... " >&6; }
4604 else
4605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4606 $as_echo_n "checking for non-GNU ld... " >&6; }
4607 fi
4608 if ${lt_cv_path_LD+:} false; then :
4609   $as_echo_n "(cached) " >&6
4610 else
4611   if test -z "$LD"; then
4612   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4613   for ac_dir in $PATH; do
4614     IFS="$lt_save_ifs"
4615     test -z "$ac_dir" && ac_dir=.
4616     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4617       lt_cv_path_LD="$ac_dir/$ac_prog"
4618       # Check to see if the program is GNU ld.  I'd rather use --version,
4619       # but apparently some variants of GNU ld only accept -v.
4620       # Break only if it was the GNU/non-GNU ld that we prefer.
4621       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4622       *GNU* | *'with BFD'*)
4623         test "$with_gnu_ld" != no && break
4624         ;;
4625       *)
4626         test "$with_gnu_ld" != yes && break
4627         ;;
4628       esac
4629     fi
4630   done
4631   IFS="$lt_save_ifs"
4632 else
4633   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4634 fi
4635 fi
4636
4637 LD="$lt_cv_path_LD"
4638 if test -n "$LD"; then
4639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4640 $as_echo "$LD" >&6; }
4641 else
4642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 $as_echo "no" >&6; }
4644 fi
4645 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4647 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4648 if ${lt_cv_prog_gnu_ld+:} false; then :
4649   $as_echo_n "(cached) " >&6
4650 else
4651   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4652 case `$LD -v 2>&1 </dev/null` in
4653 *GNU* | *'with BFD'*)
4654   lt_cv_prog_gnu_ld=yes
4655   ;;
4656 *)
4657   lt_cv_prog_gnu_ld=no
4658   ;;
4659 esac
4660 fi
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4662 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4663 with_gnu_ld=$lt_cv_prog_gnu_ld
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4674 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4675 if ${lt_cv_path_NM+:} false; then :
4676   $as_echo_n "(cached) " >&6
4677 else
4678   if test -n "$NM"; then
4679   # Let the user override the test.
4680   lt_cv_path_NM="$NM"
4681 else
4682   lt_nm_to_check="${ac_tool_prefix}nm"
4683   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4684     lt_nm_to_check="$lt_nm_to_check nm"
4685   fi
4686   for lt_tmp_nm in $lt_nm_to_check; do
4687     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4688     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4689       IFS="$lt_save_ifs"
4690       test -z "$ac_dir" && ac_dir=.
4691       tmp_nm="$ac_dir/$lt_tmp_nm"
4692       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4693         # Check to see if the nm accepts a BSD-compat flag.
4694         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4695         #   nm: unknown option "B" ignored
4696         # Tru64's nm complains that /dev/null is an invalid object file
4697         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4698         */dev/null* | *'Invalid file or object type'*)
4699           lt_cv_path_NM="$tmp_nm -B"
4700           break
4701           ;;
4702         *)
4703           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4704           */dev/null*)
4705             lt_cv_path_NM="$tmp_nm -p"
4706             break
4707             ;;
4708           *)
4709             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4710             continue # so that we can try to find one that supports BSD flags
4711             ;;
4712           esac
4713           ;;
4714         esac
4715       fi
4716     done
4717     IFS="$lt_save_ifs"
4718   done
4719   : ${lt_cv_path_NM=no}
4720 fi
4721 fi
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4723 $as_echo "$lt_cv_path_NM" >&6; }
4724 if test "$lt_cv_path_NM" != "no"; then
4725   NM="$lt_cv_path_NM"
4726 else
4727   # Didn't find any BSD compatible name lister, look for dumpbin.
4728   if test -n "$DUMPBIN"; then :
4729     # Let the user override the test.
4730   else
4731     if test -n "$ac_tool_prefix"; then
4732   for ac_prog in dumpbin "link -dump"
4733   do
4734     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_prog_DUMPBIN+:} false; then :
4739   $as_echo_n "(cached) " >&6
4740 else
4741   if test -n "$DUMPBIN"; then
4742   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749     for ac_exec_ext in '' $ac_executable_extensions; do
4750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756   done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 DUMPBIN=$ac_cv_prog_DUMPBIN
4762 if test -n "$DUMPBIN"; then
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4764 $as_echo "$DUMPBIN" >&6; }
4765 else
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769
4770
4771     test -n "$DUMPBIN" && break
4772   done
4773 fi
4774 if test -z "$DUMPBIN"; then
4775   ac_ct_DUMPBIN=$DUMPBIN
4776   for ac_prog in dumpbin "link -dump"
4777 do
4778   # Extract the first word of "$ac_prog", so it can be a program name with args.
4779 set dummy $ac_prog; ac_word=$2
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781 $as_echo_n "checking for $ac_word... " >&6; }
4782 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4783   $as_echo_n "(cached) " >&6
4784 else
4785   if test -n "$ac_ct_DUMPBIN"; then
4786   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791   IFS=$as_save_IFS
4792   test -z "$as_dir" && as_dir=.
4793     for ac_exec_ext in '' $ac_executable_extensions; do
4794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797     break 2
4798   fi
4799 done
4800   done
4801 IFS=$as_save_IFS
4802
4803 fi
4804 fi
4805 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4806 if test -n "$ac_ct_DUMPBIN"; then
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4808 $as_echo "$ac_ct_DUMPBIN" >&6; }
4809 else
4810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4812 fi
4813
4814
4815   test -n "$ac_ct_DUMPBIN" && break
4816 done
4817
4818   if test "x$ac_ct_DUMPBIN" = x; then
4819     DUMPBIN=":"
4820   else
4821     case $cross_compiling:$ac_tool_warned in
4822 yes:)
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4825 ac_tool_warned=yes ;;
4826 esac
4827     DUMPBIN=$ac_ct_DUMPBIN
4828   fi
4829 fi
4830
4831     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4832     *COFF*)
4833       DUMPBIN="$DUMPBIN -symbols"
4834       ;;
4835     *)
4836       DUMPBIN=:
4837       ;;
4838     esac
4839   fi
4840
4841   if test "$DUMPBIN" != ":"; then
4842     NM="$DUMPBIN"
4843   fi
4844 fi
4845 test -z "$NM" && NM=nm
4846
4847
4848
4849
4850
4851
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4853 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4854 if ${lt_cv_nm_interface+:} false; then :
4855   $as_echo_n "(cached) " >&6
4856 else
4857   lt_cv_nm_interface="BSD nm"
4858   echo "int some_variable = 0;" > conftest.$ac_ext
4859   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4860   (eval "$ac_compile" 2>conftest.err)
4861   cat conftest.err >&5
4862   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4863   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4864   cat conftest.err >&5
4865   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4866   cat conftest.out >&5
4867   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4868     lt_cv_nm_interface="MS dumpbin"
4869   fi
4870   rm -f conftest*
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4873 $as_echo "$lt_cv_nm_interface" >&6; }
4874
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4876 $as_echo_n "checking whether ln -s works... " >&6; }
4877 LN_S=$as_ln_s
4878 if test "$LN_S" = "ln -s"; then
4879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4880 $as_echo "yes" >&6; }
4881 else
4882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4883 $as_echo "no, using $LN_S" >&6; }
4884 fi
4885
4886 # find the maximum length of command line arguments
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4888 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4889 if ${lt_cv_sys_max_cmd_len+:} false; then :
4890   $as_echo_n "(cached) " >&6
4891 else
4892     i=0
4893   teststring="ABCD"
4894
4895   case $build_os in
4896   msdosdjgpp*)
4897     # On DJGPP, this test can blow up pretty badly due to problems in libc
4898     # (any single argument exceeding 2000 bytes causes a buffer overrun
4899     # during glob expansion).  Even if it were fixed, the result of this
4900     # check would be larger than it should be.
4901     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4902     ;;
4903
4904   gnu*)
4905     # Under GNU Hurd, this test is not required because there is
4906     # no limit to the length of command line arguments.
4907     # Libtool will interpret -1 as no limit whatsoever
4908     lt_cv_sys_max_cmd_len=-1;
4909     ;;
4910
4911   cygwin* | mingw* | cegcc*)
4912     # On Win9x/ME, this test blows up -- it succeeds, but takes
4913     # about 5 minutes as the teststring grows exponentially.
4914     # Worse, since 9x/ME are not pre-emptively multitasking,
4915     # you end up with a "frozen" computer, even though with patience
4916     # the test eventually succeeds (with a max line length of 256k).
4917     # Instead, let's just punt: use the minimum linelength reported by
4918     # all of the supported platforms: 8192 (on NT/2K/XP).
4919     lt_cv_sys_max_cmd_len=8192;
4920     ;;
4921
4922   mint*)
4923     # On MiNT this can take a long time and run out of memory.
4924     lt_cv_sys_max_cmd_len=8192;
4925     ;;
4926
4927   amigaos*)
4928     # On AmigaOS with pdksh, this test takes hours, literally.
4929     # So we just punt and use a minimum line length of 8192.
4930     lt_cv_sys_max_cmd_len=8192;
4931     ;;
4932
4933   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4934     # This has been around since 386BSD, at least.  Likely further.
4935     if test -x /sbin/sysctl; then
4936       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4937     elif test -x /usr/sbin/sysctl; then
4938       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4939     else
4940       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4941     fi
4942     # And add a safety zone
4943     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4944     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4945     ;;
4946
4947   interix*)
4948     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4949     lt_cv_sys_max_cmd_len=196608
4950     ;;
4951
4952   os2*)
4953     # The test takes a long time on OS/2.
4954     lt_cv_sys_max_cmd_len=8192
4955     ;;
4956
4957   osf*)
4958     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4959     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4960     # nice to cause kernel panics so lets avoid the loop below.
4961     # First set a reasonable default.
4962     lt_cv_sys_max_cmd_len=16384
4963     #
4964     if test -x /sbin/sysconfig; then
4965       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4966         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4967       esac
4968     fi
4969     ;;
4970   sco3.2v5*)
4971     lt_cv_sys_max_cmd_len=102400
4972     ;;
4973   sysv5* | sco5v6* | sysv4.2uw2*)
4974     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4975     if test -n "$kargmax"; then
4976       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4977     else
4978       lt_cv_sys_max_cmd_len=32768
4979     fi
4980     ;;
4981   *)
4982     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4983     if test -n "$lt_cv_sys_max_cmd_len" && \
4984         test undefined != "$lt_cv_sys_max_cmd_len"; then
4985       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4986       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4987     else
4988       # Make teststring a little bigger before we do anything with it.
4989       # a 1K string should be a reasonable start.
4990       for i in 1 2 3 4 5 6 7 8 ; do
4991         teststring=$teststring$teststring
4992       done
4993       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4994       # If test is not a shell built-in, we'll probably end up computing a
4995       # maximum length that is only half of the actual maximum length, but
4996       # we can't tell.
4997       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4998                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4999               test $i != 17 # 1/2 MB should be enough
5000       do
5001         i=`expr $i + 1`
5002         teststring=$teststring$teststring
5003       done
5004       # Only check the string length outside the loop.
5005       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5006       teststring=
5007       # Add a significant safety factor because C++ compilers can tack on
5008       # massive amounts of additional arguments before passing them to the
5009       # linker.  It appears as though 1/2 is a usable value.
5010       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5011     fi
5012     ;;
5013   esac
5014
5015 fi
5016
5017 if test -n $lt_cv_sys_max_cmd_len ; then
5018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5019 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5020 else
5021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5022 $as_echo "none" >&6; }
5023 fi
5024 max_cmd_len=$lt_cv_sys_max_cmd_len
5025
5026
5027
5028
5029
5030
5031 : ${CP="cp -f"}
5032 : ${MV="mv -f"}
5033 : ${RM="rm -f"}
5034
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5036 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5037 # Try some XSI features
5038 xsi_shell=no
5039 ( _lt_dummy="a/b/c"
5040   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5041       = c,a/b,b/c, \
5042     && eval 'test $(( 1 + 1 )) -eq 2 \
5043     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5044   && xsi_shell=yes
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5046 $as_echo "$xsi_shell" >&6; }
5047
5048
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5050 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5051 lt_shell_append=no
5052 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5053     >/dev/null 2>&1 \
5054   && lt_shell_append=yes
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5056 $as_echo "$lt_shell_append" >&6; }
5057
5058
5059 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5060   lt_unset=unset
5061 else
5062   lt_unset=false
5063 fi
5064
5065
5066
5067
5068
5069 # test EBCDIC or ASCII
5070 case `echo X|tr X '\101'` in
5071  A) # ASCII based system
5072     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5073   lt_SP2NL='tr \040 \012'
5074   lt_NL2SP='tr \015\012 \040\040'
5075   ;;
5076  *) # EBCDIC based system
5077   lt_SP2NL='tr \100 \n'
5078   lt_NL2SP='tr \r\n \100\100'
5079   ;;
5080 esac
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5091 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5092 if ${lt_cv_to_host_file_cmd+:} false; then :
5093   $as_echo_n "(cached) " >&6
5094 else
5095   case $host in
5096   *-*-mingw* )
5097     case $build in
5098       *-*-mingw* ) # actually msys
5099         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5100         ;;
5101       *-*-cygwin* )
5102         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5103         ;;
5104       * ) # otherwise, assume *nix
5105         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5106         ;;
5107     esac
5108     ;;
5109   *-*-cygwin* )
5110     case $build in
5111       *-*-mingw* ) # actually msys
5112         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5113         ;;
5114       *-*-cygwin* )
5115         lt_cv_to_host_file_cmd=func_convert_file_noop
5116         ;;
5117       * ) # otherwise, assume *nix
5118         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5119         ;;
5120     esac
5121     ;;
5122   * ) # unhandled hosts (and "normal" native builds)
5123     lt_cv_to_host_file_cmd=func_convert_file_noop
5124     ;;
5125 esac
5126
5127 fi
5128
5129 to_host_file_cmd=$lt_cv_to_host_file_cmd
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5131 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5132
5133
5134
5135
5136
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5138 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5139 if ${lt_cv_to_tool_file_cmd+:} false; then :
5140   $as_echo_n "(cached) " >&6
5141 else
5142   #assume ordinary cross tools, or native build.
5143 lt_cv_to_tool_file_cmd=func_convert_file_noop
5144 case $host in
5145   *-*-mingw* )
5146     case $build in
5147       *-*-mingw* ) # actually msys
5148         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5149         ;;
5150     esac
5151     ;;
5152 esac
5153
5154 fi
5155
5156 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5158 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5159
5160
5161
5162
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5165 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5166 if ${lt_cv_ld_reload_flag+:} false; then :
5167   $as_echo_n "(cached) " >&6
5168 else
5169   lt_cv_ld_reload_flag='-r'
5170 fi
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5172 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5173 reload_flag=$lt_cv_ld_reload_flag
5174 case $reload_flag in
5175 "" | " "*) ;;
5176 *) reload_flag=" $reload_flag" ;;
5177 esac
5178 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5179 case $host_os in
5180   cygwin* | mingw* | pw32* | cegcc*)
5181     if test "$GCC" != yes; then
5182       reload_cmds=false
5183     fi
5184     ;;
5185   darwin*)
5186     if test "$GCC" = yes; then
5187       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5188     else
5189       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5190     fi
5191     ;;
5192 esac
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202 if test -n "$ac_tool_prefix"; then
5203   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5204 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if ${ac_cv_prog_OBJDUMP+:} false; then :
5208   $as_echo_n "(cached) " >&6
5209 else
5210   if test -n "$OBJDUMP"; then
5211   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216   IFS=$as_save_IFS
5217   test -z "$as_dir" && as_dir=.
5218     for ac_exec_ext in '' $ac_executable_extensions; do
5219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222     break 2
5223   fi
5224 done
5225   done
5226 IFS=$as_save_IFS
5227
5228 fi
5229 fi
5230 OBJDUMP=$ac_cv_prog_OBJDUMP
5231 if test -n "$OBJDUMP"; then
5232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5233 $as_echo "$OBJDUMP" >&6; }
5234 else
5235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5237 fi
5238
5239
5240 fi
5241 if test -z "$ac_cv_prog_OBJDUMP"; then
5242   ac_ct_OBJDUMP=$OBJDUMP
5243   # Extract the first word of "objdump", so it can be a program name with args.
5244 set dummy objdump; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5248   $as_echo_n "(cached) " >&6
5249 else
5250   if test -n "$ac_ct_OBJDUMP"; then
5251   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256   IFS=$as_save_IFS
5257   test -z "$as_dir" && as_dir=.
5258     for ac_exec_ext in '' $ac_executable_extensions; do
5259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262     break 2
5263   fi
5264 done
5265   done
5266 IFS=$as_save_IFS
5267
5268 fi
5269 fi
5270 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5271 if test -n "$ac_ct_OBJDUMP"; then
5272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5273 $as_echo "$ac_ct_OBJDUMP" >&6; }
5274 else
5275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5277 fi
5278
5279   if test "x$ac_ct_OBJDUMP" = x; then
5280     OBJDUMP="false"
5281   else
5282     case $cross_compiling:$ac_tool_warned in
5283 yes:)
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5286 ac_tool_warned=yes ;;
5287 esac
5288     OBJDUMP=$ac_ct_OBJDUMP
5289   fi
5290 else
5291   OBJDUMP="$ac_cv_prog_OBJDUMP"
5292 fi
5293
5294 test -z "$OBJDUMP" && OBJDUMP=objdump
5295
5296
5297
5298
5299
5300
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5302 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5303 if ${lt_cv_deplibs_check_method+:} false; then :
5304   $as_echo_n "(cached) " >&6
5305 else
5306   lt_cv_file_magic_cmd='$MAGIC_CMD'
5307 lt_cv_file_magic_test_file=
5308 lt_cv_deplibs_check_method='unknown'
5309 # Need to set the preceding variable on all platforms that support
5310 # interlibrary dependencies.
5311 # 'none' -- dependencies not supported.
5312 # `unknown' -- same as none, but documents that we really don't know.
5313 # 'pass_all' -- all dependencies passed with no checks.
5314 # 'test_compile' -- check by making test program.
5315 # 'file_magic [[regex]]' -- check by looking for files in library path
5316 # which responds to the $file_magic_cmd with a given extended regex.
5317 # If you have `file' or equivalent on your system and you're not sure
5318 # whether `pass_all' will *always* work, you probably want this one.
5319
5320 case $host_os in
5321 aix[4-9]*)
5322   lt_cv_deplibs_check_method=pass_all
5323   ;;
5324
5325 beos*)
5326   lt_cv_deplibs_check_method=pass_all
5327   ;;
5328
5329 bsdi[45]*)
5330   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5331   lt_cv_file_magic_cmd='/usr/bin/file -L'
5332   lt_cv_file_magic_test_file=/shlib/libc.so
5333   ;;
5334
5335 cygwin*)
5336   # func_win32_libid is a shell function defined in ltmain.sh
5337   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5338   lt_cv_file_magic_cmd='func_win32_libid'
5339   ;;
5340
5341 mingw* | pw32*)
5342   # Base MSYS/MinGW do not provide the 'file' command needed by
5343   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5344   # unless we find 'file', for example because we are cross-compiling.
5345   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5346   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5347     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5348     lt_cv_file_magic_cmd='func_win32_libid'
5349   else
5350     # Keep this pattern in sync with the one in func_win32_libid.
5351     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5352     lt_cv_file_magic_cmd='$OBJDUMP -f'
5353   fi
5354   ;;
5355
5356 cegcc*)
5357   # use the weaker test based on 'objdump'. See mingw*.
5358   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5359   lt_cv_file_magic_cmd='$OBJDUMP -f'
5360   ;;
5361
5362 darwin* | rhapsody*)
5363   lt_cv_deplibs_check_method=pass_all
5364   ;;
5365
5366 freebsd* | dragonfly*)
5367   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5368     case $host_cpu in
5369     i*86 )
5370       # Not sure whether the presence of OpenBSD here was a mistake.
5371       # Let's accept both of them until this is cleared up.
5372       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5373       lt_cv_file_magic_cmd=/usr/bin/file
5374       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5375       ;;
5376     esac
5377   else
5378     lt_cv_deplibs_check_method=pass_all
5379   fi
5380   ;;
5381
5382 haiku*)
5383   lt_cv_deplibs_check_method=pass_all
5384   ;;
5385
5386 hpux10.20* | hpux11*)
5387   lt_cv_file_magic_cmd=/usr/bin/file
5388   case $host_cpu in
5389   ia64*)
5390     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5391     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5392     ;;
5393   hppa*64*)
5394     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]'
5395     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5396     ;;
5397   *)
5398     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5399     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5400     ;;
5401   esac
5402   ;;
5403
5404 interix[3-9]*)
5405   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5406   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5407   ;;
5408
5409 irix5* | irix6* | nonstopux*)
5410   case $LD in
5411   *-32|*"-32 ") libmagic=32-bit;;
5412   *-n32|*"-n32 ") libmagic=N32;;
5413   *-64|*"-64 ") libmagic=64-bit;;
5414   *) libmagic=never-match;;
5415   esac
5416   lt_cv_deplibs_check_method=pass_all
5417   ;;
5418
5419 # This must be glibc/ELF.
5420 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5421   lt_cv_deplibs_check_method=pass_all
5422   ;;
5423
5424 netbsd* | netbsdelf*-gnu)
5425   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5426     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5427   else
5428     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5429   fi
5430   ;;
5431
5432 newos6*)
5433   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5434   lt_cv_file_magic_cmd=/usr/bin/file
5435   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5436   ;;
5437
5438 *nto* | *qnx*)
5439   lt_cv_deplibs_check_method=pass_all
5440   ;;
5441
5442 openbsd*)
5443   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5444     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5445   else
5446     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5447   fi
5448   ;;
5449
5450 osf3* | osf4* | osf5*)
5451   lt_cv_deplibs_check_method=pass_all
5452   ;;
5453
5454 rdos*)
5455   lt_cv_deplibs_check_method=pass_all
5456   ;;
5457
5458 solaris*)
5459   lt_cv_deplibs_check_method=pass_all
5460   ;;
5461
5462 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5463   lt_cv_deplibs_check_method=pass_all
5464   ;;
5465
5466 sysv4 | sysv4.3*)
5467   case $host_vendor in
5468   motorola)
5469     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]'
5470     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5471     ;;
5472   ncr)
5473     lt_cv_deplibs_check_method=pass_all
5474     ;;
5475   sequent)
5476     lt_cv_file_magic_cmd='/bin/file'
5477     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5478     ;;
5479   sni)
5480     lt_cv_file_magic_cmd='/bin/file'
5481     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5482     lt_cv_file_magic_test_file=/lib/libc.so
5483     ;;
5484   siemens)
5485     lt_cv_deplibs_check_method=pass_all
5486     ;;
5487   pc)
5488     lt_cv_deplibs_check_method=pass_all
5489     ;;
5490   esac
5491   ;;
5492
5493 tpf*)
5494   lt_cv_deplibs_check_method=pass_all
5495   ;;
5496 esac
5497
5498 fi
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5500 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5501
5502 file_magic_glob=
5503 want_nocaseglob=no
5504 if test "$build" = "$host"; then
5505   case $host_os in
5506   mingw* | pw32*)
5507     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5508       want_nocaseglob=yes
5509     else
5510       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5511     fi
5512     ;;
5513   esac
5514 fi
5515
5516 file_magic_cmd=$lt_cv_file_magic_cmd
5517 deplibs_check_method=$lt_cv_deplibs_check_method
5518 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541 if test -n "$ac_tool_prefix"; then
5542   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5543 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if ${ac_cv_prog_DLLTOOL+:} false; then :
5547   $as_echo_n "(cached) " >&6
5548 else
5549   if test -n "$DLLTOOL"; then
5550   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5554 do
5555   IFS=$as_save_IFS
5556   test -z "$as_dir" && as_dir=.
5557     for ac_exec_ext in '' $ac_executable_extensions; do
5558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561     break 2
5562   fi
5563 done
5564   done
5565 IFS=$as_save_IFS
5566
5567 fi
5568 fi
5569 DLLTOOL=$ac_cv_prog_DLLTOOL
5570 if test -n "$DLLTOOL"; then
5571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5572 $as_echo "$DLLTOOL" >&6; }
5573 else
5574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5576 fi
5577
5578
5579 fi
5580 if test -z "$ac_cv_prog_DLLTOOL"; then
5581   ac_ct_DLLTOOL=$DLLTOOL
5582   # Extract the first word of "dlltool", so it can be a program name with args.
5583 set dummy dlltool; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5587   $as_echo_n "(cached) " >&6
5588 else
5589   if test -n "$ac_ct_DLLTOOL"; then
5590   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5591 else
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH
5594 do
5595   IFS=$as_save_IFS
5596   test -z "$as_dir" && as_dir=.
5597     for ac_exec_ext in '' $ac_executable_extensions; do
5598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5599     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601     break 2
5602   fi
5603 done
5604   done
5605 IFS=$as_save_IFS
5606
5607 fi
5608 fi
5609 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5610 if test -n "$ac_ct_DLLTOOL"; then
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5612 $as_echo "$ac_ct_DLLTOOL" >&6; }
5613 else
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5616 fi
5617
5618   if test "x$ac_ct_DLLTOOL" = x; then
5619     DLLTOOL="false"
5620   else
5621     case $cross_compiling:$ac_tool_warned in
5622 yes:)
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5625 ac_tool_warned=yes ;;
5626 esac
5627     DLLTOOL=$ac_ct_DLLTOOL
5628   fi
5629 else
5630   DLLTOOL="$ac_cv_prog_DLLTOOL"
5631 fi
5632
5633 test -z "$DLLTOOL" && DLLTOOL=dlltool
5634
5635
5636
5637
5638
5639
5640
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5642 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5643 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5644   $as_echo_n "(cached) " >&6
5645 else
5646   lt_cv_sharedlib_from_linklib_cmd='unknown'
5647
5648 case $host_os in
5649 cygwin* | mingw* | pw32* | cegcc*)
5650   # two different shell functions defined in ltmain.sh
5651   # decide which to use based on capabilities of $DLLTOOL
5652   case `$DLLTOOL --help 2>&1` in
5653   *--identify-strict*)
5654     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5655     ;;
5656   *)
5657     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5658     ;;
5659   esac
5660   ;;
5661 *)
5662   # fallback: assume linklib IS sharedlib
5663   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5664   ;;
5665 esac
5666
5667 fi
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5669 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5670 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5671 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5672
5673
5674
5675
5676
5677
5678
5679
5680 if test -n "$ac_tool_prefix"; then
5681   for ac_prog in ar
5682   do
5683     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5684 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if ${ac_cv_prog_AR+:} false; then :
5688   $as_echo_n "(cached) " >&6
5689 else
5690   if test -n "$AR"; then
5691   ac_cv_prog_AR="$AR" # Let the user override the test.
5692 else
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696   IFS=$as_save_IFS
5697   test -z "$as_dir" && as_dir=.
5698     for ac_exec_ext in '' $ac_executable_extensions; do
5699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702     break 2
5703   fi
5704 done
5705   done
5706 IFS=$as_save_IFS
5707
5708 fi
5709 fi
5710 AR=$ac_cv_prog_AR
5711 if test -n "$AR"; then
5712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5713 $as_echo "$AR" >&6; }
5714 else
5715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5717 fi
5718
5719
5720     test -n "$AR" && break
5721   done
5722 fi
5723 if test -z "$AR"; then
5724   ac_ct_AR=$AR
5725   for ac_prog in ar
5726 do
5727   # Extract the first word of "$ac_prog", so it can be a program name with args.
5728 set dummy $ac_prog; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5732   $as_echo_n "(cached) " >&6
5733 else
5734   if test -n "$ac_ct_AR"; then
5735   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742     for ac_exec_ext in '' $ac_executable_extensions; do
5743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744     ac_cv_prog_ac_ct_AR="$ac_prog"
5745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749   done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5755 if test -n "$ac_ct_AR"; then
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5757 $as_echo "$ac_ct_AR" >&6; }
5758 else
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763
5764   test -n "$ac_ct_AR" && break
5765 done
5766
5767   if test "x$ac_ct_AR" = x; then
5768     AR="false"
5769   else
5770     case $cross_compiling:$ac_tool_warned in
5771 yes:)
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5774 ac_tool_warned=yes ;;
5775 esac
5776     AR=$ac_ct_AR
5777   fi
5778 fi
5779
5780 : ${AR=ar}
5781 : ${AR_FLAGS=cru}
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5794 $as_echo_n "checking for archiver @FILE support... " >&6; }
5795 if ${lt_cv_ar_at_file+:} false; then :
5796   $as_echo_n "(cached) " >&6
5797 else
5798   lt_cv_ar_at_file=no
5799    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h.  */
5801
5802 int
5803 main ()
5804 {
5805
5806   ;
5807   return 0;
5808 }
5809 _ACEOF
5810 if ac_fn_c_try_compile "$LINENO"; then :
5811   echo conftest.$ac_objext > conftest.lst
5812       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5813       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5814   (eval $lt_ar_try) 2>&5
5815   ac_status=$?
5816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5817   test $ac_status = 0; }
5818       if test "$ac_status" -eq 0; then
5819         # Ensure the archiver fails upon bogus file names.
5820         rm -f conftest.$ac_objext libconftest.a
5821         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5822   (eval $lt_ar_try) 2>&5
5823   ac_status=$?
5824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5825   test $ac_status = 0; }
5826         if test "$ac_status" -ne 0; then
5827           lt_cv_ar_at_file=@
5828         fi
5829       fi
5830       rm -f conftest.* libconftest.a
5831
5832 fi
5833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5834
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5837 $as_echo "$lt_cv_ar_at_file" >&6; }
5838
5839 if test "x$lt_cv_ar_at_file" = xno; then
5840   archiver_list_spec=
5841 else
5842   archiver_list_spec=$lt_cv_ar_at_file
5843 fi
5844
5845
5846
5847
5848
5849
5850
5851 if test -n "$ac_tool_prefix"; then
5852   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5853 set dummy ${ac_tool_prefix}strip; ac_word=$2
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855 $as_echo_n "checking for $ac_word... " >&6; }
5856 if ${ac_cv_prog_STRIP+:} false; then :
5857   $as_echo_n "(cached) " >&6
5858 else
5859   if test -n "$STRIP"; then
5860   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5861 else
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5864 do
5865   IFS=$as_save_IFS
5866   test -z "$as_dir" && as_dir=.
5867     for ac_exec_ext in '' $ac_executable_extensions; do
5868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871     break 2
5872   fi
5873 done
5874   done
5875 IFS=$as_save_IFS
5876
5877 fi
5878 fi
5879 STRIP=$ac_cv_prog_STRIP
5880 if test -n "$STRIP"; then
5881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5882 $as_echo "$STRIP" >&6; }
5883 else
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5886 fi
5887
5888
5889 fi
5890 if test -z "$ac_cv_prog_STRIP"; then
5891   ac_ct_STRIP=$STRIP
5892   # Extract the first word of "strip", so it can be a program name with args.
5893 set dummy strip; ac_word=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5897   $as_echo_n "(cached) " >&6
5898 else
5899   if test -n "$ac_ct_STRIP"; then
5900   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5901 else
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5904 do
5905   IFS=$as_save_IFS
5906   test -z "$as_dir" && as_dir=.
5907     for ac_exec_ext in '' $ac_executable_extensions; do
5908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5909     ac_cv_prog_ac_ct_STRIP="strip"
5910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911     break 2
5912   fi
5913 done
5914   done
5915 IFS=$as_save_IFS
5916
5917 fi
5918 fi
5919 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5920 if test -n "$ac_ct_STRIP"; then
5921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5922 $as_echo "$ac_ct_STRIP" >&6; }
5923 else
5924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5926 fi
5927
5928   if test "x$ac_ct_STRIP" = x; then
5929     STRIP=":"
5930   else
5931     case $cross_compiling:$ac_tool_warned in
5932 yes:)
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5935 ac_tool_warned=yes ;;
5936 esac
5937     STRIP=$ac_ct_STRIP
5938   fi
5939 else
5940   STRIP="$ac_cv_prog_STRIP"
5941 fi
5942
5943 test -z "$STRIP" && STRIP=:
5944
5945
5946
5947
5948
5949
5950 if test -n "$ac_tool_prefix"; then
5951   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5952 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954 $as_echo_n "checking for $ac_word... " >&6; }
5955 if ${ac_cv_prog_RANLIB+:} false; then :
5956   $as_echo_n "(cached) " >&6
5957 else
5958   if test -n "$RANLIB"; then
5959   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964   IFS=$as_save_IFS
5965   test -z "$as_dir" && as_dir=.
5966     for ac_exec_ext in '' $ac_executable_extensions; do
5967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970     break 2
5971   fi
5972 done
5973   done
5974 IFS=$as_save_IFS
5975
5976 fi
5977 fi
5978 RANLIB=$ac_cv_prog_RANLIB
5979 if test -n "$RANLIB"; then
5980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5981 $as_echo "$RANLIB" >&6; }
5982 else
5983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5985 fi
5986
5987
5988 fi
5989 if test -z "$ac_cv_prog_RANLIB"; then
5990   ac_ct_RANLIB=$RANLIB
5991   # Extract the first word of "ranlib", so it can be a program name with args.
5992 set dummy ranlib; ac_word=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5996   $as_echo_n "(cached) " >&6
5997 else
5998   if test -n "$ac_ct_RANLIB"; then
5999   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004   IFS=$as_save_IFS
6005   test -z "$as_dir" && as_dir=.
6006     for ac_exec_ext in '' $ac_executable_extensions; do
6007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008     ac_cv_prog_ac_ct_RANLIB="ranlib"
6009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010     break 2
6011   fi
6012 done
6013   done
6014 IFS=$as_save_IFS
6015
6016 fi
6017 fi
6018 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6019 if test -n "$ac_ct_RANLIB"; then
6020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6021 $as_echo "$ac_ct_RANLIB" >&6; }
6022 else
6023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024 $as_echo "no" >&6; }
6025 fi
6026
6027   if test "x$ac_ct_RANLIB" = x; then
6028     RANLIB=":"
6029   else
6030     case $cross_compiling:$ac_tool_warned in
6031 yes:)
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6034 ac_tool_warned=yes ;;
6035 esac
6036     RANLIB=$ac_ct_RANLIB
6037   fi
6038 else
6039   RANLIB="$ac_cv_prog_RANLIB"
6040 fi
6041
6042 test -z "$RANLIB" && RANLIB=:
6043
6044
6045
6046
6047
6048
6049 # Determine commands to create old-style static archives.
6050 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6051 old_postinstall_cmds='chmod 644 $oldlib'
6052 old_postuninstall_cmds=
6053
6054 if test -n "$RANLIB"; then
6055   case $host_os in
6056   openbsd*)
6057     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6058     ;;
6059   *)
6060     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6061     ;;
6062   esac
6063   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6064 fi
6065
6066 case $host_os in
6067   darwin*)
6068     lock_old_archive_extraction=yes ;;
6069   *)
6070     lock_old_archive_extraction=no ;;
6071 esac
6072
6073
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 # If no C compiler was specified, use CC.
6112 LTCC=${LTCC-"$CC"}
6113
6114 # If no C compiler flags were specified, use CFLAGS.
6115 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6116
6117 # Allow CC to be a program name with arguments.
6118 compiler=$CC
6119
6120
6121 # Check for command to grab the raw symbol name followed by C symbol from nm.
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6123 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6124 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6125   $as_echo_n "(cached) " >&6
6126 else
6127
6128 # These are sane defaults that work on at least a few old systems.
6129 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6130
6131 # Character class describing NM global symbol codes.
6132 symcode='[BCDEGRST]'
6133
6134 # Regexp to match symbols that can be accessed directly from C.
6135 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6136
6137 # Define system-specific variables.
6138 case $host_os in
6139 aix*)
6140   symcode='[BCDT]'
6141   ;;
6142 cygwin* | mingw* | pw32* | cegcc*)
6143   symcode='[ABCDGISTW]'
6144   ;;
6145 hpux*)
6146   if test "$host_cpu" = ia64; then
6147     symcode='[ABCDEGRST]'
6148   fi
6149   ;;
6150 irix* | nonstopux*)
6151   symcode='[BCDEGRST]'
6152   ;;
6153 osf*)
6154   symcode='[BCDEGQRST]'
6155   ;;
6156 solaris*)
6157   symcode='[BDRT]'
6158   ;;
6159 sco3.2v5*)
6160   symcode='[DT]'
6161   ;;
6162 sysv4.2uw2*)
6163   symcode='[DT]'
6164   ;;
6165 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6166   symcode='[ABDT]'
6167   ;;
6168 sysv4)
6169   symcode='[DFNSTU]'
6170   ;;
6171 esac
6172
6173 # If we're using GNU nm, then use its standard symbol codes.
6174 case `$NM -V 2>&1` in
6175 *GNU* | *'with BFD'*)
6176   symcode='[ABCDGIRSTW]' ;;
6177 esac
6178
6179 # Transform an extracted symbol line into a proper C declaration.
6180 # Some systems (esp. on ia64) link data and code symbols differently,
6181 # so use this general approach.
6182 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6183
6184 # Transform an extracted symbol line into symbol name and symbol address
6185 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6186 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'"
6187
6188 # Handle CRLF in mingw tool chain
6189 opt_cr=
6190 case $build_os in
6191 mingw*)
6192   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6193   ;;
6194 esac
6195
6196 # Try without a prefix underscore, then with it.
6197 for ac_symprfx in "" "_"; do
6198
6199   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6200   symxfrm="\\1 $ac_symprfx\\2 \\2"
6201
6202   # Write the raw and C identifiers.
6203   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6204     # Fake it for dumpbin and say T for any non-static function
6205     # and D for any global variable.
6206     # Also find C++ and __fastcall symbols from MSVC++,
6207     # which start with @ or ?.
6208     lt_cv_sys_global_symbol_pipe="$AWK '"\
6209 "     {last_section=section; section=\$ 3};"\
6210 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6211 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6212 "     \$ 0!~/External *\|/{next};"\
6213 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6214 "     {if(hide[section]) next};"\
6215 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6216 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6217 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6218 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6219 "     ' prfx=^$ac_symprfx"
6220   else
6221     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6222   fi
6223   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6224
6225   # Check to see that the pipe works correctly.
6226   pipe_works=no
6227
6228   rm -f conftest*
6229   cat > conftest.$ac_ext <<_LT_EOF
6230 #ifdef __cplusplus
6231 extern "C" {
6232 #endif
6233 char nm_test_var;
6234 void nm_test_func(void);
6235 void nm_test_func(void){}
6236 #ifdef __cplusplus
6237 }
6238 #endif
6239 int main(){nm_test_var='a';nm_test_func();return(0);}
6240 _LT_EOF
6241
6242   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6243   (eval $ac_compile) 2>&5
6244   ac_status=$?
6245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6246   test $ac_status = 0; }; then
6247     # Now try to grab the symbols.
6248     nlist=conftest.nm
6249     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6250   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6251   ac_status=$?
6252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253   test $ac_status = 0; } && test -s "$nlist"; then
6254       # Try sorting and uniquifying the output.
6255       if sort "$nlist" | uniq > "$nlist"T; then
6256         mv -f "$nlist"T "$nlist"
6257       else
6258         rm -f "$nlist"T
6259       fi
6260
6261       # Make sure that we snagged all the symbols we need.
6262       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6263         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6264           cat <<_LT_EOF > conftest.$ac_ext
6265 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6266 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6267 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6268    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6269 # define LT_DLSYM_CONST
6270 #elif defined(__osf__)
6271 /* This system does not cope well with relocations in const data.  */
6272 # define LT_DLSYM_CONST
6273 #else
6274 # define LT_DLSYM_CONST const
6275 #endif
6276
6277 #ifdef __cplusplus
6278 extern "C" {
6279 #endif
6280
6281 _LT_EOF
6282           # Now generate the symbol file.
6283           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6284
6285           cat <<_LT_EOF >> conftest.$ac_ext
6286
6287 /* The mapping between symbol names and symbols.  */
6288 LT_DLSYM_CONST struct {
6289   const char *name;
6290   void       *address;
6291 }
6292 lt__PROGRAM__LTX_preloaded_symbols[] =
6293 {
6294   { "@PROGRAM@", (void *) 0 },
6295 _LT_EOF
6296           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6297           cat <<\_LT_EOF >> conftest.$ac_ext
6298   {0, (void *) 0}
6299 };
6300
6301 /* This works around a problem in FreeBSD linker */
6302 #ifdef FREEBSD_WORKAROUND
6303 static const void *lt_preloaded_setup() {
6304   return lt__PROGRAM__LTX_preloaded_symbols;
6305 }
6306 #endif
6307
6308 #ifdef __cplusplus
6309 }
6310 #endif
6311 _LT_EOF
6312           # Now try linking the two files.
6313           mv conftest.$ac_objext conftstm.$ac_objext
6314           lt_globsym_save_LIBS=$LIBS
6315           lt_globsym_save_CFLAGS=$CFLAGS
6316           LIBS="conftstm.$ac_objext"
6317           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6318           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6319   (eval $ac_link) 2>&5
6320   ac_status=$?
6321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6322   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6323             pipe_works=yes
6324           fi
6325           LIBS=$lt_globsym_save_LIBS
6326           CFLAGS=$lt_globsym_save_CFLAGS
6327         else
6328           echo "cannot find nm_test_func in $nlist" >&5
6329         fi
6330       else
6331         echo "cannot find nm_test_var in $nlist" >&5
6332       fi
6333     else
6334       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6335     fi
6336   else
6337     echo "$progname: failed program was:" >&5
6338     cat conftest.$ac_ext >&5
6339   fi
6340   rm -rf conftest* conftst*
6341
6342   # Do not use the global_symbol_pipe unless it works.
6343   if test "$pipe_works" = yes; then
6344     break
6345   else
6346     lt_cv_sys_global_symbol_pipe=
6347   fi
6348 done
6349
6350 fi
6351
6352 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6353   lt_cv_sys_global_symbol_to_cdecl=
6354 fi
6355 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6357 $as_echo "failed" >&6; }
6358 else
6359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6360 $as_echo "ok" >&6; }
6361 fi
6362
6363 # Response file support.
6364 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6365   nm_file_list_spec='@'
6366 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6367   nm_file_list_spec='@'
6368 fi
6369
6370
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6397 $as_echo_n "checking for sysroot... " >&6; }
6398
6399 # Check whether --with-sysroot was given.
6400 if test "${with_sysroot+set}" = set; then :
6401   withval=$with_sysroot;
6402 else
6403   with_sysroot=no
6404 fi
6405
6406
6407 lt_sysroot=
6408 case ${with_sysroot} in #(
6409  yes)
6410    if test "$GCC" = yes; then
6411      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6412    fi
6413    ;; #(
6414  /*)
6415    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6416    ;; #(
6417  no|'')
6418    ;; #(
6419  *)
6420    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6421 $as_echo "${with_sysroot}" >&6; }
6422    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6423    ;;
6424 esac
6425
6426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6427 $as_echo "${lt_sysroot:-no}" >&6; }
6428
6429
6430
6431
6432
6433 # Check whether --enable-libtool-lock was given.
6434 if test "${enable_libtool_lock+set}" = set; then :
6435   enableval=$enable_libtool_lock;
6436 fi
6437
6438 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6439
6440 # Some flags need to be propagated to the compiler or linker for good
6441 # libtool support.
6442 case $host in
6443 ia64-*-hpux*)
6444   # Find out which ABI we are using.
6445   echo 'int i;' > conftest.$ac_ext
6446   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6447   (eval $ac_compile) 2>&5
6448   ac_status=$?
6449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6450   test $ac_status = 0; }; then
6451     case `/usr/bin/file conftest.$ac_objext` in
6452       *ELF-32*)
6453         HPUX_IA64_MODE="32"
6454         ;;
6455       *ELF-64*)
6456         HPUX_IA64_MODE="64"
6457         ;;
6458     esac
6459   fi
6460   rm -rf conftest*
6461   ;;
6462 *-*-irix6*)
6463   # Find out which ABI we are using.
6464   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6465   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6466   (eval $ac_compile) 2>&5
6467   ac_status=$?
6468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6469   test $ac_status = 0; }; then
6470     if test "$lt_cv_prog_gnu_ld" = yes; then
6471       case `/usr/bin/file conftest.$ac_objext` in
6472         *32-bit*)
6473           LD="${LD-ld} -melf32bsmip"
6474           ;;
6475         *N32*)
6476           LD="${LD-ld} -melf32bmipn32"
6477           ;;
6478         *64-bit*)
6479           LD="${LD-ld} -melf64bmip"
6480         ;;
6481       esac
6482     else
6483       case `/usr/bin/file conftest.$ac_objext` in
6484         *32-bit*)
6485           LD="${LD-ld} -32"
6486           ;;
6487         *N32*)
6488           LD="${LD-ld} -n32"
6489           ;;
6490         *64-bit*)
6491           LD="${LD-ld} -64"
6492           ;;
6493       esac
6494     fi
6495   fi
6496   rm -rf conftest*
6497   ;;
6498
6499 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6500 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6501   # Find out which ABI we are using.
6502   echo 'int i;' > conftest.$ac_ext
6503   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6504   (eval $ac_compile) 2>&5
6505   ac_status=$?
6506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6507   test $ac_status = 0; }; then
6508     case `/usr/bin/file conftest.o` in
6509       *32-bit*)
6510         case $host in
6511           x86_64-*kfreebsd*-gnu)
6512             LD="${LD-ld} -m elf_i386_fbsd"
6513             ;;
6514           x86_64-*linux*)
6515             case `/usr/bin/file conftest.o` in
6516               *x86-64*)
6517                 LD="${LD-ld} -m elf32_x86_64"
6518                 ;;
6519               *)
6520                 LD="${LD-ld} -m elf_i386"
6521                 ;;
6522             esac
6523             ;;
6524           powerpc64le-*)
6525             LD="${LD-ld} -m elf32lppclinux"
6526             ;;
6527           powerpc64-*)
6528             LD="${LD-ld} -m elf32ppclinux"
6529             ;;
6530           s390x-*linux*)
6531             LD="${LD-ld} -m elf_s390"
6532             ;;
6533           sparc64-*linux*)
6534             LD="${LD-ld} -m elf32_sparc"
6535             ;;
6536         esac
6537         ;;
6538       *64-bit*)
6539         case $host in
6540           x86_64-*kfreebsd*-gnu)
6541             LD="${LD-ld} -m elf_x86_64_fbsd"
6542             ;;
6543           x86_64-*linux*)
6544             LD="${LD-ld} -m elf_x86_64"
6545             ;;
6546           powerpcle-*)
6547             LD="${LD-ld} -m elf64lppc"
6548             ;;
6549           powerpc-*)
6550             LD="${LD-ld} -m elf64ppc"
6551             ;;
6552           s390*-*linux*|s390*-*tpf*)
6553             LD="${LD-ld} -m elf64_s390"
6554             ;;
6555           sparc*-*linux*)
6556             LD="${LD-ld} -m elf64_sparc"
6557             ;;
6558         esac
6559         ;;
6560     esac
6561   fi
6562   rm -rf conftest*
6563   ;;
6564
6565 *-*-sco3.2v5*)
6566   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6567   SAVE_CFLAGS="$CFLAGS"
6568   CFLAGS="$CFLAGS -belf"
6569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6570 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6571 if ${lt_cv_cc_needs_belf+:} false; then :
6572   $as_echo_n "(cached) " >&6
6573 else
6574   ac_ext=c
6575 ac_cpp='$CPP $CPPFLAGS'
6576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6579
6580      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h.  */
6582
6583 int
6584 main ()
6585 {
6586
6587   ;
6588   return 0;
6589 }
6590 _ACEOF
6591 if ac_fn_c_try_link "$LINENO"; then :
6592   lt_cv_cc_needs_belf=yes
6593 else
6594   lt_cv_cc_needs_belf=no
6595 fi
6596 rm -f core conftest.err conftest.$ac_objext \
6597     conftest$ac_exeext conftest.$ac_ext
6598      ac_ext=c
6599 ac_cpp='$CPP $CPPFLAGS'
6600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6603
6604 fi
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6606 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6607   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6608     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6609     CFLAGS="$SAVE_CFLAGS"
6610   fi
6611   ;;
6612 *-*solaris*)
6613   # Find out which ABI we are using.
6614   echo 'int i;' > conftest.$ac_ext
6615   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6616   (eval $ac_compile) 2>&5
6617   ac_status=$?
6618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6619   test $ac_status = 0; }; then
6620     case `/usr/bin/file conftest.o` in
6621     *64-bit*)
6622       case $lt_cv_prog_gnu_ld in
6623       yes*)
6624         case $host in
6625         i?86-*-solaris*)
6626           LD="${LD-ld} -m elf_x86_64"
6627           ;;
6628         sparc*-*-solaris*)
6629           LD="${LD-ld} -m elf64_sparc"
6630           ;;
6631         esac
6632         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6633         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6634           LD="${LD-ld}_sol2"
6635         fi
6636         ;;
6637       *)
6638         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6639           LD="${LD-ld} -64"
6640         fi
6641         ;;
6642       esac
6643       ;;
6644     esac
6645   fi
6646   rm -rf conftest*
6647   ;;
6648 esac
6649
6650 need_locks="$enable_libtool_lock"
6651
6652 if test -n "$ac_tool_prefix"; then
6653   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6654 set dummy ${ac_tool_prefix}mt; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6658   $as_echo_n "(cached) " >&6
6659 else
6660   if test -n "$MANIFEST_TOOL"; then
6661   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666   IFS=$as_save_IFS
6667   test -z "$as_dir" && as_dir=.
6668     for ac_exec_ext in '' $ac_executable_extensions; do
6669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672     break 2
6673   fi
6674 done
6675   done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6681 if test -n "$MANIFEST_TOOL"; then
6682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6683 $as_echo "$MANIFEST_TOOL" >&6; }
6684 else
6685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6687 fi
6688
6689
6690 fi
6691 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6692   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6693   # Extract the first word of "mt", so it can be a program name with args.
6694 set dummy mt; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6698   $as_echo_n "(cached) " >&6
6699 else
6700   if test -n "$ac_ct_MANIFEST_TOOL"; then
6701   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706   IFS=$as_save_IFS
6707   test -z "$as_dir" && as_dir=.
6708     for ac_exec_ext in '' $ac_executable_extensions; do
6709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712     break 2
6713   fi
6714 done
6715   done
6716 IFS=$as_save_IFS
6717
6718 fi
6719 fi
6720 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6721 if test -n "$ac_ct_MANIFEST_TOOL"; then
6722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6723 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6724 else
6725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6727 fi
6728
6729   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6730     MANIFEST_TOOL=":"
6731   else
6732     case $cross_compiling:$ac_tool_warned in
6733 yes:)
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736 ac_tool_warned=yes ;;
6737 esac
6738     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6739   fi
6740 else
6741   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6742 fi
6743
6744 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6746 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6747 if ${lt_cv_path_mainfest_tool+:} false; then :
6748   $as_echo_n "(cached) " >&6
6749 else
6750   lt_cv_path_mainfest_tool=no
6751   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6752   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6753   cat conftest.err >&5
6754   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6755     lt_cv_path_mainfest_tool=yes
6756   fi
6757   rm -f conftest*
6758 fi
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6760 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6761 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6762   MANIFEST_TOOL=:
6763 fi
6764
6765
6766
6767
6768
6769
6770   case $host_os in
6771     rhapsody* | darwin*)
6772     if test -n "$ac_tool_prefix"; then
6773   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6774 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6778   $as_echo_n "(cached) " >&6
6779 else
6780   if test -n "$DSYMUTIL"; then
6781   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788     for ac_exec_ext in '' $ac_executable_extensions; do
6789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795   done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6801 if test -n "$DSYMUTIL"; then
6802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6803 $as_echo "$DSYMUTIL" >&6; }
6804 else
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808
6809
6810 fi
6811 if test -z "$ac_cv_prog_DSYMUTIL"; then
6812   ac_ct_DSYMUTIL=$DSYMUTIL
6813   # Extract the first word of "dsymutil", so it can be a program name with args.
6814 set dummy dsymutil; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6818   $as_echo_n "(cached) " >&6
6819 else
6820   if test -n "$ac_ct_DSYMUTIL"; then
6821   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826   IFS=$as_save_IFS
6827   test -z "$as_dir" && as_dir=.
6828     for ac_exec_ext in '' $ac_executable_extensions; do
6829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832     break 2
6833   fi
6834 done
6835   done
6836 IFS=$as_save_IFS
6837
6838 fi
6839 fi
6840 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6841 if test -n "$ac_ct_DSYMUTIL"; then
6842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6843 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6844 else
6845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6847 fi
6848
6849   if test "x$ac_ct_DSYMUTIL" = x; then
6850     DSYMUTIL=":"
6851   else
6852     case $cross_compiling:$ac_tool_warned in
6853 yes:)
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6856 ac_tool_warned=yes ;;
6857 esac
6858     DSYMUTIL=$ac_ct_DSYMUTIL
6859   fi
6860 else
6861   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6862 fi
6863
6864     if test -n "$ac_tool_prefix"; then
6865   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6866 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if ${ac_cv_prog_NMEDIT+:} false; then :
6870   $as_echo_n "(cached) " >&6
6871 else
6872   if test -n "$NMEDIT"; then
6873   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880     for ac_exec_ext in '' $ac_executable_extensions; do
6881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6882     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887   done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 NMEDIT=$ac_cv_prog_NMEDIT
6893 if test -n "$NMEDIT"; then
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6895 $as_echo "$NMEDIT" >&6; }
6896 else
6897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6899 fi
6900
6901
6902 fi
6903 if test -z "$ac_cv_prog_NMEDIT"; then
6904   ac_ct_NMEDIT=$NMEDIT
6905   # Extract the first word of "nmedit", so it can be a program name with args.
6906 set dummy nmedit; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6910   $as_echo_n "(cached) " >&6
6911 else
6912   if test -n "$ac_ct_NMEDIT"; then
6913   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918   IFS=$as_save_IFS
6919   test -z "$as_dir" && as_dir=.
6920     for ac_exec_ext in '' $ac_executable_extensions; do
6921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6922     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924     break 2
6925   fi
6926 done
6927   done
6928 IFS=$as_save_IFS
6929
6930 fi
6931 fi
6932 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6933 if test -n "$ac_ct_NMEDIT"; then
6934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6935 $as_echo "$ac_ct_NMEDIT" >&6; }
6936 else
6937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6939 fi
6940
6941   if test "x$ac_ct_NMEDIT" = x; then
6942     NMEDIT=":"
6943   else
6944     case $cross_compiling:$ac_tool_warned in
6945 yes:)
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6948 ac_tool_warned=yes ;;
6949 esac
6950     NMEDIT=$ac_ct_NMEDIT
6951   fi
6952 else
6953   NMEDIT="$ac_cv_prog_NMEDIT"
6954 fi
6955
6956     if test -n "$ac_tool_prefix"; then
6957   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6958 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960 $as_echo_n "checking for $ac_word... " >&6; }
6961 if ${ac_cv_prog_LIPO+:} false; then :
6962   $as_echo_n "(cached) " >&6
6963 else
6964   if test -n "$LIPO"; then
6965   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6966 else
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6969 do
6970   IFS=$as_save_IFS
6971   test -z "$as_dir" && as_dir=.
6972     for ac_exec_ext in '' $ac_executable_extensions; do
6973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6974     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976     break 2
6977   fi
6978 done
6979   done
6980 IFS=$as_save_IFS
6981
6982 fi
6983 fi
6984 LIPO=$ac_cv_prog_LIPO
6985 if test -n "$LIPO"; then
6986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6987 $as_echo "$LIPO" >&6; }
6988 else
6989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6991 fi
6992
6993
6994 fi
6995 if test -z "$ac_cv_prog_LIPO"; then
6996   ac_ct_LIPO=$LIPO
6997   # Extract the first word of "lipo", so it can be a program name with args.
6998 set dummy lipo; ac_word=$2
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000 $as_echo_n "checking for $ac_word... " >&6; }
7001 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7002   $as_echo_n "(cached) " >&6
7003 else
7004   if test -n "$ac_ct_LIPO"; then
7005   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7006 else
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7009 do
7010   IFS=$as_save_IFS
7011   test -z "$as_dir" && as_dir=.
7012     for ac_exec_ext in '' $ac_executable_extensions; do
7013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7014     ac_cv_prog_ac_ct_LIPO="lipo"
7015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7016     break 2
7017   fi
7018 done
7019   done
7020 IFS=$as_save_IFS
7021
7022 fi
7023 fi
7024 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7025 if test -n "$ac_ct_LIPO"; then
7026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7027 $as_echo "$ac_ct_LIPO" >&6; }
7028 else
7029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7031 fi
7032
7033   if test "x$ac_ct_LIPO" = x; then
7034     LIPO=":"
7035   else
7036     case $cross_compiling:$ac_tool_warned in
7037 yes:)
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7040 ac_tool_warned=yes ;;
7041 esac
7042     LIPO=$ac_ct_LIPO
7043   fi
7044 else
7045   LIPO="$ac_cv_prog_LIPO"
7046 fi
7047
7048     if test -n "$ac_tool_prefix"; then
7049   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7050 set dummy ${ac_tool_prefix}otool; ac_word=$2
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7052 $as_echo_n "checking for $ac_word... " >&6; }
7053 if ${ac_cv_prog_OTOOL+:} false; then :
7054   $as_echo_n "(cached) " >&6
7055 else
7056   if test -n "$OTOOL"; then
7057   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7058 else
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in $PATH
7061 do
7062   IFS=$as_save_IFS
7063   test -z "$as_dir" && as_dir=.
7064     for ac_exec_ext in '' $ac_executable_extensions; do
7065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7066     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7068     break 2
7069   fi
7070 done
7071   done
7072 IFS=$as_save_IFS
7073
7074 fi
7075 fi
7076 OTOOL=$ac_cv_prog_OTOOL
7077 if test -n "$OTOOL"; then
7078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7079 $as_echo "$OTOOL" >&6; }
7080 else
7081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082 $as_echo "no" >&6; }
7083 fi
7084
7085
7086 fi
7087 if test -z "$ac_cv_prog_OTOOL"; then
7088   ac_ct_OTOOL=$OTOOL
7089   # Extract the first word of "otool", so it can be a program name with args.
7090 set dummy otool; ac_word=$2
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092 $as_echo_n "checking for $ac_word... " >&6; }
7093 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7094   $as_echo_n "(cached) " >&6
7095 else
7096   if test -n "$ac_ct_OTOOL"; then
7097   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7098 else
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 for as_dir in $PATH
7101 do
7102   IFS=$as_save_IFS
7103   test -z "$as_dir" && as_dir=.
7104     for ac_exec_ext in '' $ac_executable_extensions; do
7105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7106     ac_cv_prog_ac_ct_OTOOL="otool"
7107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108     break 2
7109   fi
7110 done
7111   done
7112 IFS=$as_save_IFS
7113
7114 fi
7115 fi
7116 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7117 if test -n "$ac_ct_OTOOL"; then
7118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7119 $as_echo "$ac_ct_OTOOL" >&6; }
7120 else
7121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 $as_echo "no" >&6; }
7123 fi
7124
7125   if test "x$ac_ct_OTOOL" = x; then
7126     OTOOL=":"
7127   else
7128     case $cross_compiling:$ac_tool_warned in
7129 yes:)
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7132 ac_tool_warned=yes ;;
7133 esac
7134     OTOOL=$ac_ct_OTOOL
7135   fi
7136 else
7137   OTOOL="$ac_cv_prog_OTOOL"
7138 fi
7139
7140     if test -n "$ac_tool_prefix"; then
7141   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7142 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if ${ac_cv_prog_OTOOL64+:} false; then :
7146   $as_echo_n "(cached) " >&6
7147 else
7148   if test -n "$OTOOL64"; then
7149   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7150 else
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7153 do
7154   IFS=$as_save_IFS
7155   test -z "$as_dir" && as_dir=.
7156     for ac_exec_ext in '' $ac_executable_extensions; do
7157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160     break 2
7161   fi
7162 done
7163   done
7164 IFS=$as_save_IFS
7165
7166 fi
7167 fi
7168 OTOOL64=$ac_cv_prog_OTOOL64
7169 if test -n "$OTOOL64"; then
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7171 $as_echo "$OTOOL64" >&6; }
7172 else
7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7175 fi
7176
7177
7178 fi
7179 if test -z "$ac_cv_prog_OTOOL64"; then
7180   ac_ct_OTOOL64=$OTOOL64
7181   # Extract the first word of "otool64", so it can be a program name with args.
7182 set dummy otool64; ac_word=$2
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7186   $as_echo_n "(cached) " >&6
7187 else
7188   if test -n "$ac_ct_OTOOL64"; then
7189   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194   IFS=$as_save_IFS
7195   test -z "$as_dir" && as_dir=.
7196     for ac_exec_ext in '' $ac_executable_extensions; do
7197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198     ac_cv_prog_ac_ct_OTOOL64="otool64"
7199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200     break 2
7201   fi
7202 done
7203   done
7204 IFS=$as_save_IFS
7205
7206 fi
7207 fi
7208 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7209 if test -n "$ac_ct_OTOOL64"; then
7210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7211 $as_echo "$ac_ct_OTOOL64" >&6; }
7212 else
7213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7215 fi
7216
7217   if test "x$ac_ct_OTOOL64" = x; then
7218     OTOOL64=":"
7219   else
7220     case $cross_compiling:$ac_tool_warned in
7221 yes:)
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224 ac_tool_warned=yes ;;
7225 esac
7226     OTOOL64=$ac_ct_OTOOL64
7227   fi
7228 else
7229   OTOOL64="$ac_cv_prog_OTOOL64"
7230 fi
7231
7232
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7259 $as_echo_n "checking for -single_module linker flag... " >&6; }
7260 if ${lt_cv_apple_cc_single_mod+:} false; then :
7261   $as_echo_n "(cached) " >&6
7262 else
7263   lt_cv_apple_cc_single_mod=no
7264       if test -z "${LT_MULTI_MODULE}"; then
7265         # By default we will add the -single_module flag. You can override
7266         # by either setting the environment variable LT_MULTI_MODULE
7267         # non-empty at configure time, or by adding -multi_module to the
7268         # link flags.
7269         rm -rf libconftest.dylib*
7270         echo "int foo(void){return 1;}" > conftest.c
7271         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7272 -dynamiclib -Wl,-single_module conftest.c" >&5
7273         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7274           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7275         _lt_result=$?
7276         # If there is a non-empty error log, and "single_module"
7277         # appears in it, assume the flag caused a linker warning
7278         if test -s conftest.err && $GREP single_module conftest.err; then
7279           cat conftest.err >&5
7280         # Otherwise, if the output was created with a 0 exit code from
7281         # the compiler, it worked.
7282         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7283           lt_cv_apple_cc_single_mod=yes
7284         else
7285           cat conftest.err >&5
7286         fi
7287         rm -rf libconftest.dylib*
7288         rm -f conftest.*
7289       fi
7290 fi
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7292 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7293
7294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7295 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7296 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7297   $as_echo_n "(cached) " >&6
7298 else
7299   lt_cv_ld_exported_symbols_list=no
7300       save_LDFLAGS=$LDFLAGS
7301       echo "_main" > conftest.sym
7302       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7303       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h.  */
7305
7306 int
7307 main ()
7308 {
7309
7310   ;
7311   return 0;
7312 }
7313 _ACEOF
7314 if ac_fn_c_try_link "$LINENO"; then :
7315   lt_cv_ld_exported_symbols_list=yes
7316 else
7317   lt_cv_ld_exported_symbols_list=no
7318 fi
7319 rm -f core conftest.err conftest.$ac_objext \
7320     conftest$ac_exeext conftest.$ac_ext
7321         LDFLAGS="$save_LDFLAGS"
7322
7323 fi
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7325 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7326
7327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7328 $as_echo_n "checking for -force_load linker flag... " >&6; }
7329 if ${lt_cv_ld_force_load+:} false; then :
7330   $as_echo_n "(cached) " >&6
7331 else
7332   lt_cv_ld_force_load=no
7333       cat > conftest.c << _LT_EOF
7334 int forced_loaded() { return 2;}
7335 _LT_EOF
7336       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7337       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7338       echo "$AR cru libconftest.a conftest.o" >&5
7339       $AR cru libconftest.a conftest.o 2>&5
7340       echo "$RANLIB libconftest.a" >&5
7341       $RANLIB libconftest.a 2>&5
7342       cat > conftest.c << _LT_EOF
7343 int main() { return 0;}
7344 _LT_EOF
7345       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7346       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7347       _lt_result=$?
7348       if test -s conftest.err && $GREP force_load conftest.err; then
7349         cat conftest.err >&5
7350       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7351         lt_cv_ld_force_load=yes
7352       else
7353         cat conftest.err >&5
7354       fi
7355         rm -f conftest.err libconftest.a conftest conftest.c
7356         rm -rf conftest.dSYM
7357
7358 fi
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7360 $as_echo "$lt_cv_ld_force_load" >&6; }
7361     case $host_os in
7362     rhapsody* | darwin1.[012])
7363       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7364     darwin1.*)
7365       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7366     darwin*) # darwin 5.x on
7367       # if running on 10.5 or later, the deployment target defaults
7368       # to the OS version, if on x86, and 10.4, the deployment
7369       # target defaults to 10.4. Don't you love it?
7370       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7371         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7372           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7373         10.[012]*)
7374           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7375         10.*)
7376           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7377       esac
7378     ;;
7379   esac
7380     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7381       _lt_dar_single_mod='$single_module'
7382     fi
7383     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7384       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7385     else
7386       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7387     fi
7388     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7389       _lt_dsymutil='~$DSYMUTIL $lib || :'
7390     else
7391       _lt_dsymutil=
7392     fi
7393     ;;
7394   esac
7395
7396 ac_ext=c
7397 ac_cpp='$CPP $CPPFLAGS'
7398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7402 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7403 # On Suns, sometimes $CPP names a directory.
7404 if test -n "$CPP" && test -d "$CPP"; then
7405   CPP=
7406 fi
7407 if test -z "$CPP"; then
7408   if ${ac_cv_prog_CPP+:} false; then :
7409   $as_echo_n "(cached) " >&6
7410 else
7411       # Double quotes because CPP needs to be expanded
7412     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7413     do
7414       ac_preproc_ok=false
7415 for ac_c_preproc_warn_flag in '' yes
7416 do
7417   # Use a header file that comes with gcc, so configuring glibc
7418   # with a fresh cross-compiler works.
7419   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7420   # <limits.h> exists even on freestanding compilers.
7421   # On the NeXT, cc -E runs the code through the compiler's parser,
7422   # not just through cpp. "Syntax error" is here to catch this case.
7423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h.  */
7425 #ifdef __STDC__
7426 # include <limits.h>
7427 #else
7428 # include <assert.h>
7429 #endif
7430                      Syntax error
7431 _ACEOF
7432 if ac_fn_c_try_cpp "$LINENO"; then :
7433
7434 else
7435   # Broken: fails on valid input.
7436 continue
7437 fi
7438 rm -f conftest.err conftest.i conftest.$ac_ext
7439
7440   # OK, works on sane cases.  Now check whether nonexistent headers
7441   # can be detected and how.
7442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h.  */
7444 #include <ac_nonexistent.h>
7445 _ACEOF
7446 if ac_fn_c_try_cpp "$LINENO"; then :
7447   # Broken: success on invalid input.
7448 continue
7449 else
7450   # Passes both tests.
7451 ac_preproc_ok=:
7452 break
7453 fi
7454 rm -f conftest.err conftest.i conftest.$ac_ext
7455
7456 done
7457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7458 rm -f conftest.i conftest.err conftest.$ac_ext
7459 if $ac_preproc_ok; then :
7460   break
7461 fi
7462
7463     done
7464     ac_cv_prog_CPP=$CPP
7465
7466 fi
7467   CPP=$ac_cv_prog_CPP
7468 else
7469   ac_cv_prog_CPP=$CPP
7470 fi
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7472 $as_echo "$CPP" >&6; }
7473 ac_preproc_ok=false
7474 for ac_c_preproc_warn_flag in '' yes
7475 do
7476   # Use a header file that comes with gcc, so configuring glibc
7477   # with a fresh cross-compiler works.
7478   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7479   # <limits.h> exists even on freestanding compilers.
7480   # On the NeXT, cc -E runs the code through the compiler's parser,
7481   # not just through cpp. "Syntax error" is here to catch this case.
7482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h.  */
7484 #ifdef __STDC__
7485 # include <limits.h>
7486 #else
7487 # include <assert.h>
7488 #endif
7489                      Syntax error
7490 _ACEOF
7491 if ac_fn_c_try_cpp "$LINENO"; then :
7492
7493 else
7494   # Broken: fails on valid input.
7495 continue
7496 fi
7497 rm -f conftest.err conftest.i conftest.$ac_ext
7498
7499   # OK, works on sane cases.  Now check whether nonexistent headers
7500   # can be detected and how.
7501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h.  */
7503 #include <ac_nonexistent.h>
7504 _ACEOF
7505 if ac_fn_c_try_cpp "$LINENO"; then :
7506   # Broken: success on invalid input.
7507 continue
7508 else
7509   # Passes both tests.
7510 ac_preproc_ok=:
7511 break
7512 fi
7513 rm -f conftest.err conftest.i conftest.$ac_ext
7514
7515 done
7516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7517 rm -f conftest.i conftest.err conftest.$ac_ext
7518 if $ac_preproc_ok; then :
7519
7520 else
7521   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7523 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7524 See \`config.log' for more details" "$LINENO" 5; }
7525 fi
7526
7527 ac_ext=c
7528 ac_cpp='$CPP $CPPFLAGS'
7529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7532
7533
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7535 $as_echo_n "checking for ANSI C header files... " >&6; }
7536 if ${ac_cv_header_stdc+:} false; then :
7537   $as_echo_n "(cached) " >&6
7538 else
7539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h.  */
7541 #include <stdlib.h>
7542 #include <stdarg.h>
7543 #include <string.h>
7544 #include <float.h>
7545
7546 int
7547 main ()
7548 {
7549
7550   ;
7551   return 0;
7552 }
7553 _ACEOF
7554 if ac_fn_c_try_compile "$LINENO"; then :
7555   ac_cv_header_stdc=yes
7556 else
7557   ac_cv_header_stdc=no
7558 fi
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560
7561 if test $ac_cv_header_stdc = yes; then
7562   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h.  */
7565 #include <string.h>
7566
7567 _ACEOF
7568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7569   $EGREP "memchr" >/dev/null 2>&1; then :
7570
7571 else
7572   ac_cv_header_stdc=no
7573 fi
7574 rm -f conftest*
7575
7576 fi
7577
7578 if test $ac_cv_header_stdc = yes; then
7579   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h.  */
7582 #include <stdlib.h>
7583
7584 _ACEOF
7585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7586   $EGREP "free" >/dev/null 2>&1; then :
7587
7588 else
7589   ac_cv_header_stdc=no
7590 fi
7591 rm -f conftest*
7592
7593 fi
7594
7595 if test $ac_cv_header_stdc = yes; then
7596   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7597   if test "$cross_compiling" = yes; then :
7598   :
7599 else
7600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h.  */
7602 #include <ctype.h>
7603 #include <stdlib.h>
7604 #if ((' ' & 0x0FF) == 0x020)
7605 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7606 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7607 #else
7608 # define ISLOWER(c) \
7609                    (('a' <= (c) && (c) <= 'i') \
7610                      || ('j' <= (c) && (c) <= 'r') \
7611                      || ('s' <= (c) && (c) <= 'z'))
7612 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7613 #endif
7614
7615 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7616 int
7617 main ()
7618 {
7619   int i;
7620   for (i = 0; i < 256; i++)
7621     if (XOR (islower (i), ISLOWER (i))
7622         || toupper (i) != TOUPPER (i))
7623       return 2;
7624   return 0;
7625 }
7626 _ACEOF
7627 if ac_fn_c_try_run "$LINENO"; then :
7628
7629 else
7630   ac_cv_header_stdc=no
7631 fi
7632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7633   conftest.$ac_objext conftest.beam conftest.$ac_ext
7634 fi
7635
7636 fi
7637 fi
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7639 $as_echo "$ac_cv_header_stdc" >&6; }
7640 if test $ac_cv_header_stdc = yes; then
7641
7642 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7643
7644 fi
7645
7646 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7647 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7648                   inttypes.h stdint.h unistd.h
7649 do :
7650   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7651 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7652 "
7653 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7654   cat >>confdefs.h <<_ACEOF
7655 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7656 _ACEOF
7657
7658 fi
7659
7660 done
7661
7662
7663 for ac_header in dlfcn.h
7664 do :
7665   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7666 "
7667 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7668   cat >>confdefs.h <<_ACEOF
7669 #define HAVE_DLFCN_H 1
7670 _ACEOF
7671
7672 fi
7673
7674 done
7675
7676
7677
7678
7679
7680 # Set options
7681 enable_win32_dll=yes
7682
7683 case $host in
7684 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7685   if test -n "$ac_tool_prefix"; then
7686   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7687 set dummy ${ac_tool_prefix}as; ac_word=$2
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689 $as_echo_n "checking for $ac_word... " >&6; }
7690 if ${ac_cv_prog_AS+:} false; then :
7691   $as_echo_n "(cached) " >&6
7692 else
7693   if test -n "$AS"; then
7694   ac_cv_prog_AS="$AS" # Let the user override the test.
7695 else
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 for as_dir in $PATH
7698 do
7699   IFS=$as_save_IFS
7700   test -z "$as_dir" && as_dir=.
7701     for ac_exec_ext in '' $ac_executable_extensions; do
7702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7703     ac_cv_prog_AS="${ac_tool_prefix}as"
7704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705     break 2
7706   fi
7707 done
7708   done
7709 IFS=$as_save_IFS
7710
7711 fi
7712 fi
7713 AS=$ac_cv_prog_AS
7714 if test -n "$AS"; then
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7716 $as_echo "$AS" >&6; }
7717 else
7718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719 $as_echo "no" >&6; }
7720 fi
7721
7722
7723 fi
7724 if test -z "$ac_cv_prog_AS"; then
7725   ac_ct_AS=$AS
7726   # Extract the first word of "as", so it can be a program name with args.
7727 set dummy as; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7731   $as_echo_n "(cached) " >&6
7732 else
7733   if test -n "$ac_ct_AS"; then
7734   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739   IFS=$as_save_IFS
7740   test -z "$as_dir" && as_dir=.
7741     for ac_exec_ext in '' $ac_executable_extensions; do
7742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743     ac_cv_prog_ac_ct_AS="as"
7744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745     break 2
7746   fi
7747 done
7748   done
7749 IFS=$as_save_IFS
7750
7751 fi
7752 fi
7753 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7754 if test -n "$ac_ct_AS"; then
7755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7756 $as_echo "$ac_ct_AS" >&6; }
7757 else
7758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7760 fi
7761
7762   if test "x$ac_ct_AS" = x; then
7763     AS="false"
7764   else
7765     case $cross_compiling:$ac_tool_warned in
7766 yes:)
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7769 ac_tool_warned=yes ;;
7770 esac
7771     AS=$ac_ct_AS
7772   fi
7773 else
7774   AS="$ac_cv_prog_AS"
7775 fi
7776
7777   if test -n "$ac_tool_prefix"; then
7778   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7779 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781 $as_echo_n "checking for $ac_word... " >&6; }
7782 if ${ac_cv_prog_DLLTOOL+:} false; then :
7783   $as_echo_n "(cached) " >&6
7784 else
7785   if test -n "$DLLTOOL"; then
7786   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7787 else
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7790 do
7791   IFS=$as_save_IFS
7792   test -z "$as_dir" && as_dir=.
7793     for ac_exec_ext in '' $ac_executable_extensions; do
7794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7795     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797     break 2
7798   fi
7799 done
7800   done
7801 IFS=$as_save_IFS
7802
7803 fi
7804 fi
7805 DLLTOOL=$ac_cv_prog_DLLTOOL
7806 if test -n "$DLLTOOL"; then
7807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7808 $as_echo "$DLLTOOL" >&6; }
7809 else
7810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7812 fi
7813
7814
7815 fi
7816 if test -z "$ac_cv_prog_DLLTOOL"; then
7817   ac_ct_DLLTOOL=$DLLTOOL
7818   # Extract the first word of "dlltool", so it can be a program name with args.
7819 set dummy dlltool; ac_word=$2
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821 $as_echo_n "checking for $ac_word... " >&6; }
7822 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7823   $as_echo_n "(cached) " >&6
7824 else
7825   if test -n "$ac_ct_DLLTOOL"; then
7826   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7827 else
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 for as_dir in $PATH
7830 do
7831   IFS=$as_save_IFS
7832   test -z "$as_dir" && as_dir=.
7833     for ac_exec_ext in '' $ac_executable_extensions; do
7834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7835     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837     break 2
7838   fi
7839 done
7840   done
7841 IFS=$as_save_IFS
7842
7843 fi
7844 fi
7845 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7846 if test -n "$ac_ct_DLLTOOL"; then
7847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7848 $as_echo "$ac_ct_DLLTOOL" >&6; }
7849 else
7850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7852 fi
7853
7854   if test "x$ac_ct_DLLTOOL" = x; then
7855     DLLTOOL="false"
7856   else
7857     case $cross_compiling:$ac_tool_warned in
7858 yes:)
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7861 ac_tool_warned=yes ;;
7862 esac
7863     DLLTOOL=$ac_ct_DLLTOOL
7864   fi
7865 else
7866   DLLTOOL="$ac_cv_prog_DLLTOOL"
7867 fi
7868
7869   if test -n "$ac_tool_prefix"; then
7870   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7871 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 $as_echo_n "checking for $ac_word... " >&6; }
7874 if ${ac_cv_prog_OBJDUMP+:} false; then :
7875   $as_echo_n "(cached) " >&6
7876 else
7877   if test -n "$OBJDUMP"; then
7878   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7879 else
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881 for as_dir in $PATH
7882 do
7883   IFS=$as_save_IFS
7884   test -z "$as_dir" && as_dir=.
7885     for ac_exec_ext in '' $ac_executable_extensions; do
7886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7887     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7889     break 2
7890   fi
7891 done
7892   done
7893 IFS=$as_save_IFS
7894
7895 fi
7896 fi
7897 OBJDUMP=$ac_cv_prog_OBJDUMP
7898 if test -n "$OBJDUMP"; then
7899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7900 $as_echo "$OBJDUMP" >&6; }
7901 else
7902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903 $as_echo "no" >&6; }
7904 fi
7905
7906
7907 fi
7908 if test -z "$ac_cv_prog_OBJDUMP"; then
7909   ac_ct_OBJDUMP=$OBJDUMP
7910   # Extract the first word of "objdump", so it can be a program name with args.
7911 set dummy objdump; ac_word=$2
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913 $as_echo_n "checking for $ac_word... " >&6; }
7914 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7915   $as_echo_n "(cached) " >&6
7916 else
7917   if test -n "$ac_ct_OBJDUMP"; then
7918   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7919 else
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923   IFS=$as_save_IFS
7924   test -z "$as_dir" && as_dir=.
7925     for ac_exec_ext in '' $ac_executable_extensions; do
7926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7929     break 2
7930   fi
7931 done
7932   done
7933 IFS=$as_save_IFS
7934
7935 fi
7936 fi
7937 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7938 if test -n "$ac_ct_OBJDUMP"; then
7939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7940 $as_echo "$ac_ct_OBJDUMP" >&6; }
7941 else
7942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }
7944 fi
7945
7946   if test "x$ac_ct_OBJDUMP" = x; then
7947     OBJDUMP="false"
7948   else
7949     case $cross_compiling:$ac_tool_warned in
7950 yes:)
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7953 ac_tool_warned=yes ;;
7954 esac
7955     OBJDUMP=$ac_ct_OBJDUMP
7956   fi
7957 else
7958   OBJDUMP="$ac_cv_prog_OBJDUMP"
7959 fi
7960
7961   ;;
7962 esac
7963
7964 test -z "$AS" && AS=as
7965
7966
7967
7968
7969
7970 test -z "$DLLTOOL" && DLLTOOL=dlltool
7971
7972
7973
7974
7975
7976 test -z "$OBJDUMP" && OBJDUMP=objdump
7977
7978
7979
7980
7981
7982
7983
7984         enable_dlopen=no
7985
7986
7987
7988             # Check whether --enable-shared was given.
7989 if test "${enable_shared+set}" = set; then :
7990   enableval=$enable_shared; p=${PACKAGE-default}
7991     case $enableval in
7992     yes) enable_shared=yes ;;
7993     no) enable_shared=no ;;
7994     *)
7995       enable_shared=no
7996       # Look at the argument we got.  We use all the common list separators.
7997       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7998       for pkg in $enableval; do
7999         IFS="$lt_save_ifs"
8000         if test "X$pkg" = "X$p"; then
8001           enable_shared=yes
8002         fi
8003       done
8004       IFS="$lt_save_ifs"
8005       ;;
8006     esac
8007 else
8008   enable_shared=yes
8009 fi
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019   # Check whether --enable-static was given.
8020 if test "${enable_static+set}" = set; then :
8021   enableval=$enable_static; p=${PACKAGE-default}
8022     case $enableval in
8023     yes) enable_static=yes ;;
8024     no) enable_static=no ;;
8025     *)
8026      enable_static=no
8027       # Look at the argument we got.  We use all the common list separators.
8028       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8029       for pkg in $enableval; do
8030         IFS="$lt_save_ifs"
8031         if test "X$pkg" = "X$p"; then
8032           enable_static=yes
8033         fi
8034       done
8035       IFS="$lt_save_ifs"
8036       ;;
8037     esac
8038 else
8039   enable_static=yes
8040 fi
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051 # Check whether --with-pic was given.
8052 if test "${with_pic+set}" = set; then :
8053   withval=$with_pic; lt_p=${PACKAGE-default}
8054     case $withval in
8055     yes|no) pic_mode=$withval ;;
8056     *)
8057       pic_mode=default
8058       # Look at the argument we got.  We use all the common list separators.
8059       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8060       for lt_pkg in $withval; do
8061         IFS="$lt_save_ifs"
8062         if test "X$lt_pkg" = "X$lt_p"; then
8063           pic_mode=yes
8064         fi
8065       done
8066       IFS="$lt_save_ifs"
8067       ;;
8068     esac
8069 else
8070   pic_mode=default
8071 fi
8072
8073
8074 test -z "$pic_mode" && pic_mode=default
8075
8076
8077
8078
8079
8080
8081
8082   # Check whether --enable-fast-install was given.
8083 if test "${enable_fast_install+set}" = set; then :
8084   enableval=$enable_fast_install; p=${PACKAGE-default}
8085     case $enableval in
8086     yes) enable_fast_install=yes ;;
8087     no) enable_fast_install=no ;;
8088     *)
8089       enable_fast_install=no
8090       # Look at the argument we got.  We use all the common list separators.
8091       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8092       for pkg in $enableval; do
8093         IFS="$lt_save_ifs"
8094         if test "X$pkg" = "X$p"; then
8095           enable_fast_install=yes
8096         fi
8097       done
8098       IFS="$lt_save_ifs"
8099       ;;
8100     esac
8101 else
8102   enable_fast_install=yes
8103 fi
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115 # This can be used to rebuild libtool when needed
8116 LIBTOOL_DEPS="$ltmain"
8117
8118 # Always use our own libtool.
8119 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8120
8121
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 test -z "$LN_S" && LN_S="ln -s"
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165 if test -n "${ZSH_VERSION+set}" ; then
8166    setopt NO_GLOB_SUBST
8167 fi
8168
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8170 $as_echo_n "checking for objdir... " >&6; }
8171 if ${lt_cv_objdir+:} false; then :
8172   $as_echo_n "(cached) " >&6
8173 else
8174   rm -f .libs 2>/dev/null
8175 mkdir .libs 2>/dev/null
8176 if test -d .libs; then
8177   lt_cv_objdir=.libs
8178 else
8179   # MS-DOS does not allow filenames that begin with a dot.
8180   lt_cv_objdir=_libs
8181 fi
8182 rmdir .libs 2>/dev/null
8183 fi
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8185 $as_echo "$lt_cv_objdir" >&6; }
8186 objdir=$lt_cv_objdir
8187
8188
8189
8190
8191
8192 cat >>confdefs.h <<_ACEOF
8193 #define LT_OBJDIR "$lt_cv_objdir/"
8194 _ACEOF
8195
8196
8197
8198
8199 case $host_os in
8200 aix3*)
8201   # AIX sometimes has problems with the GCC collect2 program.  For some
8202   # reason, if we set the COLLECT_NAMES environment variable, the problems
8203   # vanish in a puff of smoke.
8204   if test "X${COLLECT_NAMES+set}" != Xset; then
8205     COLLECT_NAMES=
8206     export COLLECT_NAMES
8207   fi
8208   ;;
8209 esac
8210
8211 # Global variables:
8212 ofile=libtool
8213 can_build_shared=yes
8214
8215 # All known linkers require a `.a' archive for static linking (except MSVC,
8216 # which needs '.lib').
8217 libext=a
8218
8219 with_gnu_ld="$lt_cv_prog_gnu_ld"
8220
8221 old_CC="$CC"
8222 old_CFLAGS="$CFLAGS"
8223
8224 # Set sane defaults for various variables
8225 test -z "$CC" && CC=cc
8226 test -z "$LTCC" && LTCC=$CC
8227 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8228 test -z "$LD" && LD=ld
8229 test -z "$ac_objext" && ac_objext=o
8230
8231 for cc_temp in $compiler""; do
8232   case $cc_temp in
8233     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8234     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8235     \-*) ;;
8236     *) break;;
8237   esac
8238 done
8239 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8240
8241
8242 # Only perform the check for file, if the check method requires it
8243 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8244 case $deplibs_check_method in
8245 file_magic*)
8246   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8248 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8249 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8250   $as_echo_n "(cached) " >&6
8251 else
8252   case $MAGIC_CMD in
8253 [\\/*] |  ?:[\\/]*)
8254   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8255   ;;
8256 *)
8257   lt_save_MAGIC_CMD="$MAGIC_CMD"
8258   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8259   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8260   for ac_dir in $ac_dummy; do
8261     IFS="$lt_save_ifs"
8262     test -z "$ac_dir" && ac_dir=.
8263     if test -f $ac_dir/${ac_tool_prefix}file; then
8264       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8265       if test -n "$file_magic_test_file"; then
8266         case $deplibs_check_method in
8267         "file_magic "*)
8268           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8269           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8270           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8271             $EGREP "$file_magic_regex" > /dev/null; then
8272             :
8273           else
8274             cat <<_LT_EOF 1>&2
8275
8276 *** Warning: the command libtool uses to detect shared libraries,
8277 *** $file_magic_cmd, produces output that libtool cannot recognize.
8278 *** The result is that libtool may fail to recognize shared libraries
8279 *** as such.  This will affect the creation of libtool libraries that
8280 *** depend on shared libraries, but programs linked with such libtool
8281 *** libraries will work regardless of this problem.  Nevertheless, you
8282 *** may want to report the problem to your system manager and/or to
8283 *** bug-libtool@gnu.org
8284
8285 _LT_EOF
8286           fi ;;
8287         esac
8288       fi
8289       break
8290     fi
8291   done
8292   IFS="$lt_save_ifs"
8293   MAGIC_CMD="$lt_save_MAGIC_CMD"
8294   ;;
8295 esac
8296 fi
8297
8298 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8299 if test -n "$MAGIC_CMD"; then
8300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8301 $as_echo "$MAGIC_CMD" >&6; }
8302 else
8303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8305 fi
8306
8307
8308
8309
8310
8311 if test -z "$lt_cv_path_MAGIC_CMD"; then
8312   if test -n "$ac_tool_prefix"; then
8313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8314 $as_echo_n "checking for file... " >&6; }
8315 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8316   $as_echo_n "(cached) " >&6
8317 else
8318   case $MAGIC_CMD in
8319 [\\/*] |  ?:[\\/]*)
8320   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8321   ;;
8322 *)
8323   lt_save_MAGIC_CMD="$MAGIC_CMD"
8324   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8325   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8326   for ac_dir in $ac_dummy; do
8327     IFS="$lt_save_ifs"
8328     test -z "$ac_dir" && ac_dir=.
8329     if test -f $ac_dir/file; then
8330       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8331       if test -n "$file_magic_test_file"; then
8332         case $deplibs_check_method in
8333         "file_magic "*)
8334           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8335           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8336           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8337             $EGREP "$file_magic_regex" > /dev/null; then
8338             :
8339           else
8340             cat <<_LT_EOF 1>&2
8341
8342 *** Warning: the command libtool uses to detect shared libraries,
8343 *** $file_magic_cmd, produces output that libtool cannot recognize.
8344 *** The result is that libtool may fail to recognize shared libraries
8345 *** as such.  This will affect the creation of libtool libraries that
8346 *** depend on shared libraries, but programs linked with such libtool
8347 *** libraries will work regardless of this problem.  Nevertheless, you
8348 *** may want to report the problem to your system manager and/or to
8349 *** bug-libtool@gnu.org
8350
8351 _LT_EOF
8352           fi ;;
8353         esac
8354       fi
8355       break
8356     fi
8357   done
8358   IFS="$lt_save_ifs"
8359   MAGIC_CMD="$lt_save_MAGIC_CMD"
8360   ;;
8361 esac
8362 fi
8363
8364 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8365 if test -n "$MAGIC_CMD"; then
8366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8367 $as_echo "$MAGIC_CMD" >&6; }
8368 else
8369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8371 fi
8372
8373
8374   else
8375     MAGIC_CMD=:
8376   fi
8377 fi
8378
8379   fi
8380   ;;
8381 esac
8382
8383 # Use C for the default configuration in the libtool script
8384
8385 lt_save_CC="$CC"
8386 ac_ext=c
8387 ac_cpp='$CPP $CPPFLAGS'
8388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8391
8392
8393 # Source file extension for C test sources.
8394 ac_ext=c
8395
8396 # Object file extension for compiled C test sources.
8397 objext=o
8398 objext=$objext
8399
8400 # Code to be used in simple compile tests
8401 lt_simple_compile_test_code="int some_variable = 0;"
8402
8403 # Code to be used in simple link tests
8404 lt_simple_link_test_code='int main(){return(0);}'
8405
8406
8407
8408
8409
8410
8411
8412 # If no C compiler was specified, use CC.
8413 LTCC=${LTCC-"$CC"}
8414
8415 # If no C compiler flags were specified, use CFLAGS.
8416 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8417
8418 # Allow CC to be a program name with arguments.
8419 compiler=$CC
8420
8421 # Save the default compiler, since it gets overwritten when the other
8422 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8423 compiler_DEFAULT=$CC
8424
8425 # save warnings/boilerplate of simple test code
8426 ac_outfile=conftest.$ac_objext
8427 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8428 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8429 _lt_compiler_boilerplate=`cat conftest.err`
8430 $RM conftest*
8431
8432 ac_outfile=conftest.$ac_objext
8433 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8434 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8435 _lt_linker_boilerplate=`cat conftest.err`
8436 $RM -r conftest*
8437
8438
8439 ## CAVEAT EMPTOR:
8440 ## There is no encapsulation within the following macros, do not change
8441 ## the running order or otherwise move them around unless you know exactly
8442 ## what you are doing...
8443 if test -n "$compiler"; then
8444
8445 lt_prog_compiler_no_builtin_flag=
8446
8447 if test "$GCC" = yes; then
8448   case $cc_basename in
8449   nvcc*)
8450     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8451   *)
8452     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8453   esac
8454
8455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8456 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8457 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8458   $as_echo_n "(cached) " >&6
8459 else
8460   lt_cv_prog_compiler_rtti_exceptions=no
8461    ac_outfile=conftest.$ac_objext
8462    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8463    lt_compiler_flag="-fno-rtti -fno-exceptions"
8464    # Insert the option either (1) after the last *FLAGS variable, or
8465    # (2) before a word containing "conftest.", or (3) at the end.
8466    # Note that $ac_compile itself does not contain backslashes and begins
8467    # with a dollar sign (not a hyphen), so the echo should work correctly.
8468    # The option is referenced via a variable to avoid confusing sed.
8469    lt_compile=`echo "$ac_compile" | $SED \
8470    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8471    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8472    -e 's:$: $lt_compiler_flag:'`
8473    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8474    (eval "$lt_compile" 2>conftest.err)
8475    ac_status=$?
8476    cat conftest.err >&5
8477    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478    if (exit $ac_status) && test -s "$ac_outfile"; then
8479      # The compiler can only warn and ignore the option if not recognized
8480      # So say no if there are warnings other than the usual output.
8481      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8482      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8483      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8484        lt_cv_prog_compiler_rtti_exceptions=yes
8485      fi
8486    fi
8487    $RM conftest*
8488
8489 fi
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8491 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8492
8493 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8494     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8495 else
8496     :
8497 fi
8498
8499 fi
8500
8501
8502
8503
8504
8505
8506   lt_prog_compiler_wl=
8507 lt_prog_compiler_pic=
8508 lt_prog_compiler_static=
8509
8510
8511   if test "$GCC" = yes; then
8512     lt_prog_compiler_wl='-Wl,'
8513     lt_prog_compiler_static='-static'
8514
8515     case $host_os in
8516       aix*)
8517       # All AIX code is PIC.
8518       if test "$host_cpu" = ia64; then
8519         # AIX 5 now supports IA64 processor
8520         lt_prog_compiler_static='-Bstatic'
8521       fi
8522       ;;
8523
8524     amigaos*)
8525       case $host_cpu in
8526       powerpc)
8527             # see comment about AmigaOS4 .so support
8528             lt_prog_compiler_pic='-fPIC'
8529         ;;
8530       m68k)
8531             # FIXME: we need at least 68020 code to build shared libraries, but
8532             # adding the `-m68020' flag to GCC prevents building anything better,
8533             # like `-m68040'.
8534             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8535         ;;
8536       esac
8537       ;;
8538
8539     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8540       # PIC is the default for these OSes.
8541       ;;
8542
8543     mingw* | cygwin* | pw32* | os2* | cegcc*)
8544       # This hack is so that the source file can tell whether it is being
8545       # built for inclusion in a dll (and should export symbols for example).
8546       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8547       # (--disable-auto-import) libraries
8548       lt_prog_compiler_pic='-DDLL_EXPORT'
8549       ;;
8550
8551     darwin* | rhapsody*)
8552       # PIC is the default on this platform
8553       # Common symbols not allowed in MH_DYLIB files
8554       lt_prog_compiler_pic='-fno-common'
8555       ;;
8556
8557     haiku*)
8558       # PIC is the default for Haiku.
8559       # The "-static" flag exists, but is broken.
8560       lt_prog_compiler_static=
8561       ;;
8562
8563     hpux*)
8564       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8565       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8566       # sets the default TLS model and affects inlining.
8567       case $host_cpu in
8568       hppa*64*)
8569         # +Z the default
8570         ;;
8571       *)
8572         lt_prog_compiler_pic='-fPIC'
8573         ;;
8574       esac
8575       ;;
8576
8577     interix[3-9]*)
8578       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8579       # Instead, we relocate shared libraries at runtime.
8580       ;;
8581
8582     msdosdjgpp*)
8583       # Just because we use GCC doesn't mean we suddenly get shared libraries
8584       # on systems that don't support them.
8585       lt_prog_compiler_can_build_shared=no
8586       enable_shared=no
8587       ;;
8588
8589     *nto* | *qnx*)
8590       # QNX uses GNU C++, but need to define -shared option too, otherwise
8591       # it will coredump.
8592       lt_prog_compiler_pic='-fPIC -shared'
8593       ;;
8594
8595     sysv4*MP*)
8596       if test -d /usr/nec; then
8597         lt_prog_compiler_pic=-Kconform_pic
8598       fi
8599       ;;
8600
8601     *)
8602       lt_prog_compiler_pic='-fPIC'
8603       ;;
8604     esac
8605
8606     case $cc_basename in
8607     nvcc*) # Cuda Compiler Driver 2.2
8608       lt_prog_compiler_wl='-Xlinker '
8609       if test -n "$lt_prog_compiler_pic"; then
8610         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8611       fi
8612       ;;
8613     esac
8614   else
8615     # PORTME Check for flag to pass linker flags through the system compiler.
8616     case $host_os in
8617     aix*)
8618       lt_prog_compiler_wl='-Wl,'
8619       if test "$host_cpu" = ia64; then
8620         # AIX 5 now supports IA64 processor
8621         lt_prog_compiler_static='-Bstatic'
8622       else
8623         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8624       fi
8625       ;;
8626
8627     mingw* | cygwin* | pw32* | os2* | cegcc*)
8628       # This hack is so that the source file can tell whether it is being
8629       # built for inclusion in a dll (and should export symbols for example).
8630       lt_prog_compiler_pic='-DDLL_EXPORT'
8631       ;;
8632
8633     hpux9* | hpux10* | hpux11*)
8634       lt_prog_compiler_wl='-Wl,'
8635       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8636       # not for PA HP-UX.
8637       case $host_cpu in
8638       hppa*64*|ia64*)
8639         # +Z the default
8640         ;;
8641       *)
8642         lt_prog_compiler_pic='+Z'
8643         ;;
8644       esac
8645       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8646       lt_prog_compiler_static='${wl}-a ${wl}archive'
8647       ;;
8648
8649     irix5* | irix6* | nonstopux*)
8650       lt_prog_compiler_wl='-Wl,'
8651       # PIC (with -KPIC) is the default.
8652       lt_prog_compiler_static='-non_shared'
8653       ;;
8654
8655     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8656       case $cc_basename in
8657       # old Intel for x86_64 which still supported -KPIC.
8658       ecc*)
8659         lt_prog_compiler_wl='-Wl,'
8660         lt_prog_compiler_pic='-KPIC'
8661         lt_prog_compiler_static='-static'
8662         ;;
8663       # icc used to be incompatible with GCC.
8664       # ICC 10 doesn't accept -KPIC any more.
8665       icc* | ifort*)
8666         lt_prog_compiler_wl='-Wl,'
8667         lt_prog_compiler_pic='-fPIC'
8668         lt_prog_compiler_static='-static'
8669         ;;
8670       # Lahey Fortran 8.1.
8671       lf95*)
8672         lt_prog_compiler_wl='-Wl,'
8673         lt_prog_compiler_pic='--shared'
8674         lt_prog_compiler_static='--static'
8675         ;;
8676       nagfor*)
8677         # NAG Fortran compiler
8678         lt_prog_compiler_wl='-Wl,-Wl,,'
8679         lt_prog_compiler_pic='-PIC'
8680         lt_prog_compiler_static='-Bstatic'
8681         ;;
8682       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8683         # Portland Group compilers (*not* the Pentium gcc compiler,
8684         # which looks to be a dead project)
8685         lt_prog_compiler_wl='-Wl,'
8686         lt_prog_compiler_pic='-fpic'
8687         lt_prog_compiler_static='-Bstatic'
8688         ;;
8689       ccc*)
8690         lt_prog_compiler_wl='-Wl,'
8691         # All Alpha code is PIC.
8692         lt_prog_compiler_static='-non_shared'
8693         ;;
8694       xl* | bgxl* | bgf* | mpixl*)
8695         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8696         lt_prog_compiler_wl='-Wl,'
8697         lt_prog_compiler_pic='-qpic'
8698         lt_prog_compiler_static='-qstaticlink'
8699         ;;
8700       *)
8701         case `$CC -V 2>&1 | sed 5q` in
8702         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8703           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8704           lt_prog_compiler_pic='-KPIC'
8705           lt_prog_compiler_static='-Bstatic'
8706           lt_prog_compiler_wl=''
8707           ;;
8708         *Sun\ F* | *Sun*Fortran*)
8709           lt_prog_compiler_pic='-KPIC'
8710           lt_prog_compiler_static='-Bstatic'
8711           lt_prog_compiler_wl='-Qoption ld '
8712           ;;
8713         *Sun\ C*)
8714           # Sun C 5.9
8715           lt_prog_compiler_pic='-KPIC'
8716           lt_prog_compiler_static='-Bstatic'
8717           lt_prog_compiler_wl='-Wl,'
8718           ;;
8719         *Intel*\ [CF]*Compiler*)
8720           lt_prog_compiler_wl='-Wl,'
8721           lt_prog_compiler_pic='-fPIC'
8722           lt_prog_compiler_static='-static'
8723           ;;
8724         *Portland\ Group*)
8725           lt_prog_compiler_wl='-Wl,'
8726           lt_prog_compiler_pic='-fpic'
8727           lt_prog_compiler_static='-Bstatic'
8728           ;;
8729         esac
8730         ;;
8731       esac
8732       ;;
8733
8734     newsos6)
8735       lt_prog_compiler_pic='-KPIC'
8736       lt_prog_compiler_static='-Bstatic'
8737       ;;
8738
8739     *nto* | *qnx*)
8740       # QNX uses GNU C++, but need to define -shared option too, otherwise
8741       # it will coredump.
8742       lt_prog_compiler_pic='-fPIC -shared'
8743       ;;
8744
8745     osf3* | osf4* | osf5*)
8746       lt_prog_compiler_wl='-Wl,'
8747       # All OSF/1 code is PIC.
8748       lt_prog_compiler_static='-non_shared'
8749       ;;
8750
8751     rdos*)
8752       lt_prog_compiler_static='-non_shared'
8753       ;;
8754
8755     solaris*)
8756       lt_prog_compiler_pic='-KPIC'
8757       lt_prog_compiler_static='-Bstatic'
8758       case $cc_basename in
8759       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8760         lt_prog_compiler_wl='-Qoption ld ';;
8761       *)
8762         lt_prog_compiler_wl='-Wl,';;
8763       esac
8764       ;;
8765
8766     sunos4*)
8767       lt_prog_compiler_wl='-Qoption ld '
8768       lt_prog_compiler_pic='-PIC'
8769       lt_prog_compiler_static='-Bstatic'
8770       ;;
8771
8772     sysv4 | sysv4.2uw2* | sysv4.3*)
8773       lt_prog_compiler_wl='-Wl,'
8774       lt_prog_compiler_pic='-KPIC'
8775       lt_prog_compiler_static='-Bstatic'
8776       ;;
8777
8778     sysv4*MP*)
8779       if test -d /usr/nec ;then
8780         lt_prog_compiler_pic='-Kconform_pic'
8781         lt_prog_compiler_static='-Bstatic'
8782       fi
8783       ;;
8784
8785     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8786       lt_prog_compiler_wl='-Wl,'
8787       lt_prog_compiler_pic='-KPIC'
8788       lt_prog_compiler_static='-Bstatic'
8789       ;;
8790
8791     unicos*)
8792       lt_prog_compiler_wl='-Wl,'
8793       lt_prog_compiler_can_build_shared=no
8794       ;;
8795
8796     uts4*)
8797       lt_prog_compiler_pic='-pic'
8798       lt_prog_compiler_static='-Bstatic'
8799       ;;
8800
8801     *)
8802       lt_prog_compiler_can_build_shared=no
8803       ;;
8804     esac
8805   fi
8806
8807 case $host_os in
8808   # For platforms which do not support PIC, -DPIC is meaningless:
8809   *djgpp*)
8810     lt_prog_compiler_pic=
8811     ;;
8812   *)
8813     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8814     ;;
8815 esac
8816
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8818 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8819 if ${lt_cv_prog_compiler_pic+:} false; then :
8820   $as_echo_n "(cached) " >&6
8821 else
8822   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8823 fi
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8825 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8826 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8827
8828 #
8829 # Check to make sure the PIC flag actually works.
8830 #
8831 if test -n "$lt_prog_compiler_pic"; then
8832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8833 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8834 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8835   $as_echo_n "(cached) " >&6
8836 else
8837   lt_cv_prog_compiler_pic_works=no
8838    ac_outfile=conftest.$ac_objext
8839    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8840    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8841    # Insert the option either (1) after the last *FLAGS variable, or
8842    # (2) before a word containing "conftest.", or (3) at the end.
8843    # Note that $ac_compile itself does not contain backslashes and begins
8844    # with a dollar sign (not a hyphen), so the echo should work correctly.
8845    # The option is referenced via a variable to avoid confusing sed.
8846    lt_compile=`echo "$ac_compile" | $SED \
8847    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8848    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8849    -e 's:$: $lt_compiler_flag:'`
8850    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8851    (eval "$lt_compile" 2>conftest.err)
8852    ac_status=$?
8853    cat conftest.err >&5
8854    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855    if (exit $ac_status) && test -s "$ac_outfile"; then
8856      # The compiler can only warn and ignore the option if not recognized
8857      # So say no if there are warnings other than the usual output.
8858      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8859      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8860      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8861        lt_cv_prog_compiler_pic_works=yes
8862      fi
8863    fi
8864    $RM conftest*
8865
8866 fi
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8868 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8869
8870 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8871     case $lt_prog_compiler_pic in
8872      "" | " "*) ;;
8873      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8874      esac
8875 else
8876     lt_prog_compiler_pic=
8877      lt_prog_compiler_can_build_shared=no
8878 fi
8879
8880 fi
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892 #
8893 # Check to make sure the static flag actually works.
8894 #
8895 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8897 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8898 if ${lt_cv_prog_compiler_static_works+:} false; then :
8899   $as_echo_n "(cached) " >&6
8900 else
8901   lt_cv_prog_compiler_static_works=no
8902    save_LDFLAGS="$LDFLAGS"
8903    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8904    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8905    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8906      # The linker can only warn and ignore the option if not recognized
8907      # So say no if there are warnings
8908      if test -s conftest.err; then
8909        # Append any errors to the config.log.
8910        cat conftest.err 1>&5
8911        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8912        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8913        if diff conftest.exp conftest.er2 >/dev/null; then
8914          lt_cv_prog_compiler_static_works=yes
8915        fi
8916      else
8917        lt_cv_prog_compiler_static_works=yes
8918      fi
8919    fi
8920    $RM -r conftest*
8921    LDFLAGS="$save_LDFLAGS"
8922
8923 fi
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8925 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8926
8927 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8928     :
8929 else
8930     lt_prog_compiler_static=
8931 fi
8932
8933
8934
8935
8936
8937
8938
8939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8940 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8941 if ${lt_cv_prog_compiler_c_o+:} false; then :
8942   $as_echo_n "(cached) " >&6
8943 else
8944   lt_cv_prog_compiler_c_o=no
8945    $RM -r conftest 2>/dev/null
8946    mkdir conftest
8947    cd conftest
8948    mkdir out
8949    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8950
8951    lt_compiler_flag="-o out/conftest2.$ac_objext"
8952    # Insert the option either (1) after the last *FLAGS variable, or
8953    # (2) before a word containing "conftest.", or (3) at the end.
8954    # Note that $ac_compile itself does not contain backslashes and begins
8955    # with a dollar sign (not a hyphen), so the echo should work correctly.
8956    lt_compile=`echo "$ac_compile" | $SED \
8957    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8958    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8959    -e 's:$: $lt_compiler_flag:'`
8960    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8961    (eval "$lt_compile" 2>out/conftest.err)
8962    ac_status=$?
8963    cat out/conftest.err >&5
8964    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8966    then
8967      # The compiler can only warn and ignore the option if not recognized
8968      # So say no if there are warnings
8969      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8970      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8971      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8972        lt_cv_prog_compiler_c_o=yes
8973      fi
8974    fi
8975    chmod u+w . 2>&5
8976    $RM conftest*
8977    # SGI C++ compiler will create directory out/ii_files/ for
8978    # template instantiation
8979    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8980    $RM out/* && rmdir out
8981    cd ..
8982    $RM -r conftest
8983    $RM conftest*
8984
8985 fi
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8987 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8988
8989
8990
8991
8992
8993
8994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8995 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8996 if ${lt_cv_prog_compiler_c_o+:} false; then :
8997   $as_echo_n "(cached) " >&6
8998 else
8999   lt_cv_prog_compiler_c_o=no
9000    $RM -r conftest 2>/dev/null
9001    mkdir conftest
9002    cd conftest
9003    mkdir out
9004    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9005
9006    lt_compiler_flag="-o out/conftest2.$ac_objext"
9007    # Insert the option either (1) after the last *FLAGS variable, or
9008    # (2) before a word containing "conftest.", or (3) at the end.
9009    # Note that $ac_compile itself does not contain backslashes and begins
9010    # with a dollar sign (not a hyphen), so the echo should work correctly.
9011    lt_compile=`echo "$ac_compile" | $SED \
9012    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9013    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9014    -e 's:$: $lt_compiler_flag:'`
9015    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9016    (eval "$lt_compile" 2>out/conftest.err)
9017    ac_status=$?
9018    cat out/conftest.err >&5
9019    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9021    then
9022      # The compiler can only warn and ignore the option if not recognized
9023      # So say no if there are warnings
9024      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9025      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9026      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9027        lt_cv_prog_compiler_c_o=yes
9028      fi
9029    fi
9030    chmod u+w . 2>&5
9031    $RM conftest*
9032    # SGI C++ compiler will create directory out/ii_files/ for
9033    # template instantiation
9034    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9035    $RM out/* && rmdir out
9036    cd ..
9037    $RM -r conftest
9038    $RM conftest*
9039
9040 fi
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9042 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9043
9044
9045
9046
9047 hard_links="nottested"
9048 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9049   # do not overwrite the value of need_locks provided by the user
9050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9051 $as_echo_n "checking if we can lock with hard links... " >&6; }
9052   hard_links=yes
9053   $RM conftest*
9054   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9055   touch conftest.a
9056   ln conftest.a conftest.b 2>&5 || hard_links=no
9057   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9059 $as_echo "$hard_links" >&6; }
9060   if test "$hard_links" = no; then
9061     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9062 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9063     need_locks=warn
9064   fi
9065 else
9066   need_locks=no
9067 fi
9068
9069
9070
9071
9072
9073
9074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9075 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9076
9077   runpath_var=
9078   allow_undefined_flag=
9079   always_export_symbols=no
9080   archive_cmds=
9081   archive_expsym_cmds=
9082   compiler_needs_object=no
9083   enable_shared_with_static_runtimes=no
9084   export_dynamic_flag_spec=
9085   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9086   hardcode_automatic=no
9087   hardcode_direct=no
9088   hardcode_direct_absolute=no
9089   hardcode_libdir_flag_spec=
9090   hardcode_libdir_separator=
9091   hardcode_minus_L=no
9092   hardcode_shlibpath_var=unsupported
9093   inherit_rpath=no
9094   link_all_deplibs=unknown
9095   module_cmds=
9096   module_expsym_cmds=
9097   old_archive_from_new_cmds=
9098   old_archive_from_expsyms_cmds=
9099   thread_safe_flag_spec=
9100   whole_archive_flag_spec=
9101   # include_expsyms should be a list of space-separated symbols to be *always*
9102   # included in the symbol list
9103   include_expsyms=
9104   # exclude_expsyms can be an extended regexp of symbols to exclude
9105   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9106   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9107   # as well as any symbol that contains `d'.
9108   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9109   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9110   # platforms (ab)use it in PIC code, but their linkers get confused if
9111   # the symbol is explicitly referenced.  Since portable code cannot
9112   # rely on this symbol name, it's probably fine to never include it in
9113   # preloaded symbol tables.
9114   # Exclude shared library initialization/finalization symbols.
9115   extract_expsyms_cmds=
9116
9117   case $host_os in
9118   cygwin* | mingw* | pw32* | cegcc*)
9119     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9120     # When not using gcc, we currently assume that we are using
9121     # Microsoft Visual C++.
9122     if test "$GCC" != yes; then
9123       with_gnu_ld=no
9124     fi
9125     ;;
9126   interix*)
9127     # we just hope/assume this is gcc and not c89 (= MSVC++)
9128     with_gnu_ld=yes
9129     ;;
9130   openbsd*)
9131     with_gnu_ld=no
9132     ;;
9133   linux* | k*bsd*-gnu | gnu*)
9134     link_all_deplibs=no
9135     ;;
9136   esac
9137
9138   ld_shlibs=yes
9139
9140   # On some targets, GNU ld is compatible enough with the native linker
9141   # that we're better off using the native interface for both.
9142   lt_use_gnu_ld_interface=no
9143   if test "$with_gnu_ld" = yes; then
9144     case $host_os in
9145       aix*)
9146         # The AIX port of GNU ld has always aspired to compatibility
9147         # with the native linker.  However, as the warning in the GNU ld
9148         # block says, versions before 2.19.5* couldn't really create working
9149         # shared libraries, regardless of the interface used.
9150         case `$LD -v 2>&1` in
9151           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9152           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9153           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9154           *)
9155             lt_use_gnu_ld_interface=yes
9156             ;;
9157         esac
9158         ;;
9159       *)
9160         lt_use_gnu_ld_interface=yes
9161         ;;
9162     esac
9163   fi
9164
9165   if test "$lt_use_gnu_ld_interface" = yes; then
9166     # If archive_cmds runs LD, not CC, wlarc should be empty
9167     wlarc='${wl}'
9168
9169     # Set some defaults for GNU ld with shared library support. These
9170     # are reset later if shared libraries are not supported. Putting them
9171     # here allows them to be overridden if necessary.
9172     runpath_var=LD_RUN_PATH
9173     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9174     export_dynamic_flag_spec='${wl}--export-dynamic'
9175     # ancient GNU ld didn't support --whole-archive et. al.
9176     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9177       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9178     else
9179       whole_archive_flag_spec=
9180     fi
9181     supports_anon_versioning=no
9182     case `$LD -v 2>&1` in
9183       *GNU\ gold*) supports_anon_versioning=yes ;;
9184       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9185       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9186       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9187       *\ 2.11.*) ;; # other 2.11 versions
9188       *) supports_anon_versioning=yes ;;
9189     esac
9190
9191     # See if GNU ld supports shared libraries.
9192     case $host_os in
9193     aix[3-9]*)
9194       # On AIX/PPC, the GNU linker is very broken
9195       if test "$host_cpu" != ia64; then
9196         ld_shlibs=no
9197         cat <<_LT_EOF 1>&2
9198
9199 *** Warning: the GNU linker, at least up to release 2.19, is reported
9200 *** to be unable to reliably create shared libraries on AIX.
9201 *** Therefore, libtool is disabling shared libraries support.  If you
9202 *** really care for shared libraries, you may want to install binutils
9203 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9204 *** You will then need to restart the configuration process.
9205
9206 _LT_EOF
9207       fi
9208       ;;
9209
9210     amigaos*)
9211       case $host_cpu in
9212       powerpc)
9213             # see comment about AmigaOS4 .so support
9214             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9215             archive_expsym_cmds=''
9216         ;;
9217       m68k)
9218             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)'
9219             hardcode_libdir_flag_spec='-L$libdir'
9220             hardcode_minus_L=yes
9221         ;;
9222       esac
9223       ;;
9224
9225     beos*)
9226       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9227         allow_undefined_flag=unsupported
9228         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9229         # support --undefined.  This deserves some investigation.  FIXME
9230         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9231       else
9232         ld_shlibs=no
9233       fi
9234       ;;
9235
9236     cygwin* | mingw* | pw32* | cegcc*)
9237       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9238       # as there is no search path for DLLs.
9239       hardcode_libdir_flag_spec='-L$libdir'
9240       export_dynamic_flag_spec='${wl}--export-all-symbols'
9241       allow_undefined_flag=unsupported
9242       always_export_symbols=no
9243       enable_shared_with_static_runtimes=yes
9244       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'
9245       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9246
9247       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9248         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9249         # If the export-symbols file already is a .def file (1st line
9250         # is EXPORTS), use it as is; otherwise, prepend...
9251         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9252           cp $export_symbols $output_objdir/$soname.def;
9253         else
9254           echo EXPORTS > $output_objdir/$soname.def;
9255           cat $export_symbols >> $output_objdir/$soname.def;
9256         fi~
9257         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9258       else
9259         ld_shlibs=no
9260       fi
9261       ;;
9262
9263     haiku*)
9264       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9265       link_all_deplibs=yes
9266       ;;
9267
9268     interix[3-9]*)
9269       hardcode_direct=no
9270       hardcode_shlibpath_var=no
9271       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9272       export_dynamic_flag_spec='${wl}-E'
9273       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9274       # Instead, shared libraries are loaded at an image base (0x10000000 by
9275       # default) and relocated if they conflict, which is a slow very memory
9276       # consuming and fragmenting process.  To avoid this, we pick a random,
9277       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9278       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9279       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9280       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'
9281       ;;
9282
9283     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9284       tmp_diet=no
9285       if test "$host_os" = linux-dietlibc; then
9286         case $cc_basename in
9287           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9288         esac
9289       fi
9290       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9291          && test "$tmp_diet" = no
9292       then
9293         tmp_addflag=' $pic_flag'
9294         tmp_sharedflag='-shared'
9295         case $cc_basename,$host_cpu in
9296         pgcc*)                          # Portland Group C compiler
9297           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'
9298           tmp_addflag=' $pic_flag'
9299           ;;
9300         pgf77* | pgf90* | pgf95* | pgfortran*)
9301                                         # Portland Group f77 and f90 compilers
9302           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'
9303           tmp_addflag=' $pic_flag -Mnomain' ;;
9304         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9305           tmp_addflag=' -i_dynamic' ;;
9306         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9307           tmp_addflag=' -i_dynamic -nofor_main' ;;
9308         ifc* | ifort*)                  # Intel Fortran compiler
9309           tmp_addflag=' -nofor_main' ;;
9310         lf95*)                          # Lahey Fortran 8.1
9311           whole_archive_flag_spec=
9312           tmp_sharedflag='--shared' ;;
9313         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9314           tmp_sharedflag='-qmkshrobj'
9315           tmp_addflag= ;;
9316         nvcc*)  # Cuda Compiler Driver 2.2
9317           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'
9318           compiler_needs_object=yes
9319           ;;
9320         esac
9321         case `$CC -V 2>&1 | sed 5q` in
9322         *Sun\ C*)                       # Sun C 5.9
9323           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'
9324           compiler_needs_object=yes
9325           tmp_sharedflag='-G' ;;
9326         *Sun\ F*)                       # Sun Fortran 8.3
9327           tmp_sharedflag='-G' ;;
9328         esac
9329         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9330
9331         if test "x$supports_anon_versioning" = xyes; then
9332           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9333             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334             echo "local: *; };" >> $output_objdir/$libname.ver~
9335             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9336         fi
9337
9338         case $cc_basename in
9339         xlf* | bgf* | bgxlf* | mpixlf*)
9340           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9341           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9342           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9343           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9344           if test "x$supports_anon_versioning" = xyes; then
9345             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9346               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9347               echo "local: *; };" >> $output_objdir/$libname.ver~
9348               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9349           fi
9350           ;;
9351         esac
9352       else
9353         ld_shlibs=no
9354       fi
9355       ;;
9356
9357     netbsd* | netbsdelf*-gnu)
9358       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9359         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9360         wlarc=
9361       else
9362         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9363         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9364       fi
9365       ;;
9366
9367     solaris*)
9368       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9369         ld_shlibs=no
9370         cat <<_LT_EOF 1>&2
9371
9372 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9373 *** create shared libraries on Solaris systems.  Therefore, libtool
9374 *** is disabling shared libraries support.  We urge you to upgrade GNU
9375 *** binutils to release 2.9.1 or newer.  Another option is to modify
9376 *** your PATH or compiler configuration so that the native linker is
9377 *** used, and then restart.
9378
9379 _LT_EOF
9380       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9381         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9382         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9383       else
9384         ld_shlibs=no
9385       fi
9386       ;;
9387
9388     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9389       case `$LD -v 2>&1` in
9390         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9391         ld_shlibs=no
9392         cat <<_LT_EOF 1>&2
9393
9394 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9395 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9396 *** is disabling shared libraries support.  We urge you to upgrade GNU
9397 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9398 *** your PATH or compiler configuration so that the native linker is
9399 *** used, and then restart.
9400
9401 _LT_EOF
9402         ;;
9403         *)
9404           # For security reasons, it is highly recommended that you always
9405           # use absolute paths for naming shared libraries, and exclude the
9406           # DT_RUNPATH tag from executables and libraries.  But doing so
9407           # requires that you compile everything twice, which is a pain.
9408           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9409             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9410             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9411             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9412           else
9413             ld_shlibs=no
9414           fi
9415         ;;
9416       esac
9417       ;;
9418
9419     sunos4*)
9420       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9421       wlarc=
9422       hardcode_direct=yes
9423       hardcode_shlibpath_var=no
9424       ;;
9425
9426     *)
9427       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9428         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9429         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9430       else
9431         ld_shlibs=no
9432       fi
9433       ;;
9434     esac
9435
9436     if test "$ld_shlibs" = no; then
9437       runpath_var=
9438       hardcode_libdir_flag_spec=
9439       export_dynamic_flag_spec=
9440       whole_archive_flag_spec=
9441     fi
9442   else
9443     # PORTME fill in a description of your system's linker (not GNU ld)
9444     case $host_os in
9445     aix3*)
9446       allow_undefined_flag=unsupported
9447       always_export_symbols=yes
9448       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'
9449       # Note: this linker hardcodes the directories in LIBPATH if there
9450       # are no directories specified by -L.
9451       hardcode_minus_L=yes
9452       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9453         # Neither direct hardcoding nor static linking is supported with a
9454         # broken collect2.
9455         hardcode_direct=unsupported
9456       fi
9457       ;;
9458
9459     aix[4-9]*)
9460       if test "$host_cpu" = ia64; then
9461         # On IA64, the linker does run time linking by default, so we don't
9462         # have to do anything special.
9463         aix_use_runtimelinking=no
9464         exp_sym_flag='-Bexport'
9465         no_entry_flag=""
9466       else
9467         # If we're using GNU nm, then we don't want the "-C" option.
9468         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9469         # Also, AIX nm treats weak defined symbols like other global
9470         # defined symbols, whereas GNU nm marks them as "W".
9471         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9472           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'
9473         else
9474           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'
9475         fi
9476         aix_use_runtimelinking=no
9477
9478         # Test if we are trying to use run time linking or normal
9479         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9480         # need to do runtime linking.
9481         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9482           for ld_flag in $LDFLAGS; do
9483           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9484             aix_use_runtimelinking=yes
9485             break
9486           fi
9487           done
9488           ;;
9489         esac
9490
9491         exp_sym_flag='-bexport'
9492         no_entry_flag='-bnoentry'
9493       fi
9494
9495       # When large executables or shared objects are built, AIX ld can
9496       # have problems creating the table of contents.  If linking a library
9497       # or program results in "error TOC overflow" add -mminimal-toc to
9498       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9499       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9500
9501       archive_cmds=''
9502       hardcode_direct=yes
9503       hardcode_direct_absolute=yes
9504       hardcode_libdir_separator=':'
9505       link_all_deplibs=yes
9506       file_list_spec='${wl}-f,'
9507
9508       if test "$GCC" = yes; then
9509         case $host_os in aix4.[012]|aix4.[012].*)
9510         # We only want to do this on AIX 4.2 and lower, the check
9511         # below for broken collect2 doesn't work under 4.3+
9512           collect2name=`${CC} -print-prog-name=collect2`
9513           if test -f "$collect2name" &&
9514            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9515           then
9516           # We have reworked collect2
9517           :
9518           else
9519           # We have old collect2
9520           hardcode_direct=unsupported
9521           # It fails to find uninstalled libraries when the uninstalled
9522           # path is not listed in the libpath.  Setting hardcode_minus_L
9523           # to unsupported forces relinking
9524           hardcode_minus_L=yes
9525           hardcode_libdir_flag_spec='-L$libdir'
9526           hardcode_libdir_separator=
9527           fi
9528           ;;
9529         esac
9530         shared_flag='-shared'
9531         if test "$aix_use_runtimelinking" = yes; then
9532           shared_flag="$shared_flag "'${wl}-G'
9533         fi
9534         link_all_deplibs=no
9535       else
9536         # not using gcc
9537         if test "$host_cpu" = ia64; then
9538         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9539         # chokes on -Wl,-G. The following line is correct:
9540           shared_flag='-G'
9541         else
9542           if test "$aix_use_runtimelinking" = yes; then
9543             shared_flag='${wl}-G'
9544           else
9545             shared_flag='${wl}-bM:SRE'
9546           fi
9547         fi
9548       fi
9549
9550       export_dynamic_flag_spec='${wl}-bexpall'
9551       # It seems that -bexpall does not export symbols beginning with
9552       # underscore (_), so it is better to generate a list of symbols to export.
9553       always_export_symbols=yes
9554       if test "$aix_use_runtimelinking" = yes; then
9555         # Warning - without using the other runtime loading flags (-brtl),
9556         # -berok will link without error, but may produce a broken library.
9557         allow_undefined_flag='-berok'
9558         # Determine the default libpath from the value encoded in an
9559         # empty executable.
9560         if test "${lt_cv_aix_libpath+set}" = set; then
9561   aix_libpath=$lt_cv_aix_libpath
9562 else
9563   if ${lt_cv_aix_libpath_+:} false; then :
9564   $as_echo_n "(cached) " >&6
9565 else
9566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h.  */
9568
9569 int
9570 main ()
9571 {
9572
9573   ;
9574   return 0;
9575 }
9576 _ACEOF
9577 if ac_fn_c_try_link "$LINENO"; then :
9578
9579   lt_aix_libpath_sed='
9580       /Import File Strings/,/^$/ {
9581           /^0/ {
9582               s/^0  *\([^ ]*\) *$/\1/
9583               p
9584           }
9585       }'
9586   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9587   # Check for a 64-bit object if we didn't find anything.
9588   if test -z "$lt_cv_aix_libpath_"; then
9589     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9590   fi
9591 fi
9592 rm -f core conftest.err conftest.$ac_objext \
9593     conftest$ac_exeext conftest.$ac_ext
9594   if test -z "$lt_cv_aix_libpath_"; then
9595     lt_cv_aix_libpath_="/usr/lib:/lib"
9596   fi
9597
9598 fi
9599
9600   aix_libpath=$lt_cv_aix_libpath_
9601 fi
9602
9603         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9604         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"
9605       else
9606         if test "$host_cpu" = ia64; then
9607           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9608           allow_undefined_flag="-z nodefs"
9609           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"
9610         else
9611          # Determine the default libpath from the value encoded in an
9612          # empty executable.
9613          if test "${lt_cv_aix_libpath+set}" = set; then
9614   aix_libpath=$lt_cv_aix_libpath
9615 else
9616   if ${lt_cv_aix_libpath_+:} false; then :
9617   $as_echo_n "(cached) " >&6
9618 else
9619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h.  */
9621
9622 int
9623 main ()
9624 {
9625
9626   ;
9627   return 0;
9628 }
9629 _ACEOF
9630 if ac_fn_c_try_link "$LINENO"; then :
9631
9632   lt_aix_libpath_sed='
9633       /Import File Strings/,/^$/ {
9634           /^0/ {
9635               s/^0  *\([^ ]*\) *$/\1/
9636               p
9637           }
9638       }'
9639   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9640   # Check for a 64-bit object if we didn't find anything.
9641   if test -z "$lt_cv_aix_libpath_"; then
9642     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9643   fi
9644 fi
9645 rm -f core conftest.err conftest.$ac_objext \
9646     conftest$ac_exeext conftest.$ac_ext
9647   if test -z "$lt_cv_aix_libpath_"; then
9648     lt_cv_aix_libpath_="/usr/lib:/lib"
9649   fi
9650
9651 fi
9652
9653   aix_libpath=$lt_cv_aix_libpath_
9654 fi
9655
9656          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9657           # Warning - without using the other run time loading flags,
9658           # -berok will link without error, but may produce a broken library.
9659           no_undefined_flag=' ${wl}-bernotok'
9660           allow_undefined_flag=' ${wl}-berok'
9661           if test "$with_gnu_ld" = yes; then
9662             # We only use this code for GNU lds that support --whole-archive.
9663             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9664           else
9665             # Exported symbols can be pulled into shared objects from archives
9666             whole_archive_flag_spec='$convenience'
9667           fi
9668           archive_cmds_need_lc=yes
9669           # This is similar to how AIX traditionally builds its shared libraries.
9670           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'
9671         fi
9672       fi
9673       ;;
9674
9675     amigaos*)
9676       case $host_cpu in
9677       powerpc)
9678             # see comment about AmigaOS4 .so support
9679             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9680             archive_expsym_cmds=''
9681         ;;
9682       m68k)
9683             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)'
9684             hardcode_libdir_flag_spec='-L$libdir'
9685             hardcode_minus_L=yes
9686         ;;
9687       esac
9688       ;;
9689
9690     bsdi[45]*)
9691       export_dynamic_flag_spec=-rdynamic
9692       ;;
9693
9694     cygwin* | mingw* | pw32* | cegcc*)
9695       # When not using gcc, we currently assume that we are using
9696       # Microsoft Visual C++.
9697       # hardcode_libdir_flag_spec is actually meaningless, as there is
9698       # no search path for DLLs.
9699       case $cc_basename in
9700       cl*)
9701         # Native MSVC
9702         hardcode_libdir_flag_spec=' '
9703         allow_undefined_flag=unsupported
9704         always_export_symbols=yes
9705         file_list_spec='@'
9706         # Tell ltmain to make .lib files, not .a files.
9707         libext=lib
9708         # Tell ltmain to make .dll files, not .so files.
9709         shrext_cmds=".dll"
9710         # FIXME: Setting linknames here is a bad hack.
9711         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9712         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9713             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9714           else
9715             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9716           fi~
9717           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9718           linknames='
9719         # The linker will not automatically build a static lib if we build a DLL.
9720         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9721         enable_shared_with_static_runtimes=yes
9722         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9723         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9724         # Don't use ranlib
9725         old_postinstall_cmds='chmod 644 $oldlib'
9726         postlink_cmds='lt_outputfile="@OUTPUT@"~
9727           lt_tool_outputfile="@TOOL_OUTPUT@"~
9728           case $lt_outputfile in
9729             *.exe|*.EXE) ;;
9730             *)
9731               lt_outputfile="$lt_outputfile.exe"
9732               lt_tool_outputfile="$lt_tool_outputfile.exe"
9733               ;;
9734           esac~
9735           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9736             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9737             $RM "$lt_outputfile.manifest";
9738           fi'
9739         ;;
9740       *)
9741         # Assume MSVC wrapper
9742         hardcode_libdir_flag_spec=' '
9743         allow_undefined_flag=unsupported
9744         # Tell ltmain to make .lib files, not .a files.
9745         libext=lib
9746         # Tell ltmain to make .dll files, not .so files.
9747         shrext_cmds=".dll"
9748         # FIXME: Setting linknames here is a bad hack.
9749         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9750         # The linker will automatically build a .lib file if we build a DLL.
9751         old_archive_from_new_cmds='true'
9752         # FIXME: Should let the user specify the lib program.
9753         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9754         enable_shared_with_static_runtimes=yes
9755         ;;
9756       esac
9757       ;;
9758
9759     darwin* | rhapsody*)
9760
9761
9762   archive_cmds_need_lc=no
9763   hardcode_direct=no
9764   hardcode_automatic=yes
9765   hardcode_shlibpath_var=unsupported
9766   if test "$lt_cv_ld_force_load" = "yes"; then
9767     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\"`'
9768
9769   else
9770     whole_archive_flag_spec=''
9771   fi
9772   link_all_deplibs=yes
9773   allow_undefined_flag="$_lt_dar_allow_undefined"
9774   case $cc_basename in
9775      ifort*) _lt_dar_can_shared=yes ;;
9776      *) _lt_dar_can_shared=$GCC ;;
9777   esac
9778   if test "$_lt_dar_can_shared" = "yes"; then
9779     output_verbose_link_cmd=func_echo_all
9780     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9781     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9782     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}"
9783     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}"
9784
9785   else
9786   ld_shlibs=no
9787   fi
9788
9789       ;;
9790
9791     dgux*)
9792       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9793       hardcode_libdir_flag_spec='-L$libdir'
9794       hardcode_shlibpath_var=no
9795       ;;
9796
9797     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9798     # support.  Future versions do this automatically, but an explicit c++rt0.o
9799     # does not break anything, and helps significantly (at the cost of a little
9800     # extra space).
9801     freebsd2.2*)
9802       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9803       hardcode_libdir_flag_spec='-R$libdir'
9804       hardcode_direct=yes
9805       hardcode_shlibpath_var=no
9806       ;;
9807
9808     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9809     freebsd2.*)
9810       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9811       hardcode_direct=yes
9812       hardcode_minus_L=yes
9813       hardcode_shlibpath_var=no
9814       ;;
9815
9816     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9817     freebsd* | dragonfly*)
9818       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9819       hardcode_libdir_flag_spec='-R$libdir'
9820       hardcode_direct=yes
9821       hardcode_shlibpath_var=no
9822       ;;
9823
9824     hpux9*)
9825       if test "$GCC" = yes; then
9826         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'
9827       else
9828         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'
9829       fi
9830       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9831       hardcode_libdir_separator=:
9832       hardcode_direct=yes
9833
9834       # hardcode_minus_L: Not really in the search PATH,
9835       # but as the default location of the library.
9836       hardcode_minus_L=yes
9837       export_dynamic_flag_spec='${wl}-E'
9838       ;;
9839
9840     hpux10*)
9841       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9842         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9843       else
9844         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9845       fi
9846       if test "$with_gnu_ld" = no; then
9847         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9848         hardcode_libdir_separator=:
9849         hardcode_direct=yes
9850         hardcode_direct_absolute=yes
9851         export_dynamic_flag_spec='${wl}-E'
9852         # hardcode_minus_L: Not really in the search PATH,
9853         # but as the default location of the library.
9854         hardcode_minus_L=yes
9855       fi
9856       ;;
9857
9858     hpux11*)
9859       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9860         case $host_cpu in
9861         hppa*64*)
9862           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9863           ;;
9864         ia64*)
9865           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9866           ;;
9867         *)
9868           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9869           ;;
9870         esac
9871       else
9872         case $host_cpu in
9873         hppa*64*)
9874           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9875           ;;
9876         ia64*)
9877           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9878           ;;
9879         *)
9880
9881           # Older versions of the 11.00 compiler do not understand -b yet
9882           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9883           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9884 $as_echo_n "checking if $CC understands -b... " >&6; }
9885 if ${lt_cv_prog_compiler__b+:} false; then :
9886   $as_echo_n "(cached) " >&6
9887 else
9888   lt_cv_prog_compiler__b=no
9889    save_LDFLAGS="$LDFLAGS"
9890    LDFLAGS="$LDFLAGS -b"
9891    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9892    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9893      # The linker can only warn and ignore the option if not recognized
9894      # So say no if there are warnings
9895      if test -s conftest.err; then
9896        # Append any errors to the config.log.
9897        cat conftest.err 1>&5
9898        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9899        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9900        if diff conftest.exp conftest.er2 >/dev/null; then
9901          lt_cv_prog_compiler__b=yes
9902        fi
9903      else
9904        lt_cv_prog_compiler__b=yes
9905      fi
9906    fi
9907    $RM -r conftest*
9908    LDFLAGS="$save_LDFLAGS"
9909
9910 fi
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9912 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9913
9914 if test x"$lt_cv_prog_compiler__b" = xyes; then
9915     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9916 else
9917     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9918 fi
9919
9920           ;;
9921         esac
9922       fi
9923       if test "$with_gnu_ld" = no; then
9924         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9925         hardcode_libdir_separator=:
9926
9927         case $host_cpu in
9928         hppa*64*|ia64*)
9929           hardcode_direct=no
9930           hardcode_shlibpath_var=no
9931           ;;
9932         *)
9933           hardcode_direct=yes
9934           hardcode_direct_absolute=yes
9935           export_dynamic_flag_spec='${wl}-E'
9936
9937           # hardcode_minus_L: Not really in the search PATH,
9938           # but as the default location of the library.
9939           hardcode_minus_L=yes
9940           ;;
9941         esac
9942       fi
9943       ;;
9944
9945     irix5* | irix6* | nonstopux*)
9946       if test "$GCC" = yes; then
9947         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'
9948         # Try to use the -exported_symbol ld option, if it does not
9949         # work, assume that -exports_file does not work either and
9950         # implicitly export all symbols.
9951         # This should be the same for all languages, so no per-tag cache variable.
9952         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9953 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9954 if ${lt_cv_irix_exported_symbol+:} false; then :
9955   $as_echo_n "(cached) " >&6
9956 else
9957   save_LDFLAGS="$LDFLAGS"
9958            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9959            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h.  */
9961 int foo (void) { return 0; }
9962 _ACEOF
9963 if ac_fn_c_try_link "$LINENO"; then :
9964   lt_cv_irix_exported_symbol=yes
9965 else
9966   lt_cv_irix_exported_symbol=no
9967 fi
9968 rm -f core conftest.err conftest.$ac_objext \
9969     conftest$ac_exeext conftest.$ac_ext
9970            LDFLAGS="$save_LDFLAGS"
9971 fi
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9973 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9974         if test "$lt_cv_irix_exported_symbol" = yes; then
9975           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'
9976         fi
9977       else
9978         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'
9979         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'
9980       fi
9981       archive_cmds_need_lc='no'
9982       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9983       hardcode_libdir_separator=:
9984       inherit_rpath=yes
9985       link_all_deplibs=yes
9986       ;;
9987
9988     netbsd* | netbsdelf*-gnu)
9989       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9990         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9991       else
9992         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9993       fi
9994       hardcode_libdir_flag_spec='-R$libdir'
9995       hardcode_direct=yes
9996       hardcode_shlibpath_var=no
9997       ;;
9998
9999     newsos6)
10000       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10001       hardcode_direct=yes
10002       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10003       hardcode_libdir_separator=:
10004       hardcode_shlibpath_var=no
10005       ;;
10006
10007     *nto* | *qnx*)
10008       ;;
10009
10010     openbsd*)
10011       if test -f /usr/libexec/ld.so; then
10012         hardcode_direct=yes
10013         hardcode_shlibpath_var=no
10014         hardcode_direct_absolute=yes
10015         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10016           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10017           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10018           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10019           export_dynamic_flag_spec='${wl}-E'
10020         else
10021           case $host_os in
10022            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10023              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10024              hardcode_libdir_flag_spec='-R$libdir'
10025              ;;
10026            *)
10027              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10028              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10029              ;;
10030           esac
10031         fi
10032       else
10033         ld_shlibs=no
10034       fi
10035       ;;
10036
10037     os2*)
10038       hardcode_libdir_flag_spec='-L$libdir'
10039       hardcode_minus_L=yes
10040       allow_undefined_flag=unsupported
10041       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'
10042       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10043       ;;
10044
10045     osf3*)
10046       if test "$GCC" = yes; then
10047         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10048         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'
10049       else
10050         allow_undefined_flag=' -expect_unresolved \*'
10051         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'
10052       fi
10053       archive_cmds_need_lc='no'
10054       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10055       hardcode_libdir_separator=:
10056       ;;
10057
10058     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10059       if test "$GCC" = yes; then
10060         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10061         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'
10062         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10063       else
10064         allow_undefined_flag=' -expect_unresolved \*'
10065         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'
10066         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~
10067         $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'
10068
10069         # Both c and cxx compiler support -rpath directly
10070         hardcode_libdir_flag_spec='-rpath $libdir'
10071       fi
10072       archive_cmds_need_lc='no'
10073       hardcode_libdir_separator=:
10074       ;;
10075
10076     solaris*)
10077       no_undefined_flag=' -z defs'
10078       if test "$GCC" = yes; then
10079         wlarc='${wl}'
10080         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10081         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10082           $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'
10083       else
10084         case `$CC -V 2>&1` in
10085         *"Compilers 5.0"*)
10086           wlarc=''
10087           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10089           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10090           ;;
10091         *)
10092           wlarc='${wl}'
10093           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10094           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10095           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10096           ;;
10097         esac
10098       fi
10099       hardcode_libdir_flag_spec='-R$libdir'
10100       hardcode_shlibpath_var=no
10101       case $host_os in
10102       solaris2.[0-5] | solaris2.[0-5].*) ;;
10103       *)
10104         # The compiler driver will combine and reorder linker options,
10105         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10106         # but is careful enough not to reorder.
10107         # Supported since Solaris 2.6 (maybe 2.5.1?)
10108         if test "$GCC" = yes; then
10109           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10110         else
10111           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10112         fi
10113         ;;
10114       esac
10115       link_all_deplibs=yes
10116       ;;
10117
10118     sunos4*)
10119       if test "x$host_vendor" = xsequent; then
10120         # Use $CC to link under sequent, because it throws in some extra .o
10121         # files that make .init and .fini sections work.
10122         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10123       else
10124         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10125       fi
10126       hardcode_libdir_flag_spec='-L$libdir'
10127       hardcode_direct=yes
10128       hardcode_minus_L=yes
10129       hardcode_shlibpath_var=no
10130       ;;
10131
10132     sysv4)
10133       case $host_vendor in
10134         sni)
10135           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136           hardcode_direct=yes # is this really true???
10137         ;;
10138         siemens)
10139           ## LD is ld it makes a PLAMLIB
10140           ## CC just makes a GrossModule.
10141           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10142           reload_cmds='$CC -r -o $output$reload_objs'
10143           hardcode_direct=no
10144         ;;
10145         motorola)
10146           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10148         ;;
10149       esac
10150       runpath_var='LD_RUN_PATH'
10151       hardcode_shlibpath_var=no
10152       ;;
10153
10154     sysv4.3*)
10155       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10156       hardcode_shlibpath_var=no
10157       export_dynamic_flag_spec='-Bexport'
10158       ;;
10159
10160     sysv4*MP*)
10161       if test -d /usr/nec; then
10162         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10163         hardcode_shlibpath_var=no
10164         runpath_var=LD_RUN_PATH
10165         hardcode_runpath_var=yes
10166         ld_shlibs=yes
10167       fi
10168       ;;
10169
10170     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10171       no_undefined_flag='${wl}-z,text'
10172       archive_cmds_need_lc=no
10173       hardcode_shlibpath_var=no
10174       runpath_var='LD_RUN_PATH'
10175
10176       if test "$GCC" = yes; then
10177         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179       else
10180         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182       fi
10183       ;;
10184
10185     sysv5* | sco3.2v5* | sco5v6*)
10186       # Note: We can NOT use -z defs as we might desire, because we do not
10187       # link with -lc, and that would cause any symbols used from libc to
10188       # always be unresolved, which means just about no library would
10189       # ever link correctly.  If we're not using GNU ld we use -z text
10190       # though, which does catch some bad symbols but isn't as heavy-handed
10191       # as -z defs.
10192       no_undefined_flag='${wl}-z,text'
10193       allow_undefined_flag='${wl}-z,nodefs'
10194       archive_cmds_need_lc=no
10195       hardcode_shlibpath_var=no
10196       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10197       hardcode_libdir_separator=':'
10198       link_all_deplibs=yes
10199       export_dynamic_flag_spec='${wl}-Bexport'
10200       runpath_var='LD_RUN_PATH'
10201
10202       if test "$GCC" = yes; then
10203         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10204         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10205       else
10206         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10207         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10208       fi
10209       ;;
10210
10211     uts4*)
10212       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10213       hardcode_libdir_flag_spec='-L$libdir'
10214       hardcode_shlibpath_var=no
10215       ;;
10216
10217     *)
10218       ld_shlibs=no
10219       ;;
10220     esac
10221
10222     if test x$host_vendor = xsni; then
10223       case $host in
10224       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10225         export_dynamic_flag_spec='${wl}-Blargedynsym'
10226         ;;
10227       esac
10228     fi
10229   fi
10230
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10232 $as_echo "$ld_shlibs" >&6; }
10233 test "$ld_shlibs" = no && can_build_shared=no
10234
10235 with_gnu_ld=$with_gnu_ld
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251 #
10252 # Do we need to explicitly link libc?
10253 #
10254 case "x$archive_cmds_need_lc" in
10255 x|xyes)
10256   # Assume -lc should be added
10257   archive_cmds_need_lc=yes
10258
10259   if test "$enable_shared" = yes && test "$GCC" = yes; then
10260     case $archive_cmds in
10261     *'~'*)
10262       # FIXME: we may have to deal with multi-command sequences.
10263       ;;
10264     '$CC '*)
10265       # Test whether the compiler implicitly links with -lc since on some
10266       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10267       # to ld, don't add -lc before -lgcc.
10268       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10269 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10270 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10271   $as_echo_n "(cached) " >&6
10272 else
10273   $RM conftest*
10274         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10275
10276         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10277   (eval $ac_compile) 2>&5
10278   ac_status=$?
10279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10280   test $ac_status = 0; } 2>conftest.err; then
10281           soname=conftest
10282           lib=conftest
10283           libobjs=conftest.$ac_objext
10284           deplibs=
10285           wl=$lt_prog_compiler_wl
10286           pic_flag=$lt_prog_compiler_pic
10287           compiler_flags=-v
10288           linker_flags=-v
10289           verstring=
10290           output_objdir=.
10291           libname=conftest
10292           lt_save_allow_undefined_flag=$allow_undefined_flag
10293           allow_undefined_flag=
10294           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10295   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10296   ac_status=$?
10297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10298   test $ac_status = 0; }
10299           then
10300             lt_cv_archive_cmds_need_lc=no
10301           else
10302             lt_cv_archive_cmds_need_lc=yes
10303           fi
10304           allow_undefined_flag=$lt_save_allow_undefined_flag
10305         else
10306           cat conftest.err 1>&5
10307         fi
10308         $RM conftest*
10309
10310 fi
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10312 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10313       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10314       ;;
10315     esac
10316   fi
10317   ;;
10318 esac
10319
10320
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10472 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10473
10474 if test "$GCC" = yes; then
10475   case $host_os in
10476     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10477     *) lt_awk_arg="/^libraries:/" ;;
10478   esac
10479   case $host_os in
10480     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10481     *) lt_sed_strip_eq="s,=/,/,g" ;;
10482   esac
10483   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10484   case $lt_search_path_spec in
10485   *\;*)
10486     # if the path contains ";" then we assume it to be the separator
10487     # otherwise default to the standard path separator (i.e. ":") - it is
10488     # assumed that no part of a normal pathname contains ";" but that should
10489     # okay in the real world where ";" in dirpaths is itself problematic.
10490     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10491     ;;
10492   *)
10493     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10494     ;;
10495   esac
10496   # Ok, now we have the path, separated by spaces, we can step through it
10497   # and add multilib dir if necessary.
10498   lt_tmp_lt_search_path_spec=
10499   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10500   for lt_sys_path in $lt_search_path_spec; do
10501     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10502       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10503     else
10504       test -d "$lt_sys_path" && \
10505         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10506     fi
10507   done
10508   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10509 BEGIN {RS=" "; FS="/|\n";} {
10510   lt_foo="";
10511   lt_count=0;
10512   for (lt_i = NF; lt_i > 0; lt_i--) {
10513     if ($lt_i != "" && $lt_i != ".") {
10514       if ($lt_i == "..") {
10515         lt_count++;
10516       } else {
10517         if (lt_count == 0) {
10518           lt_foo="/" $lt_i lt_foo;
10519         } else {
10520           lt_count--;
10521         }
10522       }
10523     }
10524   }
10525   if (lt_foo != "") { lt_freq[lt_foo]++; }
10526   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10527 }'`
10528   # AWK program above erroneously prepends '/' to C:/dos/paths
10529   # for these hosts.
10530   case $host_os in
10531     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10532       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10533   esac
10534   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10535 else
10536   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10537 fi
10538 library_names_spec=
10539 libname_spec='lib$name'
10540 soname_spec=
10541 shrext_cmds=".so"
10542 postinstall_cmds=
10543 postuninstall_cmds=
10544 finish_cmds=
10545 finish_eval=
10546 shlibpath_var=
10547 shlibpath_overrides_runpath=unknown
10548 version_type=none
10549 dynamic_linker="$host_os ld.so"
10550 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10551 need_lib_prefix=unknown
10552 hardcode_into_libs=no
10553
10554 # when you set need_version to no, make sure it does not cause -set_version
10555 # flags to be left without arguments
10556 need_version=unknown
10557
10558 case $host_os in
10559 aix3*)
10560   version_type=linux # correct to gnu/linux during the next big refactor
10561   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10562   shlibpath_var=LIBPATH
10563
10564   # AIX 3 has no versioning support, so we append a major version to the name.
10565   soname_spec='${libname}${release}${shared_ext}$major'
10566   ;;
10567
10568 aix[4-9]*)
10569   version_type=linux # correct to gnu/linux during the next big refactor
10570   need_lib_prefix=no
10571   need_version=no
10572   hardcode_into_libs=yes
10573   if test "$host_cpu" = ia64; then
10574     # AIX 5 supports IA64
10575     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10576     shlibpath_var=LD_LIBRARY_PATH
10577   else
10578     # With GCC up to 2.95.x, collect2 would create an import file
10579     # for dependence libraries.  The import file would start with
10580     # the line `#! .'.  This would cause the generated library to
10581     # depend on `.', always an invalid library.  This was fixed in
10582     # development snapshots of GCC prior to 3.0.
10583     case $host_os in
10584       aix4 | aix4.[01] | aix4.[01].*)
10585       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10586            echo ' yes '
10587            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10588         :
10589       else
10590         can_build_shared=no
10591       fi
10592       ;;
10593     esac
10594     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10595     # soname into executable. Probably we can add versioning support to
10596     # collect2, so additional links can be useful in future.
10597     if test "$aix_use_runtimelinking" = yes; then
10598       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10599       # instead of lib<name>.a to let people know that these are not
10600       # typical AIX shared libraries.
10601       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602     else
10603       # We preserve .a as extension for shared libraries through AIX4.2
10604       # and later when we are not doing run time linking.
10605       library_names_spec='${libname}${release}.a $libname.a'
10606       soname_spec='${libname}${release}${shared_ext}$major'
10607     fi
10608     shlibpath_var=LIBPATH
10609   fi
10610   ;;
10611
10612 amigaos*)
10613   case $host_cpu in
10614   powerpc)
10615     # Since July 2007 AmigaOS4 officially supports .so libraries.
10616     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618     ;;
10619   m68k)
10620     library_names_spec='$libname.ixlibrary $libname.a'
10621     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10622     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'
10623     ;;
10624   esac
10625   ;;
10626
10627 beos*)
10628   library_names_spec='${libname}${shared_ext}'
10629   dynamic_linker="$host_os ld.so"
10630   shlibpath_var=LIBRARY_PATH
10631   ;;
10632
10633 bsdi[45]*)
10634   version_type=linux # correct to gnu/linux during the next big refactor
10635   need_version=no
10636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10637   soname_spec='${libname}${release}${shared_ext}$major'
10638   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10639   shlibpath_var=LD_LIBRARY_PATH
10640   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10641   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10642   # the default ld.so.conf also contains /usr/contrib/lib and
10643   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10644   # libtool to hard-code these into programs
10645   ;;
10646
10647 cygwin* | mingw* | pw32* | cegcc*)
10648   version_type=windows
10649   shrext_cmds=".dll"
10650   need_version=no
10651   need_lib_prefix=no
10652
10653   case $GCC,$cc_basename in
10654   yes,*)
10655     # gcc
10656     library_names_spec='$libname.dll.a'
10657     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10658     postinstall_cmds='base_file=`basename \${file}`~
10659       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10660       dldir=$destdir/`dirname \$dlpath`~
10661       test -d \$dldir || mkdir -p \$dldir~
10662       $install_prog $dir/$dlname \$dldir/$dlname~
10663       chmod a+x \$dldir/$dlname~
10664       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10665         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10666       fi'
10667     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10668       dlpath=$dir/\$dldll~
10669        $RM \$dlpath'
10670     shlibpath_overrides_runpath=yes
10671
10672     case $host_os in
10673     cygwin*)
10674       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10675       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10676
10677       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10678       ;;
10679     mingw* | cegcc*)
10680       # MinGW DLLs use traditional 'lib' prefix
10681       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10682       ;;
10683     pw32*)
10684       # pw32 DLLs use 'pw' prefix rather than 'lib'
10685       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10686       ;;
10687     esac
10688     dynamic_linker='Win32 ld.exe'
10689     ;;
10690
10691   *,cl*)
10692     # Native MSVC
10693     libname_spec='$name'
10694     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10695     library_names_spec='${libname}.dll.lib'
10696
10697     case $build_os in
10698     mingw*)
10699       sys_lib_search_path_spec=
10700       lt_save_ifs=$IFS
10701       IFS=';'
10702       for lt_path in $LIB
10703       do
10704         IFS=$lt_save_ifs
10705         # Let DOS variable expansion print the short 8.3 style file name.
10706         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10707         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10708       done
10709       IFS=$lt_save_ifs
10710       # Convert to MSYS style.
10711       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10712       ;;
10713     cygwin*)
10714       # Convert to unix form, then to dos form, then back to unix form
10715       # but this time dos style (no spaces!) so that the unix form looks
10716       # like /cygdrive/c/PROGRA~1:/cygdr...
10717       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10718       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10719       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10720       ;;
10721     *)
10722       sys_lib_search_path_spec="$LIB"
10723       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10724         # It is most probably a Windows format PATH.
10725         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10726       else
10727         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10728       fi
10729       # FIXME: find the short name or the path components, as spaces are
10730       # common. (e.g. "Program Files" -> "PROGRA~1")
10731       ;;
10732     esac
10733
10734     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10735     postinstall_cmds='base_file=`basename \${file}`~
10736       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10737       dldir=$destdir/`dirname \$dlpath`~
10738       test -d \$dldir || mkdir -p \$dldir~
10739       $install_prog $dir/$dlname \$dldir/$dlname'
10740     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10741       dlpath=$dir/\$dldll~
10742        $RM \$dlpath'
10743     shlibpath_overrides_runpath=yes
10744     dynamic_linker='Win32 link.exe'
10745     ;;
10746
10747   *)
10748     # Assume MSVC wrapper
10749     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10750     dynamic_linker='Win32 ld.exe'
10751     ;;
10752   esac
10753   # FIXME: first we should search . and the directory the executable is in
10754   shlibpath_var=PATH
10755   ;;
10756
10757 darwin* | rhapsody*)
10758   dynamic_linker="$host_os dyld"
10759   version_type=darwin
10760   need_lib_prefix=no
10761   need_version=no
10762   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10763   soname_spec='${libname}${release}${major}$shared_ext'
10764   shlibpath_overrides_runpath=yes
10765   shlibpath_var=DYLD_LIBRARY_PATH
10766   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10767
10768   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10769   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10770   ;;
10771
10772 dgux*)
10773   version_type=linux # correct to gnu/linux during the next big refactor
10774   need_lib_prefix=no
10775   need_version=no
10776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10777   soname_spec='${libname}${release}${shared_ext}$major'
10778   shlibpath_var=LD_LIBRARY_PATH
10779   ;;
10780
10781 freebsd* | dragonfly*)
10782   # DragonFly does not have aout.  When/if they implement a new
10783   # versioning mechanism, adjust this.
10784   if test -x /usr/bin/objformat; then
10785     objformat=`/usr/bin/objformat`
10786   else
10787     case $host_os in
10788     freebsd[23].*) objformat=aout ;;
10789     *) objformat=elf ;;
10790     esac
10791   fi
10792   version_type=freebsd-$objformat
10793   case $version_type in
10794     freebsd-elf*)
10795       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10796       need_version=no
10797       need_lib_prefix=no
10798       ;;
10799     freebsd-*)
10800       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10801       need_version=yes
10802       ;;
10803   esac
10804   shlibpath_var=LD_LIBRARY_PATH
10805   case $host_os in
10806   freebsd2.*)
10807     shlibpath_overrides_runpath=yes
10808     ;;
10809   freebsd3.[01]* | freebsdelf3.[01]*)
10810     shlibpath_overrides_runpath=yes
10811     hardcode_into_libs=yes
10812     ;;
10813   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10814   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10815     shlibpath_overrides_runpath=no
10816     hardcode_into_libs=yes
10817     ;;
10818   *) # from 4.6 on, and DragonFly
10819     shlibpath_overrides_runpath=yes
10820     hardcode_into_libs=yes
10821     ;;
10822   esac
10823   ;;
10824
10825 haiku*)
10826   version_type=linux # correct to gnu/linux during the next big refactor
10827   need_lib_prefix=no
10828   need_version=no
10829   dynamic_linker="$host_os runtime_loader"
10830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10831   soname_spec='${libname}${release}${shared_ext}$major'
10832   shlibpath_var=LIBRARY_PATH
10833   shlibpath_overrides_runpath=yes
10834   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10835   hardcode_into_libs=yes
10836   ;;
10837
10838 hpux9* | hpux10* | hpux11*)
10839   # Give a soname corresponding to the major version so that dld.sl refuses to
10840   # link against other versions.
10841   version_type=sunos
10842   need_lib_prefix=no
10843   need_version=no
10844   case $host_cpu in
10845   ia64*)
10846     shrext_cmds='.so'
10847     hardcode_into_libs=yes
10848     dynamic_linker="$host_os dld.so"
10849     shlibpath_var=LD_LIBRARY_PATH
10850     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10851     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10852     soname_spec='${libname}${release}${shared_ext}$major'
10853     if test "X$HPUX_IA64_MODE" = X32; then
10854       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10855     else
10856       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10857     fi
10858     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10859     ;;
10860   hppa*64*)
10861     shrext_cmds='.sl'
10862     hardcode_into_libs=yes
10863     dynamic_linker="$host_os dld.sl"
10864     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10865     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10866     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10867     soname_spec='${libname}${release}${shared_ext}$major'
10868     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10869     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10870     ;;
10871   *)
10872     shrext_cmds='.sl'
10873     dynamic_linker="$host_os dld.sl"
10874     shlibpath_var=SHLIB_PATH
10875     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10876     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10877     soname_spec='${libname}${release}${shared_ext}$major'
10878     ;;
10879   esac
10880   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10881   postinstall_cmds='chmod 555 $lib'
10882   # or fails outright, so override atomically:
10883   install_override_mode=555
10884   ;;
10885
10886 interix[3-9]*)
10887   version_type=linux # correct to gnu/linux during the next big refactor
10888   need_lib_prefix=no
10889   need_version=no
10890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10891   soname_spec='${libname}${release}${shared_ext}$major'
10892   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10893   shlibpath_var=LD_LIBRARY_PATH
10894   shlibpath_overrides_runpath=no
10895   hardcode_into_libs=yes
10896   ;;
10897
10898 irix5* | irix6* | nonstopux*)
10899   case $host_os in
10900     nonstopux*) version_type=nonstopux ;;
10901     *)
10902         if test "$lt_cv_prog_gnu_ld" = yes; then
10903                 version_type=linux # correct to gnu/linux during the next big refactor
10904         else
10905                 version_type=irix
10906         fi ;;
10907   esac
10908   need_lib_prefix=no
10909   need_version=no
10910   soname_spec='${libname}${release}${shared_ext}$major'
10911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10912   case $host_os in
10913   irix5* | nonstopux*)
10914     libsuff= shlibsuff=
10915     ;;
10916   *)
10917     case $LD in # libtool.m4 will add one of these switches to LD
10918     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10919       libsuff= shlibsuff= libmagic=32-bit;;
10920     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10921       libsuff=32 shlibsuff=N32 libmagic=N32;;
10922     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10923       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10924     *) libsuff= shlibsuff= libmagic=never-match;;
10925     esac
10926     ;;
10927   esac
10928   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10929   shlibpath_overrides_runpath=no
10930   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10931   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10932   hardcode_into_libs=yes
10933   ;;
10934
10935 # No shared lib support for Linux oldld, aout, or coff.
10936 linux*oldld* | linux*aout* | linux*coff*)
10937   dynamic_linker=no
10938   ;;
10939
10940 # This must be glibc/ELF.
10941 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10942   version_type=linux # correct to gnu/linux during the next big refactor
10943   need_lib_prefix=no
10944   need_version=no
10945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946   soname_spec='${libname}${release}${shared_ext}$major'
10947   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10948   shlibpath_var=LD_LIBRARY_PATH
10949   shlibpath_overrides_runpath=no
10950
10951   # Some binutils ld are patched to set DT_RUNPATH
10952   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10953   $as_echo_n "(cached) " >&6
10954 else
10955   lt_cv_shlibpath_overrides_runpath=no
10956     save_LDFLAGS=$LDFLAGS
10957     save_libdir=$libdir
10958     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10959          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10960     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h.  */
10962
10963 int
10964 main ()
10965 {
10966
10967   ;
10968   return 0;
10969 }
10970 _ACEOF
10971 if ac_fn_c_try_link "$LINENO"; then :
10972   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10973   lt_cv_shlibpath_overrides_runpath=yes
10974 fi
10975 fi
10976 rm -f core conftest.err conftest.$ac_objext \
10977     conftest$ac_exeext conftest.$ac_ext
10978     LDFLAGS=$save_LDFLAGS
10979     libdir=$save_libdir
10980
10981 fi
10982
10983   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10984
10985   # This implies no fast_install, which is unacceptable.
10986   # Some rework will be needed to allow for fast_install
10987   # before this can be enabled.
10988   hardcode_into_libs=yes
10989
10990   # Append ld.so.conf contents to the search path
10991   if test -f /etc/ld.so.conf; then
10992     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' ' '`
10993     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10994   fi
10995
10996   # We used to test for /lib/ld.so.1 and disable shared libraries on
10997   # powerpc, because MkLinux only supported shared libraries with the
10998   # GNU dynamic linker.  Since this was broken with cross compilers,
10999   # most powerpc-linux boxes support dynamic linking these days and
11000   # people can always --disable-shared, the test was removed, and we
11001   # assume the GNU/Linux dynamic linker is in use.
11002   dynamic_linker='GNU/Linux ld.so'
11003   ;;
11004
11005 netbsdelf*-gnu)
11006   version_type=linux
11007   need_lib_prefix=no
11008   need_version=no
11009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11010   soname_spec='${libname}${release}${shared_ext}$major'
11011   shlibpath_var=LD_LIBRARY_PATH
11012   shlibpath_overrides_runpath=no
11013   hardcode_into_libs=yes
11014   dynamic_linker='NetBSD ld.elf_so'
11015   ;;
11016
11017 netbsd*)
11018   version_type=sunos
11019   need_lib_prefix=no
11020   need_version=no
11021   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11023     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11024     dynamic_linker='NetBSD (a.out) ld.so'
11025   else
11026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11027     soname_spec='${libname}${release}${shared_ext}$major'
11028     dynamic_linker='NetBSD ld.elf_so'
11029   fi
11030   shlibpath_var=LD_LIBRARY_PATH
11031   shlibpath_overrides_runpath=yes
11032   hardcode_into_libs=yes
11033   ;;
11034
11035 newsos6)
11036   version_type=linux # correct to gnu/linux during the next big refactor
11037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11038   shlibpath_var=LD_LIBRARY_PATH
11039   shlibpath_overrides_runpath=yes
11040   ;;
11041
11042 *nto* | *qnx*)
11043   version_type=qnx
11044   need_lib_prefix=no
11045   need_version=no
11046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047   soname_spec='${libname}${release}${shared_ext}$major'
11048   shlibpath_var=LD_LIBRARY_PATH
11049   shlibpath_overrides_runpath=no
11050   hardcode_into_libs=yes
11051   dynamic_linker='ldqnx.so'
11052   ;;
11053
11054 openbsd*)
11055   version_type=sunos
11056   sys_lib_dlsearch_path_spec="/usr/lib"
11057   need_lib_prefix=no
11058   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11059   case $host_os in
11060     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11061     *)                          need_version=no  ;;
11062   esac
11063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11064   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11065   shlibpath_var=LD_LIBRARY_PATH
11066   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11067     case $host_os in
11068       openbsd2.[89] | openbsd2.[89].*)
11069         shlibpath_overrides_runpath=no
11070         ;;
11071       *)
11072         shlibpath_overrides_runpath=yes
11073         ;;
11074       esac
11075   else
11076     shlibpath_overrides_runpath=yes
11077   fi
11078   ;;
11079
11080 os2*)
11081   libname_spec='$name'
11082   shrext_cmds=".dll"
11083   need_lib_prefix=no
11084   library_names_spec='$libname${shared_ext} $libname.a'
11085   dynamic_linker='OS/2 ld.exe'
11086   shlibpath_var=LIBPATH
11087   ;;
11088
11089 osf3* | osf4* | osf5*)
11090   version_type=osf
11091   need_lib_prefix=no
11092   need_version=no
11093   soname_spec='${libname}${release}${shared_ext}$major'
11094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095   shlibpath_var=LD_LIBRARY_PATH
11096   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11097   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11098   ;;
11099
11100 rdos*)
11101   dynamic_linker=no
11102   ;;
11103
11104 solaris*)
11105   version_type=linux # correct to gnu/linux during the next big refactor
11106   need_lib_prefix=no
11107   need_version=no
11108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11109   soname_spec='${libname}${release}${shared_ext}$major'
11110   shlibpath_var=LD_LIBRARY_PATH
11111   shlibpath_overrides_runpath=yes
11112   hardcode_into_libs=yes
11113   # ldd complains unless libraries are executable
11114   postinstall_cmds='chmod +x $lib'
11115   ;;
11116
11117 sunos4*)
11118   version_type=sunos
11119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11120   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11121   shlibpath_var=LD_LIBRARY_PATH
11122   shlibpath_overrides_runpath=yes
11123   if test "$with_gnu_ld" = yes; then
11124     need_lib_prefix=no
11125   fi
11126   need_version=yes
11127   ;;
11128
11129 sysv4 | sysv4.3*)
11130   version_type=linux # correct to gnu/linux during the next big refactor
11131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132   soname_spec='${libname}${release}${shared_ext}$major'
11133   shlibpath_var=LD_LIBRARY_PATH
11134   case $host_vendor in
11135     sni)
11136       shlibpath_overrides_runpath=no
11137       need_lib_prefix=no
11138       runpath_var=LD_RUN_PATH
11139       ;;
11140     siemens)
11141       need_lib_prefix=no
11142       ;;
11143     motorola)
11144       need_lib_prefix=no
11145       need_version=no
11146       shlibpath_overrides_runpath=no
11147       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11148       ;;
11149   esac
11150   ;;
11151
11152 sysv4*MP*)
11153   if test -d /usr/nec ;then
11154     version_type=linux # correct to gnu/linux during the next big refactor
11155     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11156     soname_spec='$libname${shared_ext}.$major'
11157     shlibpath_var=LD_LIBRARY_PATH
11158   fi
11159   ;;
11160
11161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11162   version_type=freebsd-elf
11163   need_lib_prefix=no
11164   need_version=no
11165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11166   soname_spec='${libname}${release}${shared_ext}$major'
11167   shlibpath_var=LD_LIBRARY_PATH
11168   shlibpath_overrides_runpath=yes
11169   hardcode_into_libs=yes
11170   if test "$with_gnu_ld" = yes; then
11171     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11172   else
11173     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11174     case $host_os in
11175       sco3.2v5*)
11176         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11177         ;;
11178     esac
11179   fi
11180   sys_lib_dlsearch_path_spec='/usr/lib'
11181   ;;
11182
11183 tpf*)
11184   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11185   version_type=linux # correct to gnu/linux during the next big refactor
11186   need_lib_prefix=no
11187   need_version=no
11188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189   shlibpath_var=LD_LIBRARY_PATH
11190   shlibpath_overrides_runpath=no
11191   hardcode_into_libs=yes
11192   ;;
11193
11194 uts4*)
11195   version_type=linux # correct to gnu/linux during the next big refactor
11196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197   soname_spec='${libname}${release}${shared_ext}$major'
11198   shlibpath_var=LD_LIBRARY_PATH
11199   ;;
11200
11201 *)
11202   dynamic_linker=no
11203   ;;
11204 esac
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11206 $as_echo "$dynamic_linker" >&6; }
11207 test "$dynamic_linker" = no && can_build_shared=no
11208
11209 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11210 if test "$GCC" = yes; then
11211   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11212 fi
11213
11214 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11215   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11216 fi
11217 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11218   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11219 fi
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11313 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11314 hardcode_action=
11315 if test -n "$hardcode_libdir_flag_spec" ||
11316    test -n "$runpath_var" ||
11317    test "X$hardcode_automatic" = "Xyes" ; then
11318
11319   # We can hardcode non-existent directories.
11320   if test "$hardcode_direct" != no &&
11321      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11322      # have to relink, otherwise we might link with an installed library
11323      # when we should be linking with a yet-to-be-installed one
11324      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11325      test "$hardcode_minus_L" != no; then
11326     # Linking always hardcodes the temporary library directory.
11327     hardcode_action=relink
11328   else
11329     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11330     hardcode_action=immediate
11331   fi
11332 else
11333   # We cannot hardcode anything, or else we can only hardcode existing
11334   # directories.
11335   hardcode_action=unsupported
11336 fi
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11338 $as_echo "$hardcode_action" >&6; }
11339
11340 if test "$hardcode_action" = relink ||
11341    test "$inherit_rpath" = yes; then
11342   # Fast installation is not supported
11343   enable_fast_install=no
11344 elif test "$shlibpath_overrides_runpath" = yes ||
11345      test "$enable_shared" = no; then
11346   # Fast installation is not necessary
11347   enable_fast_install=needless
11348 fi
11349
11350
11351
11352
11353
11354
11355   if test "x$enable_dlopen" != xyes; then
11356   enable_dlopen=unknown
11357   enable_dlopen_self=unknown
11358   enable_dlopen_self_static=unknown
11359 else
11360   lt_cv_dlopen=no
11361   lt_cv_dlopen_libs=
11362
11363   case $host_os in
11364   beos*)
11365     lt_cv_dlopen="load_add_on"
11366     lt_cv_dlopen_libs=
11367     lt_cv_dlopen_self=yes
11368     ;;
11369
11370   mingw* | pw32* | cegcc*)
11371     lt_cv_dlopen="LoadLibrary"
11372     lt_cv_dlopen_libs=
11373     ;;
11374
11375   cygwin*)
11376     lt_cv_dlopen="dlopen"
11377     lt_cv_dlopen_libs=
11378     ;;
11379
11380   darwin*)
11381   # if libdl is installed we need to link against it
11382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11383 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11384 if ${ac_cv_lib_dl_dlopen+:} false; then :
11385   $as_echo_n "(cached) " >&6
11386 else
11387   ac_check_lib_save_LIBS=$LIBS
11388 LIBS="-ldl  $LIBS"
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h.  */
11391
11392 /* Override any GCC internal prototype to avoid an error.
11393    Use char because int might match the return type of a GCC
11394    builtin and then its argument prototype would still apply.  */
11395 #ifdef __cplusplus
11396 extern "C"
11397 #endif
11398 char dlopen ();
11399 int
11400 main ()
11401 {
11402 return dlopen ();
11403   ;
11404   return 0;
11405 }
11406 _ACEOF
11407 if ac_fn_c_try_link "$LINENO"; then :
11408   ac_cv_lib_dl_dlopen=yes
11409 else
11410   ac_cv_lib_dl_dlopen=no
11411 fi
11412 rm -f core conftest.err conftest.$ac_objext \
11413     conftest$ac_exeext conftest.$ac_ext
11414 LIBS=$ac_check_lib_save_LIBS
11415 fi
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11417 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11418 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11419   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11420 else
11421
11422     lt_cv_dlopen="dyld"
11423     lt_cv_dlopen_libs=
11424     lt_cv_dlopen_self=yes
11425
11426 fi
11427
11428     ;;
11429
11430   *)
11431     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11432 if test "x$ac_cv_func_shl_load" = xyes; then :
11433   lt_cv_dlopen="shl_load"
11434 else
11435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11436 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11437 if ${ac_cv_lib_dld_shl_load+:} false; then :
11438   $as_echo_n "(cached) " >&6
11439 else
11440   ac_check_lib_save_LIBS=$LIBS
11441 LIBS="-ldld  $LIBS"
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h.  */
11444
11445 /* Override any GCC internal prototype to avoid an error.
11446    Use char because int might match the return type of a GCC
11447    builtin and then its argument prototype would still apply.  */
11448 #ifdef __cplusplus
11449 extern "C"
11450 #endif
11451 char shl_load ();
11452 int
11453 main ()
11454 {
11455 return shl_load ();
11456   ;
11457   return 0;
11458 }
11459 _ACEOF
11460 if ac_fn_c_try_link "$LINENO"; then :
11461   ac_cv_lib_dld_shl_load=yes
11462 else
11463   ac_cv_lib_dld_shl_load=no
11464 fi
11465 rm -f core conftest.err conftest.$ac_objext \
11466     conftest$ac_exeext conftest.$ac_ext
11467 LIBS=$ac_check_lib_save_LIBS
11468 fi
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11470 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11471 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11472   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11473 else
11474   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11475 if test "x$ac_cv_func_dlopen" = xyes; then :
11476   lt_cv_dlopen="dlopen"
11477 else
11478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11479 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11480 if ${ac_cv_lib_dl_dlopen+:} false; then :
11481   $as_echo_n "(cached) " >&6
11482 else
11483   ac_check_lib_save_LIBS=$LIBS
11484 LIBS="-ldl  $LIBS"
11485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h.  */
11487
11488 /* Override any GCC internal prototype to avoid an error.
11489    Use char because int might match the return type of a GCC
11490    builtin and then its argument prototype would still apply.  */
11491 #ifdef __cplusplus
11492 extern "C"
11493 #endif
11494 char dlopen ();
11495 int
11496 main ()
11497 {
11498 return dlopen ();
11499   ;
11500   return 0;
11501 }
11502 _ACEOF
11503 if ac_fn_c_try_link "$LINENO"; then :
11504   ac_cv_lib_dl_dlopen=yes
11505 else
11506   ac_cv_lib_dl_dlopen=no
11507 fi
11508 rm -f core conftest.err conftest.$ac_objext \
11509     conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_lib_save_LIBS
11511 fi
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11513 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11514 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11515   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11516 else
11517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11518 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11519 if ${ac_cv_lib_svld_dlopen+:} false; then :
11520   $as_echo_n "(cached) " >&6
11521 else
11522   ac_check_lib_save_LIBS=$LIBS
11523 LIBS="-lsvld  $LIBS"
11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h.  */
11526
11527 /* Override any GCC internal prototype to avoid an error.
11528    Use char because int might match the return type of a GCC
11529    builtin and then its argument prototype would still apply.  */
11530 #ifdef __cplusplus
11531 extern "C"
11532 #endif
11533 char dlopen ();
11534 int
11535 main ()
11536 {
11537 return dlopen ();
11538   ;
11539   return 0;
11540 }
11541 _ACEOF
11542 if ac_fn_c_try_link "$LINENO"; then :
11543   ac_cv_lib_svld_dlopen=yes
11544 else
11545   ac_cv_lib_svld_dlopen=no
11546 fi
11547 rm -f core conftest.err conftest.$ac_objext \
11548     conftest$ac_exeext conftest.$ac_ext
11549 LIBS=$ac_check_lib_save_LIBS
11550 fi
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11552 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11553 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11554   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11555 else
11556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11557 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11558 if ${ac_cv_lib_dld_dld_link+:} false; then :
11559   $as_echo_n "(cached) " >&6
11560 else
11561   ac_check_lib_save_LIBS=$LIBS
11562 LIBS="-ldld  $LIBS"
11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564 /* end confdefs.h.  */
11565
11566 /* Override any GCC internal prototype to avoid an error.
11567    Use char because int might match the return type of a GCC
11568    builtin and then its argument prototype would still apply.  */
11569 #ifdef __cplusplus
11570 extern "C"
11571 #endif
11572 char dld_link ();
11573 int
11574 main ()
11575 {
11576 return dld_link ();
11577   ;
11578   return 0;
11579 }
11580 _ACEOF
11581 if ac_fn_c_try_link "$LINENO"; then :
11582   ac_cv_lib_dld_dld_link=yes
11583 else
11584   ac_cv_lib_dld_dld_link=no
11585 fi
11586 rm -f core conftest.err conftest.$ac_objext \
11587     conftest$ac_exeext conftest.$ac_ext
11588 LIBS=$ac_check_lib_save_LIBS
11589 fi
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11591 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11592 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11593   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11594 fi
11595
11596
11597 fi
11598
11599
11600 fi
11601
11602
11603 fi
11604
11605
11606 fi
11607
11608
11609 fi
11610
11611     ;;
11612   esac
11613
11614   if test "x$lt_cv_dlopen" != xno; then
11615     enable_dlopen=yes
11616   else
11617     enable_dlopen=no
11618   fi
11619
11620   case $lt_cv_dlopen in
11621   dlopen)
11622     save_CPPFLAGS="$CPPFLAGS"
11623     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11624
11625     save_LDFLAGS="$LDFLAGS"
11626     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11627
11628     save_LIBS="$LIBS"
11629     LIBS="$lt_cv_dlopen_libs $LIBS"
11630
11631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11632 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11633 if ${lt_cv_dlopen_self+:} false; then :
11634   $as_echo_n "(cached) " >&6
11635 else
11636           if test "$cross_compiling" = yes; then :
11637   lt_cv_dlopen_self=cross
11638 else
11639   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11640   lt_status=$lt_dlunknown
11641   cat > conftest.$ac_ext <<_LT_EOF
11642 #line $LINENO "configure"
11643 #include "confdefs.h"
11644
11645 #if HAVE_DLFCN_H
11646 #include <dlfcn.h>
11647 #endif
11648
11649 #include <stdio.h>
11650
11651 #ifdef RTLD_GLOBAL
11652 #  define LT_DLGLOBAL           RTLD_GLOBAL
11653 #else
11654 #  ifdef DL_GLOBAL
11655 #    define LT_DLGLOBAL         DL_GLOBAL
11656 #  else
11657 #    define LT_DLGLOBAL         0
11658 #  endif
11659 #endif
11660
11661 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11662    find out it does not work in some platform. */
11663 #ifndef LT_DLLAZY_OR_NOW
11664 #  ifdef RTLD_LAZY
11665 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11666 #  else
11667 #    ifdef DL_LAZY
11668 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11669 #    else
11670 #      ifdef RTLD_NOW
11671 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11672 #      else
11673 #        ifdef DL_NOW
11674 #          define LT_DLLAZY_OR_NOW      DL_NOW
11675 #        else
11676 #          define LT_DLLAZY_OR_NOW      0
11677 #        endif
11678 #      endif
11679 #    endif
11680 #  endif
11681 #endif
11682
11683 /* When -fvisbility=hidden is used, assume the code has been annotated
11684    correspondingly for the symbols needed.  */
11685 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11686 int fnord () __attribute__((visibility("default")));
11687 #endif
11688
11689 int fnord () { return 42; }
11690 int main ()
11691 {
11692   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11693   int status = $lt_dlunknown;
11694
11695   if (self)
11696     {
11697       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11698       else
11699         {
11700           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11701           else puts (dlerror ());
11702         }
11703       /* dlclose (self); */
11704     }
11705   else
11706     puts (dlerror ());
11707
11708   return status;
11709 }
11710 _LT_EOF
11711   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11712   (eval $ac_link) 2>&5
11713   ac_status=$?
11714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11715   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11716     (./conftest; exit; ) >&5 2>/dev/null
11717     lt_status=$?
11718     case x$lt_status in
11719       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11720       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11721       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11722     esac
11723   else :
11724     # compilation failed
11725     lt_cv_dlopen_self=no
11726   fi
11727 fi
11728 rm -fr conftest*
11729
11730
11731 fi
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11733 $as_echo "$lt_cv_dlopen_self" >&6; }
11734
11735     if test "x$lt_cv_dlopen_self" = xyes; then
11736       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11737       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11738 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11739 if ${lt_cv_dlopen_self_static+:} false; then :
11740   $as_echo_n "(cached) " >&6
11741 else
11742           if test "$cross_compiling" = yes; then :
11743   lt_cv_dlopen_self_static=cross
11744 else
11745   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11746   lt_status=$lt_dlunknown
11747   cat > conftest.$ac_ext <<_LT_EOF
11748 #line $LINENO "configure"
11749 #include "confdefs.h"
11750
11751 #if HAVE_DLFCN_H
11752 #include <dlfcn.h>
11753 #endif
11754
11755 #include <stdio.h>
11756
11757 #ifdef RTLD_GLOBAL
11758 #  define LT_DLGLOBAL           RTLD_GLOBAL
11759 #else
11760 #  ifdef DL_GLOBAL
11761 #    define LT_DLGLOBAL         DL_GLOBAL
11762 #  else
11763 #    define LT_DLGLOBAL         0
11764 #  endif
11765 #endif
11766
11767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11768    find out it does not work in some platform. */
11769 #ifndef LT_DLLAZY_OR_NOW
11770 #  ifdef RTLD_LAZY
11771 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11772 #  else
11773 #    ifdef DL_LAZY
11774 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11775 #    else
11776 #      ifdef RTLD_NOW
11777 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11778 #      else
11779 #        ifdef DL_NOW
11780 #          define LT_DLLAZY_OR_NOW      DL_NOW
11781 #        else
11782 #          define LT_DLLAZY_OR_NOW      0
11783 #        endif
11784 #      endif
11785 #    endif
11786 #  endif
11787 #endif
11788
11789 /* When -fvisbility=hidden is used, assume the code has been annotated
11790    correspondingly for the symbols needed.  */
11791 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11792 int fnord () __attribute__((visibility("default")));
11793 #endif
11794
11795 int fnord () { return 42; }
11796 int main ()
11797 {
11798   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11799   int status = $lt_dlunknown;
11800
11801   if (self)
11802     {
11803       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11804       else
11805         {
11806           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11807           else puts (dlerror ());
11808         }
11809       /* dlclose (self); */
11810     }
11811   else
11812     puts (dlerror ());
11813
11814   return status;
11815 }
11816 _LT_EOF
11817   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11818   (eval $ac_link) 2>&5
11819   ac_status=$?
11820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11821   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11822     (./conftest; exit; ) >&5 2>/dev/null
11823     lt_status=$?
11824     case x$lt_status in
11825       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11826       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11827       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11828     esac
11829   else :
11830     # compilation failed
11831     lt_cv_dlopen_self_static=no
11832   fi
11833 fi
11834 rm -fr conftest*
11835
11836
11837 fi
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11839 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11840     fi
11841
11842     CPPFLAGS="$save_CPPFLAGS"
11843     LDFLAGS="$save_LDFLAGS"
11844     LIBS="$save_LIBS"
11845     ;;
11846   esac
11847
11848   case $lt_cv_dlopen_self in
11849   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11850   *) enable_dlopen_self=unknown ;;
11851   esac
11852
11853   case $lt_cv_dlopen_self_static in
11854   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11855   *) enable_dlopen_self_static=unknown ;;
11856   esac
11857 fi
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875 striplib=
11876 old_striplib=
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11878 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11879 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11880   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11881   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11883 $as_echo "yes" >&6; }
11884 else
11885 # FIXME - insert some real tests, host_os isn't really good enough
11886   case $host_os in
11887   darwin*)
11888     if test -n "$STRIP" ; then
11889       striplib="$STRIP -x"
11890       old_striplib="$STRIP -S"
11891       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11892 $as_echo "yes" >&6; }
11893     else
11894       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11896     fi
11897     ;;
11898   *)
11899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11901     ;;
11902   esac
11903 fi
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916   # Report which library types will actually be built
11917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11918 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11920 $as_echo "$can_build_shared" >&6; }
11921
11922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11923 $as_echo_n "checking whether to build shared libraries... " >&6; }
11924   test "$can_build_shared" = "no" && enable_shared=no
11925
11926   # On AIX, shared libraries and static libraries use the same namespace, and
11927   # are all built from PIC.
11928   case $host_os in
11929   aix3*)
11930     test "$enable_shared" = yes && enable_static=no
11931     if test -n "$RANLIB"; then
11932       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11933       postinstall_cmds='$RANLIB $lib'
11934     fi
11935     ;;
11936
11937   aix[4-9]*)
11938     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11939       test "$enable_shared" = yes && enable_static=no
11940     fi
11941     ;;
11942   esac
11943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11944 $as_echo "$enable_shared" >&6; }
11945
11946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11947 $as_echo_n "checking whether to build static libraries... " >&6; }
11948   # Make sure either enable_shared or enable_static is yes.
11949   test "$enable_shared" = yes || enable_static=yes
11950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11951 $as_echo "$enable_static" >&6; }
11952
11953
11954
11955
11956 fi
11957 ac_ext=c
11958 ac_cpp='$CPP $CPPFLAGS'
11959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11962
11963 CC="$lt_save_CC"
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979         ac_config_commands="$ac_config_commands libtool"
11980
11981
11982
11983
11984 # Only expand once:
11985
11986
11987
11988
11989
11990   for ac_func in $ac_func_list
11991 do :
11992   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11993 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11994 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11995   cat >>confdefs.h <<_ACEOF
11996 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11997 _ACEOF
11998
11999 fi
12000 done
12001
12002
12003
12004
12005
12006
12007
12008 # Checks for programs.
12009
12010
12011
12012
12013
12014
12015
12016 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12017         if test -n "$ac_tool_prefix"; then
12018   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12019 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12021 $as_echo_n "checking for $ac_word... " >&6; }
12022 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12023   $as_echo_n "(cached) " >&6
12024 else
12025   case $PKG_CONFIG in
12026   [\\/]* | ?:[\\/]*)
12027   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12028   ;;
12029   *)
12030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031 for as_dir in $PATH
12032 do
12033   IFS=$as_save_IFS
12034   test -z "$as_dir" && as_dir=.
12035     for ac_exec_ext in '' $ac_executable_extensions; do
12036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12037     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12039     break 2
12040   fi
12041 done
12042   done
12043 IFS=$as_save_IFS
12044
12045   ;;
12046 esac
12047 fi
12048 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12049 if test -n "$PKG_CONFIG"; then
12050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12051 $as_echo "$PKG_CONFIG" >&6; }
12052 else
12053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12054 $as_echo "no" >&6; }
12055 fi
12056
12057
12058 fi
12059 if test -z "$ac_cv_path_PKG_CONFIG"; then
12060   ac_pt_PKG_CONFIG=$PKG_CONFIG
12061   # Extract the first word of "pkg-config", so it can be a program name with args.
12062 set dummy pkg-config; ac_word=$2
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12064 $as_echo_n "checking for $ac_word... " >&6; }
12065 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12066   $as_echo_n "(cached) " >&6
12067 else
12068   case $ac_pt_PKG_CONFIG in
12069   [\\/]* | ?:[\\/]*)
12070   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12071   ;;
12072   *)
12073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12074 for as_dir in $PATH
12075 do
12076   IFS=$as_save_IFS
12077   test -z "$as_dir" && as_dir=.
12078     for ac_exec_ext in '' $ac_executable_extensions; do
12079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12080     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12082     break 2
12083   fi
12084 done
12085   done
12086 IFS=$as_save_IFS
12087
12088   ;;
12089 esac
12090 fi
12091 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12092 if test -n "$ac_pt_PKG_CONFIG"; then
12093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12094 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12095 else
12096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12097 $as_echo "no" >&6; }
12098 fi
12099
12100   if test "x$ac_pt_PKG_CONFIG" = x; then
12101     PKG_CONFIG=""
12102   else
12103     case $cross_compiling:$ac_tool_warned in
12104 yes:)
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12107 ac_tool_warned=yes ;;
12108 esac
12109     PKG_CONFIG=$ac_pt_PKG_CONFIG
12110   fi
12111 else
12112   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12113 fi
12114
12115 fi
12116 if test -n "$PKG_CONFIG"; then
12117         _pkg_min_version=0.23
12118         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12119 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12120         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12121                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12122 $as_echo "yes" >&6; }
12123         else
12124                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125 $as_echo "no" >&6; }
12126                 PKG_CONFIG=""
12127         fi
12128 fi
12129 ac_ext=c
12130 ac_cpp='$CPP $CPPFLAGS'
12131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12134 if test -n "$ac_tool_prefix"; then
12135   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12136 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12138 $as_echo_n "checking for $ac_word... " >&6; }
12139 if ${ac_cv_prog_CC+:} false; then :
12140   $as_echo_n "(cached) " >&6
12141 else
12142   if test -n "$CC"; then
12143   ac_cv_prog_CC="$CC" # Let the user override the test.
12144 else
12145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146 for as_dir in $PATH
12147 do
12148   IFS=$as_save_IFS
12149   test -z "$as_dir" && as_dir=.
12150     for ac_exec_ext in '' $ac_executable_extensions; do
12151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12152     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12154     break 2
12155   fi
12156 done
12157   done
12158 IFS=$as_save_IFS
12159
12160 fi
12161 fi
12162 CC=$ac_cv_prog_CC
12163 if test -n "$CC"; then
12164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12165 $as_echo "$CC" >&6; }
12166 else
12167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12169 fi
12170
12171
12172 fi
12173 if test -z "$ac_cv_prog_CC"; then
12174   ac_ct_CC=$CC
12175   # Extract the first word of "gcc", so it can be a program name with args.
12176 set dummy gcc; ac_word=$2
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12178 $as_echo_n "checking for $ac_word... " >&6; }
12179 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12180   $as_echo_n "(cached) " >&6
12181 else
12182   if test -n "$ac_ct_CC"; then
12183   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12184 else
12185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12186 for as_dir in $PATH
12187 do
12188   IFS=$as_save_IFS
12189   test -z "$as_dir" && as_dir=.
12190     for ac_exec_ext in '' $ac_executable_extensions; do
12191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12192     ac_cv_prog_ac_ct_CC="gcc"
12193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12194     break 2
12195   fi
12196 done
12197   done
12198 IFS=$as_save_IFS
12199
12200 fi
12201 fi
12202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12203 if test -n "$ac_ct_CC"; then
12204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12205 $as_echo "$ac_ct_CC" >&6; }
12206 else
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208 $as_echo "no" >&6; }
12209 fi
12210
12211   if test "x$ac_ct_CC" = x; then
12212     CC=""
12213   else
12214     case $cross_compiling:$ac_tool_warned in
12215 yes:)
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12218 ac_tool_warned=yes ;;
12219 esac
12220     CC=$ac_ct_CC
12221   fi
12222 else
12223   CC="$ac_cv_prog_CC"
12224 fi
12225
12226 if test -z "$CC"; then
12227           if test -n "$ac_tool_prefix"; then
12228     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12229 set dummy ${ac_tool_prefix}cc; ac_word=$2
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12231 $as_echo_n "checking for $ac_word... " >&6; }
12232 if ${ac_cv_prog_CC+:} false; then :
12233   $as_echo_n "(cached) " >&6
12234 else
12235   if test -n "$CC"; then
12236   ac_cv_prog_CC="$CC" # Let the user override the test.
12237 else
12238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH
12240 do
12241   IFS=$as_save_IFS
12242   test -z "$as_dir" && as_dir=.
12243     for ac_exec_ext in '' $ac_executable_extensions; do
12244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12245     ac_cv_prog_CC="${ac_tool_prefix}cc"
12246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12247     break 2
12248   fi
12249 done
12250   done
12251 IFS=$as_save_IFS
12252
12253 fi
12254 fi
12255 CC=$ac_cv_prog_CC
12256 if test -n "$CC"; then
12257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12258 $as_echo "$CC" >&6; }
12259 else
12260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12262 fi
12263
12264
12265   fi
12266 fi
12267 if test -z "$CC"; then
12268   # Extract the first word of "cc", so it can be a program name with args.
12269 set dummy cc; ac_word=$2
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12271 $as_echo_n "checking for $ac_word... " >&6; }
12272 if ${ac_cv_prog_CC+:} false; then :
12273   $as_echo_n "(cached) " >&6
12274 else
12275   if test -n "$CC"; then
12276   ac_cv_prog_CC="$CC" # Let the user override the test.
12277 else
12278   ac_prog_rejected=no
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12281 do
12282   IFS=$as_save_IFS
12283   test -z "$as_dir" && as_dir=.
12284     for ac_exec_ext in '' $ac_executable_extensions; do
12285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12286     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12287        ac_prog_rejected=yes
12288        continue
12289      fi
12290     ac_cv_prog_CC="cc"
12291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12292     break 2
12293   fi
12294 done
12295   done
12296 IFS=$as_save_IFS
12297
12298 if test $ac_prog_rejected = yes; then
12299   # We found a bogon in the path, so make sure we never use it.
12300   set dummy $ac_cv_prog_CC
12301   shift
12302   if test $# != 0; then
12303     # We chose a different compiler from the bogus one.
12304     # However, it has the same basename, so the bogon will be chosen
12305     # first if we set CC to just the basename; use the full file name.
12306     shift
12307     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12308   fi
12309 fi
12310 fi
12311 fi
12312 CC=$ac_cv_prog_CC
12313 if test -n "$CC"; then
12314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12315 $as_echo "$CC" >&6; }
12316 else
12317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12319 fi
12320
12321
12322 fi
12323 if test -z "$CC"; then
12324   if test -n "$ac_tool_prefix"; then
12325   for ac_prog in cl.exe
12326   do
12327     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12328 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12330 $as_echo_n "checking for $ac_word... " >&6; }
12331 if ${ac_cv_prog_CC+:} false; then :
12332   $as_echo_n "(cached) " >&6
12333 else
12334   if test -n "$CC"; then
12335   ac_cv_prog_CC="$CC" # Let the user override the test.
12336 else
12337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $PATH
12339 do
12340   IFS=$as_save_IFS
12341   test -z "$as_dir" && as_dir=.
12342     for ac_exec_ext in '' $ac_executable_extensions; do
12343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12344     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12346     break 2
12347   fi
12348 done
12349   done
12350 IFS=$as_save_IFS
12351
12352 fi
12353 fi
12354 CC=$ac_cv_prog_CC
12355 if test -n "$CC"; then
12356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12357 $as_echo "$CC" >&6; }
12358 else
12359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360 $as_echo "no" >&6; }
12361 fi
12362
12363
12364     test -n "$CC" && break
12365   done
12366 fi
12367 if test -z "$CC"; then
12368   ac_ct_CC=$CC
12369   for ac_prog in cl.exe
12370 do
12371   # Extract the first word of "$ac_prog", so it can be a program name with args.
12372 set dummy $ac_prog; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374 $as_echo_n "checking for $ac_word... " >&6; }
12375 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12376   $as_echo_n "(cached) " >&6
12377 else
12378   if test -n "$ac_ct_CC"; then
12379   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12380 else
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12383 do
12384   IFS=$as_save_IFS
12385   test -z "$as_dir" && as_dir=.
12386     for ac_exec_ext in '' $ac_executable_extensions; do
12387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12388     ac_cv_prog_ac_ct_CC="$ac_prog"
12389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12390     break 2
12391   fi
12392 done
12393   done
12394 IFS=$as_save_IFS
12395
12396 fi
12397 fi
12398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12399 if test -n "$ac_ct_CC"; then
12400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12401 $as_echo "$ac_ct_CC" >&6; }
12402 else
12403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12405 fi
12406
12407
12408   test -n "$ac_ct_CC" && break
12409 done
12410
12411   if test "x$ac_ct_CC" = x; then
12412     CC=""
12413   else
12414     case $cross_compiling:$ac_tool_warned in
12415 yes:)
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12418 ac_tool_warned=yes ;;
12419 esac
12420     CC=$ac_ct_CC
12421   fi
12422 fi
12423
12424 fi
12425
12426
12427 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12429 as_fn_error $? "no acceptable C compiler found in \$PATH
12430 See \`config.log' for more details" "$LINENO" 5; }
12431
12432 # Provide some information about the compiler.
12433 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12434 set X $ac_compile
12435 ac_compiler=$2
12436 for ac_option in --version -v -V -qversion; do
12437   { { ac_try="$ac_compiler $ac_option >&5"
12438 case "(($ac_try" in
12439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440   *) ac_try_echo=$ac_try;;
12441 esac
12442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12443 $as_echo "$ac_try_echo"; } >&5
12444   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12445   ac_status=$?
12446   if test -s conftest.err; then
12447     sed '10a\
12448 ... rest of stderr output deleted ...
12449          10q' conftest.err >conftest.er1
12450     cat conftest.er1 >&5
12451   fi
12452   rm -f conftest.er1 conftest.err
12453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12454   test $ac_status = 0; }
12455 done
12456
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12458 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12459 if ${ac_cv_c_compiler_gnu+:} false; then :
12460   $as_echo_n "(cached) " >&6
12461 else
12462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h.  */
12464
12465 int
12466 main ()
12467 {
12468 #ifndef __GNUC__
12469        choke me
12470 #endif
12471
12472   ;
12473   return 0;
12474 }
12475 _ACEOF
12476 if ac_fn_c_try_compile "$LINENO"; then :
12477   ac_compiler_gnu=yes
12478 else
12479   ac_compiler_gnu=no
12480 fi
12481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12482 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12483
12484 fi
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12486 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12487 if test $ac_compiler_gnu = yes; then
12488   GCC=yes
12489 else
12490   GCC=
12491 fi
12492 ac_test_CFLAGS=${CFLAGS+set}
12493 ac_save_CFLAGS=$CFLAGS
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12495 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12496 if ${ac_cv_prog_cc_g+:} false; then :
12497   $as_echo_n "(cached) " >&6
12498 else
12499   ac_save_c_werror_flag=$ac_c_werror_flag
12500    ac_c_werror_flag=yes
12501    ac_cv_prog_cc_g=no
12502    CFLAGS="-g"
12503    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h.  */
12505
12506 int
12507 main ()
12508 {
12509
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 if ac_fn_c_try_compile "$LINENO"; then :
12515   ac_cv_prog_cc_g=yes
12516 else
12517   CFLAGS=""
12518       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h.  */
12520
12521 int
12522 main ()
12523 {
12524
12525   ;
12526   return 0;
12527 }
12528 _ACEOF
12529 if ac_fn_c_try_compile "$LINENO"; then :
12530
12531 else
12532   ac_c_werror_flag=$ac_save_c_werror_flag
12533          CFLAGS="-g"
12534          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535 /* end confdefs.h.  */
12536
12537 int
12538 main ()
12539 {
12540
12541   ;
12542   return 0;
12543 }
12544 _ACEOF
12545 if ac_fn_c_try_compile "$LINENO"; then :
12546   ac_cv_prog_cc_g=yes
12547 fi
12548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
12554 fi
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12556 $as_echo "$ac_cv_prog_cc_g" >&6; }
12557 if test "$ac_test_CFLAGS" = set; then
12558   CFLAGS=$ac_save_CFLAGS
12559 elif test $ac_cv_prog_cc_g = yes; then
12560   if test "$GCC" = yes; then
12561     CFLAGS="-g -O2"
12562   else
12563     CFLAGS="-g"
12564   fi
12565 else
12566   if test "$GCC" = yes; then
12567     CFLAGS="-O2"
12568   else
12569     CFLAGS=
12570   fi
12571 fi
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12573 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12574 if ${ac_cv_prog_cc_c89+:} false; then :
12575   $as_echo_n "(cached) " >&6
12576 else
12577   ac_cv_prog_cc_c89=no
12578 ac_save_CC=$CC
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h.  */
12581 #include <stdarg.h>
12582 #include <stdio.h>
12583 struct stat;
12584 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12585 struct buf { int x; };
12586 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12587 static char *e (p, i)
12588      char **p;
12589      int i;
12590 {
12591   return p[i];
12592 }
12593 static char *f (char * (*g) (char **, int), char **p, ...)
12594 {
12595   char *s;
12596   va_list v;
12597   va_start (v,p);
12598   s = g (p, va_arg (v,int));
12599   va_end (v);
12600   return s;
12601 }
12602
12603 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12604    function prototypes and stuff, but not '\xHH' hex character constants.
12605    These don't provoke an error unfortunately, instead are silently treated
12606    as 'x'.  The following induces an error, until -std is added to get
12607    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12608    array size at least.  It's necessary to write '\x00'==0 to get something
12609    that's true only with -std.  */
12610 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12611
12612 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12613    inside strings and character constants.  */
12614 #define FOO(x) 'x'
12615 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12616
12617 int test (int i, double x);
12618 struct s1 {int (*f) (int a);};
12619 struct s2 {int (*f) (double a);};
12620 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12621 int argc;
12622 char **argv;
12623 int
12624 main ()
12625 {
12626 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12627   ;
12628   return 0;
12629 }
12630 _ACEOF
12631 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12632         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12633 do
12634   CC="$ac_save_CC $ac_arg"
12635   if ac_fn_c_try_compile "$LINENO"; then :
12636   ac_cv_prog_cc_c89=$ac_arg
12637 fi
12638 rm -f core conftest.err conftest.$ac_objext
12639   test "x$ac_cv_prog_cc_c89" != "xno" && break
12640 done
12641 rm -f conftest.$ac_ext
12642 CC=$ac_save_CC
12643
12644 fi
12645 # AC_CACHE_VAL
12646 case "x$ac_cv_prog_cc_c89" in
12647   x)
12648     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12649 $as_echo "none needed" >&6; } ;;
12650   xno)
12651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12652 $as_echo "unsupported" >&6; } ;;
12653   *)
12654     CC="$CC $ac_cv_prog_cc_c89"
12655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12656 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12657 esac
12658 if test "x$ac_cv_prog_cc_c89" != xno; then :
12659
12660 fi
12661
12662 ac_ext=c
12663 ac_cpp='$CPP $CPPFLAGS'
12664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12667
12668 ac_ext=c
12669 ac_cpp='$CPP $CPPFLAGS'
12670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12674 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12675 if ${am_cv_prog_cc_c_o+:} false; then :
12676   $as_echo_n "(cached) " >&6
12677 else
12678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h.  */
12680
12681 int
12682 main ()
12683 {
12684
12685   ;
12686   return 0;
12687 }
12688 _ACEOF
12689   # Make sure it works both with $CC and with simple cc.
12690   # Following AC_PROG_CC_C_O, we do the test twice because some
12691   # compilers refuse to overwrite an existing .o file with -o,
12692   # though they will create one.
12693   am_cv_prog_cc_c_o=yes
12694   for am_i in 1 2; do
12695     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12696    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12697    ac_status=$?
12698    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699    (exit $ac_status); } \
12700          && test -f conftest2.$ac_objext; then
12701       : OK
12702     else
12703       am_cv_prog_cc_c_o=no
12704       break
12705     fi
12706   done
12707   rm -f core conftest*
12708   unset am_i
12709 fi
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12711 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12712 if test "$am_cv_prog_cc_c_o" != yes; then
12713    # Losing compiler, so override with the script.
12714    # FIXME: It is wrong to rewrite CC.
12715    # But if we don't then we get into trouble of one sort or another.
12716    # A longer-term fix would be to have automake use am__CC in this case,
12717    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12718    CC="$am_aux_dir/compile $CC"
12719 fi
12720 ac_ext=c
12721 ac_cpp='$CPP $CPPFLAGS'
12722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12725
12726
12727 depcc="$CC"   am_compiler_list=
12728
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12730 $as_echo_n "checking dependency style of $depcc... " >&6; }
12731 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12732   $as_echo_n "(cached) " >&6
12733 else
12734   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12735   # We make a subdir and do the tests there.  Otherwise we can end up
12736   # making bogus files that we don't know about and never remove.  For
12737   # instance it was reported that on HP-UX the gcc test will end up
12738   # making a dummy file named 'D' -- because '-MD' means "put the output
12739   # in D".
12740   rm -rf conftest.dir
12741   mkdir conftest.dir
12742   # Copy depcomp to subdir because otherwise we won't find it if we're
12743   # using a relative directory.
12744   cp "$am_depcomp" conftest.dir
12745   cd conftest.dir
12746   # We will build objects and dependencies in a subdirectory because
12747   # it helps to detect inapplicable dependency modes.  For instance
12748   # both Tru64's cc and ICC support -MD to output dependencies as a
12749   # side effect of compilation, but ICC will put the dependencies in
12750   # the current directory while Tru64 will put them in the object
12751   # directory.
12752   mkdir sub
12753
12754   am_cv_CC_dependencies_compiler_type=none
12755   if test "$am_compiler_list" = ""; then
12756      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12757   fi
12758   am__universal=false
12759   case " $depcc " in #(
12760      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12761      esac
12762
12763   for depmode in $am_compiler_list; do
12764     # Setup a source with many dependencies, because some compilers
12765     # like to wrap large dependency lists on column 80 (with \), and
12766     # we should not choose a depcomp mode which is confused by this.
12767     #
12768     # We need to recreate these files for each test, as the compiler may
12769     # overwrite some of them when testing with obscure command lines.
12770     # This happens at least with the AIX C compiler.
12771     : > sub/conftest.c
12772     for i in 1 2 3 4 5 6; do
12773       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12774       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12775       # Solaris 10 /bin/sh.
12776       echo '/* dummy */' > sub/conftst$i.h
12777     done
12778     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12779
12780     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12781     # mode.  It turns out that the SunPro C++ compiler does not properly
12782     # handle '-M -o', and we need to detect this.  Also, some Intel
12783     # versions had trouble with output in subdirs.
12784     am__obj=sub/conftest.${OBJEXT-o}
12785     am__minus_obj="-o $am__obj"
12786     case $depmode in
12787     gcc)
12788       # This depmode causes a compiler race in universal mode.
12789       test "$am__universal" = false || continue
12790       ;;
12791     nosideeffect)
12792       # After this tag, mechanisms are not by side-effect, so they'll
12793       # only be used when explicitly requested.
12794       if test "x$enable_dependency_tracking" = xyes; then
12795         continue
12796       else
12797         break
12798       fi
12799       ;;
12800     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12801       # This compiler won't grok '-c -o', but also, the minuso test has
12802       # not run yet.  These depmodes are late enough in the game, and
12803       # so weak that their functioning should not be impacted.
12804       am__obj=conftest.${OBJEXT-o}
12805       am__minus_obj=
12806       ;;
12807     none) break ;;
12808     esac
12809     if depmode=$depmode \
12810        source=sub/conftest.c object=$am__obj \
12811        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12812        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12813          >/dev/null 2>conftest.err &&
12814        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12815        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12816        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12817        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12818       # icc doesn't choke on unknown options, it will just issue warnings
12819       # or remarks (even with -Werror).  So we grep stderr for any message
12820       # that says an option was ignored or not supported.
12821       # When given -MP, icc 7.0 and 7.1 complain thusly:
12822       #   icc: Command line warning: ignoring option '-M'; no argument required
12823       # The diagnosis changed in icc 8.0:
12824       #   icc: Command line remark: option '-MP' not supported
12825       if (grep 'ignoring option' conftest.err ||
12826           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12827         am_cv_CC_dependencies_compiler_type=$depmode
12828         break
12829       fi
12830     fi
12831   done
12832
12833   cd ..
12834   rm -rf conftest.dir
12835 else
12836   am_cv_CC_dependencies_compiler_type=none
12837 fi
12838
12839 fi
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12841 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12842 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12843
12844  if
12845   test "x$enable_dependency_tracking" != xno \
12846   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12847   am__fastdepCC_TRUE=
12848   am__fastdepCC_FALSE='#'
12849 else
12850   am__fastdepCC_TRUE='#'
12851   am__fastdepCC_FALSE=
12852 fi
12853
12854
12855
12856 # Extract the first word of "valac", so it can be a program name with args.
12857 set dummy valac; ac_word=$2
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12859 $as_echo_n "checking for $ac_word... " >&6; }
12860 if ${ac_cv_path_VALAC+:} false; then :
12861   $as_echo_n "(cached) " >&6
12862 else
12863   case $VALAC in
12864   [\\/]* | ?:[\\/]*)
12865   ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
12866   ;;
12867   *)
12868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12869 for as_dir in $PATH
12870 do
12871   IFS=$as_save_IFS
12872   test -z "$as_dir" && as_dir=.
12873     for ac_exec_ext in '' $ac_executable_extensions; do
12874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12875     ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
12876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12877     break 2
12878   fi
12879 done
12880   done
12881 IFS=$as_save_IFS
12882
12883   test -z "$ac_cv_path_VALAC" && ac_cv_path_VALAC="valac"
12884   ;;
12885 esac
12886 fi
12887 VALAC=$ac_cv_path_VALAC
12888 if test -n "$VALAC"; then
12889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
12890 $as_echo "$VALAC" >&6; }
12891 else
12892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12894 fi
12895
12896
12897    if test "$VALAC" != valac && test -n "0.9"; then :
12898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $VALAC is at least version 0.9" >&5
12899 $as_echo_n "checking whether $VALAC is at least version 0.9... " >&6; }
12900        am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
12901        as_arg_v1=0.9
12902 as_arg_v2="$am__vala_version"
12903 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12904 case $? in #(
12905   1) :
12906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12907 $as_echo "yes" >&6; } ;; #(
12908   0) :
12909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12910 $as_echo "yes" >&6; } ;; #(
12911   2) :
12912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12913 $as_echo "no" >&6; }
12914           VALAC=valac ;; #(
12915   *) :
12916      ;;
12917 esac
12918 fi
12919     if test "$VALAC" = valac; then
12920       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no proper vala compiler found" >&5
12921 $as_echo "$as_me: WARNING: no proper vala compiler found" >&2;}
12922          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: you will not be able to compile vala source files" >&5
12923 $as_echo "$as_me: WARNING: you will not be able to compile vala source files" >&2;}
12924     else
12925       :
12926     fi
12927
12928 # Platform checks
12929
12930
12931 case "$host" in
12932   *-*-mingw*)
12933     win32=yes
12934     macos=no
12935     linux=no
12936     SERVER_IPC_MODULE="msrpc-glib2-1.0"
12937     CLIENT_IPC_MODULE="msrpc-mingw-1.0"
12938
12939 pkg_failed=no
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12941 $as_echo_n "checking for GTK... " >&6; }
12942
12943 if test -n "$GTK_CFLAGS"; then
12944     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12945  elif test -n "$PKG_CONFIG"; then
12946     if test -n "$PKG_CONFIG" && \
12947     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12948   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12949   ac_status=$?
12950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12951   test $ac_status = 0; }; then
12952   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
12953                       test "x$?" != "x0" && pkg_failed=yes
12954 else
12955   pkg_failed=yes
12956 fi
12957  else
12958     pkg_failed=untried
12959 fi
12960 if test -n "$GTK_LIBS"; then
12961     pkg_cv_GTK_LIBS="$GTK_LIBS"
12962  elif test -n "$PKG_CONFIG"; then
12963     if test -n "$PKG_CONFIG" && \
12964     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12965   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12966   ac_status=$?
12967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12968   test $ac_status = 0; }; then
12969   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
12970                       test "x$?" != "x0" && pkg_failed=yes
12971 else
12972   pkg_failed=yes
12973 fi
12974  else
12975     pkg_failed=untried
12976 fi
12977
12978
12979
12980 if test $pkg_failed = yes; then
12981         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982 $as_echo "no" >&6; }
12983
12984 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12985         _pkg_short_errors_supported=yes
12986 else
12987         _pkg_short_errors_supported=no
12988 fi
12989         if test $_pkg_short_errors_supported = yes; then
12990                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12991         else
12992                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12993         fi
12994         # Put the nasty error message in config.log where it belongs
12995         echo "$GTK_PKG_ERRORS" >&5
12996
12997         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
12998
12999 $GTK_PKG_ERRORS
13000
13001 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13002 installed software in a non-standard prefix.
13003
13004 Alternatively, you may set the environment variables GTK_CFLAGS
13005 and GTK_LIBS to avoid the need to call pkg-config.
13006 See the pkg-config man page for more details." "$LINENO" 5
13007 elif test $pkg_failed = untried; then
13008         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13009 $as_echo "no" >&6; }
13010         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13012 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13013 is in your PATH or set the PKG_CONFIG environment variable to the full
13014 path to pkg-config.
13015
13016 Alternatively, you may set the environment variables GTK_CFLAGS
13017 and GTK_LIBS to avoid the need to call pkg-config.
13018 See the pkg-config man page for more details.
13019
13020 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13021 See \`config.log' for more details" "$LINENO" 5; }
13022 else
13023         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13024         GTK_LIBS=$pkg_cv_GTK_LIBS
13025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13026 $as_echo "yes" >&6; }
13027         GTK_VERSION="gtk+-2.0"
13028
13029 fi
13030     ;;
13031
13032   *darwin*)
13033     win32=no
13034     macos=yes
13035     linux=no
13036
13037     # We require dbus-glib for the client library even if we are using GDBus
13038     # in the server. The reason we can't always use dbus-glib in the server is
13039     # because Vala drops support for it, but as it ships with DBus there is very
13040     # little danger of it being dropped by distros any time soon.
13041     CLIENT_IPC_MODULE="dbus-glib-1"
13042         SERVER_IPC_MODULE="dbus-glib-1"
13043
13044
13045 pkg_failed=no
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAC" >&5
13047 $as_echo_n "checking for MAC... " >&6; }
13048
13049 if test -n "$MAC_CFLAGS"; then
13050     pkg_cv_MAC_CFLAGS="$MAC_CFLAGS"
13051  elif test -n "$PKG_CONFIG"; then
13052     if test -n "$PKG_CONFIG" && \
13053     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
13054         \""; } >&5
13055   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
13056         ") 2>&5
13057   ac_status=$?
13058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13059   test $ac_status = 0; }; then
13060   pkg_cv_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration >= 1.0.1
13061         " 2>/dev/null`
13062                       test "x$?" != "x0" && pkg_failed=yes
13063 else
13064   pkg_failed=yes
13065 fi
13066  else
13067     pkg_failed=untried
13068 fi
13069 if test -n "$MAC_LIBS"; then
13070     pkg_cv_MAC_LIBS="$MAC_LIBS"
13071  elif test -n "$PKG_CONFIG"; then
13072     if test -n "$PKG_CONFIG" && \
13073     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
13074         \""; } >&5
13075   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
13076         ") 2>&5
13077   ac_status=$?
13078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13079   test $ac_status = 0; }; then
13080   pkg_cv_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration >= 1.0.1
13081         " 2>/dev/null`
13082                       test "x$?" != "x0" && pkg_failed=yes
13083 else
13084   pkg_failed=yes
13085 fi
13086  else
13087     pkg_failed=untried
13088 fi
13089
13090
13091
13092 if test $pkg_failed = yes; then
13093         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094 $as_echo "no" >&6; }
13095
13096 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13097         _pkg_short_errors_supported=yes
13098 else
13099         _pkg_short_errors_supported=no
13100 fi
13101         if test $_pkg_short_errors_supported = yes; then
13102                 MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
13103         " 2>&1`
13104         else
13105                 MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
13106         " 2>&1`
13107         fi
13108         # Put the nasty error message in config.log where it belongs
13109         echo "$MAC_PKG_ERRORS" >&5
13110
13111         as_fn_error $? "Package requirements (gtk-mac-integration >= 1.0.1
13112         ) were not met:
13113
13114 $MAC_PKG_ERRORS
13115
13116 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13117 installed software in a non-standard prefix.
13118
13119 Alternatively, you may set the environment variables MAC_CFLAGS
13120 and MAC_LIBS to avoid the need to call pkg-config.
13121 See the pkg-config man page for more details." "$LINENO" 5
13122 elif test $pkg_failed = untried; then
13123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124 $as_echo "no" >&6; }
13125         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13127 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13128 is in your PATH or set the PKG_CONFIG environment variable to the full
13129 path to pkg-config.
13130
13131 Alternatively, you may set the environment variables MAC_CFLAGS
13132 and MAC_LIBS to avoid the need to call pkg-config.
13133 See the pkg-config man page for more details.
13134
13135 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13136 See \`config.log' for more details" "$LINENO" 5; }
13137 else
13138         MAC_CFLAGS=$pkg_cv_MAC_CFLAGS
13139         MAC_LIBS=$pkg_cv_MAC_LIBS
13140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13141 $as_echo "yes" >&6; }
13142
13143 fi
13144
13145 # TODO: Move to GTK+-3
13146 #            [gtk+-3.0 >= 2.0],
13147 #            [GTK_VERSION="gtk+-3.0"]
13148
13149 pkg_failed=no
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
13151 $as_echo_n "checking for GTK... " >&6; }
13152
13153 if test -n "$GTK_CFLAGS"; then
13154     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13155  elif test -n "$PKG_CONFIG"; then
13156     if test -n "$PKG_CONFIG" && \
13157     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13158   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13159   ac_status=$?
13160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13161   test $ac_status = 0; }; then
13162   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
13163                       test "x$?" != "x0" && pkg_failed=yes
13164 else
13165   pkg_failed=yes
13166 fi
13167  else
13168     pkg_failed=untried
13169 fi
13170 if test -n "$GTK_LIBS"; then
13171     pkg_cv_GTK_LIBS="$GTK_LIBS"
13172  elif test -n "$PKG_CONFIG"; then
13173     if test -n "$PKG_CONFIG" && \
13174     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13175   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13176   ac_status=$?
13177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13178   test $ac_status = 0; }; then
13179   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
13180                       test "x$?" != "x0" && pkg_failed=yes
13181 else
13182   pkg_failed=yes
13183 fi
13184  else
13185     pkg_failed=untried
13186 fi
13187
13188
13189
13190 if test $pkg_failed = yes; then
13191         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192 $as_echo "no" >&6; }
13193
13194 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13195         _pkg_short_errors_supported=yes
13196 else
13197         _pkg_short_errors_supported=no
13198 fi
13199         if test $_pkg_short_errors_supported = yes; then
13200                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13201         else
13202                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13203         fi
13204         # Put the nasty error message in config.log where it belongs
13205         echo "$GTK_PKG_ERRORS" >&5
13206
13207         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13208
13209 $GTK_PKG_ERRORS
13210
13211 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13212 installed software in a non-standard prefix.
13213
13214 Alternatively, you may set the environment variables GTK_CFLAGS
13215 and GTK_LIBS to avoid the need to call pkg-config.
13216 See the pkg-config man page for more details." "$LINENO" 5
13217 elif test $pkg_failed = untried; then
13218         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219 $as_echo "no" >&6; }
13220         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13222 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13223 is in your PATH or set the PKG_CONFIG environment variable to the full
13224 path to pkg-config.
13225
13226 Alternatively, you may set the environment variables GTK_CFLAGS
13227 and GTK_LIBS to avoid the need to call pkg-config.
13228 See the pkg-config man page for more details.
13229
13230 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13231 See \`config.log' for more details" "$LINENO" 5; }
13232 else
13233         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13234         GTK_LIBS=$pkg_cv_GTK_LIBS
13235         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13236 $as_echo "yes" >&6; }
13237         GTK_VERSION="gtk+-2.0"
13238
13239 fi
13240
13241     ;;
13242   *)
13243     macos=no
13244     win32=no
13245     linux=yes
13246
13247     # We require dbus-glib for the client library even if we are using GDBus
13248     # in the server. The reason we can't always use dbus-glib in the server is
13249     # because Vala drops support for it, but as it ships with DBus there is very
13250     # little danger of it being dropped by distros any time soon.
13251     CLIENT_IPC_MODULE="dbus-glib-1"
13252
13253 pkg_failed=no
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDBUS" >&5
13255 $as_echo_n "checking for GDBUS... " >&6; }
13256
13257 if test -n "$GDBUS_CFLAGS"; then
13258     pkg_cv_GDBUS_CFLAGS="$GDBUS_CFLAGS"
13259  elif test -n "$PKG_CONFIG"; then
13260     if test -n "$PKG_CONFIG" && \
13261     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
13262   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
13263   ac_status=$?
13264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13265   test $ac_status = 0; }; then
13266   pkg_cv_GDBUS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
13267                       test "x$?" != "x0" && pkg_failed=yes
13268 else
13269   pkg_failed=yes
13270 fi
13271  else
13272     pkg_failed=untried
13273 fi
13274 if test -n "$GDBUS_LIBS"; then
13275     pkg_cv_GDBUS_LIBS="$GDBUS_LIBS"
13276  elif test -n "$PKG_CONFIG"; then
13277     if test -n "$PKG_CONFIG" && \
13278     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
13279   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
13280   ac_status=$?
13281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13282   test $ac_status = 0; }; then
13283   pkg_cv_GDBUS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
13284                       test "x$?" != "x0" && pkg_failed=yes
13285 else
13286   pkg_failed=yes
13287 fi
13288  else
13289     pkg_failed=untried
13290 fi
13291
13292
13293
13294 if test $pkg_failed = yes; then
13295         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13297
13298 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13299         _pkg_short_errors_supported=yes
13300 else
13301         _pkg_short_errors_supported=no
13302 fi
13303         if test $_pkg_short_errors_supported = yes; then
13304                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
13305         else
13306                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
13307         fi
13308         # Put the nasty error message in config.log where it belongs
13309         echo "$GDBUS_PKG_ERRORS" >&5
13310
13311         SERVER_IPC_MODULE="dbus-glib-1"
13312
13313 elif test $pkg_failed = untried; then
13314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13316         SERVER_IPC_MODULE="dbus-glib-1"
13317
13318 else
13319         GDBUS_CFLAGS=$pkg_cv_GDBUS_CFLAGS
13320         GDBUS_LIBS=$pkg_cv_GDBUS_LIBS
13321         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13322 $as_echo "yes" >&6; }
13323         SERVER_IPC_MODULE="gio-2.0"
13324 fi
13325 # TODO: Move to GTK+-3
13326 #            [gtk+-3.0 >= 2.0],
13327 #            [GTK_VERSION="gtk+-3.0"]
13328
13329 pkg_failed=no
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
13331 $as_echo_n "checking for GTK... " >&6; }
13332
13333 if test -n "$GTK_CFLAGS"; then
13334     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13335  elif test -n "$PKG_CONFIG"; then
13336     if test -n "$PKG_CONFIG" && \
13337     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13338   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13339   ac_status=$?
13340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13341   test $ac_status = 0; }; then
13342   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
13343                       test "x$?" != "x0" && pkg_failed=yes
13344 else
13345   pkg_failed=yes
13346 fi
13347  else
13348     pkg_failed=untried
13349 fi
13350 if test -n "$GTK_LIBS"; then
13351     pkg_cv_GTK_LIBS="$GTK_LIBS"
13352  elif test -n "$PKG_CONFIG"; then
13353     if test -n "$PKG_CONFIG" && \
13354     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13355   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13356   ac_status=$?
13357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13358   test $ac_status = 0; }; then
13359   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
13360                       test "x$?" != "x0" && pkg_failed=yes
13361 else
13362   pkg_failed=yes
13363 fi
13364  else
13365     pkg_failed=untried
13366 fi
13367
13368
13369
13370 if test $pkg_failed = yes; then
13371         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372 $as_echo "no" >&6; }
13373
13374 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13375         _pkg_short_errors_supported=yes
13376 else
13377         _pkg_short_errors_supported=no
13378 fi
13379         if test $_pkg_short_errors_supported = yes; then
13380                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13381         else
13382                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13383         fi
13384         # Put the nasty error message in config.log where it belongs
13385         echo "$GTK_PKG_ERRORS" >&5
13386
13387         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13388
13389 $GTK_PKG_ERRORS
13390
13391 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13392 installed software in a non-standard prefix.
13393
13394 Alternatively, you may set the environment variables GTK_CFLAGS
13395 and GTK_LIBS to avoid the need to call pkg-config.
13396 See the pkg-config man page for more details." "$LINENO" 5
13397 elif test $pkg_failed = untried; then
13398         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399 $as_echo "no" >&6; }
13400         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13402 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13403 is in your PATH or set the PKG_CONFIG environment variable to the full
13404 path to pkg-config.
13405
13406 Alternatively, you may set the environment variables GTK_CFLAGS
13407 and GTK_LIBS to avoid the need to call pkg-config.
13408 See the pkg-config man page for more details.
13409
13410 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13411 See \`config.log' for more details" "$LINENO" 5; }
13412 else
13413         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13414         GTK_LIBS=$pkg_cv_GTK_LIBS
13415         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13416 $as_echo "yes" >&6; }
13417         GTK_VERSION="gtk+-2.0"
13418
13419 fi
13420
13421     ;;
13422 esac
13423
13424  if test "$linux" = "yes"; then
13425   OS_LINUX_TRUE=
13426   OS_LINUX_FALSE='#'
13427 else
13428   OS_LINUX_TRUE='#'
13429   OS_LINUX_FALSE=
13430 fi
13431
13432  if test "$win32" = "yes"; then
13433   OS_WIN32_TRUE=
13434   OS_WIN32_FALSE='#'
13435 else
13436   OS_WIN32_TRUE='#'
13437   OS_WIN32_FALSE=
13438 fi
13439
13440  if test "$macos" = "yes"; then
13441   OS_MACOS_TRUE=
13442   OS_MACOS_FALSE='#'
13443 else
13444   OS_MACOS_TRUE='#'
13445   OS_MACOS_FALSE=
13446 fi
13447
13448
13449  if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
13450   IPC_MSRPC_TRUE=
13451   IPC_MSRPC_FALSE='#'
13452 else
13453   IPC_MSRPC_TRUE='#'
13454   IPC_MSRPC_FALSE=
13455 fi
13456
13457  if test "$SERVER_IPC_MODULE" != "msrpc-glib2-1.0"; then
13458   IPC_DBUS_TRUE=
13459   IPC_DBUS_FALSE='#'
13460 else
13461   IPC_DBUS_TRUE='#'
13462   IPC_DBUS_FALSE=
13463 fi
13464
13465  if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
13466   IPC_DBUS_GLIB_TRUE=
13467   IPC_DBUS_GLIB_FALSE='#'
13468 else
13469   IPC_DBUS_GLIB_TRUE='#'
13470   IPC_DBUS_GLIB_FALSE=
13471 fi
13472
13473  if test "$SERVER_IPC_MODULE" = "gio-2.0"; then
13474   IPC_GDBUS_TRUE=
13475   IPC_GDBUS_FALSE='#'
13476 else
13477   IPC_GDBUS_TRUE='#'
13478   IPC_GDBUS_FALSE=
13479 fi
13480
13481
13482 if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
13483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is no greater than 0.12.1" >&5
13484 $as_echo_n "checking $VALAC is no greater than 0.12.1... " >&6; }
13485   vala_version=`$VALAC --version | sed 's/Vala  *//'`
13486   as_arg_v1=0.12.2
13487 as_arg_v2="$vala_version"
13488 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13489 case $? in #(
13490   1) :
13491     vala_supports_dbus_glib="no" ;; #(
13492   0) :
13493     vala_supports_dbus_glib="no" ;; #(
13494   2) :
13495     vala_supports_dbus_glib="yes" ;; #(
13496   *) :
13497      ;;
13498 esac
13499
13500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vala_supports_dbus_glib" >&5
13501 $as_echo "$vala_supports_dbus_glib" >&6; }
13502   if test "$vala_supports_dbus_glib" = "no"; then
13503     as_fn_error $? "
13504 *** Vala 0.12.1 or earlier is required for dbus-glib support. Newer versions
13505 *** require that you have GLib 2.26 or newer (for GDBus support)." "$LINENO" 5
13506   fi
13507 fi
13508
13509 if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
13510   # MS RPC utilities
13511
13512   pkg_config_args="msrpc-mingw-1.0"
13513
13514
13515
13516
13517
13518
13519
13520
13521 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13522         if test -n "$ac_tool_prefix"; then
13523   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13524 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13526 $as_echo_n "checking for $ac_word... " >&6; }
13527 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13528   $as_echo_n "(cached) " >&6
13529 else
13530   case $PKG_CONFIG in
13531   [\\/]* | ?:[\\/]*)
13532   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13533   ;;
13534   *)
13535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13536 for as_dir in $PATH
13537 do
13538   IFS=$as_save_IFS
13539   test -z "$as_dir" && as_dir=.
13540     for ac_exec_ext in '' $ac_executable_extensions; do
13541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13542     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13544     break 2
13545   fi
13546 done
13547   done
13548 IFS=$as_save_IFS
13549
13550   ;;
13551 esac
13552 fi
13553 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13554 if test -n "$PKG_CONFIG"; then
13555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13556 $as_echo "$PKG_CONFIG" >&6; }
13557 else
13558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559 $as_echo "no" >&6; }
13560 fi
13561
13562
13563 fi
13564 if test -z "$ac_cv_path_PKG_CONFIG"; then
13565   ac_pt_PKG_CONFIG=$PKG_CONFIG
13566   # Extract the first word of "pkg-config", so it can be a program name with args.
13567 set dummy pkg-config; ac_word=$2
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569 $as_echo_n "checking for $ac_word... " >&6; }
13570 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13571   $as_echo_n "(cached) " >&6
13572 else
13573   case $ac_pt_PKG_CONFIG in
13574   [\\/]* | ?:[\\/]*)
13575   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13576   ;;
13577   *)
13578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579 for as_dir in $PATH
13580 do
13581   IFS=$as_save_IFS
13582   test -z "$as_dir" && as_dir=.
13583     for ac_exec_ext in '' $ac_executable_extensions; do
13584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13585     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13587     break 2
13588   fi
13589 done
13590   done
13591 IFS=$as_save_IFS
13592
13593   ;;
13594 esac
13595 fi
13596 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13597 if test -n "$ac_pt_PKG_CONFIG"; then
13598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13599 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13600 else
13601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13603 fi
13604
13605   if test "x$ac_pt_PKG_CONFIG" = x; then
13606     PKG_CONFIG=""
13607   else
13608     case $cross_compiling:$ac_tool_warned in
13609 yes:)
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13612 ac_tool_warned=yes ;;
13613 esac
13614     PKG_CONFIG=$ac_pt_PKG_CONFIG
13615   fi
13616 else
13617   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13618 fi
13619
13620 fi
13621 if test -n "$PKG_CONFIG"; then
13622         _pkg_min_version=0.16
13623         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13624 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13625         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13626                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13627 $as_echo "yes" >&6; }
13628         else
13629                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630 $as_echo "no" >&6; }
13631                 PKG_CONFIG=""
13632         fi
13633 fi
13634
13635   no_msrpc=""
13636
13637   if test "x$PKG_CONFIG" = x ; then
13638     no_msrpc=yes
13639     PKG_CONFIG=no
13640   fi
13641
13642   min_msrpc_mingw_version=0.1.0
13643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msrpc-mingw - version >= $min_msrpc_version" >&5
13644 $as_echo_n "checking for msrpc-mingw - version >= $min_msrpc_version... " >&6; }
13645
13646   if test x$PKG_CONFIG != xno ; then
13647     if $PKG_CONFIG --uninstalled $pkg_config_args; then
13648       echo "Will use uninstalled version of msrpc-mingw found in PKG_CONFIG_PATH"
13649     fi
13650
13651     if $PKG_CONFIG --atleast-version $min_msrpc_mingw_version $pkg_config_args; then
13652       :
13653     else
13654       no_msrpc=yes
13655     fi
13656   fi
13657
13658   if test x"$no_msrpc" = x ; then
13659     MIDL_WRAPPER=`$PKG_CONFIG --variable=midl_wrapper msrpc-mingw-1.0`
13660     MSRPC_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13661     MSRPC_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13662   fi
13663
13664   if test "x$no_msrpc" = x ; then
13665      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13666 $as_echo "yes" >&6; }
13667      :
13668   else
13669      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670 $as_echo "no" >&6; }
13671      if test "$PKG_CONFIG" = "no" ; then
13672        echo "*** A new enough version of pkg-config was not found."
13673        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13674      else
13675        echo "not found"
13676      fi
13677      MSRPC_CFLAGS=""
13678      MSRPC_LIBS=""
13679      MIDL_WRAPPER=""
13680      as_fn_error $? "
13681 *** msrpc-mingw 0.1.0 or better is required." "$LINENO" 5
13682   fi
13683
13684
13685
13686
13687
13688   # Extract the first word of "midl", so it can be a program name with args.
13689 set dummy midl; ac_word=$2
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13691 $as_echo_n "checking for $ac_word... " >&6; }
13692 if ${ac_cv_path_MIDL+:} false; then :
13693   $as_echo_n "(cached) " >&6
13694 else
13695   case $MIDL in
13696   [\\/]* | ?:[\\/]*)
13697   ac_cv_path_MIDL="$MIDL" # Let the user override the test with a path.
13698   ;;
13699   *)
13700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13701 for as_dir in /c/Program\ Files/Microsoft\ SDKs/Windows/v7.0/Bin$PATH_SEPARATOR$PATH
13702 do
13703   IFS=$as_save_IFS
13704   test -z "$as_dir" && as_dir=.
13705     for ac_exec_ext in '' $ac_executable_extensions; do
13706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13707     ac_cv_path_MIDL="$as_dir/$ac_word$ac_exec_ext"
13708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13709     break 2
13710   fi
13711 done
13712   done
13713 IFS=$as_save_IFS
13714
13715   test -z "$ac_cv_path_MIDL" && ac_cv_path_MIDL="no"
13716   ;;
13717 esac
13718 fi
13719 MIDL=$ac_cv_path_MIDL
13720 if test -n "$MIDL"; then
13721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIDL" >&5
13722 $as_echo "$MIDL" >&6; }
13723 else
13724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725 $as_echo "no" >&6; }
13726 fi
13727
13728
13729   if test "$MIDL" = "no"; then
13730      as_fn_error $? "
13731 *** Could not find the Microsoft interface compiler MIDL.EXE.
13732 *** This program is available as part of the MS Windows SDK, in
13733 *** the Win32 Development Tools package. If it is not in the PATH
13734 *** or its default location you may set the 'MIDL' environment
13735 *** variable to point to its location and rerun configure." "$LINENO" 5
13736   fi
13737 fi
13738
13739 if test "$win32" = "yes"; then
13740   # Other Windows-specific tools
13741
13742   # LIB.EXE from MSVC to build an MSVC-compatible import library.
13743   # Extract the first word of "lib", so it can be a program name with args.
13744 set dummy lib; ac_word=$2
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13746 $as_echo_n "checking for $ac_word... " >&6; }
13747 if ${ac_cv_path_MSVC_LIB+:} false; then :
13748   $as_echo_n "(cached) " >&6
13749 else
13750   case $MSVC_LIB in
13751   [\\/]* | ?:[\\/]*)
13752   ac_cv_path_MSVC_LIB="$MSVC_LIB" # Let the user override the test with a path.
13753   ;;
13754   *)
13755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13756 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
13757 do
13758   IFS=$as_save_IFS
13759   test -z "$as_dir" && as_dir=.
13760     for ac_exec_ext in '' $ac_executable_extensions; do
13761   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13762     ac_cv_path_MSVC_LIB="$as_dir/$ac_word$ac_exec_ext"
13763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13764     break 2
13765   fi
13766 done
13767   done
13768 IFS=$as_save_IFS
13769
13770   test -z "$ac_cv_path_MSVC_LIB" && ac_cv_path_MSVC_LIB="no"
13771   ;;
13772 esac
13773 fi
13774 MSVC_LIB=$ac_cv_path_MSVC_LIB
13775 if test -n "$MSVC_LIB"; then
13776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_LIB" >&5
13777 $as_echo "$MSVC_LIB" >&6; }
13778 else
13779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13780 $as_echo "no" >&6; }
13781 fi
13782
13783
13784
13785   if test "$MSVC_LIB" = "no"; then
13786      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13787 *** Could not find the Microsoft 'LIB.EXE' program. This is required
13788 *** to build the Visual C import library for libmoonshot. Use the
13789 *** MSVC_LIB environment variable to pass its location if this is
13790 *** outside the PATH." >&5
13791 $as_echo "$as_me: WARNING:
13792 *** Could not find the Microsoft 'LIB.EXE' program. This is required
13793 *** to build the Visual C import library for libmoonshot. Use the
13794 *** MSVC_LIB environment variable to pass its location if this is
13795 *** outside the PATH." >&2;}
13796   fi
13797
13798
13799   # ImageMagick for the 'make icons' target. Note that
13800   # c:/windows/system32/convert.exe is nothing to do with ImageMagick.
13801   # Extract the first word of "convert", so it can be a program name with args.
13802 set dummy convert; ac_word=$2
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13804 $as_echo_n "checking for $ac_word... " >&6; }
13805 if ${ac_cv_path_IMAGEMAGICK_CONVERT+:} false; then :
13806   $as_echo_n "(cached) " >&6
13807 else
13808   case $IMAGEMAGICK_CONVERT in
13809   [\\/]* | ?:[\\/]*)
13810   ac_cv_path_IMAGEMAGICK_CONVERT="$IMAGEMAGICK_CONVERT" # Let the user override the test with a path.
13811   ;;
13812   *)
13813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13814 for as_dir in /c/Program\ Files/ImageMagick$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/ImageMagick$PATH_SEPARATOR$PATH
13815 do
13816   IFS=$as_save_IFS
13817   test -z "$as_dir" && as_dir=.
13818     for ac_exec_ext in '' $ac_executable_extensions; do
13819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13820     ac_cv_path_IMAGEMAGICK_CONVERT="$as_dir/$ac_word$ac_exec_ext"
13821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13822     break 2
13823   fi
13824 done
13825   done
13826 IFS=$as_save_IFS
13827
13828   test -z "$ac_cv_path_IMAGEMAGICK_CONVERT" && ac_cv_path_IMAGEMAGICK_CONVERT="no"
13829   ;;
13830 esac
13831 fi
13832 IMAGEMAGICK_CONVERT=$ac_cv_path_IMAGEMAGICK_CONVERT
13833 if test -n "$IMAGEMAGICK_CONVERT"; then
13834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CONVERT" >&5
13835 $as_echo "$IMAGEMAGICK_CONVERT" >&6; }
13836 else
13837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13838 $as_echo "no" >&6; }
13839 fi
13840
13841
13842
13843   if test "$IMAGEMAGICK_CONVERT" = "no" || test "$IMAGEMAGICK_CONVERT" = "/c/windows/system32/convert"; then
13844      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13845 *** Could not find ImageMagick convert.exe. This is required for the
13846 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
13847 *** variable to pass its location if this is outside the PATH." >&5
13848 $as_echo "$as_me: WARNING:
13849 *** Could not find ImageMagick convert.exe. This is required for the
13850 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
13851 *** variable to pass its location if this is outside the PATH." >&2;}
13852   fi
13853
13854
13855   # Windows Installer XML tools
13856   # Extract the first word of "candle", so it can be a program name with args.
13857 set dummy candle; ac_word=$2
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13859 $as_echo_n "checking for $ac_word... " >&6; }
13860 if ${ac_cv_path_WIX_CANDLE+:} false; then :
13861   $as_echo_n "(cached) " >&6
13862 else
13863   case $WIX_CANDLE in
13864   [\\/]* | ?:[\\/]*)
13865   ac_cv_path_WIX_CANDLE="$WIX_CANDLE" # Let the user override the test with a path.
13866   ;;
13867   *)
13868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869 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
13870 do
13871   IFS=$as_save_IFS
13872   test -z "$as_dir" && as_dir=.
13873     for ac_exec_ext in '' $ac_executable_extensions; do
13874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13875     ac_cv_path_WIX_CANDLE="$as_dir/$ac_word$ac_exec_ext"
13876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13877     break 2
13878   fi
13879 done
13880   done
13881 IFS=$as_save_IFS
13882
13883   test -z "$ac_cv_path_WIX_CANDLE" && ac_cv_path_WIX_CANDLE="no"
13884   ;;
13885 esac
13886 fi
13887 WIX_CANDLE=$ac_cv_path_WIX_CANDLE
13888 if test -n "$WIX_CANDLE"; then
13889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_CANDLE" >&5
13890 $as_echo "$WIX_CANDLE" >&6; }
13891 else
13892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13893 $as_echo "no" >&6; }
13894 fi
13895
13896
13897   # Extract the first word of "light", so it can be a program name with args.
13898 set dummy light; ac_word=$2
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13900 $as_echo_n "checking for $ac_word... " >&6; }
13901 if ${ac_cv_path_WIX_LIGHT+:} false; then :
13902   $as_echo_n "(cached) " >&6
13903 else
13904   case $WIX_LIGHT in
13905   [\\/]* | ?:[\\/]*)
13906   ac_cv_path_WIX_LIGHT="$WIX_LIGHT" # Let the user override the test with a path.
13907   ;;
13908   *)
13909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13910 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
13911 do
13912   IFS=$as_save_IFS
13913   test -z "$as_dir" && as_dir=.
13914     for ac_exec_ext in '' $ac_executable_extensions; do
13915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13916     ac_cv_path_WIX_LIGHT="$as_dir/$ac_word$ac_exec_ext"
13917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13918     break 2
13919   fi
13920 done
13921   done
13922 IFS=$as_save_IFS
13923
13924   test -z "$ac_cv_path_WIX_LIGHT" && ac_cv_path_WIX_LIGHT="no"
13925   ;;
13926 esac
13927 fi
13928 WIX_LIGHT=$ac_cv_path_WIX_LIGHT
13929 if test -n "$WIX_LIGHT"; then
13930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_LIGHT" >&5
13931 $as_echo "$WIX_LIGHT" >&6; }
13932 else
13933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13934 $as_echo "no" >&6; }
13935 fi
13936
13937
13938
13939   if test "$WIX_CANDLE" = "no" || test "$WIX_LIGHT" = "no"; then
13940      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13941 *** Could not find the Windows Installer XML tools. These are required
13942 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
13943 *** environment variables to pass their locations if they are outside
13944 *** the PATH." >&5
13945 $as_echo "$as_me: WARNING:
13946 *** Could not find the Windows Installer XML tools. These are required
13947 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
13948 *** environment variables to pass their locations if they are outside
13949 *** the PATH." >&2;}
13950   fi
13951 fi
13952
13953 if test "$linux" = "yes"; then
13954   # Extract the first word of "update-mime-database", so it can be a program name with args.
13955 set dummy update-mime-database; ac_word=$2
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13957 $as_echo_n "checking for $ac_word... " >&6; }
13958 if ${ac_cv_path_UPDATE_MIME_DATABASE+:} false; then :
13959   $as_echo_n "(cached) " >&6
13960 else
13961   case $UPDATE_MIME_DATABASE in
13962   [\\/]* | ?:[\\/]*)
13963   ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
13964   ;;
13965   *)
13966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $PATH
13968 do
13969   IFS=$as_save_IFS
13970   test -z "$as_dir" && as_dir=.
13971     for ac_exec_ext in '' $ac_executable_extensions; do
13972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13973     ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
13974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13975     break 2
13976   fi
13977 done
13978   done
13979 IFS=$as_save_IFS
13980
13981   test -z "$ac_cv_path_UPDATE_MIME_DATABASE" && ac_cv_path_UPDATE_MIME_DATABASE="no"
13982   ;;
13983 esac
13984 fi
13985 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
13986 if test -n "$UPDATE_MIME_DATABASE"; then
13987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
13988 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
13989 else
13990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13991 $as_echo "no" >&6; }
13992 fi
13993
13994
13995   if test "$UPDATE_MIME_DATABASE" = "no"; then
13996     as_fn_error $? "
13997 *** Could not find the Freedesktop.org  mime database update tool.
13998 *** Web provisioning files could not be automatically installed." "$LINENO" 5
13999   fi
14000   # Extract the first word of "update-desktop-database", so it can be a program name with args.
14001 set dummy update-desktop-database; ac_word=$2
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14003 $as_echo_n "checking for $ac_word... " >&6; }
14004 if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
14005   $as_echo_n "(cached) " >&6
14006 else
14007   case $UPDATE_DESKTOP_DATABASE in
14008   [\\/]* | ?:[\\/]*)
14009   ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
14010   ;;
14011   *)
14012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14013 for as_dir in $PATH
14014 do
14015   IFS=$as_save_IFS
14016   test -z "$as_dir" && as_dir=.
14017     for ac_exec_ext in '' $ac_executable_extensions; do
14018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14019     ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
14020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14021     break 2
14022   fi
14023 done
14024   done
14025 IFS=$as_save_IFS
14026
14027   test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
14028   ;;
14029 esac
14030 fi
14031 UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
14032 if test -n "$UPDATE_DESKTOP_DATABASE"; then
14033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
14034 $as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
14035 else
14036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14037 $as_echo "no" >&6; }
14038 fi
14039
14040
14041   if test "$UPDATE_DESKTOP_DATABASE" = "no"; then
14042     as_fn_error $? "
14043 *** Could not find the Freedesktop.org desktop entry database update
14044 *** tool. Web provisioning files could not be automatically installed." "$LINENO" 5
14045   fi
14046 fi
14047
14048 MOONSHOT_APP="$bindir/moonshot"
14049 MOONSHOT_WEBP="$bindir/moonshot-webp"
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061 # Dependencies
14062
14063 pkg_failed=no
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot" >&5
14065 $as_echo_n "checking for moonshot... " >&6; }
14066
14067 if test -n "$moonshot_CFLAGS"; then
14068     pkg_cv_moonshot_CFLAGS="$moonshot_CFLAGS"
14069  elif test -n "$PKG_CONFIG"; then
14070     if test -n "$PKG_CONFIG" && \
14071     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14072         atk >= 1.20
14073         glib-2.0 >= 2.22
14074         gobject-2.0 >= 2.22
14075         \$GTK_VERSION
14076         gee-1.0 >= 0.5
14077         \$SERVER_IPC_MODULE
14078                 \$MAC
14079 \""; } >&5
14080   ($PKG_CONFIG --exists --print-errors "
14081         atk >= 1.20
14082         glib-2.0 >= 2.22
14083         gobject-2.0 >= 2.22
14084         $GTK_VERSION
14085         gee-1.0 >= 0.5
14086         $SERVER_IPC_MODULE
14087                 $MAC
14088 ") 2>&5
14089   ac_status=$?
14090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14091   test $ac_status = 0; }; then
14092   pkg_cv_moonshot_CFLAGS=`$PKG_CONFIG --cflags "
14093         atk >= 1.20
14094         glib-2.0 >= 2.22
14095         gobject-2.0 >= 2.22
14096         $GTK_VERSION
14097         gee-1.0 >= 0.5
14098         $SERVER_IPC_MODULE
14099                 $MAC
14100 " 2>/dev/null`
14101                       test "x$?" != "x0" && pkg_failed=yes
14102 else
14103   pkg_failed=yes
14104 fi
14105  else
14106     pkg_failed=untried
14107 fi
14108 if test -n "$moonshot_LIBS"; then
14109     pkg_cv_moonshot_LIBS="$moonshot_LIBS"
14110  elif test -n "$PKG_CONFIG"; then
14111     if test -n "$PKG_CONFIG" && \
14112     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14113         atk >= 1.20
14114         glib-2.0 >= 2.22
14115         gobject-2.0 >= 2.22
14116         \$GTK_VERSION
14117         gee-1.0 >= 0.5
14118         \$SERVER_IPC_MODULE
14119                 \$MAC
14120 \""; } >&5
14121   ($PKG_CONFIG --exists --print-errors "
14122         atk >= 1.20
14123         glib-2.0 >= 2.22
14124         gobject-2.0 >= 2.22
14125         $GTK_VERSION
14126         gee-1.0 >= 0.5
14127         $SERVER_IPC_MODULE
14128                 $MAC
14129 ") 2>&5
14130   ac_status=$?
14131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14132   test $ac_status = 0; }; then
14133   pkg_cv_moonshot_LIBS=`$PKG_CONFIG --libs "
14134         atk >= 1.20
14135         glib-2.0 >= 2.22
14136         gobject-2.0 >= 2.22
14137         $GTK_VERSION
14138         gee-1.0 >= 0.5
14139         $SERVER_IPC_MODULE
14140                 $MAC
14141 " 2>/dev/null`
14142                       test "x$?" != "x0" && pkg_failed=yes
14143 else
14144   pkg_failed=yes
14145 fi
14146  else
14147     pkg_failed=untried
14148 fi
14149
14150
14151
14152 if test $pkg_failed = yes; then
14153         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14154 $as_echo "no" >&6; }
14155
14156 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14157         _pkg_short_errors_supported=yes
14158 else
14159         _pkg_short_errors_supported=no
14160 fi
14161         if test $_pkg_short_errors_supported = yes; then
14162                 moonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
14163         atk >= 1.20
14164         glib-2.0 >= 2.22
14165         gobject-2.0 >= 2.22
14166         $GTK_VERSION
14167         gee-1.0 >= 0.5
14168         $SERVER_IPC_MODULE
14169                 $MAC
14170 " 2>&1`
14171         else
14172                 moonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
14173         atk >= 1.20
14174         glib-2.0 >= 2.22
14175         gobject-2.0 >= 2.22
14176         $GTK_VERSION
14177         gee-1.0 >= 0.5
14178         $SERVER_IPC_MODULE
14179                 $MAC
14180 " 2>&1`
14181         fi
14182         # Put the nasty error message in config.log where it belongs
14183         echo "$moonshot_PKG_ERRORS" >&5
14184
14185         as_fn_error $? "Package requirements (
14186         atk >= 1.20
14187         glib-2.0 >= 2.22
14188         gobject-2.0 >= 2.22
14189         $GTK_VERSION
14190         gee-1.0 >= 0.5
14191         $SERVER_IPC_MODULE
14192                 $MAC
14193 ) were not met:
14194
14195 $moonshot_PKG_ERRORS
14196
14197 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14198 installed software in a non-standard prefix.
14199
14200 Alternatively, you may set the environment variables moonshot_CFLAGS
14201 and moonshot_LIBS to avoid the need to call pkg-config.
14202 See the pkg-config man page for more details." "$LINENO" 5
14203 elif test $pkg_failed = untried; then
14204         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14205 $as_echo "no" >&6; }
14206         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14208 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14209 is in your PATH or set the PKG_CONFIG environment variable to the full
14210 path to pkg-config.
14211
14212 Alternatively, you may set the environment variables moonshot_CFLAGS
14213 and moonshot_LIBS to avoid the need to call pkg-config.
14214 See the pkg-config man page for more details.
14215
14216 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14217 See \`config.log' for more details" "$LINENO" 5; }
14218 else
14219         moonshot_CFLAGS=$pkg_cv_moonshot_CFLAGS
14220         moonshot_LIBS=$pkg_cv_moonshot_LIBS
14221         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14222 $as_echo "yes" >&6; }
14223
14224 fi
14225
14226
14227 pkg_failed=no
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmoonshot" >&5
14229 $as_echo_n "checking for libmoonshot... " >&6; }
14230
14231 if test -n "$libmoonshot_CFLAGS"; then
14232     pkg_cv_libmoonshot_CFLAGS="$libmoonshot_CFLAGS"
14233  elif test -n "$PKG_CONFIG"; then
14234     if test -n "$PKG_CONFIG" && \
14235     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14236         \$CLIENT_IPC_MODULE
14237 \""; } >&5
14238   ($PKG_CONFIG --exists --print-errors "
14239         $CLIENT_IPC_MODULE
14240 ") 2>&5
14241   ac_status=$?
14242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14243   test $ac_status = 0; }; then
14244   pkg_cv_libmoonshot_CFLAGS=`$PKG_CONFIG --cflags "
14245         $CLIENT_IPC_MODULE
14246 " 2>/dev/null`
14247                       test "x$?" != "x0" && pkg_failed=yes
14248 else
14249   pkg_failed=yes
14250 fi
14251  else
14252     pkg_failed=untried
14253 fi
14254 if test -n "$libmoonshot_LIBS"; then
14255     pkg_cv_libmoonshot_LIBS="$libmoonshot_LIBS"
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_LIBS=`$PKG_CONFIG --libs "
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
14278
14279
14280 if test $pkg_failed = yes; then
14281         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14282 $as_echo "no" >&6; }
14283
14284 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14285         _pkg_short_errors_supported=yes
14286 else
14287         _pkg_short_errors_supported=no
14288 fi
14289         if test $_pkg_short_errors_supported = yes; then
14290                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
14291         $CLIENT_IPC_MODULE
14292 " 2>&1`
14293         else
14294                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
14295         $CLIENT_IPC_MODULE
14296 " 2>&1`
14297         fi
14298         # Put the nasty error message in config.log where it belongs
14299         echo "$libmoonshot_PKG_ERRORS" >&5
14300
14301         as_fn_error $? "Package requirements (
14302         $CLIENT_IPC_MODULE
14303 ) were not met:
14304
14305 $libmoonshot_PKG_ERRORS
14306
14307 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14308 installed software in a non-standard prefix.
14309
14310 Alternatively, you may set the environment variables libmoonshot_CFLAGS
14311 and libmoonshot_LIBS to avoid the need to call pkg-config.
14312 See the pkg-config man page for more details." "$LINENO" 5
14313 elif test $pkg_failed = untried; then
14314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14316         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14318 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14319 is in your PATH or set the PKG_CONFIG environment variable to the full
14320 path to pkg-config.
14321
14322 Alternatively, you may set the environment variables libmoonshot_CFLAGS
14323 and libmoonshot_LIBS to avoid the need to call pkg-config.
14324 See the pkg-config man page for more details.
14325
14326 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14327 See \`config.log' for more details" "$LINENO" 5; }
14328 else
14329         libmoonshot_CFLAGS=$pkg_cv_libmoonshot_CFLAGS
14330         libmoonshot_LIBS=$pkg_cv_libmoonshot_LIBS
14331         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14332 $as_echo "yes" >&6; }
14333
14334 fi
14335
14336 # i18n stuff
14337
14338 mkdir_p="$MKDIR_P"
14339 case $mkdir_p in
14340   [\\/$]* | ?:[\\/]*) ;;
14341   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
14342 esac
14343
14344
14345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14346 $as_echo_n "checking whether NLS is requested... " >&6; }
14347     # Check whether --enable-nls was given.
14348 if test "${enable_nls+set}" = set; then :
14349   enableval=$enable_nls; USE_NLS=$enableval
14350 else
14351   USE_NLS=yes
14352 fi
14353
14354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14355 $as_echo "$USE_NLS" >&6; }
14356
14357
14358
14359
14360       GETTEXT_MACRO_VERSION=0.17
14361
14362
14363
14364
14365 # Prepare PATH_SEPARATOR.
14366 # The user is always right.
14367 if test "${PATH_SEPARATOR+set}" != set; then
14368   echo "#! /bin/sh" >conf$$.sh
14369   echo  "exit 0"   >>conf$$.sh
14370   chmod +x conf$$.sh
14371   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14372     PATH_SEPARATOR=';'
14373   else
14374     PATH_SEPARATOR=:
14375   fi
14376   rm -f conf$$.sh
14377 fi
14378
14379 # Find out how to test for executable files. Don't use a zero-byte file,
14380 # as systems may use methods other than mode bits to determine executability.
14381 cat >conf$$.file <<_ASEOF
14382 #! /bin/sh
14383 exit 0
14384 _ASEOF
14385 chmod +x conf$$.file
14386 if test -x conf$$.file >/dev/null 2>&1; then
14387   ac_executable_p="test -x"
14388 else
14389   ac_executable_p="test -f"
14390 fi
14391 rm -f conf$$.file
14392
14393 # Extract the first word of "msgfmt", so it can be a program name with args.
14394 set dummy msgfmt; ac_word=$2
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14396 $as_echo_n "checking for $ac_word... " >&6; }
14397 if ${ac_cv_path_MSGFMT+:} false; then :
14398   $as_echo_n "(cached) " >&6
14399 else
14400   case "$MSGFMT" in
14401   [\\/]* | ?:[\\/]*)
14402     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14403     ;;
14404   *)
14405     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14406     for ac_dir in $PATH; do
14407       IFS="$ac_save_IFS"
14408       test -z "$ac_dir" && ac_dir=.
14409       for ac_exec_ext in '' $ac_executable_extensions; do
14410         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14411           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14412           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14413      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14414             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14415             break 2
14416           fi
14417         fi
14418       done
14419     done
14420     IFS="$ac_save_IFS"
14421   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14422     ;;
14423 esac
14424 fi
14425 MSGFMT="$ac_cv_path_MSGFMT"
14426 if test "$MSGFMT" != ":"; then
14427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14428 $as_echo "$MSGFMT" >&6; }
14429 else
14430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14431 $as_echo "no" >&6; }
14432 fi
14433
14434   # Extract the first word of "gmsgfmt", so it can be a program name with args.
14435 set dummy gmsgfmt; ac_word=$2
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14437 $as_echo_n "checking for $ac_word... " >&6; }
14438 if ${ac_cv_path_GMSGFMT+:} false; then :
14439   $as_echo_n "(cached) " >&6
14440 else
14441   case $GMSGFMT in
14442   [\\/]* | ?:[\\/]*)
14443   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14444   ;;
14445   *)
14446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14447 for as_dir in $PATH
14448 do
14449   IFS=$as_save_IFS
14450   test -z "$as_dir" && as_dir=.
14451     for ac_exec_ext in '' $ac_executable_extensions; do
14452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14453     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14455     break 2
14456   fi
14457 done
14458   done
14459 IFS=$as_save_IFS
14460
14461   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14462   ;;
14463 esac
14464 fi
14465 GMSGFMT=$ac_cv_path_GMSGFMT
14466 if test -n "$GMSGFMT"; then
14467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14468 $as_echo "$GMSGFMT" >&6; }
14469 else
14470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14471 $as_echo "no" >&6; }
14472 fi
14473
14474
14475
14476     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14477     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14478     *) MSGFMT_015=$MSGFMT ;;
14479   esac
14480
14481   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14482     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14483     *) GMSGFMT_015=$GMSGFMT ;;
14484   esac
14485
14486
14487
14488 # Prepare PATH_SEPARATOR.
14489 # The user is always right.
14490 if test "${PATH_SEPARATOR+set}" != set; then
14491   echo "#! /bin/sh" >conf$$.sh
14492   echo  "exit 0"   >>conf$$.sh
14493   chmod +x conf$$.sh
14494   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14495     PATH_SEPARATOR=';'
14496   else
14497     PATH_SEPARATOR=:
14498   fi
14499   rm -f conf$$.sh
14500 fi
14501
14502 # Find out how to test for executable files. Don't use a zero-byte file,
14503 # as systems may use methods other than mode bits to determine executability.
14504 cat >conf$$.file <<_ASEOF
14505 #! /bin/sh
14506 exit 0
14507 _ASEOF
14508 chmod +x conf$$.file
14509 if test -x conf$$.file >/dev/null 2>&1; then
14510   ac_executable_p="test -x"
14511 else
14512   ac_executable_p="test -f"
14513 fi
14514 rm -f conf$$.file
14515
14516 # Extract the first word of "xgettext", so it can be a program name with args.
14517 set dummy xgettext; ac_word=$2
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14519 $as_echo_n "checking for $ac_word... " >&6; }
14520 if ${ac_cv_path_XGETTEXT+:} false; then :
14521   $as_echo_n "(cached) " >&6
14522 else
14523   case "$XGETTEXT" in
14524   [\\/]* | ?:[\\/]*)
14525     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14526     ;;
14527   *)
14528     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14529     for ac_dir in $PATH; do
14530       IFS="$ac_save_IFS"
14531       test -z "$ac_dir" && ac_dir=.
14532       for ac_exec_ext in '' $ac_executable_extensions; do
14533         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14534           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14535           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14536      (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
14537             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14538             break 2
14539           fi
14540         fi
14541       done
14542     done
14543     IFS="$ac_save_IFS"
14544   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14545     ;;
14546 esac
14547 fi
14548 XGETTEXT="$ac_cv_path_XGETTEXT"
14549 if test "$XGETTEXT" != ":"; then
14550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14551 $as_echo "$XGETTEXT" >&6; }
14552 else
14553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14554 $as_echo "no" >&6; }
14555 fi
14556
14557     rm -f messages.po
14558
14559     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14560     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14561     *) XGETTEXT_015=$XGETTEXT ;;
14562   esac
14563
14564
14565
14566 # Prepare PATH_SEPARATOR.
14567 # The user is always right.
14568 if test "${PATH_SEPARATOR+set}" != set; then
14569   echo "#! /bin/sh" >conf$$.sh
14570   echo  "exit 0"   >>conf$$.sh
14571   chmod +x conf$$.sh
14572   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14573     PATH_SEPARATOR=';'
14574   else
14575     PATH_SEPARATOR=:
14576   fi
14577   rm -f conf$$.sh
14578 fi
14579
14580 # Find out how to test for executable files. Don't use a zero-byte file,
14581 # as systems may use methods other than mode bits to determine executability.
14582 cat >conf$$.file <<_ASEOF
14583 #! /bin/sh
14584 exit 0
14585 _ASEOF
14586 chmod +x conf$$.file
14587 if test -x conf$$.file >/dev/null 2>&1; then
14588   ac_executable_p="test -x"
14589 else
14590   ac_executable_p="test -f"
14591 fi
14592 rm -f conf$$.file
14593
14594 # Extract the first word of "msgmerge", so it can be a program name with args.
14595 set dummy msgmerge; ac_word=$2
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14597 $as_echo_n "checking for $ac_word... " >&6; }
14598 if ${ac_cv_path_MSGMERGE+:} false; then :
14599   $as_echo_n "(cached) " >&6
14600 else
14601   case "$MSGMERGE" in
14602   [\\/]* | ?:[\\/]*)
14603     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14604     ;;
14605   *)
14606     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14607     for ac_dir in $PATH; do
14608       IFS="$ac_save_IFS"
14609       test -z "$ac_dir" && ac_dir=.
14610       for ac_exec_ext in '' $ac_executable_extensions; do
14611         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14612           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14613           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14614             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14615             break 2
14616           fi
14617         fi
14618       done
14619     done
14620     IFS="$ac_save_IFS"
14621   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14622     ;;
14623 esac
14624 fi
14625 MSGMERGE="$ac_cv_path_MSGMERGE"
14626 if test "$MSGMERGE" != ":"; then
14627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14628 $as_echo "$MSGMERGE" >&6; }
14629 else
14630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14631 $as_echo "no" >&6; }
14632 fi
14633
14634
14635         test -n "$localedir" || localedir='${datadir}/locale'
14636
14637
14638     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14639
14640
14641   ac_config_commands="$ac_config_commands po-directories"
14642
14643
14644
14645       if test "X$prefix" = "XNONE"; then
14646     acl_final_prefix="$ac_default_prefix"
14647   else
14648     acl_final_prefix="$prefix"
14649   fi
14650   if test "X$exec_prefix" = "XNONE"; then
14651     acl_final_exec_prefix='${prefix}'
14652   else
14653     acl_final_exec_prefix="$exec_prefix"
14654   fi
14655   acl_save_prefix="$prefix"
14656   prefix="$acl_final_prefix"
14657   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14658   prefix="$acl_save_prefix"
14659
14660
14661 # Check whether --with-gnu-ld was given.
14662 if test "${with_gnu_ld+set}" = set; then :
14663   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14664 else
14665   with_gnu_ld=no
14666 fi
14667
14668 # Prepare PATH_SEPARATOR.
14669 # The user is always right.
14670 if test "${PATH_SEPARATOR+set}" != set; then
14671   echo "#! /bin/sh" >conf$$.sh
14672   echo  "exit 0"   >>conf$$.sh
14673   chmod +x conf$$.sh
14674   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14675     PATH_SEPARATOR=';'
14676   else
14677     PATH_SEPARATOR=:
14678   fi
14679   rm -f conf$$.sh
14680 fi
14681 ac_prog=ld
14682 if test "$GCC" = yes; then
14683   # Check if gcc -print-prog-name=ld gives a path.
14684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14685 $as_echo_n "checking for ld used by GCC... " >&6; }
14686   case $host in
14687   *-*-mingw*)
14688     # gcc leaves a trailing carriage return which upsets mingw
14689     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14690   *)
14691     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14692   esac
14693   case $ac_prog in
14694     # Accept absolute paths.
14695     [\\/]* | [A-Za-z]:[\\/]*)
14696       re_direlt='/[^/][^/]*/\.\./'
14697       # Canonicalize the path of ld
14698       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14699       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14700         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14701       done
14702       test -z "$LD" && LD="$ac_prog"
14703       ;;
14704   "")
14705     # If it fails, then pretend we aren't using GCC.
14706     ac_prog=ld
14707     ;;
14708   *)
14709     # If it is relative, then search for the first ld in PATH.
14710     with_gnu_ld=unknown
14711     ;;
14712   esac
14713 elif test "$with_gnu_ld" = yes; then
14714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14715 $as_echo_n "checking for GNU ld... " >&6; }
14716 else
14717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14718 $as_echo_n "checking for non-GNU ld... " >&6; }
14719 fi
14720 if ${acl_cv_path_LD+:} false; then :
14721   $as_echo_n "(cached) " >&6
14722 else
14723   if test -z "$LD"; then
14724   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14725   for ac_dir in $PATH; do
14726     test -z "$ac_dir" && ac_dir=.
14727     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14728       acl_cv_path_LD="$ac_dir/$ac_prog"
14729       # Check to see if the program is GNU ld.  I'd rather use --version,
14730       # but apparently some GNU ld's only accept -v.
14731       # Break only if it was the GNU/non-GNU ld that we prefer.
14732       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14733       *GNU* | *'with BFD'*)
14734         test "$with_gnu_ld" != no && break ;;
14735       *)
14736         test "$with_gnu_ld" != yes && break ;;
14737       esac
14738     fi
14739   done
14740   IFS="$ac_save_ifs"
14741 else
14742   acl_cv_path_LD="$LD" # Let the user override the test with a path.
14743 fi
14744 fi
14745
14746 LD="$acl_cv_path_LD"
14747 if test -n "$LD"; then
14748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14749 $as_echo "$LD" >&6; }
14750 else
14751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752 $as_echo "no" >&6; }
14753 fi
14754 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14756 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14757 if ${acl_cv_prog_gnu_ld+:} false; then :
14758   $as_echo_n "(cached) " >&6
14759 else
14760   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14761 case `$LD -v 2>&1 </dev/null` in
14762 *GNU* | *'with BFD'*)
14763   acl_cv_prog_gnu_ld=yes ;;
14764 *)
14765   acl_cv_prog_gnu_ld=no ;;
14766 esac
14767 fi
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14769 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14770 with_gnu_ld=$acl_cv_prog_gnu_ld
14771
14772
14773
14774
14775                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14776 $as_echo_n "checking for shared library run path origin... " >&6; }
14777 if ${acl_cv_rpath+:} false; then :
14778   $as_echo_n "(cached) " >&6
14779 else
14780
14781     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14782     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14783     . ./conftest.sh
14784     rm -f ./conftest.sh
14785     acl_cv_rpath=done
14786
14787 fi
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14789 $as_echo "$acl_cv_rpath" >&6; }
14790   wl="$acl_cv_wl"
14791   acl_libext="$acl_cv_libext"
14792   acl_shlibext="$acl_cv_shlibext"
14793   acl_libname_spec="$acl_cv_libname_spec"
14794   acl_library_names_spec="$acl_cv_library_names_spec"
14795   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14796   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14797   acl_hardcode_direct="$acl_cv_hardcode_direct"
14798   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14799     # Check whether --enable-rpath was given.
14800 if test "${enable_rpath+set}" = set; then :
14801   enableval=$enable_rpath; :
14802 else
14803   enable_rpath=yes
14804 fi
14805
14806
14807
14808                   acl_libdirstem=lib
14809   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14810   if test -n "$searchpath"; then
14811     acl_save_IFS="${IFS=        }"; IFS=":"
14812     for searchdir in $searchpath; do
14813       if test -d "$searchdir"; then
14814         case "$searchdir" in
14815           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14816           *) searchdir=`cd "$searchdir" && pwd`
14817              case "$searchdir" in
14818                */lib64 ) acl_libdirstem=lib64 ;;
14819              esac ;;
14820         esac
14821       fi
14822     done
14823     IFS="$acl_save_IFS"
14824   fi
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834     use_additional=yes
14835
14836   acl_save_prefix="$prefix"
14837   prefix="$acl_final_prefix"
14838   acl_save_exec_prefix="$exec_prefix"
14839   exec_prefix="$acl_final_exec_prefix"
14840
14841     eval additional_includedir=\"$includedir\"
14842     eval additional_libdir=\"$libdir\"
14843
14844   exec_prefix="$acl_save_exec_prefix"
14845   prefix="$acl_save_prefix"
14846
14847
14848 # Check whether --with-libiconv-prefix was given.
14849 if test "${with_libiconv_prefix+set}" = set; then :
14850   withval=$with_libiconv_prefix;
14851     if test "X$withval" = "Xno"; then
14852       use_additional=no
14853     else
14854       if test "X$withval" = "X"; then
14855
14856   acl_save_prefix="$prefix"
14857   prefix="$acl_final_prefix"
14858   acl_save_exec_prefix="$exec_prefix"
14859   exec_prefix="$acl_final_exec_prefix"
14860
14861           eval additional_includedir=\"$includedir\"
14862           eval additional_libdir=\"$libdir\"
14863
14864   exec_prefix="$acl_save_exec_prefix"
14865   prefix="$acl_save_prefix"
14866
14867       else
14868         additional_includedir="$withval/include"
14869         additional_libdir="$withval/$acl_libdirstem"
14870       fi
14871     fi
14872
14873 fi
14874
14875       LIBICONV=
14876   LTLIBICONV=
14877   INCICONV=
14878   LIBICONV_PREFIX=
14879   rpathdirs=
14880   ltrpathdirs=
14881   names_already_handled=
14882   names_next_round='iconv '
14883   while test -n "$names_next_round"; do
14884     names_this_round="$names_next_round"
14885     names_next_round=
14886     for name in $names_this_round; do
14887       already_handled=
14888       for n in $names_already_handled; do
14889         if test "$n" = "$name"; then
14890           already_handled=yes
14891           break
14892         fi
14893       done
14894       if test -z "$already_handled"; then
14895         names_already_handled="$names_already_handled $name"
14896                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14897         eval value=\"\$HAVE_LIB$uppername\"
14898         if test -n "$value"; then
14899           if test "$value" = yes; then
14900             eval value=\"\$LIB$uppername\"
14901             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14902             eval value=\"\$LTLIB$uppername\"
14903             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14904           else
14905                                     :
14906           fi
14907         else
14908                               found_dir=
14909           found_la=
14910           found_so=
14911           found_a=
14912           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14913           if test -n "$acl_shlibext"; then
14914             shrext=".$acl_shlibext"             # typically: shrext=.so
14915           else
14916             shrext=
14917           fi
14918           if test $use_additional = yes; then
14919             dir="$additional_libdir"
14920                                     if test -n "$acl_shlibext"; then
14921               if test -f "$dir/$libname$shrext"; then
14922                 found_dir="$dir"
14923                 found_so="$dir/$libname$shrext"
14924               else
14925                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14926                   ver=`(cd "$dir" && \
14927                         for f in "$libname$shrext".*; do echo "$f"; done \
14928                         | sed -e "s,^$libname$shrext\\\\.,," \
14929                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14930                         | sed 1q ) 2>/dev/null`
14931                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14932                     found_dir="$dir"
14933                     found_so="$dir/$libname$shrext.$ver"
14934                   fi
14935                 else
14936                   eval library_names=\"$acl_library_names_spec\"
14937                   for f in $library_names; do
14938                     if test -f "$dir/$f"; then
14939                       found_dir="$dir"
14940                       found_so="$dir/$f"
14941                       break
14942                     fi
14943                   done
14944                 fi
14945               fi
14946             fi
14947                         if test "X$found_dir" = "X"; then
14948               if test -f "$dir/$libname.$acl_libext"; then
14949                 found_dir="$dir"
14950                 found_a="$dir/$libname.$acl_libext"
14951               fi
14952             fi
14953             if test "X$found_dir" != "X"; then
14954               if test -f "$dir/$libname.la"; then
14955                 found_la="$dir/$libname.la"
14956               fi
14957             fi
14958           fi
14959           if test "X$found_dir" = "X"; then
14960             for x in $LDFLAGS $LTLIBICONV; do
14961
14962   acl_save_prefix="$prefix"
14963   prefix="$acl_final_prefix"
14964   acl_save_exec_prefix="$exec_prefix"
14965   exec_prefix="$acl_final_exec_prefix"
14966   eval x=\"$x\"
14967   exec_prefix="$acl_save_exec_prefix"
14968   prefix="$acl_save_prefix"
14969
14970               case "$x" in
14971                 -L*)
14972                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14973                                     if test -n "$acl_shlibext"; then
14974                     if test -f "$dir/$libname$shrext"; then
14975                       found_dir="$dir"
14976                       found_so="$dir/$libname$shrext"
14977                     else
14978                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14979                         ver=`(cd "$dir" && \
14980                               for f in "$libname$shrext".*; do echo "$f"; done \
14981                               | sed -e "s,^$libname$shrext\\\\.,," \
14982                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14983                               | sed 1q ) 2>/dev/null`
14984                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14985                           found_dir="$dir"
14986                           found_so="$dir/$libname$shrext.$ver"
14987                         fi
14988                       else
14989                         eval library_names=\"$acl_library_names_spec\"
14990                         for f in $library_names; do
14991                           if test -f "$dir/$f"; then
14992                             found_dir="$dir"
14993                             found_so="$dir/$f"
14994                             break
14995                           fi
14996                         done
14997                       fi
14998                     fi
14999                   fi
15000                                     if test "X$found_dir" = "X"; then
15001                     if test -f "$dir/$libname.$acl_libext"; then
15002                       found_dir="$dir"
15003                       found_a="$dir/$libname.$acl_libext"
15004                     fi
15005                   fi
15006                   if test "X$found_dir" != "X"; then
15007                     if test -f "$dir/$libname.la"; then
15008                       found_la="$dir/$libname.la"
15009                     fi
15010                   fi
15011                   ;;
15012               esac
15013               if test "X$found_dir" != "X"; then
15014                 break
15015               fi
15016             done
15017           fi
15018           if test "X$found_dir" != "X"; then
15019                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15020             if test "X$found_so" != "X"; then
15021                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15022                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15023               else
15024                                                                                 haveit=
15025                 for x in $ltrpathdirs; do
15026                   if test "X$x" = "X$found_dir"; then
15027                     haveit=yes
15028                     break
15029                   fi
15030                 done
15031                 if test -z "$haveit"; then
15032                   ltrpathdirs="$ltrpathdirs $found_dir"
15033                 fi
15034                                 if test "$acl_hardcode_direct" = yes; then
15035                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15036                 else
15037                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15038                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15039                                                             haveit=
15040                     for x in $rpathdirs; do
15041                       if test "X$x" = "X$found_dir"; then
15042                         haveit=yes
15043                         break
15044                       fi
15045                     done
15046                     if test -z "$haveit"; then
15047                       rpathdirs="$rpathdirs $found_dir"
15048                     fi
15049                   else
15050                                                                                 haveit=
15051                     for x in $LDFLAGS $LIBICONV; do
15052
15053   acl_save_prefix="$prefix"
15054   prefix="$acl_final_prefix"
15055   acl_save_exec_prefix="$exec_prefix"
15056   exec_prefix="$acl_final_exec_prefix"
15057   eval x=\"$x\"
15058   exec_prefix="$acl_save_exec_prefix"
15059   prefix="$acl_save_prefix"
15060
15061                       if test "X$x" = "X-L$found_dir"; then
15062                         haveit=yes
15063                         break
15064                       fi
15065                     done
15066                     if test -z "$haveit"; then
15067                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15068                     fi
15069                     if test "$acl_hardcode_minus_L" != no; then
15070                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15071                     else
15072                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15073                     fi
15074                   fi
15075                 fi
15076               fi
15077             else
15078               if test "X$found_a" != "X"; then
15079                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15080               else
15081                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15082               fi
15083             fi
15084                         additional_includedir=
15085             case "$found_dir" in
15086               */$acl_libdirstem | */$acl_libdirstem/)
15087                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15088                 LIBICONV_PREFIX="$basedir"
15089                 additional_includedir="$basedir/include"
15090                 ;;
15091             esac
15092             if test "X$additional_includedir" != "X"; then
15093                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15094                 haveit=
15095                 if test "X$additional_includedir" = "X/usr/local/include"; then
15096                   if test -n "$GCC"; then
15097                     case $host_os in
15098                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15099                     esac
15100                   fi
15101                 fi
15102                 if test -z "$haveit"; then
15103                   for x in $CPPFLAGS $INCICONV; do
15104
15105   acl_save_prefix="$prefix"
15106   prefix="$acl_final_prefix"
15107   acl_save_exec_prefix="$exec_prefix"
15108   exec_prefix="$acl_final_exec_prefix"
15109   eval x=\"$x\"
15110   exec_prefix="$acl_save_exec_prefix"
15111   prefix="$acl_save_prefix"
15112
15113                     if test "X$x" = "X-I$additional_includedir"; then
15114                       haveit=yes
15115                       break
15116                     fi
15117                   done
15118                   if test -z "$haveit"; then
15119                     if test -d "$additional_includedir"; then
15120                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15121                     fi
15122                   fi
15123                 fi
15124               fi
15125             fi
15126                         if test -n "$found_la"; then
15127                                                         save_libdir="$libdir"
15128               case "$found_la" in
15129                 */* | *\\*) . "$found_la" ;;
15130                 *) . "./$found_la" ;;
15131               esac
15132               libdir="$save_libdir"
15133                             for dep in $dependency_libs; do
15134                 case "$dep" in
15135                   -L*)
15136                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15137                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15138                       haveit=
15139                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15140                         if test -n "$GCC"; then
15141                           case $host_os in
15142                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15143                           esac
15144                         fi
15145                       fi
15146                       if test -z "$haveit"; then
15147                         haveit=
15148                         for x in $LDFLAGS $LIBICONV; do
15149
15150   acl_save_prefix="$prefix"
15151   prefix="$acl_final_prefix"
15152   acl_save_exec_prefix="$exec_prefix"
15153   exec_prefix="$acl_final_exec_prefix"
15154   eval x=\"$x\"
15155   exec_prefix="$acl_save_exec_prefix"
15156   prefix="$acl_save_prefix"
15157
15158                           if test "X$x" = "X-L$additional_libdir"; then
15159                             haveit=yes
15160                             break
15161                           fi
15162                         done
15163                         if test -z "$haveit"; then
15164                           if test -d "$additional_libdir"; then
15165                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15166                           fi
15167                         fi
15168                         haveit=
15169                         for x in $LDFLAGS $LTLIBICONV; do
15170
15171   acl_save_prefix="$prefix"
15172   prefix="$acl_final_prefix"
15173   acl_save_exec_prefix="$exec_prefix"
15174   exec_prefix="$acl_final_exec_prefix"
15175   eval x=\"$x\"
15176   exec_prefix="$acl_save_exec_prefix"
15177   prefix="$acl_save_prefix"
15178
15179                           if test "X$x" = "X-L$additional_libdir"; then
15180                             haveit=yes
15181                             break
15182                           fi
15183                         done
15184                         if test -z "$haveit"; then
15185                           if test -d "$additional_libdir"; then
15186                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15187                           fi
15188                         fi
15189                       fi
15190                     fi
15191                     ;;
15192                   -R*)
15193                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15194                     if test "$enable_rpath" != no; then
15195                                                                   haveit=
15196                       for x in $rpathdirs; do
15197                         if test "X$x" = "X$dir"; then
15198                           haveit=yes
15199                           break
15200                         fi
15201                       done
15202                       if test -z "$haveit"; then
15203                         rpathdirs="$rpathdirs $dir"
15204                       fi
15205                                                                   haveit=
15206                       for x in $ltrpathdirs; do
15207                         if test "X$x" = "X$dir"; then
15208                           haveit=yes
15209                           break
15210                         fi
15211                       done
15212                       if test -z "$haveit"; then
15213                         ltrpathdirs="$ltrpathdirs $dir"
15214                       fi
15215                     fi
15216                     ;;
15217                   -l*)
15218                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15219                     ;;
15220                   *.la)
15221                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15222                     ;;
15223                   *)
15224                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15225                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15226                     ;;
15227                 esac
15228               done
15229             fi
15230           else
15231                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15232             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15233           fi
15234         fi
15235       fi
15236     done
15237   done
15238   if test "X$rpathdirs" != "X"; then
15239     if test -n "$acl_hardcode_libdir_separator"; then
15240                         alldirs=
15241       for found_dir in $rpathdirs; do
15242         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15243       done
15244             acl_save_libdir="$libdir"
15245       libdir="$alldirs"
15246       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15247       libdir="$acl_save_libdir"
15248       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15249     else
15250             for found_dir in $rpathdirs; do
15251         acl_save_libdir="$libdir"
15252         libdir="$found_dir"
15253         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15254         libdir="$acl_save_libdir"
15255         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15256       done
15257     fi
15258   fi
15259   if test "X$ltrpathdirs" != "X"; then
15260             for found_dir in $ltrpathdirs; do
15261       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15262     done
15263   fi
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15290 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15291 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15292   $as_echo_n "(cached) " >&6
15293 else
15294   gt_save_LIBS="$LIBS"
15295      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15296      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15297 /* end confdefs.h.  */
15298 #include <CoreFoundation/CFPreferences.h>
15299 int
15300 main ()
15301 {
15302 CFPreferencesCopyAppValue(NULL, NULL)
15303   ;
15304   return 0;
15305 }
15306 _ACEOF
15307 if ac_fn_c_try_link "$LINENO"; then :
15308   gt_cv_func_CFPreferencesCopyAppValue=yes
15309 else
15310   gt_cv_func_CFPreferencesCopyAppValue=no
15311 fi
15312 rm -f core conftest.err conftest.$ac_objext \
15313     conftest$ac_exeext conftest.$ac_ext
15314      LIBS="$gt_save_LIBS"
15315 fi
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15317 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15318   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15319
15320 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15321
15322   fi
15323     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15324 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15325 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15326   $as_echo_n "(cached) " >&6
15327 else
15328   gt_save_LIBS="$LIBS"
15329      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15330      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h.  */
15332 #include <CoreFoundation/CFLocale.h>
15333 int
15334 main ()
15335 {
15336 CFLocaleCopyCurrent();
15337   ;
15338   return 0;
15339 }
15340 _ACEOF
15341 if ac_fn_c_try_link "$LINENO"; then :
15342   gt_cv_func_CFLocaleCopyCurrent=yes
15343 else
15344   gt_cv_func_CFLocaleCopyCurrent=no
15345 fi
15346 rm -f core conftest.err conftest.$ac_objext \
15347     conftest$ac_exeext conftest.$ac_ext
15348      LIBS="$gt_save_LIBS"
15349 fi
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15351 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15352   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15353
15354 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15355
15356   fi
15357   INTL_MACOSX_LIBS=
15358   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15359     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15360   fi
15361
15362
15363
15364
15365
15366
15367   LIBINTL=
15368   LTLIBINTL=
15369   POSUB=
15370
15371     case " $gt_needs " in
15372     *" need-formatstring-macros "*) gt_api_version=3 ;;
15373     *" need-ngettext "*) gt_api_version=2 ;;
15374     *) gt_api_version=1 ;;
15375   esac
15376   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15377   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15378
15379     if test "$USE_NLS" = "yes"; then
15380     gt_use_preinstalled_gnugettext=no
15381
15382
15383         if test $gt_api_version -ge 3; then
15384           gt_revision_test_code='
15385 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15386 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15387 #endif
15388 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15389 '
15390         else
15391           gt_revision_test_code=
15392         fi
15393         if test $gt_api_version -ge 2; then
15394           gt_expression_test_code=' + * ngettext ("", "", 0)'
15395         else
15396           gt_expression_test_code=
15397         fi
15398
15399         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15400 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15401 if eval \${$gt_func_gnugettext_libc+:} false; then :
15402   $as_echo_n "(cached) " >&6
15403 else
15404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h.  */
15406 #include <libintl.h>
15407 $gt_revision_test_code
15408 extern int _nl_msg_cat_cntr;
15409 extern int *_nl_domain_bindings;
15410 int
15411 main ()
15412 {
15413 bindtextdomain ("", "");
15414 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15415   ;
15416   return 0;
15417 }
15418 _ACEOF
15419 if ac_fn_c_try_link "$LINENO"; then :
15420   eval "$gt_func_gnugettext_libc=yes"
15421 else
15422   eval "$gt_func_gnugettext_libc=no"
15423 fi
15424 rm -f core conftest.err conftest.$ac_objext \
15425     conftest$ac_exeext conftest.$ac_ext
15426 fi
15427 eval ac_res=\$$gt_func_gnugettext_libc
15428                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15429 $as_echo "$ac_res" >&6; }
15430
15431         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15432
15433
15434
15435
15436
15437           am_save_CPPFLAGS="$CPPFLAGS"
15438
15439   for element in $INCICONV; do
15440     haveit=
15441     for x in $CPPFLAGS; do
15442
15443   acl_save_prefix="$prefix"
15444   prefix="$acl_final_prefix"
15445   acl_save_exec_prefix="$exec_prefix"
15446   exec_prefix="$acl_final_exec_prefix"
15447   eval x=\"$x\"
15448   exec_prefix="$acl_save_exec_prefix"
15449   prefix="$acl_save_prefix"
15450
15451       if test "X$x" = "X$element"; then
15452         haveit=yes
15453         break
15454       fi
15455     done
15456     if test -z "$haveit"; then
15457       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15458     fi
15459   done
15460
15461
15462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15463 $as_echo_n "checking for iconv... " >&6; }
15464 if ${am_cv_func_iconv+:} false; then :
15465   $as_echo_n "(cached) " >&6
15466 else
15467
15468     am_cv_func_iconv="no, consider installing GNU libiconv"
15469     am_cv_lib_iconv=no
15470     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15471 /* end confdefs.h.  */
15472 #include <stdlib.h>
15473 #include <iconv.h>
15474 int
15475 main ()
15476 {
15477 iconv_t cd = iconv_open("","");
15478        iconv(cd,NULL,NULL,NULL,NULL);
15479        iconv_close(cd);
15480   ;
15481   return 0;
15482 }
15483 _ACEOF
15484 if ac_fn_c_try_link "$LINENO"; then :
15485   am_cv_func_iconv=yes
15486 fi
15487 rm -f core conftest.err conftest.$ac_objext \
15488     conftest$ac_exeext conftest.$ac_ext
15489     if test "$am_cv_func_iconv" != yes; then
15490       am_save_LIBS="$LIBS"
15491       LIBS="$LIBS $LIBICONV"
15492       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493 /* end confdefs.h.  */
15494 #include <stdlib.h>
15495 #include <iconv.h>
15496 int
15497 main ()
15498 {
15499 iconv_t cd = iconv_open("","");
15500          iconv(cd,NULL,NULL,NULL,NULL);
15501          iconv_close(cd);
15502   ;
15503   return 0;
15504 }
15505 _ACEOF
15506 if ac_fn_c_try_link "$LINENO"; then :
15507   am_cv_lib_iconv=yes
15508         am_cv_func_iconv=yes
15509 fi
15510 rm -f core conftest.err conftest.$ac_objext \
15511     conftest$ac_exeext conftest.$ac_ext
15512       LIBS="$am_save_LIBS"
15513     fi
15514
15515 fi
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15517 $as_echo "$am_cv_func_iconv" >&6; }
15518   if test "$am_cv_func_iconv" = yes; then
15519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15520 $as_echo_n "checking for working iconv... " >&6; }
15521 if ${am_cv_func_iconv_works+:} false; then :
15522   $as_echo_n "(cached) " >&6
15523 else
15524
15525             am_save_LIBS="$LIBS"
15526       if test $am_cv_lib_iconv = yes; then
15527         LIBS="$LIBS $LIBICONV"
15528       fi
15529       if test "$cross_compiling" = yes; then :
15530   case "$host_os" in
15531            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15532            *)            am_cv_func_iconv_works="guessing yes" ;;
15533          esac
15534 else
15535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15536 /* end confdefs.h.  */
15537
15538 #include <iconv.h>
15539 #include <string.h>
15540 int main ()
15541 {
15542   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15543      returns.  */
15544   {
15545     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15546     if (cd_utf8_to_88591 != (iconv_t)(-1))
15547       {
15548         static const char input[] = "\342\202\254"; /* EURO SIGN */
15549         char buf[10];
15550         const char *inptr = input;
15551         size_t inbytesleft = strlen (input);
15552         char *outptr = buf;
15553         size_t outbytesleft = sizeof (buf);
15554         size_t res = iconv (cd_utf8_to_88591,
15555                             (char **) &inptr, &inbytesleft,
15556                             &outptr, &outbytesleft);
15557         if (res == 0)
15558           return 1;
15559       }
15560   }
15561 #if 0 /* This bug could be worked around by the caller.  */
15562   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15563   {
15564     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15565     if (cd_88591_to_utf8 != (iconv_t)(-1))
15566       {
15567         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15568         char buf[50];
15569         const char *inptr = input;
15570         size_t inbytesleft = strlen (input);
15571         char *outptr = buf;
15572         size_t outbytesleft = sizeof (buf);
15573         size_t res = iconv (cd_88591_to_utf8,
15574                             (char **) &inptr, &inbytesleft,
15575                             &outptr, &outbytesleft);
15576         if ((int)res > 0)
15577           return 1;
15578       }
15579   }
15580 #endif
15581   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15582      provided.  */
15583   if (/* Try standardized names.  */
15584       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15585       /* Try IRIX, OSF/1 names.  */
15586       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15587       /* Try AIX names.  */
15588       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15589       /* Try HP-UX names.  */
15590       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15591     return 1;
15592   return 0;
15593 }
15594 _ACEOF
15595 if ac_fn_c_try_run "$LINENO"; then :
15596   am_cv_func_iconv_works=yes
15597 else
15598   am_cv_func_iconv_works=no
15599 fi
15600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15601   conftest.$ac_objext conftest.beam conftest.$ac_ext
15602 fi
15603
15604       LIBS="$am_save_LIBS"
15605
15606 fi
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15608 $as_echo "$am_cv_func_iconv_works" >&6; }
15609     case "$am_cv_func_iconv_works" in
15610       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15611       *)   am_func_iconv=yes ;;
15612     esac
15613   else
15614     am_func_iconv=no am_cv_lib_iconv=no
15615   fi
15616   if test "$am_func_iconv" = yes; then
15617
15618 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15619
15620   fi
15621   if test "$am_cv_lib_iconv" = yes; then
15622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15623 $as_echo_n "checking how to link with libiconv... " >&6; }
15624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15625 $as_echo "$LIBICONV" >&6; }
15626   else
15627             CPPFLAGS="$am_save_CPPFLAGS"
15628     LIBICONV=
15629     LTLIBICONV=
15630   fi
15631
15632
15633
15634
15635
15636
15637
15638
15639     use_additional=yes
15640
15641   acl_save_prefix="$prefix"
15642   prefix="$acl_final_prefix"
15643   acl_save_exec_prefix="$exec_prefix"
15644   exec_prefix="$acl_final_exec_prefix"
15645
15646     eval additional_includedir=\"$includedir\"
15647     eval additional_libdir=\"$libdir\"
15648
15649   exec_prefix="$acl_save_exec_prefix"
15650   prefix="$acl_save_prefix"
15651
15652
15653 # Check whether --with-libintl-prefix was given.
15654 if test "${with_libintl_prefix+set}" = set; then :
15655   withval=$with_libintl_prefix;
15656     if test "X$withval" = "Xno"; then
15657       use_additional=no
15658     else
15659       if test "X$withval" = "X"; then
15660
15661   acl_save_prefix="$prefix"
15662   prefix="$acl_final_prefix"
15663   acl_save_exec_prefix="$exec_prefix"
15664   exec_prefix="$acl_final_exec_prefix"
15665
15666           eval additional_includedir=\"$includedir\"
15667           eval additional_libdir=\"$libdir\"
15668
15669   exec_prefix="$acl_save_exec_prefix"
15670   prefix="$acl_save_prefix"
15671
15672       else
15673         additional_includedir="$withval/include"
15674         additional_libdir="$withval/$acl_libdirstem"
15675       fi
15676     fi
15677
15678 fi
15679
15680       LIBINTL=
15681   LTLIBINTL=
15682   INCINTL=
15683   LIBINTL_PREFIX=
15684   rpathdirs=
15685   ltrpathdirs=
15686   names_already_handled=
15687   names_next_round='intl '
15688   while test -n "$names_next_round"; do
15689     names_this_round="$names_next_round"
15690     names_next_round=
15691     for name in $names_this_round; do
15692       already_handled=
15693       for n in $names_already_handled; do
15694         if test "$n" = "$name"; then
15695           already_handled=yes
15696           break
15697         fi
15698       done
15699       if test -z "$already_handled"; then
15700         names_already_handled="$names_already_handled $name"
15701                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15702         eval value=\"\$HAVE_LIB$uppername\"
15703         if test -n "$value"; then
15704           if test "$value" = yes; then
15705             eval value=\"\$LIB$uppername\"
15706             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15707             eval value=\"\$LTLIB$uppername\"
15708             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15709           else
15710                                     :
15711           fi
15712         else
15713                               found_dir=
15714           found_la=
15715           found_so=
15716           found_a=
15717           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15718           if test -n "$acl_shlibext"; then
15719             shrext=".$acl_shlibext"             # typically: shrext=.so
15720           else
15721             shrext=
15722           fi
15723           if test $use_additional = yes; then
15724             dir="$additional_libdir"
15725                                     if test -n "$acl_shlibext"; then
15726               if test -f "$dir/$libname$shrext"; then
15727                 found_dir="$dir"
15728                 found_so="$dir/$libname$shrext"
15729               else
15730                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15731                   ver=`(cd "$dir" && \
15732                         for f in "$libname$shrext".*; do echo "$f"; done \
15733                         | sed -e "s,^$libname$shrext\\\\.,," \
15734                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15735                         | sed 1q ) 2>/dev/null`
15736                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15737                     found_dir="$dir"
15738                     found_so="$dir/$libname$shrext.$ver"
15739                   fi
15740                 else
15741                   eval library_names=\"$acl_library_names_spec\"
15742                   for f in $library_names; do
15743                     if test -f "$dir/$f"; then
15744                       found_dir="$dir"
15745                       found_so="$dir/$f"
15746                       break
15747                     fi
15748                   done
15749                 fi
15750               fi
15751             fi
15752                         if test "X$found_dir" = "X"; then
15753               if test -f "$dir/$libname.$acl_libext"; then
15754                 found_dir="$dir"
15755                 found_a="$dir/$libname.$acl_libext"
15756               fi
15757             fi
15758             if test "X$found_dir" != "X"; then
15759               if test -f "$dir/$libname.la"; then
15760                 found_la="$dir/$libname.la"
15761               fi
15762             fi
15763           fi
15764           if test "X$found_dir" = "X"; then
15765             for x in $LDFLAGS $LTLIBINTL; do
15766
15767   acl_save_prefix="$prefix"
15768   prefix="$acl_final_prefix"
15769   acl_save_exec_prefix="$exec_prefix"
15770   exec_prefix="$acl_final_exec_prefix"
15771   eval x=\"$x\"
15772   exec_prefix="$acl_save_exec_prefix"
15773   prefix="$acl_save_prefix"
15774
15775               case "$x" in
15776                 -L*)
15777                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15778                                     if test -n "$acl_shlibext"; then
15779                     if test -f "$dir/$libname$shrext"; then
15780                       found_dir="$dir"
15781                       found_so="$dir/$libname$shrext"
15782                     else
15783                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15784                         ver=`(cd "$dir" && \
15785                               for f in "$libname$shrext".*; do echo "$f"; done \
15786                               | sed -e "s,^$libname$shrext\\\\.,," \
15787                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15788                               | sed 1q ) 2>/dev/null`
15789                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15790                           found_dir="$dir"
15791                           found_so="$dir/$libname$shrext.$ver"
15792                         fi
15793                       else
15794                         eval library_names=\"$acl_library_names_spec\"
15795                         for f in $library_names; do
15796                           if test -f "$dir/$f"; then
15797                             found_dir="$dir"
15798                             found_so="$dir/$f"
15799                             break
15800                           fi
15801                         done
15802                       fi
15803                     fi
15804                   fi
15805                                     if test "X$found_dir" = "X"; then
15806                     if test -f "$dir/$libname.$acl_libext"; then
15807                       found_dir="$dir"
15808                       found_a="$dir/$libname.$acl_libext"
15809                     fi
15810                   fi
15811                   if test "X$found_dir" != "X"; then
15812                     if test -f "$dir/$libname.la"; then
15813                       found_la="$dir/$libname.la"
15814                     fi
15815                   fi
15816                   ;;
15817               esac
15818               if test "X$found_dir" != "X"; then
15819                 break
15820               fi
15821             done
15822           fi
15823           if test "X$found_dir" != "X"; then
15824                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15825             if test "X$found_so" != "X"; then
15826                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15827                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15828               else
15829                                                                                 haveit=
15830                 for x in $ltrpathdirs; do
15831                   if test "X$x" = "X$found_dir"; then
15832                     haveit=yes
15833                     break
15834                   fi
15835                 done
15836                 if test -z "$haveit"; then
15837                   ltrpathdirs="$ltrpathdirs $found_dir"
15838                 fi
15839                                 if test "$acl_hardcode_direct" = yes; then
15840                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15841                 else
15842                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15843                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15844                                                             haveit=
15845                     for x in $rpathdirs; do
15846                       if test "X$x" = "X$found_dir"; then
15847                         haveit=yes
15848                         break
15849                       fi
15850                     done
15851                     if test -z "$haveit"; then
15852                       rpathdirs="$rpathdirs $found_dir"
15853                     fi
15854                   else
15855                                                                                 haveit=
15856                     for x in $LDFLAGS $LIBINTL; do
15857
15858   acl_save_prefix="$prefix"
15859   prefix="$acl_final_prefix"
15860   acl_save_exec_prefix="$exec_prefix"
15861   exec_prefix="$acl_final_exec_prefix"
15862   eval x=\"$x\"
15863   exec_prefix="$acl_save_exec_prefix"
15864   prefix="$acl_save_prefix"
15865
15866                       if test "X$x" = "X-L$found_dir"; then
15867                         haveit=yes
15868                         break
15869                       fi
15870                     done
15871                     if test -z "$haveit"; then
15872                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15873                     fi
15874                     if test "$acl_hardcode_minus_L" != no; then
15875                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15876                     else
15877                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15878                     fi
15879                   fi
15880                 fi
15881               fi
15882             else
15883               if test "X$found_a" != "X"; then
15884                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15885               else
15886                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15887               fi
15888             fi
15889                         additional_includedir=
15890             case "$found_dir" in
15891               */$acl_libdirstem | */$acl_libdirstem/)
15892                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15893                 LIBINTL_PREFIX="$basedir"
15894                 additional_includedir="$basedir/include"
15895                 ;;
15896             esac
15897             if test "X$additional_includedir" != "X"; then
15898                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15899                 haveit=
15900                 if test "X$additional_includedir" = "X/usr/local/include"; then
15901                   if test -n "$GCC"; then
15902                     case $host_os in
15903                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15904                     esac
15905                   fi
15906                 fi
15907                 if test -z "$haveit"; then
15908                   for x in $CPPFLAGS $INCINTL; do
15909
15910   acl_save_prefix="$prefix"
15911   prefix="$acl_final_prefix"
15912   acl_save_exec_prefix="$exec_prefix"
15913   exec_prefix="$acl_final_exec_prefix"
15914   eval x=\"$x\"
15915   exec_prefix="$acl_save_exec_prefix"
15916   prefix="$acl_save_prefix"
15917
15918                     if test "X$x" = "X-I$additional_includedir"; then
15919                       haveit=yes
15920                       break
15921                     fi
15922                   done
15923                   if test -z "$haveit"; then
15924                     if test -d "$additional_includedir"; then
15925                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15926                     fi
15927                   fi
15928                 fi
15929               fi
15930             fi
15931                         if test -n "$found_la"; then
15932                                                         save_libdir="$libdir"
15933               case "$found_la" in
15934                 */* | *\\*) . "$found_la" ;;
15935                 *) . "./$found_la" ;;
15936               esac
15937               libdir="$save_libdir"
15938                             for dep in $dependency_libs; do
15939                 case "$dep" in
15940                   -L*)
15941                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15942                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15943                       haveit=
15944                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15945                         if test -n "$GCC"; then
15946                           case $host_os in
15947                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15948                           esac
15949                         fi
15950                       fi
15951                       if test -z "$haveit"; then
15952                         haveit=
15953                         for x in $LDFLAGS $LIBINTL; do
15954
15955   acl_save_prefix="$prefix"
15956   prefix="$acl_final_prefix"
15957   acl_save_exec_prefix="$exec_prefix"
15958   exec_prefix="$acl_final_exec_prefix"
15959   eval x=\"$x\"
15960   exec_prefix="$acl_save_exec_prefix"
15961   prefix="$acl_save_prefix"
15962
15963                           if test "X$x" = "X-L$additional_libdir"; then
15964                             haveit=yes
15965                             break
15966                           fi
15967                         done
15968                         if test -z "$haveit"; then
15969                           if test -d "$additional_libdir"; then
15970                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15971                           fi
15972                         fi
15973                         haveit=
15974                         for x in $LDFLAGS $LTLIBINTL; do
15975
15976   acl_save_prefix="$prefix"
15977   prefix="$acl_final_prefix"
15978   acl_save_exec_prefix="$exec_prefix"
15979   exec_prefix="$acl_final_exec_prefix"
15980   eval x=\"$x\"
15981   exec_prefix="$acl_save_exec_prefix"
15982   prefix="$acl_save_prefix"
15983
15984                           if test "X$x" = "X-L$additional_libdir"; then
15985                             haveit=yes
15986                             break
15987                           fi
15988                         done
15989                         if test -z "$haveit"; then
15990                           if test -d "$additional_libdir"; then
15991                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15992                           fi
15993                         fi
15994                       fi
15995                     fi
15996                     ;;
15997                   -R*)
15998                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15999                     if test "$enable_rpath" != no; then
16000                                                                   haveit=
16001                       for x in $rpathdirs; do
16002                         if test "X$x" = "X$dir"; then
16003                           haveit=yes
16004                           break
16005                         fi
16006                       done
16007                       if test -z "$haveit"; then
16008                         rpathdirs="$rpathdirs $dir"
16009                       fi
16010                                                                   haveit=
16011                       for x in $ltrpathdirs; do
16012                         if test "X$x" = "X$dir"; then
16013                           haveit=yes
16014                           break
16015                         fi
16016                       done
16017                       if test -z "$haveit"; then
16018                         ltrpathdirs="$ltrpathdirs $dir"
16019                       fi
16020                     fi
16021                     ;;
16022                   -l*)
16023                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16024                     ;;
16025                   *.la)
16026                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16027                     ;;
16028                   *)
16029                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16030                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16031                     ;;
16032                 esac
16033               done
16034             fi
16035           else
16036                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16037             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16038           fi
16039         fi
16040       fi
16041     done
16042   done
16043   if test "X$rpathdirs" != "X"; then
16044     if test -n "$acl_hardcode_libdir_separator"; then
16045                         alldirs=
16046       for found_dir in $rpathdirs; do
16047         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16048       done
16049             acl_save_libdir="$libdir"
16050       libdir="$alldirs"
16051       eval flag=\"$acl_hardcode_libdir_flag_spec\"
16052       libdir="$acl_save_libdir"
16053       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16054     else
16055             for found_dir in $rpathdirs; do
16056         acl_save_libdir="$libdir"
16057         libdir="$found_dir"
16058         eval flag=\"$acl_hardcode_libdir_flag_spec\"
16059         libdir="$acl_save_libdir"
16060         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16061       done
16062     fi
16063   fi
16064   if test "X$ltrpathdirs" != "X"; then
16065             for found_dir in $ltrpathdirs; do
16066       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16067     done
16068   fi
16069
16070           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16071 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16072 if eval \${$gt_func_gnugettext_libintl+:} false; then :
16073   $as_echo_n "(cached) " >&6
16074 else
16075   gt_save_CPPFLAGS="$CPPFLAGS"
16076             CPPFLAGS="$CPPFLAGS $INCINTL"
16077             gt_save_LIBS="$LIBS"
16078             LIBS="$LIBS $LIBINTL"
16079                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16080 /* end confdefs.h.  */
16081 #include <libintl.h>
16082 $gt_revision_test_code
16083 extern int _nl_msg_cat_cntr;
16084 extern
16085 #ifdef __cplusplus
16086 "C"
16087 #endif
16088 const char *_nl_expand_alias (const char *);
16089 int
16090 main ()
16091 {
16092 bindtextdomain ("", "");
16093 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16094   ;
16095   return 0;
16096 }
16097 _ACEOF
16098 if ac_fn_c_try_link "$LINENO"; then :
16099   eval "$gt_func_gnugettext_libintl=yes"
16100 else
16101   eval "$gt_func_gnugettext_libintl=no"
16102 fi
16103 rm -f core conftest.err conftest.$ac_objext \
16104     conftest$ac_exeext conftest.$ac_ext
16105                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16106               LIBS="$LIBS $LIBICONV"
16107               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108 /* end confdefs.h.  */
16109 #include <libintl.h>
16110 $gt_revision_test_code
16111 extern int _nl_msg_cat_cntr;
16112 extern
16113 #ifdef __cplusplus
16114 "C"
16115 #endif
16116 const char *_nl_expand_alias (const char *);
16117 int
16118 main ()
16119 {
16120 bindtextdomain ("", "");
16121 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16122   ;
16123   return 0;
16124 }
16125 _ACEOF
16126 if ac_fn_c_try_link "$LINENO"; then :
16127   LIBINTL="$LIBINTL $LIBICONV"
16128                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16129                 eval "$gt_func_gnugettext_libintl=yes"
16130
16131 fi
16132 rm -f core conftest.err conftest.$ac_objext \
16133     conftest$ac_exeext conftest.$ac_ext
16134             fi
16135             CPPFLAGS="$gt_save_CPPFLAGS"
16136             LIBS="$gt_save_LIBS"
16137 fi
16138 eval ac_res=\$$gt_func_gnugettext_libintl
16139                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16140 $as_echo "$ac_res" >&6; }
16141         fi
16142
16143                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16144            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16145                 && test "$PACKAGE" != gettext-runtime \
16146                 && test "$PACKAGE" != gettext-tools; }; then
16147           gt_use_preinstalled_gnugettext=yes
16148         else
16149                     LIBINTL=
16150           LTLIBINTL=
16151           INCINTL=
16152         fi
16153
16154
16155
16156     if test -n "$INTL_MACOSX_LIBS"; then
16157       if test "$gt_use_preinstalled_gnugettext" = "yes" \
16158          || test "$nls_cv_use_gnu_gettext" = "yes"; then
16159                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16160         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16161       fi
16162     fi
16163
16164     if test "$gt_use_preinstalled_gnugettext" = "yes" \
16165        || test "$nls_cv_use_gnu_gettext" = "yes"; then
16166
16167 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16168
16169     else
16170       USE_NLS=no
16171     fi
16172   fi
16173
16174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16175 $as_echo_n "checking whether to use NLS... " >&6; }
16176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16177 $as_echo "$USE_NLS" >&6; }
16178   if test "$USE_NLS" = "yes"; then
16179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16180 $as_echo_n "checking where the gettext function comes from... " >&6; }
16181     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16182       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16183         gt_source="external libintl"
16184       else
16185         gt_source="libc"
16186       fi
16187     else
16188       gt_source="included intl directory"
16189     fi
16190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16191 $as_echo "$gt_source" >&6; }
16192   fi
16193
16194   if test "$USE_NLS" = "yes"; then
16195
16196     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16197       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16198         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16199 $as_echo_n "checking how to link with libintl... " >&6; }
16200         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16201 $as_echo "$LIBINTL" >&6; }
16202
16203   for element in $INCINTL; do
16204     haveit=
16205     for x in $CPPFLAGS; do
16206
16207   acl_save_prefix="$prefix"
16208   prefix="$acl_final_prefix"
16209   acl_save_exec_prefix="$exec_prefix"
16210   exec_prefix="$acl_final_exec_prefix"
16211   eval x=\"$x\"
16212   exec_prefix="$acl_save_exec_prefix"
16213   prefix="$acl_save_prefix"
16214
16215       if test "X$x" = "X$element"; then
16216         haveit=yes
16217         break
16218       fi
16219     done
16220     if test -z "$haveit"; then
16221       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16222     fi
16223   done
16224
16225       fi
16226
16227
16228 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16229
16230
16231 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16232
16233     fi
16234
16235         POSUB=po
16236   fi
16237
16238
16239
16240     INTLLIBS="$LIBINTL"
16241
16242
16243
16244
16245
16246
16247
16248
16249 GETTEXT_PACKAGE=PACKAGE_TARNAME
16250
16251
16252 $as_echo "#define GETTEXT_PACKAGE PACKAGE_TARNAME" >>confdefs.h
16253
16254
16255 ac_config_files="$ac_config_files Makefile po/Makefile.in moonshot.desktop moonshot-webp.desktop moonshot-ui.spec"
16256
16257
16258 cat >confcache <<\_ACEOF
16259 # This file is a shell script that caches the results of configure
16260 # tests run on this system so they can be shared between configure
16261 # scripts and configure runs, see configure's option --config-cache.
16262 # It is not useful on other systems.  If it contains results you don't
16263 # want to keep, you may remove or edit it.
16264 #
16265 # config.status only pays attention to the cache file if you give it
16266 # the --recheck option to rerun configure.
16267 #
16268 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16270 # following values.
16271
16272 _ACEOF
16273
16274 # The following way of writing the cache mishandles newlines in values,
16275 # but we know of no workaround that is simple, portable, and efficient.
16276 # So, we kill variables containing newlines.
16277 # Ultrix sh set writes to stderr and can't be redirected directly,
16278 # and sets the high bit in the cache file unless we assign to the vars.
16279 (
16280   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16281     eval ac_val=\$$ac_var
16282     case $ac_val in #(
16283     *${as_nl}*)
16284       case $ac_var in #(
16285       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16286 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16287       esac
16288       case $ac_var in #(
16289       _ | IFS | as_nl) ;; #(
16290       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16291       *) { eval $ac_var=; unset $ac_var;} ;;
16292       esac ;;
16293     esac
16294   done
16295
16296   (set) 2>&1 |
16297     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16298     *${as_nl}ac_space=\ *)
16299       # `set' does not quote correctly, so add quotes: double-quote
16300       # substitution turns \\\\ into \\, and sed turns \\ into \.
16301       sed -n \
16302         "s/'/'\\\\''/g;
16303           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16304       ;; #(
16305     *)
16306       # `set' quotes correctly as required by POSIX, so do not add quotes.
16307       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16308       ;;
16309     esac |
16310     sort
16311 ) |
16312   sed '
16313      /^ac_cv_env_/b end
16314      t clear
16315      :clear
16316      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16317      t end
16318      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16319      :end' >>confcache
16320 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16321   if test -w "$cache_file"; then
16322     if test "x$cache_file" != "x/dev/null"; then
16323       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16324 $as_echo "$as_me: updating cache $cache_file" >&6;}
16325       if test ! -f "$cache_file" || test -h "$cache_file"; then
16326         cat confcache >"$cache_file"
16327       else
16328         case $cache_file in #(
16329         */* | ?:*)
16330           mv -f confcache "$cache_file"$$ &&
16331           mv -f "$cache_file"$$ "$cache_file" ;; #(
16332         *)
16333           mv -f confcache "$cache_file" ;;
16334         esac
16335       fi
16336     fi
16337   else
16338     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16339 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16340   fi
16341 fi
16342 rm -f confcache
16343
16344 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16345 # Let make expand exec_prefix.
16346 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16347
16348 DEFS=-DHAVE_CONFIG_H
16349
16350 ac_libobjs=
16351 ac_ltlibobjs=
16352 U=
16353 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16354   # 1. Remove the extension, and $U if already installed.
16355   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16356   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16357   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16358   #    will be set to the directory where LIBOBJS objects are built.
16359   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16360   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16361 done
16362 LIBOBJS=$ac_libobjs
16363
16364 LTLIBOBJS=$ac_ltlibobjs
16365
16366
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16368 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16369    if test -n "$am_sleep_pid"; then
16370      # Hide warnings about reused PIDs.
16371      wait $am_sleep_pid 2>/dev/null
16372    fi
16373    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16374 $as_echo "done" >&6; }
16375  if test -n "$EXEEXT"; then
16376   am__EXEEXT_TRUE=
16377   am__EXEEXT_FALSE='#'
16378 else
16379   am__EXEEXT_TRUE='#'
16380   am__EXEEXT_FALSE=
16381 fi
16382
16383 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16384   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16386 fi
16387 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16388   as_fn_error $? "conditional \"AMDEP\" was never defined.
16389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16390 fi
16391 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16392   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16394 fi
16395 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16396   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16398 fi
16399 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
16400   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
16401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16402 fi
16403 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
16404   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
16405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16406 fi
16407 if test -z "${OS_MACOS_TRUE}" && test -z "${OS_MACOS_FALSE}"; then
16408   as_fn_error $? "conditional \"OS_MACOS\" was never defined.
16409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16410 fi
16411 if test -z "${IPC_MSRPC_TRUE}" && test -z "${IPC_MSRPC_FALSE}"; then
16412   as_fn_error $? "conditional \"IPC_MSRPC\" was never defined.
16413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16414 fi
16415 if test -z "${IPC_DBUS_TRUE}" && test -z "${IPC_DBUS_FALSE}"; then
16416   as_fn_error $? "conditional \"IPC_DBUS\" was never defined.
16417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16418 fi
16419 if test -z "${IPC_DBUS_GLIB_TRUE}" && test -z "${IPC_DBUS_GLIB_FALSE}"; then
16420   as_fn_error $? "conditional \"IPC_DBUS_GLIB\" was never defined.
16421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16422 fi
16423 if test -z "${IPC_GDBUS_TRUE}" && test -z "${IPC_GDBUS_FALSE}"; then
16424   as_fn_error $? "conditional \"IPC_GDBUS\" was never defined.
16425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16426 fi
16427
16428 : "${CONFIG_STATUS=./config.status}"
16429 ac_write_fail=0
16430 ac_clean_files_save=$ac_clean_files
16431 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16433 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16434 as_write_fail=0
16435 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16436 #! $SHELL
16437 # Generated by $as_me.
16438 # Run this file to recreate the current configuration.
16439 # Compiler output produced by configure, useful for debugging
16440 # configure, is in config.log if it exists.
16441
16442 debug=false
16443 ac_cs_recheck=false
16444 ac_cs_silent=false
16445
16446 SHELL=\${CONFIG_SHELL-$SHELL}
16447 export SHELL
16448 _ASEOF
16449 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16450 ## -------------------- ##
16451 ## M4sh Initialization. ##
16452 ## -------------------- ##
16453
16454 # Be more Bourne compatible
16455 DUALCASE=1; export DUALCASE # for MKS sh
16456 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16457   emulate sh
16458   NULLCMD=:
16459   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16460   # is contrary to our usage.  Disable this feature.
16461   alias -g '${1+"$@"}'='"$@"'
16462   setopt NO_GLOB_SUBST
16463 else
16464   case `(set -o) 2>/dev/null` in #(
16465   *posix*) :
16466     set -o posix ;; #(
16467   *) :
16468      ;;
16469 esac
16470 fi
16471
16472
16473 as_nl='
16474 '
16475 export as_nl
16476 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16477 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16478 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16479 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16480 # Prefer a ksh shell builtin over an external printf program on Solaris,
16481 # but without wasting forks for bash or zsh.
16482 if test -z "$BASH_VERSION$ZSH_VERSION" \
16483     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16484   as_echo='print -r --'
16485   as_echo_n='print -rn --'
16486 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16487   as_echo='printf %s\n'
16488   as_echo_n='printf %s'
16489 else
16490   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16491     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16492     as_echo_n='/usr/ucb/echo -n'
16493   else
16494     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16495     as_echo_n_body='eval
16496       arg=$1;
16497       case $arg in #(
16498       *"$as_nl"*)
16499         expr "X$arg" : "X\\(.*\\)$as_nl";
16500         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16501       esac;
16502       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16503     '
16504     export as_echo_n_body
16505     as_echo_n='sh -c $as_echo_n_body as_echo'
16506   fi
16507   export as_echo_body
16508   as_echo='sh -c $as_echo_body as_echo'
16509 fi
16510
16511 # The user is always right.
16512 if test "${PATH_SEPARATOR+set}" != set; then
16513   PATH_SEPARATOR=:
16514   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16515     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16516       PATH_SEPARATOR=';'
16517   }
16518 fi
16519
16520
16521 # IFS
16522 # We need space, tab and new line, in precisely that order.  Quoting is
16523 # there to prevent editors from complaining about space-tab.
16524 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16525 # splitting by setting IFS to empty value.)
16526 IFS=" ""        $as_nl"
16527
16528 # Find who we are.  Look in the path if we contain no directory separator.
16529 as_myself=
16530 case $0 in #((
16531   *[\\/]* ) as_myself=$0 ;;
16532   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16533 for as_dir in $PATH
16534 do
16535   IFS=$as_save_IFS
16536   test -z "$as_dir" && as_dir=.
16537     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16538   done
16539 IFS=$as_save_IFS
16540
16541      ;;
16542 esac
16543 # We did not find ourselves, most probably we were run as `sh COMMAND'
16544 # in which case we are not to be found in the path.
16545 if test "x$as_myself" = x; then
16546   as_myself=$0
16547 fi
16548 if test ! -f "$as_myself"; then
16549   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16550   exit 1
16551 fi
16552
16553 # Unset variables that we do not need and which cause bugs (e.g. in
16554 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16555 # suppresses any "Segmentation fault" message there.  '((' could
16556 # trigger a bug in pdksh 5.2.14.
16557 for as_var in BASH_ENV ENV MAIL MAILPATH
16558 do eval test x\${$as_var+set} = xset \
16559   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16560 done
16561 PS1='$ '
16562 PS2='> '
16563 PS4='+ '
16564
16565 # NLS nuisances.
16566 LC_ALL=C
16567 export LC_ALL
16568 LANGUAGE=C
16569 export LANGUAGE
16570
16571 # CDPATH.
16572 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16573
16574
16575 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16576 # ----------------------------------------
16577 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16578 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16579 # script with STATUS, using 1 if that was 0.
16580 as_fn_error ()
16581 {
16582   as_status=$1; test $as_status -eq 0 && as_status=1
16583   if test "$4"; then
16584     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16585     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16586   fi
16587   $as_echo "$as_me: error: $2" >&2
16588   as_fn_exit $as_status
16589 } # as_fn_error
16590
16591
16592 # as_fn_set_status STATUS
16593 # -----------------------
16594 # Set $? to STATUS, without forking.
16595 as_fn_set_status ()
16596 {
16597   return $1
16598 } # as_fn_set_status
16599
16600 # as_fn_exit STATUS
16601 # -----------------
16602 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16603 as_fn_exit ()
16604 {
16605   set +e
16606   as_fn_set_status $1
16607   exit $1
16608 } # as_fn_exit
16609
16610 # as_fn_unset VAR
16611 # ---------------
16612 # Portably unset VAR.
16613 as_fn_unset ()
16614 {
16615   { eval $1=; unset $1;}
16616 }
16617 as_unset=as_fn_unset
16618 # as_fn_append VAR VALUE
16619 # ----------------------
16620 # Append the text in VALUE to the end of the definition contained in VAR. Take
16621 # advantage of any shell optimizations that allow amortized linear growth over
16622 # repeated appends, instead of the typical quadratic growth present in naive
16623 # implementations.
16624 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16625   eval 'as_fn_append ()
16626   {
16627     eval $1+=\$2
16628   }'
16629 else
16630   as_fn_append ()
16631   {
16632     eval $1=\$$1\$2
16633   }
16634 fi # as_fn_append
16635
16636 # as_fn_arith ARG...
16637 # ------------------
16638 # Perform arithmetic evaluation on the ARGs, and store the result in the
16639 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16640 # must be portable across $(()) and expr.
16641 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16642   eval 'as_fn_arith ()
16643   {
16644     as_val=$(( $* ))
16645   }'
16646 else
16647   as_fn_arith ()
16648   {
16649     as_val=`expr "$@" || test $? -eq 1`
16650   }
16651 fi # as_fn_arith
16652
16653
16654 if expr a : '\(a\)' >/dev/null 2>&1 &&
16655    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16656   as_expr=expr
16657 else
16658   as_expr=false
16659 fi
16660
16661 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16662   as_basename=basename
16663 else
16664   as_basename=false
16665 fi
16666
16667 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16668   as_dirname=dirname
16669 else
16670   as_dirname=false
16671 fi
16672
16673 as_me=`$as_basename -- "$0" ||
16674 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16675          X"$0" : 'X\(//\)$' \| \
16676          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16677 $as_echo X/"$0" |
16678     sed '/^.*\/\([^/][^/]*\)\/*$/{
16679             s//\1/
16680             q
16681           }
16682           /^X\/\(\/\/\)$/{
16683             s//\1/
16684             q
16685           }
16686           /^X\/\(\/\).*/{
16687             s//\1/
16688             q
16689           }
16690           s/.*/./; q'`
16691
16692 # Avoid depending upon Character Ranges.
16693 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16694 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16695 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16696 as_cr_digits='0123456789'
16697 as_cr_alnum=$as_cr_Letters$as_cr_digits
16698
16699 ECHO_C= ECHO_N= ECHO_T=
16700 case `echo -n x` in #(((((
16701 -n*)
16702   case `echo 'xy\c'` in
16703   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16704   xy)  ECHO_C='\c';;
16705   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16706        ECHO_T=' ';;
16707   esac;;
16708 *)
16709   ECHO_N='-n';;
16710 esac
16711
16712 rm -f conf$$ conf$$.exe conf$$.file
16713 if test -d conf$$.dir; then
16714   rm -f conf$$.dir/conf$$.file
16715 else
16716   rm -f conf$$.dir
16717   mkdir conf$$.dir 2>/dev/null
16718 fi
16719 if (echo >conf$$.file) 2>/dev/null; then
16720   if ln -s conf$$.file conf$$ 2>/dev/null; then
16721     as_ln_s='ln -s'
16722     # ... but there are two gotchas:
16723     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16724     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16725     # In both cases, we have to default to `cp -pR'.
16726     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16727       as_ln_s='cp -pR'
16728   elif ln conf$$.file conf$$ 2>/dev/null; then
16729     as_ln_s=ln
16730   else
16731     as_ln_s='cp -pR'
16732   fi
16733 else
16734   as_ln_s='cp -pR'
16735 fi
16736 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16737 rmdir conf$$.dir 2>/dev/null
16738
16739
16740 # as_fn_mkdir_p
16741 # -------------
16742 # Create "$as_dir" as a directory, including parents if necessary.
16743 as_fn_mkdir_p ()
16744 {
16745
16746   case $as_dir in #(
16747   -*) as_dir=./$as_dir;;
16748   esac
16749   test -d "$as_dir" || eval $as_mkdir_p || {
16750     as_dirs=
16751     while :; do
16752       case $as_dir in #(
16753       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16754       *) as_qdir=$as_dir;;
16755       esac
16756       as_dirs="'$as_qdir' $as_dirs"
16757       as_dir=`$as_dirname -- "$as_dir" ||
16758 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16759          X"$as_dir" : 'X\(//\)[^/]' \| \
16760          X"$as_dir" : 'X\(//\)$' \| \
16761          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16762 $as_echo X"$as_dir" |
16763     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16764             s//\1/
16765             q
16766           }
16767           /^X\(\/\/\)[^/].*/{
16768             s//\1/
16769             q
16770           }
16771           /^X\(\/\/\)$/{
16772             s//\1/
16773             q
16774           }
16775           /^X\(\/\).*/{
16776             s//\1/
16777             q
16778           }
16779           s/.*/./; q'`
16780       test -d "$as_dir" && break
16781     done
16782     test -z "$as_dirs" || eval "mkdir $as_dirs"
16783   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16784
16785
16786 } # as_fn_mkdir_p
16787 if mkdir -p . 2>/dev/null; then
16788   as_mkdir_p='mkdir -p "$as_dir"'
16789 else
16790   test -d ./-p && rmdir ./-p
16791   as_mkdir_p=false
16792 fi
16793
16794
16795 # as_fn_executable_p FILE
16796 # -----------------------
16797 # Test if FILE is an executable regular file.
16798 as_fn_executable_p ()
16799 {
16800   test -f "$1" && test -x "$1"
16801 } # as_fn_executable_p
16802 as_test_x='test -x'
16803 as_executable_p=as_fn_executable_p
16804
16805 # Sed expression to map a string onto a valid CPP name.
16806 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16807
16808 # Sed expression to map a string onto a valid variable name.
16809 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16810
16811
16812 exec 6>&1
16813 ## ----------------------------------- ##
16814 ## Main body of $CONFIG_STATUS script. ##
16815 ## ----------------------------------- ##
16816 _ASEOF
16817 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16818
16819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16820 # Save the log message, to keep $0 and so on meaningful, and to
16821 # report actual input values of CONFIG_FILES etc. instead of their
16822 # values after options handling.
16823 ac_log="
16824 This file was extended by Moonshot-ui $as_me 0.7.1, which was
16825 generated by GNU Autoconf 2.69.  Invocation command line was
16826
16827   CONFIG_FILES    = $CONFIG_FILES
16828   CONFIG_HEADERS  = $CONFIG_HEADERS
16829   CONFIG_LINKS    = $CONFIG_LINKS
16830   CONFIG_COMMANDS = $CONFIG_COMMANDS
16831   $ $0 $@
16832
16833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16834 "
16835
16836 _ACEOF
16837
16838 case $ac_config_files in *"
16839 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16840 esac
16841
16842 case $ac_config_headers in *"
16843 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16844 esac
16845
16846
16847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16848 # Files that config.status was made for.
16849 config_files="$ac_config_files"
16850 config_headers="$ac_config_headers"
16851 config_commands="$ac_config_commands"
16852
16853 _ACEOF
16854
16855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16856 ac_cs_usage="\
16857 \`$as_me' instantiates files and other configuration actions
16858 from templates according to the current configuration.  Unless the files
16859 and actions are specified as TAGs, all are instantiated by default.
16860
16861 Usage: $0 [OPTION]... [TAG]...
16862
16863   -h, --help       print this help, then exit
16864   -V, --version    print version number and configuration settings, then exit
16865       --config     print configuration, then exit
16866   -q, --quiet, --silent
16867                    do not print progress messages
16868   -d, --debug      don't remove temporary files
16869       --recheck    update $as_me by reconfiguring in the same conditions
16870       --file=FILE[:TEMPLATE]
16871                    instantiate the configuration file FILE
16872       --header=FILE[:TEMPLATE]
16873                    instantiate the configuration header FILE
16874
16875 Configuration files:
16876 $config_files
16877
16878 Configuration headers:
16879 $config_headers
16880
16881 Configuration commands:
16882 $config_commands
16883
16884 Report bugs to <moonshot-community@jiscmail.ac.uk>.
16885 Moonshot-ui home page: <http://www.project-moonshot.org/>."
16886
16887 _ACEOF
16888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16889 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16890 ac_cs_version="\\
16891 Moonshot-ui config.status 0.7.1
16892 configured by $0, generated by GNU Autoconf 2.69,
16893   with options \\"\$ac_cs_config\\"
16894
16895 Copyright (C) 2012 Free Software Foundation, Inc.
16896 This config.status script is free software; the Free Software Foundation
16897 gives unlimited permission to copy, distribute and modify it."
16898
16899 ac_pwd='$ac_pwd'
16900 srcdir='$srcdir'
16901 INSTALL='$INSTALL'
16902 MKDIR_P='$MKDIR_P'
16903 AWK='$AWK'
16904 test -n "\$AWK" || AWK=awk
16905 _ACEOF
16906
16907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16908 # The default lists apply if the user does not specify any file.
16909 ac_need_defaults=:
16910 while test $# != 0
16911 do
16912   case $1 in
16913   --*=?*)
16914     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16915     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16916     ac_shift=:
16917     ;;
16918   --*=)
16919     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16920     ac_optarg=
16921     ac_shift=:
16922     ;;
16923   *)
16924     ac_option=$1
16925     ac_optarg=$2
16926     ac_shift=shift
16927     ;;
16928   esac
16929
16930   case $ac_option in
16931   # Handling of the options.
16932   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16933     ac_cs_recheck=: ;;
16934   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16935     $as_echo "$ac_cs_version"; exit ;;
16936   --config | --confi | --conf | --con | --co | --c )
16937     $as_echo "$ac_cs_config"; exit ;;
16938   --debug | --debu | --deb | --de | --d | -d )
16939     debug=: ;;
16940   --file | --fil | --fi | --f )
16941     $ac_shift
16942     case $ac_optarg in
16943     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16944     '') as_fn_error $? "missing file argument" ;;
16945     esac
16946     as_fn_append CONFIG_FILES " '$ac_optarg'"
16947     ac_need_defaults=false;;
16948   --header | --heade | --head | --hea )
16949     $ac_shift
16950     case $ac_optarg in
16951     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16952     esac
16953     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16954     ac_need_defaults=false;;
16955   --he | --h)
16956     # Conflict between --help and --header
16957     as_fn_error $? "ambiguous option: \`$1'
16958 Try \`$0 --help' for more information.";;
16959   --help | --hel | -h )
16960     $as_echo "$ac_cs_usage"; exit ;;
16961   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16962   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16963     ac_cs_silent=: ;;
16964
16965   # This is an error.
16966   -*) as_fn_error $? "unrecognized option: \`$1'
16967 Try \`$0 --help' for more information." ;;
16968
16969   *) as_fn_append ac_config_targets " $1"
16970      ac_need_defaults=false ;;
16971
16972   esac
16973   shift
16974 done
16975
16976 ac_configure_extra_args=
16977
16978 if $ac_cs_silent; then
16979   exec 6>/dev/null
16980   ac_configure_extra_args="$ac_configure_extra_args --silent"
16981 fi
16982
16983 _ACEOF
16984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16985 if \$ac_cs_recheck; then
16986   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16987   shift
16988   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16989   CONFIG_SHELL='$SHELL'
16990   export CONFIG_SHELL
16991   exec "\$@"
16992 fi
16993
16994 _ACEOF
16995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16996 exec 5>>config.log
16997 {
16998   echo
16999   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17000 ## Running $as_me. ##
17001 _ASBOX
17002   $as_echo "$ac_log"
17003 } >&5
17004
17005 _ACEOF
17006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17007 #
17008 # INIT-COMMANDS
17009 #
17010 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17011
17012
17013 # The HP-UX ksh and POSIX shell print the target directory to stdout
17014 # if CDPATH is set.
17015 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17016
17017 sed_quote_subst='$sed_quote_subst'
17018 double_quote_subst='$double_quote_subst'
17019 delay_variable_subst='$delay_variable_subst'
17020 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17021 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17022 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17023 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17024 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17025 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17026 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17027 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17028 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17029 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17030 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17031 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17032 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17033 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17034 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17035 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17036 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17037 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17038 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17039 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17040 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17041 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17042 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17043 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17044 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17045 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17046 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17047 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17048 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17049 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17050 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17051 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17052 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17053 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17054 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17055 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17056 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17057 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17058 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17059 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17060 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17061 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17062 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17063 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17064 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17065 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17066 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17067 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17068 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17069 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17070 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17071 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17072 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17073 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17074 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17075 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17076 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17077 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"`'
17078 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17079 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17080 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17081 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17082 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17083 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17084 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17085 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17086 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17087 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17088 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17089 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17090 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17091 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17092 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17093 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17094 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17095 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17096 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17097 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17098 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17099 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17100 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17101 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17102 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17103 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17104 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17105 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17106 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17107 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17108 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17109 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17110 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17111 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17112 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17113 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17114 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17115 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17116 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17117 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17118 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17119 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17120 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17121 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17122 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17123 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17124 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17125 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17126 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17127 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17128 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17129 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17130 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17131 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17132 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17133 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17134 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17135 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17136 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17137 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17138 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17139 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17140 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17141 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17142 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17143 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17144 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17145 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17146 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17147 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17148 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17149 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17150 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17151
17152 LTCC='$LTCC'
17153 LTCFLAGS='$LTCFLAGS'
17154 compiler='$compiler_DEFAULT'
17155
17156 # A function that is used when there is no print builtin or printf.
17157 func_fallback_echo ()
17158 {
17159   eval 'cat <<_LTECHO_EOF
17160 \$1
17161 _LTECHO_EOF'
17162 }
17163
17164 # Quote evaled strings.
17165 for var in AS \
17166 DLLTOOL \
17167 OBJDUMP \
17168 SHELL \
17169 ECHO \
17170 PATH_SEPARATOR \
17171 SED \
17172 GREP \
17173 EGREP \
17174 FGREP \
17175 LD \
17176 NM \
17177 LN_S \
17178 lt_SP2NL \
17179 lt_NL2SP \
17180 reload_flag \
17181 deplibs_check_method \
17182 file_magic_cmd \
17183 file_magic_glob \
17184 want_nocaseglob \
17185 sharedlib_from_linklib_cmd \
17186 AR \
17187 AR_FLAGS \
17188 archiver_list_spec \
17189 STRIP \
17190 RANLIB \
17191 CC \
17192 CFLAGS \
17193 compiler \
17194 lt_cv_sys_global_symbol_pipe \
17195 lt_cv_sys_global_symbol_to_cdecl \
17196 lt_cv_sys_global_symbol_to_c_name_address \
17197 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17198 nm_file_list_spec \
17199 lt_prog_compiler_no_builtin_flag \
17200 lt_prog_compiler_pic \
17201 lt_prog_compiler_wl \
17202 lt_prog_compiler_static \
17203 lt_cv_prog_compiler_c_o \
17204 need_locks \
17205 MANIFEST_TOOL \
17206 DSYMUTIL \
17207 NMEDIT \
17208 LIPO \
17209 OTOOL \
17210 OTOOL64 \
17211 shrext_cmds \
17212 export_dynamic_flag_spec \
17213 whole_archive_flag_spec \
17214 compiler_needs_object \
17215 with_gnu_ld \
17216 allow_undefined_flag \
17217 no_undefined_flag \
17218 hardcode_libdir_flag_spec \
17219 hardcode_libdir_separator \
17220 exclude_expsyms \
17221 include_expsyms \
17222 file_list_spec \
17223 variables_saved_for_relink \
17224 libname_spec \
17225 library_names_spec \
17226 soname_spec \
17227 install_override_mode \
17228 finish_eval \
17229 old_striplib \
17230 striplib; do
17231     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17232     *[\\\\\\\`\\"\\\$]*)
17233       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17234       ;;
17235     *)
17236       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17237       ;;
17238     esac
17239 done
17240
17241 # Double-quote double-evaled strings.
17242 for var in reload_cmds \
17243 old_postinstall_cmds \
17244 old_postuninstall_cmds \
17245 old_archive_cmds \
17246 extract_expsyms_cmds \
17247 old_archive_from_new_cmds \
17248 old_archive_from_expsyms_cmds \
17249 archive_cmds \
17250 archive_expsym_cmds \
17251 module_cmds \
17252 module_expsym_cmds \
17253 export_symbols_cmds \
17254 prelink_cmds \
17255 postlink_cmds \
17256 postinstall_cmds \
17257 postuninstall_cmds \
17258 finish_cmds \
17259 sys_lib_search_path_spec \
17260 sys_lib_dlsearch_path_spec; do
17261     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17262     *[\\\\\\\`\\"\\\$]*)
17263       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17264       ;;
17265     *)
17266       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17267       ;;
17268     esac
17269 done
17270
17271 ac_aux_dir='$ac_aux_dir'
17272 xsi_shell='$xsi_shell'
17273 lt_shell_append='$lt_shell_append'
17274
17275 # See if we are running on zsh, and set the options which allow our
17276 # commands through without removal of \ escapes INIT.
17277 if test -n "\${ZSH_VERSION+set}" ; then
17278    setopt NO_GLOB_SUBST
17279 fi
17280
17281
17282     PACKAGE='$PACKAGE'
17283     VERSION='$VERSION'
17284     TIMESTAMP='$TIMESTAMP'
17285     RM='$RM'
17286     ofile='$ofile'
17287
17288
17289
17290 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17291     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17292     # from automake < 1.5.
17293     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17294     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17295     LINGUAS="${LINGUAS-%UNSET%}"
17296
17297
17298 _ACEOF
17299
17300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17301
17302 # Handling of arguments.
17303 for ac_config_target in $ac_config_targets
17304 do
17305   case $ac_config_target in
17306     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17307     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17308     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17309     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17310     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17311     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17312     "moonshot.desktop") CONFIG_FILES="$CONFIG_FILES moonshot.desktop" ;;
17313     "moonshot-webp.desktop") CONFIG_FILES="$CONFIG_FILES moonshot-webp.desktop" ;;
17314     "moonshot-ui.spec") CONFIG_FILES="$CONFIG_FILES moonshot-ui.spec" ;;
17315
17316   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17317   esac
17318 done
17319
17320
17321 # If the user did not use the arguments to specify the items to instantiate,
17322 # then the envvar interface is used.  Set only those that are not.
17323 # We use the long form for the default assignment because of an extremely
17324 # bizarre bug on SunOS 4.1.3.
17325 if $ac_need_defaults; then
17326   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17327   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17328   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17329 fi
17330
17331 # Have a temporary directory for convenience.  Make it in the build tree
17332 # simply because there is no reason against having it here, and in addition,
17333 # creating and moving files from /tmp can sometimes cause problems.
17334 # Hook for its removal unless debugging.
17335 # Note that there is a small window in which the directory will not be cleaned:
17336 # after its creation but before its name has been assigned to `$tmp'.
17337 $debug ||
17338 {
17339   tmp= ac_tmp=
17340   trap 'exit_status=$?
17341   : "${ac_tmp:=$tmp}"
17342   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17343 ' 0
17344   trap 'as_fn_exit 1' 1 2 13 15
17345 }
17346 # Create a (secure) tmp directory for tmp files.
17347
17348 {
17349   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17350   test -d "$tmp"
17351 }  ||
17352 {
17353   tmp=./conf$$-$RANDOM
17354   (umask 077 && mkdir "$tmp")
17355 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17356 ac_tmp=$tmp
17357
17358 # Set up the scripts for CONFIG_FILES section.
17359 # No need to generate them if there are no CONFIG_FILES.
17360 # This happens for instance with `./config.status config.h'.
17361 if test -n "$CONFIG_FILES"; then
17362
17363
17364 ac_cr=`echo X | tr X '\015'`
17365 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17366 # But we know of no other shell where ac_cr would be empty at this
17367 # point, so we can use a bashism as a fallback.
17368 if test "x$ac_cr" = x; then
17369   eval ac_cr=\$\'\\r\'
17370 fi
17371 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17372 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17373   ac_cs_awk_cr='\\r'
17374 else
17375   ac_cs_awk_cr=$ac_cr
17376 fi
17377
17378 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17379 _ACEOF
17380
17381
17382 {
17383   echo "cat >conf$$subs.awk <<_ACEOF" &&
17384   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17385   echo "_ACEOF"
17386 } >conf$$subs.sh ||
17387   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17388 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17389 ac_delim='%!_!# '
17390 for ac_last_try in false false false false false :; do
17391   . ./conf$$subs.sh ||
17392     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17393
17394   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17395   if test $ac_delim_n = $ac_delim_num; then
17396     break
17397   elif $ac_last_try; then
17398     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17399   else
17400     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17401   fi
17402 done
17403 rm -f conf$$subs.sh
17404
17405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17406 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17407 _ACEOF
17408 sed -n '
17409 h
17410 s/^/S["/; s/!.*/"]=/
17411 p
17412 g
17413 s/^[^!]*!//
17414 :repl
17415 t repl
17416 s/'"$ac_delim"'$//
17417 t delim
17418 :nl
17419 h
17420 s/\(.\{148\}\)..*/\1/
17421 t more1
17422 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17423 p
17424 n
17425 b repl
17426 :more1
17427 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17428 p
17429 g
17430 s/.\{148\}//
17431 t nl
17432 :delim
17433 h
17434 s/\(.\{148\}\)..*/\1/
17435 t more2
17436 s/["\\]/\\&/g; s/^/"/; s/$/"/
17437 p
17438 b
17439 :more2
17440 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17441 p
17442 g
17443 s/.\{148\}//
17444 t delim
17445 ' <conf$$subs.awk | sed '
17446 /^[^""]/{
17447   N
17448   s/\n//
17449 }
17450 ' >>$CONFIG_STATUS || ac_write_fail=1
17451 rm -f conf$$subs.awk
17452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17453 _ACAWK
17454 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17455   for (key in S) S_is_set[key] = 1
17456   FS = "\a"
17457
17458 }
17459 {
17460   line = $ 0
17461   nfields = split(line, field, "@")
17462   substed = 0
17463   len = length(field[1])
17464   for (i = 2; i < nfields; i++) {
17465     key = field[i]
17466     keylen = length(key)
17467     if (S_is_set[key]) {
17468       value = S[key]
17469       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17470       len += length(value) + length(field[++i])
17471       substed = 1
17472     } else
17473       len += 1 + keylen
17474   }
17475
17476   print line
17477 }
17478
17479 _ACAWK
17480 _ACEOF
17481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17482 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17483   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17484 else
17485   cat
17486 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17487   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17488 _ACEOF
17489
17490 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17491 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17492 # trailing colons and then remove the whole line if VPATH becomes empty
17493 # (actually we leave an empty line to preserve line numbers).
17494 if test "x$srcdir" = x.; then
17495   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17496 h
17497 s///
17498 s/^/:/
17499 s/[      ]*$/:/
17500 s/:\$(srcdir):/:/g
17501 s/:\${srcdir}:/:/g
17502 s/:@srcdir@:/:/g
17503 s/^:*//
17504 s/:*$//
17505 x
17506 s/\(=[   ]*\).*/\1/
17507 G
17508 s/\n//
17509 s/^[^=]*=[       ]*$//
17510 }'
17511 fi
17512
17513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17514 fi # test -n "$CONFIG_FILES"
17515
17516 # Set up the scripts for CONFIG_HEADERS section.
17517 # No need to generate them if there are no CONFIG_HEADERS.
17518 # This happens for instance with `./config.status Makefile'.
17519 if test -n "$CONFIG_HEADERS"; then
17520 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17521 BEGIN {
17522 _ACEOF
17523
17524 # Transform confdefs.h into an awk script `defines.awk', embedded as
17525 # here-document in config.status, that substitutes the proper values into
17526 # config.h.in to produce config.h.
17527
17528 # Create a delimiter string that does not exist in confdefs.h, to ease
17529 # handling of long lines.
17530 ac_delim='%!_!# '
17531 for ac_last_try in false false :; do
17532   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17533   if test -z "$ac_tt"; then
17534     break
17535   elif $ac_last_try; then
17536     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17537   else
17538     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17539   fi
17540 done
17541
17542 # For the awk script, D is an array of macro values keyed by name,
17543 # likewise P contains macro parameters if any.  Preserve backslash
17544 # newline sequences.
17545
17546 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17547 sed -n '
17548 s/.\{148\}/&'"$ac_delim"'/g
17549 t rset
17550 :rset
17551 s/^[     ]*#[    ]*define[       ][      ]*/ /
17552 t def
17553 d
17554 :def
17555 s/\\$//
17556 t bsnl
17557 s/["\\]/\\&/g
17558 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17559 D["\1"]=" \3"/p
17560 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17561 d
17562 :bsnl
17563 s/["\\]/\\&/g
17564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17565 D["\1"]=" \3\\\\\\n"\\/p
17566 t cont
17567 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17568 t cont
17569 d
17570 :cont
17571 n
17572 s/.\{148\}/&'"$ac_delim"'/g
17573 t clear
17574 :clear
17575 s/\\$//
17576 t bsnlc
17577 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17578 d
17579 :bsnlc
17580 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17581 b cont
17582 ' <confdefs.h | sed '
17583 s/'"$ac_delim"'/"\\\
17584 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17585
17586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17587   for (key in D) D_is_set[key] = 1
17588   FS = "\a"
17589 }
17590 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17591   line = \$ 0
17592   split(line, arg, " ")
17593   if (arg[1] == "#") {
17594     defundef = arg[2]
17595     mac1 = arg[3]
17596   } else {
17597     defundef = substr(arg[1], 2)
17598     mac1 = arg[2]
17599   }
17600   split(mac1, mac2, "(") #)
17601   macro = mac2[1]
17602   prefix = substr(line, 1, index(line, defundef) - 1)
17603   if (D_is_set[macro]) {
17604     # Preserve the white space surrounding the "#".
17605     print prefix "define", macro P[macro] D[macro]
17606     next
17607   } else {
17608     # Replace #undef with comments.  This is necessary, for example,
17609     # in the case of _POSIX_SOURCE, which is predefined and required
17610     # on some systems where configure will not decide to define it.
17611     if (defundef == "undef") {
17612       print "/*", prefix defundef, macro, "*/"
17613       next
17614     }
17615   }
17616 }
17617 { print }
17618 _ACAWK
17619 _ACEOF
17620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17621   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17622 fi # test -n "$CONFIG_HEADERS"
17623
17624
17625 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17626 shift
17627 for ac_tag
17628 do
17629   case $ac_tag in
17630   :[FHLC]) ac_mode=$ac_tag; continue;;
17631   esac
17632   case $ac_mode$ac_tag in
17633   :[FHL]*:*);;
17634   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17635   :[FH]-) ac_tag=-:-;;
17636   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17637   esac
17638   ac_save_IFS=$IFS
17639   IFS=:
17640   set x $ac_tag
17641   IFS=$ac_save_IFS
17642   shift
17643   ac_file=$1
17644   shift
17645
17646   case $ac_mode in
17647   :L) ac_source=$1;;
17648   :[FH])
17649     ac_file_inputs=
17650     for ac_f
17651     do
17652       case $ac_f in
17653       -) ac_f="$ac_tmp/stdin";;
17654       *) # Look for the file first in the build tree, then in the source tree
17655          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17656          # because $ac_f cannot contain `:'.
17657          test -f "$ac_f" ||
17658            case $ac_f in
17659            [\\/$]*) false;;
17660            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17661            esac ||
17662            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17663       esac
17664       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17665       as_fn_append ac_file_inputs " '$ac_f'"
17666     done
17667
17668     # Let's still pretend it is `configure' which instantiates (i.e., don't
17669     # use $as_me), people would be surprised to read:
17670     #    /* config.h.  Generated by config.status.  */
17671     configure_input='Generated from '`
17672           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17673         `' by configure.'
17674     if test x"$ac_file" != x-; then
17675       configure_input="$ac_file.  $configure_input"
17676       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17677 $as_echo "$as_me: creating $ac_file" >&6;}
17678     fi
17679     # Neutralize special characters interpreted by sed in replacement strings.
17680     case $configure_input in #(
17681     *\&* | *\|* | *\\* )
17682        ac_sed_conf_input=`$as_echo "$configure_input" |
17683        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17684     *) ac_sed_conf_input=$configure_input;;
17685     esac
17686
17687     case $ac_tag in
17688     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17689       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17690     esac
17691     ;;
17692   esac
17693
17694   ac_dir=`$as_dirname -- "$ac_file" ||
17695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17696          X"$ac_file" : 'X\(//\)[^/]' \| \
17697          X"$ac_file" : 'X\(//\)$' \| \
17698          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17699 $as_echo X"$ac_file" |
17700     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17701             s//\1/
17702             q
17703           }
17704           /^X\(\/\/\)[^/].*/{
17705             s//\1/
17706             q
17707           }
17708           /^X\(\/\/\)$/{
17709             s//\1/
17710             q
17711           }
17712           /^X\(\/\).*/{
17713             s//\1/
17714             q
17715           }
17716           s/.*/./; q'`
17717   as_dir="$ac_dir"; as_fn_mkdir_p
17718   ac_builddir=.
17719
17720 case "$ac_dir" in
17721 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17722 *)
17723   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17724   # A ".." for each directory in $ac_dir_suffix.
17725   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17726   case $ac_top_builddir_sub in
17727   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17728   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17729   esac ;;
17730 esac
17731 ac_abs_top_builddir=$ac_pwd
17732 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17733 # for backward compatibility:
17734 ac_top_builddir=$ac_top_build_prefix
17735
17736 case $srcdir in
17737   .)  # We are building in place.
17738     ac_srcdir=.
17739     ac_top_srcdir=$ac_top_builddir_sub
17740     ac_abs_top_srcdir=$ac_pwd ;;
17741   [\\/]* | ?:[\\/]* )  # Absolute name.
17742     ac_srcdir=$srcdir$ac_dir_suffix;
17743     ac_top_srcdir=$srcdir
17744     ac_abs_top_srcdir=$srcdir ;;
17745   *) # Relative name.
17746     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17747     ac_top_srcdir=$ac_top_build_prefix$srcdir
17748     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17749 esac
17750 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17751
17752
17753   case $ac_mode in
17754   :F)
17755   #
17756   # CONFIG_FILE
17757   #
17758
17759   case $INSTALL in
17760   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17761   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17762   esac
17763   ac_MKDIR_P=$MKDIR_P
17764   case $MKDIR_P in
17765   [\\/$]* | ?:[\\/]* ) ;;
17766   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17767   esac
17768 _ACEOF
17769
17770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17771 # If the template does not know about datarootdir, expand it.
17772 # FIXME: This hack should be removed a few years after 2.60.
17773 ac_datarootdir_hack=; ac_datarootdir_seen=
17774 ac_sed_dataroot='
17775 /datarootdir/ {
17776   p
17777   q
17778 }
17779 /@datadir@/p
17780 /@docdir@/p
17781 /@infodir@/p
17782 /@localedir@/p
17783 /@mandir@/p'
17784 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17785 *datarootdir*) ac_datarootdir_seen=yes;;
17786 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17787   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17788 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17789 _ACEOF
17790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17791   ac_datarootdir_hack='
17792   s&@datadir@&$datadir&g
17793   s&@docdir@&$docdir&g
17794   s&@infodir@&$infodir&g
17795   s&@localedir@&$localedir&g
17796   s&@mandir@&$mandir&g
17797   s&\\\${datarootdir}&$datarootdir&g' ;;
17798 esac
17799 _ACEOF
17800
17801 # Neutralize VPATH when `$srcdir' = `.'.
17802 # Shell code in configure.ac might set extrasub.
17803 # FIXME: do we really want to maintain this feature?
17804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17805 ac_sed_extra="$ac_vpsub
17806 $extrasub
17807 _ACEOF
17808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17809 :t
17810 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17811 s|@configure_input@|$ac_sed_conf_input|;t t
17812 s&@top_builddir@&$ac_top_builddir_sub&;t t
17813 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17814 s&@srcdir@&$ac_srcdir&;t t
17815 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17816 s&@top_srcdir@&$ac_top_srcdir&;t t
17817 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17818 s&@builddir@&$ac_builddir&;t t
17819 s&@abs_builddir@&$ac_abs_builddir&;t t
17820 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17821 s&@INSTALL@&$ac_INSTALL&;t t
17822 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17823 $ac_datarootdir_hack
17824 "
17825 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17826   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17827
17828 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17829   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17830   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17831       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17832   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17833 which seems to be undefined.  Please make sure it is defined" >&5
17834 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17835 which seems to be undefined.  Please make sure it is defined" >&2;}
17836
17837   rm -f "$ac_tmp/stdin"
17838   case $ac_file in
17839   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17840   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17841   esac \
17842   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17843  ;;
17844   :H)
17845   #
17846   # CONFIG_HEADER
17847   #
17848   if test x"$ac_file" != x-; then
17849     {
17850       $as_echo "/* $configure_input  */" \
17851       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17852     } >"$ac_tmp/config.h" \
17853       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17854     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17855       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17856 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17857     else
17858       rm -f "$ac_file"
17859       mv "$ac_tmp/config.h" "$ac_file" \
17860         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17861     fi
17862   else
17863     $as_echo "/* $configure_input  */" \
17864       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17865       || as_fn_error $? "could not create -" "$LINENO" 5
17866   fi
17867 # Compute "$ac_file"'s index in $config_headers.
17868 _am_arg="$ac_file"
17869 _am_stamp_count=1
17870 for _am_header in $config_headers :; do
17871   case $_am_header in
17872     $_am_arg | $_am_arg:* )
17873       break ;;
17874     * )
17875       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17876   esac
17877 done
17878 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17879 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17880          X"$_am_arg" : 'X\(//\)[^/]' \| \
17881          X"$_am_arg" : 'X\(//\)$' \| \
17882          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17883 $as_echo X"$_am_arg" |
17884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17885             s//\1/
17886             q
17887           }
17888           /^X\(\/\/\)[^/].*/{
17889             s//\1/
17890             q
17891           }
17892           /^X\(\/\/\)$/{
17893             s//\1/
17894             q
17895           }
17896           /^X\(\/\).*/{
17897             s//\1/
17898             q
17899           }
17900           s/.*/./; q'`/stamp-h$_am_stamp_count
17901  ;;
17902
17903   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17904 $as_echo "$as_me: executing $ac_file commands" >&6;}
17905  ;;
17906   esac
17907
17908
17909   case $ac_file$ac_mode in
17910     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17911   # Older Autoconf quotes --file arguments for eval, but not when files
17912   # are listed without --file.  Let's play safe and only enable the eval
17913   # if we detect the quoting.
17914   case $CONFIG_FILES in
17915   *\'*) eval set x "$CONFIG_FILES" ;;
17916   *)   set x $CONFIG_FILES ;;
17917   esac
17918   shift
17919   for mf
17920   do
17921     # Strip MF so we end up with the name of the file.
17922     mf=`echo "$mf" | sed -e 's/:.*$//'`
17923     # Check whether this is an Automake generated Makefile or not.
17924     # We used to match only the files named 'Makefile.in', but
17925     # some people rename them; so instead we look at the file content.
17926     # Grep'ing the first line is not enough: some people post-process
17927     # each Makefile.in and add a new line on top of each file to say so.
17928     # Grep'ing the whole file is not good either: AIX grep has a line
17929     # limit of 2048, but all sed's we know have understand at least 4000.
17930     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17931       dirpart=`$as_dirname -- "$mf" ||
17932 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17933          X"$mf" : 'X\(//\)[^/]' \| \
17934          X"$mf" : 'X\(//\)$' \| \
17935          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17936 $as_echo X"$mf" |
17937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17938             s//\1/
17939             q
17940           }
17941           /^X\(\/\/\)[^/].*/{
17942             s//\1/
17943             q
17944           }
17945           /^X\(\/\/\)$/{
17946             s//\1/
17947             q
17948           }
17949           /^X\(\/\).*/{
17950             s//\1/
17951             q
17952           }
17953           s/.*/./; q'`
17954     else
17955       continue
17956     fi
17957     # Extract the definition of DEPDIR, am__include, and am__quote
17958     # from the Makefile without running 'make'.
17959     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17960     test -z "$DEPDIR" && continue
17961     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17962     test -z "$am__include" && continue
17963     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17964     # Find all dependency output files, they are included files with
17965     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17966     # simplest approach to changing $(DEPDIR) to its actual value in the
17967     # expansion.
17968     for file in `sed -n "
17969       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17970          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17971       # Make sure the directory exists.
17972       test -f "$dirpart/$file" && continue
17973       fdir=`$as_dirname -- "$file" ||
17974 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17975          X"$file" : 'X\(//\)[^/]' \| \
17976          X"$file" : 'X\(//\)$' \| \
17977          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17978 $as_echo X"$file" |
17979     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17980             s//\1/
17981             q
17982           }
17983           /^X\(\/\/\)[^/].*/{
17984             s//\1/
17985             q
17986           }
17987           /^X\(\/\/\)$/{
17988             s//\1/
17989             q
17990           }
17991           /^X\(\/\).*/{
17992             s//\1/
17993             q
17994           }
17995           s/.*/./; q'`
17996       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17997       # echo "creating $dirpart/$file"
17998       echo '# dummy' > "$dirpart/$file"
17999     done
18000   done
18001 }
18002  ;;
18003     "libtool":C)
18004
18005     # See if we are running on zsh, and set the options which allow our
18006     # commands through without removal of \ escapes.
18007     if test -n "${ZSH_VERSION+set}" ; then
18008       setopt NO_GLOB_SUBST
18009     fi
18010
18011     cfgfile="${ofile}T"
18012     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18013     $RM "$cfgfile"
18014
18015     cat <<_LT_EOF >> "$cfgfile"
18016 #! $SHELL
18017
18018 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18019 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18020 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18021 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18022 #
18023 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18024 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18025 #                 Foundation, Inc.
18026 #   Written by Gordon Matzigkeit, 1996
18027 #
18028 #   This file is part of GNU Libtool.
18029 #
18030 # GNU Libtool is free software; you can redistribute it and/or
18031 # modify it under the terms of the GNU General Public License as
18032 # published by the Free Software Foundation; either version 2 of
18033 # the License, or (at your option) any later version.
18034 #
18035 # As a special exception to the GNU General Public License,
18036 # if you distribute this file as part of a program or library that
18037 # is built using GNU Libtool, you may include this file under the
18038 # same distribution terms that you use for the rest of that program.
18039 #
18040 # GNU Libtool is distributed in the hope that it will be useful,
18041 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18042 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18043 # GNU General Public License for more details.
18044 #
18045 # You should have received a copy of the GNU General Public License
18046 # along with GNU Libtool; see the file COPYING.  If not, a copy
18047 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18048 # obtained by writing to the Free Software Foundation, Inc.,
18049 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18050
18051
18052 # The names of the tagged configurations supported by this script.
18053 available_tags=""
18054
18055 # ### BEGIN LIBTOOL CONFIG
18056
18057 # Which release of libtool.m4 was used?
18058 macro_version=$macro_version
18059 macro_revision=$macro_revision
18060
18061 # Assembler program.
18062 AS=$lt_AS
18063
18064 # DLL creation program.
18065 DLLTOOL=$lt_DLLTOOL
18066
18067 # Object dumper program.
18068 OBJDUMP=$lt_OBJDUMP
18069
18070 # Whether or not to build shared libraries.
18071 build_libtool_libs=$enable_shared
18072
18073 # Whether or not to build static libraries.
18074 build_old_libs=$enable_static
18075
18076 # What type of objects to build.
18077 pic_mode=$pic_mode
18078
18079 # Whether or not to optimize for fast installation.
18080 fast_install=$enable_fast_install
18081
18082 # Shell to use when invoking shell scripts.
18083 SHELL=$lt_SHELL
18084
18085 # An echo program that protects backslashes.
18086 ECHO=$lt_ECHO
18087
18088 # The PATH separator for the build system.
18089 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18090
18091 # The host system.
18092 host_alias=$host_alias
18093 host=$host
18094 host_os=$host_os
18095
18096 # The build system.
18097 build_alias=$build_alias
18098 build=$build
18099 build_os=$build_os
18100
18101 # A sed program that does not truncate output.
18102 SED=$lt_SED
18103
18104 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18105 Xsed="\$SED -e 1s/^X//"
18106
18107 # A grep program that handles long lines.
18108 GREP=$lt_GREP
18109
18110 # An ERE matcher.
18111 EGREP=$lt_EGREP
18112
18113 # A literal string matcher.
18114 FGREP=$lt_FGREP
18115
18116 # A BSD- or MS-compatible name lister.
18117 NM=$lt_NM
18118
18119 # Whether we need soft or hard links.
18120 LN_S=$lt_LN_S
18121
18122 # What is the maximum length of a command?
18123 max_cmd_len=$max_cmd_len
18124
18125 # Object file suffix (normally "o").
18126 objext=$ac_objext
18127
18128 # Executable file suffix (normally "").
18129 exeext=$exeext
18130
18131 # whether the shell understands "unset".
18132 lt_unset=$lt_unset
18133
18134 # turn spaces into newlines.
18135 SP2NL=$lt_lt_SP2NL
18136
18137 # turn newlines into spaces.
18138 NL2SP=$lt_lt_NL2SP
18139
18140 # convert \$build file names to \$host format.
18141 to_host_file_cmd=$lt_cv_to_host_file_cmd
18142
18143 # convert \$build files to toolchain format.
18144 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18145
18146 # Method to check whether dependent libraries are shared objects.
18147 deplibs_check_method=$lt_deplibs_check_method
18148
18149 # Command to use when deplibs_check_method = "file_magic".
18150 file_magic_cmd=$lt_file_magic_cmd
18151
18152 # How to find potential files when deplibs_check_method = "file_magic".
18153 file_magic_glob=$lt_file_magic_glob
18154
18155 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18156 want_nocaseglob=$lt_want_nocaseglob
18157
18158 # Command to associate shared and link libraries.
18159 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18160
18161 # The archiver.
18162 AR=$lt_AR
18163
18164 # Flags to create an archive.
18165 AR_FLAGS=$lt_AR_FLAGS
18166
18167 # How to feed a file listing to the archiver.
18168 archiver_list_spec=$lt_archiver_list_spec
18169
18170 # A symbol stripping program.
18171 STRIP=$lt_STRIP
18172
18173 # Commands used to install an old-style archive.
18174 RANLIB=$lt_RANLIB
18175 old_postinstall_cmds=$lt_old_postinstall_cmds
18176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18177
18178 # Whether to use a lock for old archive extraction.
18179 lock_old_archive_extraction=$lock_old_archive_extraction
18180
18181 # A C compiler.
18182 LTCC=$lt_CC
18183
18184 # LTCC compiler flags.
18185 LTCFLAGS=$lt_CFLAGS
18186
18187 # Take the output of nm and produce a listing of raw symbols and C names.
18188 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18189
18190 # Transform the output of nm in a proper C declaration.
18191 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18192
18193 # Transform the output of nm in a C name address pair.
18194 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18195
18196 # Transform the output of nm in a C name address pair when lib prefix is needed.
18197 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18198
18199 # Specify filename containing input files for \$NM.
18200 nm_file_list_spec=$lt_nm_file_list_spec
18201
18202 # The root where to search for dependent libraries,and in which our libraries should be installed.
18203 lt_sysroot=$lt_sysroot
18204
18205 # The name of the directory that contains temporary libtool files.
18206 objdir=$objdir
18207
18208 # Used to examine libraries when file_magic_cmd begins with "file".
18209 MAGIC_CMD=$MAGIC_CMD
18210
18211 # Must we lock files when doing compilation?
18212 need_locks=$lt_need_locks
18213
18214 # Manifest tool.
18215 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18216
18217 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18218 DSYMUTIL=$lt_DSYMUTIL
18219
18220 # Tool to change global to local symbols on Mac OS X.
18221 NMEDIT=$lt_NMEDIT
18222
18223 # Tool to manipulate fat objects and archives on Mac OS X.
18224 LIPO=$lt_LIPO
18225
18226 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18227 OTOOL=$lt_OTOOL
18228
18229 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18230 OTOOL64=$lt_OTOOL64
18231
18232 # Old archive suffix (normally "a").
18233 libext=$libext
18234
18235 # Shared library suffix (normally ".so").
18236 shrext_cmds=$lt_shrext_cmds
18237
18238 # The commands to extract the exported symbol list from a shared archive.
18239 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18240
18241 # Variables whose values should be saved in libtool wrapper scripts and
18242 # restored at link time.
18243 variables_saved_for_relink=$lt_variables_saved_for_relink
18244
18245 # Do we need the "lib" prefix for modules?
18246 need_lib_prefix=$need_lib_prefix
18247
18248 # Do we need a version for libraries?
18249 need_version=$need_version
18250
18251 # Library versioning type.
18252 version_type=$version_type
18253
18254 # Shared library runtime path variable.
18255 runpath_var=$runpath_var
18256
18257 # Shared library path variable.
18258 shlibpath_var=$shlibpath_var
18259
18260 # Is shlibpath searched before the hard-coded library search path?
18261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18262
18263 # Format of library name prefix.
18264 libname_spec=$lt_libname_spec
18265
18266 # List of archive names.  First name is the real one, the rest are links.
18267 # The last name is the one that the linker finds with -lNAME
18268 library_names_spec=$lt_library_names_spec
18269
18270 # The coded name of the library, if different from the real name.
18271 soname_spec=$lt_soname_spec
18272
18273 # Permission mode override for installation of shared libraries.
18274 install_override_mode=$lt_install_override_mode
18275
18276 # Command to use after installation of a shared archive.
18277 postinstall_cmds=$lt_postinstall_cmds
18278
18279 # Command to use after uninstallation of a shared archive.
18280 postuninstall_cmds=$lt_postuninstall_cmds
18281
18282 # Commands used to finish a libtool library installation in a directory.
18283 finish_cmds=$lt_finish_cmds
18284
18285 # As "finish_cmds", except a single script fragment to be evaled but
18286 # not shown.
18287 finish_eval=$lt_finish_eval
18288
18289 # Whether we should hardcode library paths into libraries.
18290 hardcode_into_libs=$hardcode_into_libs
18291
18292 # Compile-time system search path for libraries.
18293 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18294
18295 # Run-time system search path for libraries.
18296 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18297
18298 # Whether dlopen is supported.
18299 dlopen_support=$enable_dlopen
18300
18301 # Whether dlopen of programs is supported.
18302 dlopen_self=$enable_dlopen_self
18303
18304 # Whether dlopen of statically linked programs is supported.
18305 dlopen_self_static=$enable_dlopen_self_static
18306
18307 # Commands to strip libraries.
18308 old_striplib=$lt_old_striplib
18309 striplib=$lt_striplib
18310
18311
18312 # The linker used to build libraries.
18313 LD=$lt_LD
18314
18315 # How to create reloadable object files.
18316 reload_flag=$lt_reload_flag
18317 reload_cmds=$lt_reload_cmds
18318
18319 # Commands used to build an old-style archive.
18320 old_archive_cmds=$lt_old_archive_cmds
18321
18322 # A language specific compiler.
18323 CC=$lt_compiler
18324
18325 # Is the compiler the GNU compiler?
18326 with_gcc=$GCC
18327
18328 # Compiler flag to turn off builtin functions.
18329 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18330
18331 # Additional compiler flags for building library objects.
18332 pic_flag=$lt_lt_prog_compiler_pic
18333
18334 # How to pass a linker flag through the compiler.
18335 wl=$lt_lt_prog_compiler_wl
18336
18337 # Compiler flag to prevent dynamic linking.
18338 link_static_flag=$lt_lt_prog_compiler_static
18339
18340 # Does compiler simultaneously support -c and -o options?
18341 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18342
18343 # Whether or not to add -lc for building shared libraries.
18344 build_libtool_need_lc=$archive_cmds_need_lc
18345
18346 # Whether or not to disallow shared libs when runtime libs are static.
18347 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18348
18349 # Compiler flag to allow reflexive dlopens.
18350 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18351
18352 # Compiler flag to generate shared objects directly from archives.
18353 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18354
18355 # Whether the compiler copes with passing no objects directly.
18356 compiler_needs_object=$lt_compiler_needs_object
18357
18358 # Create an old-style archive from a shared archive.
18359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18360
18361 # Create a temporary old-style archive to link instead of a shared archive.
18362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18363
18364 # Commands used to build a shared archive.
18365 archive_cmds=$lt_archive_cmds
18366 archive_expsym_cmds=$lt_archive_expsym_cmds
18367
18368 # Commands used to build a loadable module if different from building
18369 # a shared archive.
18370 module_cmds=$lt_module_cmds
18371 module_expsym_cmds=$lt_module_expsym_cmds
18372
18373 # Whether we are building with GNU ld or not.
18374 with_gnu_ld=$lt_with_gnu_ld
18375
18376 # Flag that allows shared libraries with undefined symbols to be built.
18377 allow_undefined_flag=$lt_allow_undefined_flag
18378
18379 # Flag that enforces no undefined symbols.
18380 no_undefined_flag=$lt_no_undefined_flag
18381
18382 # Flag to hardcode \$libdir into a binary during linking.
18383 # This must work even if \$libdir does not exist
18384 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18385
18386 # Whether we need a single "-rpath" flag with a separated argument.
18387 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18388
18389 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18390 # DIR into the resulting binary.
18391 hardcode_direct=$hardcode_direct
18392
18393 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18394 # DIR into the resulting binary and the resulting library dependency is
18395 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18396 # library is relocated.
18397 hardcode_direct_absolute=$hardcode_direct_absolute
18398
18399 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18400 # into the resulting binary.
18401 hardcode_minus_L=$hardcode_minus_L
18402
18403 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18404 # into the resulting binary.
18405 hardcode_shlibpath_var=$hardcode_shlibpath_var
18406
18407 # Set to "yes" if building a shared library automatically hardcodes DIR
18408 # into the library and all subsequent libraries and executables linked
18409 # against it.
18410 hardcode_automatic=$hardcode_automatic
18411
18412 # Set to yes if linker adds runtime paths of dependent libraries
18413 # to runtime path list.
18414 inherit_rpath=$inherit_rpath
18415
18416 # Whether libtool must link a program against all its dependency libraries.
18417 link_all_deplibs=$link_all_deplibs
18418
18419 # Set to "yes" if exported symbols are required.
18420 always_export_symbols=$always_export_symbols
18421
18422 # The commands to list exported symbols.
18423 export_symbols_cmds=$lt_export_symbols_cmds
18424
18425 # Symbols that should not be listed in the preloaded symbols.
18426 exclude_expsyms=$lt_exclude_expsyms
18427
18428 # Symbols that must always be exported.
18429 include_expsyms=$lt_include_expsyms
18430
18431 # Commands necessary for linking programs (against libraries) with templates.
18432 prelink_cmds=$lt_prelink_cmds
18433
18434 # Commands necessary for finishing linking programs.
18435 postlink_cmds=$lt_postlink_cmds
18436
18437 # Specify filename containing input files.
18438 file_list_spec=$lt_file_list_spec
18439
18440 # How to hardcode a shared library path into an executable.
18441 hardcode_action=$hardcode_action
18442
18443 # ### END LIBTOOL CONFIG
18444
18445 _LT_EOF
18446
18447   case $host_os in
18448   aix3*)
18449     cat <<\_LT_EOF >> "$cfgfile"
18450 # AIX sometimes has problems with the GCC collect2 program.  For some
18451 # reason, if we set the COLLECT_NAMES environment variable, the problems
18452 # vanish in a puff of smoke.
18453 if test "X${COLLECT_NAMES+set}" != Xset; then
18454   COLLECT_NAMES=
18455   export COLLECT_NAMES
18456 fi
18457 _LT_EOF
18458     ;;
18459   esac
18460
18461
18462 ltmain="$ac_aux_dir/ltmain.sh"
18463
18464
18465   # We use sed instead of cat because bash on DJGPP gets confused if
18466   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18467   # text mode, it properly converts lines to CR/LF.  This bash problem
18468   # is reportedly fixed, but why not run on old versions too?
18469   sed '$q' "$ltmain" >> "$cfgfile" \
18470      || (rm -f "$cfgfile"; exit 1)
18471
18472   if test x"$xsi_shell" = xyes; then
18473   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18474 func_dirname ()\
18475 {\
18476 \    case ${1} in\
18477 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18478 \      *  ) func_dirname_result="${3}" ;;\
18479 \    esac\
18480 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18481   && mv -f "$cfgfile.tmp" "$cfgfile" \
18482     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18483 test 0 -eq $? || _lt_function_replace_fail=:
18484
18485
18486   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18487 func_basename ()\
18488 {\
18489 \    func_basename_result="${1##*/}"\
18490 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18491   && mv -f "$cfgfile.tmp" "$cfgfile" \
18492     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18493 test 0 -eq $? || _lt_function_replace_fail=:
18494
18495
18496   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18497 func_dirname_and_basename ()\
18498 {\
18499 \    case ${1} in\
18500 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18501 \      *  ) func_dirname_result="${3}" ;;\
18502 \    esac\
18503 \    func_basename_result="${1##*/}"\
18504 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18505   && mv -f "$cfgfile.tmp" "$cfgfile" \
18506     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18507 test 0 -eq $? || _lt_function_replace_fail=:
18508
18509
18510   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18511 func_stripname ()\
18512 {\
18513 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18514 \    # positional parameters, so assign one to ordinary parameter first.\
18515 \    func_stripname_result=${3}\
18516 \    func_stripname_result=${func_stripname_result#"${1}"}\
18517 \    func_stripname_result=${func_stripname_result%"${2}"}\
18518 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18519   && mv -f "$cfgfile.tmp" "$cfgfile" \
18520     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18521 test 0 -eq $? || _lt_function_replace_fail=:
18522
18523
18524   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18525 func_split_long_opt ()\
18526 {\
18527 \    func_split_long_opt_name=${1%%=*}\
18528 \    func_split_long_opt_arg=${1#*=}\
18529 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18530   && mv -f "$cfgfile.tmp" "$cfgfile" \
18531     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18532 test 0 -eq $? || _lt_function_replace_fail=:
18533
18534
18535   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18536 func_split_short_opt ()\
18537 {\
18538 \    func_split_short_opt_arg=${1#??}\
18539 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18540 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18541   && mv -f "$cfgfile.tmp" "$cfgfile" \
18542     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18543 test 0 -eq $? || _lt_function_replace_fail=:
18544
18545
18546   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18547 func_lo2o ()\
18548 {\
18549 \    case ${1} in\
18550 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18551 \      *)    func_lo2o_result=${1} ;;\
18552 \    esac\
18553 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18554   && mv -f "$cfgfile.tmp" "$cfgfile" \
18555     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18556 test 0 -eq $? || _lt_function_replace_fail=:
18557
18558
18559   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18560 func_xform ()\
18561 {\
18562     func_xform_result=${1%.*}.lo\
18563 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18564   && mv -f "$cfgfile.tmp" "$cfgfile" \
18565     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18566 test 0 -eq $? || _lt_function_replace_fail=:
18567
18568
18569   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18570 func_arith ()\
18571 {\
18572     func_arith_result=$(( $* ))\
18573 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18574   && mv -f "$cfgfile.tmp" "$cfgfile" \
18575     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18576 test 0 -eq $? || _lt_function_replace_fail=:
18577
18578
18579   sed -e '/^func_len ()$/,/^} # func_len /c\
18580 func_len ()\
18581 {\
18582     func_len_result=${#1}\
18583 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18584   && mv -f "$cfgfile.tmp" "$cfgfile" \
18585     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18586 test 0 -eq $? || _lt_function_replace_fail=:
18587
18588 fi
18589
18590 if test x"$lt_shell_append" = xyes; then
18591   sed -e '/^func_append ()$/,/^} # func_append /c\
18592 func_append ()\
18593 {\
18594     eval "${1}+=\\${2}"\
18595 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18596   && mv -f "$cfgfile.tmp" "$cfgfile" \
18597     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18598 test 0 -eq $? || _lt_function_replace_fail=:
18599
18600
18601   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18602 func_append_quoted ()\
18603 {\
18604 \    func_quote_for_eval "${2}"\
18605 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18606 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18607   && mv -f "$cfgfile.tmp" "$cfgfile" \
18608     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18609 test 0 -eq $? || _lt_function_replace_fail=:
18610
18611
18612   # Save a `func_append' function call where possible by direct use of '+='
18613   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18614     && mv -f "$cfgfile.tmp" "$cfgfile" \
18615       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18616   test 0 -eq $? || _lt_function_replace_fail=:
18617 else
18618   # Save a `func_append' function call even when '+=' is not available
18619   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18620     && mv -f "$cfgfile.tmp" "$cfgfile" \
18621       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18622   test 0 -eq $? || _lt_function_replace_fail=:
18623 fi
18624
18625 if test x"$_lt_function_replace_fail" = x":"; then
18626   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18627 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18628 fi
18629
18630
18631    mv -f "$cfgfile" "$ofile" ||
18632     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18633   chmod +x "$ofile"
18634
18635  ;;
18636     "po-directories":C)
18637     for ac_file in $CONFIG_FILES; do
18638       # Support "outfile[:infile[:infile...]]"
18639       case "$ac_file" in
18640         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18641       esac
18642       # PO directories have a Makefile.in generated from Makefile.in.in.
18643       case "$ac_file" in */Makefile.in)
18644         # Adjust a relative srcdir.
18645         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18646         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18647         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18648         # In autoconf-2.13 it is called $ac_given_srcdir.
18649         # In autoconf-2.50 it is called $srcdir.
18650         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18651         case "$ac_given_srcdir" in
18652           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18653           /*) top_srcdir="$ac_given_srcdir" ;;
18654           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18655         esac
18656         # Treat a directory as a PO directory if and only if it has a
18657         # POTFILES.in file. This allows packages to have multiple PO
18658         # directories under different names or in different locations.
18659         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18660           rm -f "$ac_dir/POTFILES"
18661           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18662           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18663           POMAKEFILEDEPS="POTFILES.in"
18664           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18665           # on $ac_dir but don't depend on user-specified configuration
18666           # parameters.
18667           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18668             # The LINGUAS file contains the set of available languages.
18669             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18670               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18671             fi
18672             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18673             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18674             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18675             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18676           else
18677             # The set of available languages was given in configure.in.
18678             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18679             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18680           fi
18681           # Compute POFILES
18682           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18683           # Compute UPDATEPOFILES
18684           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18685           # Compute DUMMYPOFILES
18686           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18687           # Compute GMOFILES
18688           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18689           case "$ac_given_srcdir" in
18690             .) srcdirpre= ;;
18691             *) srcdirpre='$(srcdir)/' ;;
18692           esac
18693           POFILES=
18694           UPDATEPOFILES=
18695           DUMMYPOFILES=
18696           GMOFILES=
18697           for lang in $ALL_LINGUAS; do
18698             POFILES="$POFILES $srcdirpre$lang.po"
18699             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18700             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18701             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18702           done
18703           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18704           # environment variable.
18705           INST_LINGUAS=
18706           if test -n "$ALL_LINGUAS"; then
18707             for presentlang in $ALL_LINGUAS; do
18708               useit=no
18709               if test "%UNSET%" != "$LINGUAS"; then
18710                 desiredlanguages="$LINGUAS"
18711               else
18712                 desiredlanguages="$ALL_LINGUAS"
18713               fi
18714               for desiredlang in $desiredlanguages; do
18715                 # Use the presentlang catalog if desiredlang is
18716                 #   a. equal to presentlang, or
18717                 #   b. a variant of presentlang (because in this case,
18718                 #      presentlang can be used as a fallback for messages
18719                 #      which are not translated in the desiredlang catalog).
18720                 case "$desiredlang" in
18721                   "$presentlang"*) useit=yes;;
18722                 esac
18723               done
18724               if test $useit = yes; then
18725                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18726               fi
18727             done
18728           fi
18729           CATALOGS=
18730           if test -n "$INST_LINGUAS"; then
18731             for lang in $INST_LINGUAS; do
18732               CATALOGS="$CATALOGS $lang.gmo"
18733             done
18734           fi
18735           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18736           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"
18737           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18738             if test -f "$f"; then
18739               case "$f" in
18740                 *.orig | *.bak | *~) ;;
18741                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18742               esac
18743             fi
18744           done
18745         fi
18746         ;;
18747       esac
18748     done ;;
18749
18750   esac
18751 done # for ac_tag
18752
18753
18754 as_fn_exit 0
18755 _ACEOF
18756 ac_clean_files=$ac_clean_files_save
18757
18758 test $ac_write_fail = 0 ||
18759   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18760
18761
18762 # configure is writing to config.log, and then calls config.status.
18763 # config.status does its own redirection, appending to config.log.
18764 # Unfortunately, on DOS this fails, as config.log is still kept open
18765 # by configure, so config.status won't be able to write to it; its
18766 # output is simply discarded.  So we exec the FD to /dev/null,
18767 # effectively closing config.log, so it can be properly (re)opened and
18768 # appended to by config.status.  When coming back to configure, we
18769 # need to make the FD available again.
18770 if test "$no_create" != yes; then
18771   ac_cs_success=:
18772   ac_config_status_args=
18773   test "$silent" = yes &&
18774     ac_config_status_args="$ac_config_status_args --quiet"
18775   exec 5>/dev/null
18776   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18777   exec 5>>config.log
18778   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18779   # would make configure fail if this is the last instruction.
18780   $ac_cs_success || as_fn_exit 1
18781 fi
18782 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18783   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18784 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18785 fi
18786