New upstream version 1.0.3
[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 1.0.3.
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='1.0.3'
654 PACKAGE_STRING='Moonshot-ui 1.0.3'
655 PACKAGE_BUGREPORT='moonshot-community@jiscmail.ac.uk'
656 PACKAGE_URL='http://www.project-moonshot.org/'
657
658 ac_unique_file="configure.ac"
659 # Factoring default headers for most tests.
660 ac_includes_default="\
661 #include <stdio.h>
662 #ifdef HAVE_SYS_TYPES_H
663 # include <sys/types.h>
664 #endif
665 #ifdef HAVE_SYS_STAT_H
666 # include <sys/stat.h>
667 #endif
668 #ifdef STDC_HEADERS
669 # include <stdlib.h>
670 # include <stddef.h>
671 #else
672 # ifdef HAVE_STDLIB_H
673 #  include <stdlib.h>
674 # endif
675 #endif
676 #ifdef HAVE_STRING_H
677 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
678 #  include <memory.h>
679 # endif
680 # include <string.h>
681 #endif
682 #ifdef HAVE_STRINGS_H
683 # include <strings.h>
684 #endif
685 #ifdef HAVE_INTTYPES_H
686 # include <inttypes.h>
687 #endif
688 #ifdef HAVE_STDINT_H
689 # include <stdint.h>
690 #endif
691 #ifdef HAVE_UNISTD_H
692 # include <unistd.h>
693 #endif"
694
695 ac_func_list=
696 gt_needs=
697 ac_subst_vars='am__EXEEXT_FALSE
698 am__EXEEXT_TRUE
699 LTLIBOBJS
700 LIBOBJS
701 GETTEXT_PACKAGE
702 POSUB
703 LTLIBINTL
704 LIBINTL
705 INTLLIBS
706 LTLIBICONV
707 LIBICONV
708 INTL_MACOSX_LIBS
709 XGETTEXT_EXTRA_OPTIONS
710 MSGMERGE
711 XGETTEXT_015
712 XGETTEXT
713 GMSGFMT_015
714 MSGFMT_015
715 GMSGFMT
716 MSGFMT
717 GETTEXT_MACRO_VERSION
718 USE_NLS
719 libmoonshot_LIBS
720 libmoonshot_CFLAGS
721 moonshot_LIBS
722 moonshot_CFLAGS
723 MOONSHOT_WEBP
724 MOONSHOT_APP
725 UPDATE_DESKTOP_DATABASE
726 UPDATE_MIME_DATABASE
727 WIX_LIGHT
728 WIX_CANDLE
729 IMAGEMAGICK_CONVERT
730 MSVC_LIB
731 MIDL
732 MIDL_WRAPPER
733 MSRPC_LIBS
734 MSRPC_CFLAGS
735 GIO_VAPI_USES_ARRAYS_FALSE
736 GIO_VAPI_USES_ARRAYS_TRUE
737 IPC_GDBUS_FALSE
738 IPC_GDBUS_TRUE
739 IPC_DBUS_GLIB_FALSE
740 IPC_DBUS_GLIB_TRUE
741 IPC_DBUS_FALSE
742 IPC_DBUS_TRUE
743 IPC_MSRPC_FALSE
744 IPC_MSRPC_TRUE
745 OS_MACOS_FALSE
746 OS_MACOS_TRUE
747 OS_WIN32_FALSE
748 OS_WIN32_TRUE
749 OS_LINUX_FALSE
750 OS_LINUX_TRUE
751 LOG4VALA_FALSE
752 LOG4VALA_TRUE
753 GEE_VERSION
754 LIB_GEE_LIBS
755 LIB_GEE_CFLAGS
756 LOG4VALA_VERSION
757 LOG4VALA_LIBS
758 LOG4VALA_CFLAGS
759 GTK_VERSION
760 GTK_LIBS
761 GTK_CFLAGS
762 GDBUS_LIBS
763 GDBUS_CFLAGS
764 MAC_LIBS
765 MAC_CFLAGS
766 VALAC
767 PKG_CONFIG_LIBDIR
768 PKG_CONFIG_PATH
769 PKG_CONFIG
770 CPP
771 LT_SYS_LIBRARY_PATH
772 OTOOL64
773 OTOOL
774 LIPO
775 NMEDIT
776 DSYMUTIL
777 MANIFEST_TOOL
778 RANLIB
779 ac_ct_AR
780 AR
781 LN_S
782 NM
783 ac_ct_DUMPBIN
784 DUMPBIN
785 LD
786 FGREP
787 EGREP
788 GREP
789 SED
790 am__fastdepCC_FALSE
791 am__fastdepCC_TRUE
792 CCDEPMODE
793 am__nodep
794 AMDEPBACKSLASH
795 AMDEP_FALSE
796 AMDEP_TRUE
797 am__quote
798 am__include
799 DEPDIR
800 OBJEXT
801 EXEEXT
802 ac_ct_CC
803 CPPFLAGS
804 LDFLAGS
805 CFLAGS
806 CC
807 host_os
808 host_vendor
809 host_cpu
810 host
811 build_os
812 build_vendor
813 build_cpu
814 build
815 LIBTOOL
816 OBJDUMP
817 DLLTOOL
818 AS
819 MAINT
820 MAINTAINER_MODE_FALSE
821 MAINTAINER_MODE_TRUE
822 AM_BACKSLASH
823 AM_DEFAULT_VERBOSITY
824 AM_DEFAULT_V
825 AM_V
826 am__untar
827 am__tar
828 AMTAR
829 am__leading_dot
830 SET_MAKE
831 AWK
832 mkdir_p
833 MKDIR_P
834 INSTALL_STRIP_PROGRAM
835 STRIP
836 install_sh
837 MAKEINFO
838 AUTOHEADER
839 AUTOMAKE
840 AUTOCONF
841 ACLOCAL
842 VERSION
843 PACKAGE
844 CYGPATH_W
845 am__isrc
846 INSTALL_DATA
847 INSTALL_SCRIPT
848 INSTALL_PROGRAM
849 target_alias
850 host_alias
851 build_alias
852 LIBS
853 ECHO_T
854 ECHO_N
855 ECHO_C
856 DEFS
857 mandir
858 localedir
859 libdir
860 psdir
861 pdfdir
862 dvidir
863 htmldir
864 infodir
865 docdir
866 oldincludedir
867 includedir
868 runstatedir
869 localstatedir
870 sharedstatedir
871 sysconfdir
872 datadir
873 datarootdir
874 libexecdir
875 sbindir
876 bindir
877 program_transform_name
878 prefix
879 exec_prefix
880 PACKAGE_URL
881 PACKAGE_BUGREPORT
882 PACKAGE_STRING
883 PACKAGE_VERSION
884 PACKAGE_TARNAME
885 PACKAGE_NAME
886 PATH_SEPARATOR
887 SHELL'
888 ac_subst_files=''
889 ac_user_opts='
890 enable_option_checking
891 enable_silent_rules
892 enable_maintainer_mode
893 enable_shared
894 enable_static
895 with_pic
896 enable_fast_install
897 with_aix_soname
898 enable_dependency_tracking
899 with_gnu_ld
900 with_sysroot
901 enable_libtool_lock
902 enable_log4vala
903 enable_nls
904 enable_rpath
905 with_libiconv_prefix
906 with_libintl_prefix
907 '
908       ac_precious_vars='build_alias
909 host_alias
910 target_alias
911 CC
912 CFLAGS
913 LDFLAGS
914 LIBS
915 CPPFLAGS
916 LT_SYS_LIBRARY_PATH
917 CPP
918 PKG_CONFIG
919 PKG_CONFIG_PATH
920 PKG_CONFIG_LIBDIR
921 MAC_CFLAGS
922 MAC_LIBS
923 GDBUS_CFLAGS
924 GDBUS_LIBS
925 GTK_CFLAGS
926 GTK_LIBS
927 LOG4VALA_CFLAGS
928 LOG4VALA_LIBS
929 LIB_GEE_CFLAGS
930 LIB_GEE_LIBS
931 moonshot_CFLAGS
932 moonshot_LIBS
933 libmoonshot_CFLAGS
934 libmoonshot_LIBS'
935
936
937 # Initialize some variables set by options.
938 ac_init_help=
939 ac_init_version=false
940 ac_unrecognized_opts=
941 ac_unrecognized_sep=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_libraries=NONE
958
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 runstatedir='${localstatedir}/run'
974 includedir='${prefix}/include'
975 oldincludedir='/usr/include'
976 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
977 infodir='${datarootdir}/info'
978 htmldir='${docdir}'
979 dvidir='${docdir}'
980 pdfdir='${docdir}'
981 psdir='${docdir}'
982 libdir='${exec_prefix}/lib'
983 localedir='${datarootdir}/locale'
984 mandir='${datarootdir}/man'
985
986 ac_prev=
987 ac_dashdash=
988 for ac_option
989 do
990   # If the previous option needs an argument, assign it.
991   if test -n "$ac_prev"; then
992     eval $ac_prev=\$ac_option
993     ac_prev=
994     continue
995   fi
996
997   case $ac_option in
998   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
999   *=)   ac_optarg= ;;
1000   *)    ac_optarg=yes ;;
1001   esac
1002
1003   # Accept the important Cygnus configure options, so we can diagnose typos.
1004
1005   case $ac_dashdash$ac_option in
1006   --)
1007     ac_dashdash=yes ;;
1008
1009   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1010     ac_prev=bindir ;;
1011   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1012     bindir=$ac_optarg ;;
1013
1014   -build | --build | --buil | --bui | --bu)
1015     ac_prev=build_alias ;;
1016   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1017     build_alias=$ac_optarg ;;
1018
1019   -cache-file | --cache-file | --cache-fil | --cache-fi \
1020   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1021     ac_prev=cache_file ;;
1022   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1023   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1024     cache_file=$ac_optarg ;;
1025
1026   --config-cache | -C)
1027     cache_file=config.cache ;;
1028
1029   -datadir | --datadir | --datadi | --datad)
1030     ac_prev=datadir ;;
1031   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1032     datadir=$ac_optarg ;;
1033
1034   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1035   | --dataroo | --dataro | --datar)
1036     ac_prev=datarootdir ;;
1037   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1038   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1039     datarootdir=$ac_optarg ;;
1040
1041   -disable-* | --disable-*)
1042     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1043     # Reject names that are not valid shell variable names.
1044     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045       as_fn_error $? "invalid feature name: $ac_useropt"
1046     ac_useropt_orig=$ac_useropt
1047     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048     case $ac_user_opts in
1049       *"
1050 "enable_$ac_useropt"
1051 "*) ;;
1052       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053          ac_unrecognized_sep=', ';;
1054     esac
1055     eval enable_$ac_useropt=no ;;
1056
1057   -docdir | --docdir | --docdi | --doc | --do)
1058     ac_prev=docdir ;;
1059   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060     docdir=$ac_optarg ;;
1061
1062   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063     ac_prev=dvidir ;;
1064   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065     dvidir=$ac_optarg ;;
1066
1067   -enable-* | --enable-*)
1068     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071       as_fn_error $? "invalid feature name: $ac_useropt"
1072     ac_useropt_orig=$ac_useropt
1073     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074     case $ac_user_opts in
1075       *"
1076 "enable_$ac_useropt"
1077 "*) ;;
1078       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079          ac_unrecognized_sep=', ';;
1080     esac
1081     eval enable_$ac_useropt=\$ac_optarg ;;
1082
1083   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085   | --exec | --exe | --ex)
1086     ac_prev=exec_prefix ;;
1087   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089   | --exec=* | --exe=* | --ex=*)
1090     exec_prefix=$ac_optarg ;;
1091
1092   -gas | --gas | --ga | --g)
1093     # Obsolete; use --with-gas.
1094     with_gas=yes ;;
1095
1096   -help | --help | --hel | --he | -h)
1097     ac_init_help=long ;;
1098   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099     ac_init_help=recursive ;;
1100   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101     ac_init_help=short ;;
1102
1103   -host | --host | --hos | --ho)
1104     ac_prev=host_alias ;;
1105   -host=* | --host=* | --hos=* | --ho=*)
1106     host_alias=$ac_optarg ;;
1107
1108   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109     ac_prev=htmldir ;;
1110   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111   | --ht=*)
1112     htmldir=$ac_optarg ;;
1113
1114   -includedir | --includedir | --includedi | --included | --include \
1115   | --includ | --inclu | --incl | --inc)
1116     ac_prev=includedir ;;
1117   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118   | --includ=* | --inclu=* | --incl=* | --inc=*)
1119     includedir=$ac_optarg ;;
1120
1121   -infodir | --infodir | --infodi | --infod | --info | --inf)
1122     ac_prev=infodir ;;
1123   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124     infodir=$ac_optarg ;;
1125
1126   -libdir | --libdir | --libdi | --libd)
1127     ac_prev=libdir ;;
1128   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129     libdir=$ac_optarg ;;
1130
1131   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132   | --libexe | --libex | --libe)
1133     ac_prev=libexecdir ;;
1134   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135   | --libexe=* | --libex=* | --libe=*)
1136     libexecdir=$ac_optarg ;;
1137
1138   -localedir | --localedir | --localedi | --localed | --locale)
1139     ac_prev=localedir ;;
1140   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141     localedir=$ac_optarg ;;
1142
1143   -localstatedir | --localstatedir | --localstatedi | --localstated \
1144   | --localstate | --localstat | --localsta | --localst | --locals)
1145     ac_prev=localstatedir ;;
1146   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148     localstatedir=$ac_optarg ;;
1149
1150   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151     ac_prev=mandir ;;
1152   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153     mandir=$ac_optarg ;;
1154
1155   -nfp | --nfp | --nf)
1156     # Obsolete; use --without-fp.
1157     with_fp=no ;;
1158
1159   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160   | --no-cr | --no-c | -n)
1161     no_create=yes ;;
1162
1163   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165     no_recursion=yes ;;
1166
1167   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169   | --oldin | --oldi | --old | --ol | --o)
1170     ac_prev=oldincludedir ;;
1171   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174     oldincludedir=$ac_optarg ;;
1175
1176   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177     ac_prev=prefix ;;
1178   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179     prefix=$ac_optarg ;;
1180
1181   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182   | --program-pre | --program-pr | --program-p)
1183     ac_prev=program_prefix ;;
1184   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186     program_prefix=$ac_optarg ;;
1187
1188   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189   | --program-suf | --program-su | --program-s)
1190     ac_prev=program_suffix ;;
1191   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193     program_suffix=$ac_optarg ;;
1194
1195   -program-transform-name | --program-transform-name \
1196   | --program-transform-nam | --program-transform-na \
1197   | --program-transform-n | --program-transform- \
1198   | --program-transform | --program-transfor \
1199   | --program-transfo | --program-transf \
1200   | --program-trans | --program-tran \
1201   | --progr-tra | --program-tr | --program-t)
1202     ac_prev=program_transform_name ;;
1203   -program-transform-name=* | --program-transform-name=* \
1204   | --program-transform-nam=* | --program-transform-na=* \
1205   | --program-transform-n=* | --program-transform-=* \
1206   | --program-transform=* | --program-transfor=* \
1207   | --program-transfo=* | --program-transf=* \
1208   | --program-trans=* | --program-tran=* \
1209   | --progr-tra=* | --program-tr=* | --program-t=*)
1210     program_transform_name=$ac_optarg ;;
1211
1212   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213     ac_prev=pdfdir ;;
1214   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215     pdfdir=$ac_optarg ;;
1216
1217   -psdir | --psdir | --psdi | --psd | --ps)
1218     ac_prev=psdir ;;
1219   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220     psdir=$ac_optarg ;;
1221
1222   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223   | -silent | --silent | --silen | --sile | --sil)
1224     silent=yes ;;
1225
1226   -runstatedir | --runstatedir | --runstatedi | --runstated \
1227   | --runstate | --runstat | --runsta | --runst | --runs \
1228   | --run | --ru | --r)
1229     ac_prev=runstatedir ;;
1230   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1231   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1232   | --run=* | --ru=* | --r=*)
1233     runstatedir=$ac_optarg ;;
1234
1235   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236     ac_prev=sbindir ;;
1237   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238   | --sbi=* | --sb=*)
1239     sbindir=$ac_optarg ;;
1240
1241   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243   | --sharedst | --shareds | --shared | --share | --shar \
1244   | --sha | --sh)
1245     ac_prev=sharedstatedir ;;
1246   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249   | --sha=* | --sh=*)
1250     sharedstatedir=$ac_optarg ;;
1251
1252   -site | --site | --sit)
1253     ac_prev=site ;;
1254   -site=* | --site=* | --sit=*)
1255     site=$ac_optarg ;;
1256
1257   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258     ac_prev=srcdir ;;
1259   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260     srcdir=$ac_optarg ;;
1261
1262   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263   | --syscon | --sysco | --sysc | --sys | --sy)
1264     ac_prev=sysconfdir ;;
1265   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267     sysconfdir=$ac_optarg ;;
1268
1269   -target | --target | --targe | --targ | --tar | --ta | --t)
1270     ac_prev=target_alias ;;
1271   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272     target_alias=$ac_optarg ;;
1273
1274   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275     verbose=yes ;;
1276
1277   -version | --version | --versio | --versi | --vers | -V)
1278     ac_init_version=: ;;
1279
1280   -with-* | --with-*)
1281     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282     # Reject names that are not valid shell variable names.
1283     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284       as_fn_error $? "invalid package name: $ac_useropt"
1285     ac_useropt_orig=$ac_useropt
1286     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287     case $ac_user_opts in
1288       *"
1289 "with_$ac_useropt"
1290 "*) ;;
1291       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292          ac_unrecognized_sep=', ';;
1293     esac
1294     eval with_$ac_useropt=\$ac_optarg ;;
1295
1296   -without-* | --without-*)
1297     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298     # Reject names that are not valid shell variable names.
1299     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300       as_fn_error $? "invalid package name: $ac_useropt"
1301     ac_useropt_orig=$ac_useropt
1302     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303     case $ac_user_opts in
1304       *"
1305 "with_$ac_useropt"
1306 "*) ;;
1307       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308          ac_unrecognized_sep=', ';;
1309     esac
1310     eval with_$ac_useropt=no ;;
1311
1312   --x)
1313     # Obsolete; use --with-x.
1314     with_x=yes ;;
1315
1316   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317   | --x-incl | --x-inc | --x-in | --x-i)
1318     ac_prev=x_includes ;;
1319   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321     x_includes=$ac_optarg ;;
1322
1323   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325     ac_prev=x_libraries ;;
1326   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328     x_libraries=$ac_optarg ;;
1329
1330   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1331 Try \`$0 --help' for more information"
1332     ;;
1333
1334   *=*)
1335     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336     # Reject names that are not valid shell variable names.
1337     case $ac_envvar in #(
1338       '' | [0-9]* | *[!_$as_cr_alnum]* )
1339       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1340     esac
1341     eval $ac_envvar=\$ac_optarg
1342     export $ac_envvar ;;
1343
1344   *)
1345     # FIXME: should be removed in autoconf 3.0.
1346     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1350     ;;
1351
1352   esac
1353 done
1354
1355 if test -n "$ac_prev"; then
1356   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357   as_fn_error $? "missing argument to $ac_option"
1358 fi
1359
1360 if test -n "$ac_unrecognized_opts"; then
1361   case $enable_option_checking in
1362     no) ;;
1363     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1364     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365   esac
1366 fi
1367
1368 # Check all directory arguments for consistency.
1369 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370                 datadir sysconfdir sharedstatedir localstatedir includedir \
1371                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372                 libdir localedir mandir runstatedir
1373 do
1374   eval ac_val=\$$ac_var
1375   # Remove trailing slashes.
1376   case $ac_val in
1377     */ )
1378       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379       eval $ac_var=\$ac_val;;
1380   esac
1381   # Be sure to have absolute directory names.
1382   case $ac_val in
1383     [\\/$]* | ?:[\\/]* )  continue;;
1384     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385   esac
1386   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1387 done
1388
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1392 build=$build_alias
1393 host=$host_alias
1394 target=$target_alias
1395
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x; then
1398   if test "x$build_alias" = x; then
1399     cross_compiling=maybe
1400   elif test "x$build_alias" != "x$host_alias"; then
1401     cross_compiling=yes
1402   fi
1403 fi
1404
1405 ac_tool_prefix=
1406 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407
1408 test "$silent" = yes && exec 6>/dev/null
1409
1410
1411 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412 ac_ls_di=`ls -di .` &&
1413 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414   as_fn_error $? "working directory cannot be determined"
1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416   as_fn_error $? "pwd does not report name of working directory"
1417
1418
1419 # Find the source files, if location was not specified.
1420 if test -z "$srcdir"; then
1421   ac_srcdir_defaulted=yes
1422   # Try the directory containing this script, then the parent directory.
1423   ac_confdir=`$as_dirname -- "$as_myself" ||
1424 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425          X"$as_myself" : 'X\(//\)[^/]' \| \
1426          X"$as_myself" : 'X\(//\)$' \| \
1427          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428 $as_echo X"$as_myself" |
1429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430             s//\1/
1431             q
1432           }
1433           /^X\(\/\/\)[^/].*/{
1434             s//\1/
1435             q
1436           }
1437           /^X\(\/\/\)$/{
1438             s//\1/
1439             q
1440           }
1441           /^X\(\/\).*/{
1442             s//\1/
1443             q
1444           }
1445           s/.*/./; q'`
1446   srcdir=$ac_confdir
1447   if test ! -r "$srcdir/$ac_unique_file"; then
1448     srcdir=..
1449   fi
1450 else
1451   ac_srcdir_defaulted=no
1452 fi
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1456 fi
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 ac_abs_confdir=`(
1459         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1460         pwd)`
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463   srcdir=.
1464 fi
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1468 case $srcdir in
1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470 esac
1471 for ac_var in $ac_precious_vars; do
1472   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473   eval ac_env_${ac_var}_value=\$${ac_var}
1474   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476 done
1477
1478 #
1479 # Report the --help message.
1480 #
1481 if test "$ac_init_help" = "long"; then
1482   # Omit some internal or obsolete options to make the list less imposing.
1483   # This message is too long to be a string in the A/UX 3.1 sh.
1484   cat <<_ACEOF
1485 \`configure' configures Moonshot-ui 1.0.3 to adapt to many kinds of systems.
1486
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1488
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE.  See below for descriptions of some of the useful variables.
1491
1492 Defaults for the options are specified in brackets.
1493
1494 Configuration:
1495   -h, --help              display this help and exit
1496       --help=short        display options specific to this package
1497       --help=recursive    display the short help of all the included packages
1498   -V, --version           display version information and exit
1499   -q, --quiet, --silent   do not print \`checking ...' messages
1500       --cache-file=FILE   cache test results in FILE [disabled]
1501   -C, --config-cache      alias for \`--cache-file=config.cache'
1502   -n, --no-create         do not create output files
1503       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1504
1505 Installation directories:
1506   --prefix=PREFIX         install architecture-independent files in PREFIX
1507                           [$ac_default_prefix]
1508   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1509                           [PREFIX]
1510
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1515
1516 For better control, use the options below.
1517
1518 Fine tuning of the installation directories:
1519   --bindir=DIR            user executables [EPREFIX/bin]
1520   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1521   --libexecdir=DIR        program executables [EPREFIX/libexec]
1522   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1523   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1524   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1525   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1526   --libdir=DIR            object code libraries [EPREFIX/lib]
1527   --includedir=DIR        C header files [PREFIX/include]
1528   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1529   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1530   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1531   --infodir=DIR           info documentation [DATAROOTDIR/info]
1532   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1533   --mandir=DIR            man documentation [DATAROOTDIR/man]
1534   --docdir=DIR            documentation root [DATAROOTDIR/doc/moonshot-ui]
1535   --htmldir=DIR           html documentation [DOCDIR]
1536   --dvidir=DIR            dvi documentation [DOCDIR]
1537   --pdfdir=DIR            pdf documentation [DOCDIR]
1538   --psdir=DIR             ps documentation [DOCDIR]
1539 _ACEOF
1540
1541   cat <<\_ACEOF
1542
1543 Program names:
1544   --program-prefix=PREFIX            prepend PREFIX to installed program names
1545   --program-suffix=SUFFIX            append SUFFIX to installed program names
1546   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1547
1548 System types:
1549   --build=BUILD     configure for building on BUILD [guessed]
1550   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1551 _ACEOF
1552 fi
1553
1554 if test -n "$ac_init_help"; then
1555   case $ac_init_help in
1556      short | recursive ) echo "Configuration of Moonshot-ui 1.0.3:";;
1557    esac
1558   cat <<\_ACEOF
1559
1560 Optional Features:
1561   --disable-option-checking  ignore unrecognized --enable/--with options
1562   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1563   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1564   --enable-silent-rules   less verbose build output (undo: "make V=1")
1565   --disable-silent-rules  verbose build output (undo: "make V=0")
1566   --disable-maintainer-mode
1567                           disable make rules and dependencies not useful (and
1568                           sometimes confusing) to the casual installer
1569   --enable-shared[=PKGS]  build shared libraries [default=yes]
1570   --enable-static[=PKGS]  build static libraries [default=yes]
1571   --enable-fast-install[=PKGS]
1572                           optimize for fast installation [default=yes]
1573   --enable-dependency-tracking
1574                           do not reject slow dependency extractors
1575   --disable-dependency-tracking
1576                           speeds up one-time build
1577   --disable-libtool-lock  avoid locking (might break parallel builds)
1578   --enable-log4vala    Enable use of log4vala for logging
1579   --disable-nls           do not use Native Language Support
1580   --disable-rpath         do not hardcode runtime library paths
1581
1582 Optional Packages:
1583   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1584   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1585   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1586                           both]
1587   --with-aix-soname=aix|svr4|both
1588                           shared library versioning (aka "SONAME") variant to
1589                           provide on AIX, [default=aix].
1590   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1591   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1592                           compiler's sysroot if not specified).
1593   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1594   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1595   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1596   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1597   --without-libintl-prefix     don't search for libintl in includedir and libdir
1598
1599 Some influential environment variables:
1600   CC          C compiler command
1601   CFLAGS      C compiler flags
1602   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1603               nonstandard directory <lib dir>
1604   LIBS        libraries to pass to the linker, e.g. -l<library>
1605   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1606               you have headers in a nonstandard directory <include dir>
1607   LT_SYS_LIBRARY_PATH
1608               User-defined run-time library search path.
1609   CPP         C preprocessor
1610   PKG_CONFIG  path to pkg-config utility
1611   PKG_CONFIG_PATH
1612               directories to add to pkg-config's search path
1613   PKG_CONFIG_LIBDIR
1614               path overriding pkg-config's built-in search path
1615   MAC_CFLAGS  C compiler flags for MAC, overriding pkg-config
1616   MAC_LIBS    linker flags for MAC, overriding pkg-config
1617   GDBUS_CFLAGS
1618               C compiler flags for GDBUS, overriding pkg-config
1619   GDBUS_LIBS  linker flags for GDBUS, overriding pkg-config
1620   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1621   GTK_LIBS    linker flags for GTK, overriding pkg-config
1622   LOG4VALA_CFLAGS
1623               C compiler flags for LOG4VALA, overriding pkg-config
1624   LOG4VALA_LIBS
1625               linker flags for LOG4VALA, overriding pkg-config
1626   LIB_GEE_CFLAGS
1627               C compiler flags for LIB_GEE, overriding pkg-config
1628   LIB_GEE_LIBS
1629               linker flags for LIB_GEE, overriding pkg-config
1630   moonshot_CFLAGS
1631               C compiler flags for moonshot, overriding pkg-config
1632   moonshot_LIBS
1633               linker flags for moonshot, overriding pkg-config
1634   libmoonshot_CFLAGS
1635               C compiler flags for libmoonshot, overriding pkg-config
1636   libmoonshot_LIBS
1637               linker flags for libmoonshot, overriding pkg-config
1638
1639 Use these variables to override the choices made by `configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1641
1642 Report bugs to <moonshot-community@jiscmail.ac.uk>.
1643 Moonshot-ui home page: <http://www.project-moonshot.org/>.
1644 _ACEOF
1645 ac_status=$?
1646 fi
1647
1648 if test "$ac_init_help" = "recursive"; then
1649   # If there are subdirs, report their specific --help.
1650   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651     test -d "$ac_dir" ||
1652       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653       continue
1654     ac_builddir=.
1655
1656 case "$ac_dir" in
1657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 *)
1659   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660   # A ".." for each directory in $ac_dir_suffix.
1661   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662   case $ac_top_builddir_sub in
1663   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665   esac ;;
1666 esac
1667 ac_abs_top_builddir=$ac_pwd
1668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669 # for backward compatibility:
1670 ac_top_builddir=$ac_top_build_prefix
1671
1672 case $srcdir in
1673   .)  # We are building in place.
1674     ac_srcdir=.
1675     ac_top_srcdir=$ac_top_builddir_sub
1676     ac_abs_top_srcdir=$ac_pwd ;;
1677   [\\/]* | ?:[\\/]* )  # Absolute name.
1678     ac_srcdir=$srcdir$ac_dir_suffix;
1679     ac_top_srcdir=$srcdir
1680     ac_abs_top_srcdir=$srcdir ;;
1681   *) # Relative name.
1682     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683     ac_top_srcdir=$ac_top_build_prefix$srcdir
1684     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1685 esac
1686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687
1688     cd "$ac_dir" || { ac_status=$?; continue; }
1689     # Check for guested configure.
1690     if test -f "$ac_srcdir/configure.gnu"; then
1691       echo &&
1692       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693     elif test -f "$ac_srcdir/configure"; then
1694       echo &&
1695       $SHELL "$ac_srcdir/configure" --help=recursive
1696     else
1697       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698     fi || ac_status=$?
1699     cd "$ac_pwd" || { ac_status=$?; break; }
1700   done
1701 fi
1702
1703 test -n "$ac_init_help" && exit $ac_status
1704 if $ac_init_version; then
1705   cat <<\_ACEOF
1706 Moonshot-ui configure 1.0.3
1707 generated by GNU Autoconf 2.69
1708
1709 Copyright (C) 2012 Free Software Foundation, Inc.
1710 This configure script is free software; the Free Software Foundation
1711 gives unlimited permission to copy, distribute and modify it.
1712 _ACEOF
1713   exit
1714 fi
1715
1716 ## ------------------------ ##
1717 ## Autoconf initialization. ##
1718 ## ------------------------ ##
1719
1720 # ac_fn_c_try_compile LINENO
1721 # --------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_compile ()
1724 {
1725   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726   rm -f conftest.$ac_objext
1727   if { { ac_try="$ac_compile"
1728 case "(($ac_try" in
1729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730   *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734   (eval "$ac_compile") 2>conftest.err
1735   ac_status=$?
1736   if test -s conftest.err; then
1737     grep -v '^ *+' conftest.err >conftest.er1
1738     cat conftest.er1 >&5
1739     mv -f conftest.er1 conftest.err
1740   fi
1741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742   test $ac_status = 0; } && {
1743          test -z "$ac_c_werror_flag" ||
1744          test ! -s conftest.err
1745        } && test -s conftest.$ac_objext; then :
1746   ac_retval=0
1747 else
1748   $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751         ac_retval=1
1752 fi
1753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754   as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_compile
1757
1758 # ac_fn_c_try_link LINENO
1759 # -----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_link ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   rm -f conftest.$ac_objext conftest$ac_exeext
1765   if { { ac_try="$ac_link"
1766 case "(($ac_try" in
1767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768   *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772   (eval "$ac_link") 2>conftest.err
1773   ac_status=$?
1774   if test -s conftest.err; then
1775     grep -v '^ *+' conftest.err >conftest.er1
1776     cat conftest.er1 >&5
1777     mv -f conftest.er1 conftest.err
1778   fi
1779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780   test $ac_status = 0; } && {
1781          test -z "$ac_c_werror_flag" ||
1782          test ! -s conftest.err
1783        } && test -s conftest$ac_exeext && {
1784          test "$cross_compiling" = yes ||
1785          test -x conftest$ac_exeext
1786        }; then :
1787   ac_retval=0
1788 else
1789   $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792         ac_retval=1
1793 fi
1794   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1795   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1796   # interfere with the next link command; also delete a directory that is
1797   # left behind by Apple's compiler.  We do this before executing the actions.
1798   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800   as_fn_set_status $ac_retval
1801
1802 } # ac_fn_c_try_link
1803
1804 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists and can be compiled using the include files in
1807 # INCLUDES, setting the cache variable VAR accordingly.
1808 ac_fn_c_check_header_compile ()
1809 {
1810   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814   $as_echo_n "(cached) " >&6
1815 else
1816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h.  */
1818 $4
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822   eval "$3=yes"
1823 else
1824   eval "$3=no"
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 fi
1828 eval ac_res=\$$3
1829                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833 } # ac_fn_c_check_header_compile
1834
1835 # ac_fn_c_try_cpp LINENO
1836 # ----------------------
1837 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_c_try_cpp ()
1839 {
1840   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841   if { { ac_try="$ac_cpp conftest.$ac_ext"
1842 case "(($ac_try" in
1843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844   *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1849   ac_status=$?
1850   if test -s conftest.err; then
1851     grep -v '^ *+' conftest.err >conftest.er1
1852     cat conftest.er1 >&5
1853     mv -f conftest.er1 conftest.err
1854   fi
1855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856   test $ac_status = 0; } > conftest.i && {
1857          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1858          test ! -s conftest.err
1859        }; then :
1860   ac_retval=0
1861 else
1862   $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1864
1865     ac_retval=1
1866 fi
1867   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868   as_fn_set_status $ac_retval
1869
1870 } # ac_fn_c_try_cpp
1871
1872 # ac_fn_c_try_run LINENO
1873 # ----------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1875 # that executables *can* be run.
1876 ac_fn_c_try_run ()
1877 {
1878   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879   if { { ac_try="$ac_link"
1880 case "(($ac_try" in
1881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882   *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886   (eval "$ac_link") 2>&5
1887   ac_status=$?
1888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1890   { { case "(($ac_try" in
1891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892   *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896   (eval "$ac_try") 2>&5
1897   ac_status=$?
1898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899   test $ac_status = 0; }; }; then :
1900   ac_retval=0
1901 else
1902   $as_echo "$as_me: program exited with status $ac_status" >&5
1903        $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1905
1906        ac_retval=$ac_status
1907 fi
1908   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1909   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910   as_fn_set_status $ac_retval
1911
1912 } # ac_fn_c_try_run
1913
1914 # ac_fn_c_check_func LINENO FUNC VAR
1915 # ----------------------------------
1916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1917 ac_fn_c_check_func ()
1918 {
1919   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923   $as_echo_n "(cached) " >&6
1924 else
1925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h.  */
1927 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1929 #define $2 innocuous_$2
1930
1931 /* System header to define __stub macros and hopefully few prototypes,
1932     which can conflict with char $2 (); below.
1933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1934     <limits.h> exists even on freestanding compilers.  */
1935
1936 #ifdef __STDC__
1937 # include <limits.h>
1938 #else
1939 # include <assert.h>
1940 #endif
1941
1942 #undef $2
1943
1944 /* Override any GCC internal prototype to avoid an error.
1945    Use char because int might match the return type of a GCC
1946    builtin and then its argument prototype would still apply.  */
1947 #ifdef __cplusplus
1948 extern "C"
1949 #endif
1950 char $2 ();
1951 /* The GNU C library defines this for functions which it implements
1952     to always fail with ENOSYS.  Some functions are actually named
1953     something starting with __ and the normal name is an alias.  */
1954 #if defined __stub_$2 || defined __stub___$2
1955 choke me
1956 #endif
1957
1958 int
1959 main ()
1960 {
1961 return $2 ();
1962   ;
1963   return 0;
1964 }
1965 _ACEOF
1966 if ac_fn_c_try_link "$LINENO"; then :
1967   eval "$3=yes"
1968 else
1969   eval "$3=no"
1970 fi
1971 rm -f core conftest.err conftest.$ac_objext \
1972     conftest$ac_exeext conftest.$ac_ext
1973 fi
1974 eval ac_res=\$$3
1975                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1977   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978
1979 } # ac_fn_c_check_func
1980 cat >config.log <<_ACEOF
1981 This file contains any messages produced by compilers while
1982 running configure, to aid debugging if configure makes a mistake.
1983
1984 It was created by Moonshot-ui $as_me 1.0.3, which was
1985 generated by GNU Autoconf 2.69.  Invocation command line was
1986
1987   $ $0 $@
1988
1989 _ACEOF
1990 exec 5>>config.log
1991 {
1992 cat <<_ASUNAME
1993 ## --------- ##
1994 ## Platform. ##
1995 ## --------- ##
1996
1997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2002
2003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2004 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2005
2006 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2007 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2009 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2010 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2011 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2012 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2013
2014 _ASUNAME
2015
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019   IFS=$as_save_IFS
2020   test -z "$as_dir" && as_dir=.
2021     $as_echo "PATH: $as_dir"
2022   done
2023 IFS=$as_save_IFS
2024
2025 } >&5
2026
2027 cat >&5 <<_ACEOF
2028
2029
2030 ## ----------- ##
2031 ## Core tests. ##
2032 ## ----------- ##
2033
2034 _ACEOF
2035
2036
2037 # Keep a trace of the command line.
2038 # Strip out --no-create and --no-recursion so they do not pile up.
2039 # Strip out --silent because we don't want to record it for future runs.
2040 # Also quote any args containing shell meta-characters.
2041 # Make two passes to allow for proper duplicate-argument suppression.
2042 ac_configure_args=
2043 ac_configure_args0=
2044 ac_configure_args1=
2045 ac_must_keep_next=false
2046 for ac_pass in 1 2
2047 do
2048   for ac_arg
2049   do
2050     case $ac_arg in
2051     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2052     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2053     | -silent | --silent | --silen | --sile | --sil)
2054       continue ;;
2055     *\'*)
2056       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2057     esac
2058     case $ac_pass in
2059     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2060     2)
2061       as_fn_append ac_configure_args1 " '$ac_arg'"
2062       if test $ac_must_keep_next = true; then
2063         ac_must_keep_next=false # Got value, back to normal.
2064       else
2065         case $ac_arg in
2066           *=* | --config-cache | -C | -disable-* | --disable-* \
2067           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2068           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2069           | -with-* | --with-* | -without-* | --without-* | --x)
2070             case "$ac_configure_args0 " in
2071               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2072             esac
2073             ;;
2074           -* ) ac_must_keep_next=true ;;
2075         esac
2076       fi
2077       as_fn_append ac_configure_args " '$ac_arg'"
2078       ;;
2079     esac
2080   done
2081 done
2082 { ac_configure_args0=; unset ac_configure_args0;}
2083 { ac_configure_args1=; unset ac_configure_args1;}
2084
2085 # When interrupted or exit'd, cleanup temporary files, and complete
2086 # config.log.  We remove comments because anyway the quotes in there
2087 # would cause problems or look ugly.
2088 # WARNING: Use '\'' to represent an apostrophe within the trap.
2089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2090 trap 'exit_status=$?
2091   # Save into config.log some information that might help in debugging.
2092   {
2093     echo
2094
2095     $as_echo "## ---------------- ##
2096 ## Cache variables. ##
2097 ## ---------------- ##"
2098     echo
2099     # The following way of writing the cache mishandles newlines in values,
2100 (
2101   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2102     eval ac_val=\$$ac_var
2103     case $ac_val in #(
2104     *${as_nl}*)
2105       case $ac_var in #(
2106       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2108       esac
2109       case $ac_var in #(
2110       _ | IFS | as_nl) ;; #(
2111       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112       *) { eval $ac_var=; unset $ac_var;} ;;
2113       esac ;;
2114     esac
2115   done
2116   (set) 2>&1 |
2117     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2118     *${as_nl}ac_space=\ *)
2119       sed -n \
2120         "s/'\''/'\''\\\\'\'''\''/g;
2121           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2122       ;; #(
2123     *)
2124       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2125       ;;
2126     esac |
2127     sort
2128 )
2129     echo
2130
2131     $as_echo "## ----------------- ##
2132 ## Output variables. ##
2133 ## ----------------- ##"
2134     echo
2135     for ac_var in $ac_subst_vars
2136     do
2137       eval ac_val=\$$ac_var
2138       case $ac_val in
2139       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140       esac
2141       $as_echo "$ac_var='\''$ac_val'\''"
2142     done | sort
2143     echo
2144
2145     if test -n "$ac_subst_files"; then
2146       $as_echo "## ------------------- ##
2147 ## File substitutions. ##
2148 ## ------------------- ##"
2149       echo
2150       for ac_var in $ac_subst_files
2151       do
2152         eval ac_val=\$$ac_var
2153         case $ac_val in
2154         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155         esac
2156         $as_echo "$ac_var='\''$ac_val'\''"
2157       done | sort
2158       echo
2159     fi
2160
2161     if test -s confdefs.h; then
2162       $as_echo "## ----------- ##
2163 ## confdefs.h. ##
2164 ## ----------- ##"
2165       echo
2166       cat confdefs.h
2167       echo
2168     fi
2169     test "$ac_signal" != 0 &&
2170       $as_echo "$as_me: caught signal $ac_signal"
2171     $as_echo "$as_me: exit $exit_status"
2172   } >&5
2173   rm -f core *.core core.conftest.* &&
2174     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2175     exit $exit_status
2176 ' 0
2177 for ac_signal in 1 2 13 15; do
2178   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2179 done
2180 ac_signal=0
2181
2182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2183 rm -f -r conftest* confdefs.h
2184
2185 $as_echo "/* confdefs.h */" > confdefs.h
2186
2187 # Predefined preprocessor variables.
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_NAME "$PACKAGE_NAME"
2191 _ACEOF
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_STRING "$PACKAGE_STRING"
2203 _ACEOF
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2207 _ACEOF
2208
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_URL "$PACKAGE_URL"
2211 _ACEOF
2212
2213
2214 # Let the site file select an alternate cache file if it wants to.
2215 # Prefer an explicitly selected file to automatically selected ones.
2216 ac_site_file1=NONE
2217 ac_site_file2=NONE
2218 if test -n "$CONFIG_SITE"; then
2219   # We do not want a PATH search for config.site.
2220   case $CONFIG_SITE in #((
2221     -*)  ac_site_file1=./$CONFIG_SITE;;
2222     */*) ac_site_file1=$CONFIG_SITE;;
2223     *)   ac_site_file1=./$CONFIG_SITE;;
2224   esac
2225 elif test "x$prefix" != xNONE; then
2226   ac_site_file1=$prefix/share/config.site
2227   ac_site_file2=$prefix/etc/config.site
2228 else
2229   ac_site_file1=$ac_default_prefix/share/config.site
2230   ac_site_file2=$ac_default_prefix/etc/config.site
2231 fi
2232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2233 do
2234   test "x$ac_site_file" = xNONE && continue
2235   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2236     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2238     sed 's/^/| /' "$ac_site_file" >&5
2239     . "$ac_site_file" \
2240       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 as_fn_error $? "failed to load site script $ac_site_file
2243 See \`config.log' for more details" "$LINENO" 5; }
2244   fi
2245 done
2246
2247 if test -r "$cache_file"; then
2248   # Some versions of bash will fail to source /dev/null (special files
2249   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2250   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2251     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2252 $as_echo "$as_me: loading cache $cache_file" >&6;}
2253     case $cache_file in
2254       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2255       *)                      . "./$cache_file";;
2256     esac
2257   fi
2258 else
2259   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2260 $as_echo "$as_me: creating cache $cache_file" >&6;}
2261   >$cache_file
2262 fi
2263
2264 as_fn_append ac_func_list " geteuid"
2265 as_fn_append ac_func_list " getpwuid"
2266 gt_needs="$gt_needs "
2267 # Check that the precious variables saved in the cache have kept the same
2268 # value.
2269 ac_cache_corrupted=false
2270 for ac_var in $ac_precious_vars; do
2271   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2272   eval ac_new_set=\$ac_env_${ac_var}_set
2273   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2274   eval ac_new_val=\$ac_env_${ac_var}_value
2275   case $ac_old_set,$ac_new_set in
2276     set,)
2277       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2278 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2279       ac_cache_corrupted=: ;;
2280     ,set)
2281       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2282 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2283       ac_cache_corrupted=: ;;
2284     ,);;
2285     *)
2286       if test "x$ac_old_val" != "x$ac_new_val"; then
2287         # differences in whitespace do not lead to failure.
2288         ac_old_val_w=`echo x $ac_old_val`
2289         ac_new_val_w=`echo x $ac_new_val`
2290         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2291           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2292 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2293           ac_cache_corrupted=:
2294         else
2295           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2296 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2297           eval $ac_var=\$ac_old_val
2298         fi
2299         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2300 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2301         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2302 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2303       fi;;
2304   esac
2305   # Pass precious variables to config.status.
2306   if test "$ac_new_set" = set; then
2307     case $ac_new_val in
2308     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2309     *) ac_arg=$ac_var=$ac_new_val ;;
2310     esac
2311     case " $ac_configure_args " in
2312       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2313       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2314     esac
2315   fi
2316 done
2317 if $ac_cache_corrupted; then
2318   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2320   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2321 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2322   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2323 fi
2324 ## -------------------- ##
2325 ## Main body of script. ##
2326 ## -------------------- ##
2327
2328 ac_ext=c
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333
2334
2335
2336 # Remove this when we can depend on autoconf >= 2.64
2337 PACKAGE_URL=http://www.project-moonshot.org/
2338
2339
2340 $as_echo "#define PACKAGE_URL \"http://www.project-moonshot.org\"" >>confdefs.h
2341
2342 ac_config_headers="$ac_config_headers config.h"
2343
2344
2345
2346 ac_aux_dir=
2347 for ac_dir in build-aux "$srcdir"/build-aux; do
2348   if test -f "$ac_dir/install-sh"; then
2349     ac_aux_dir=$ac_dir
2350     ac_install_sh="$ac_aux_dir/install-sh -c"
2351     break
2352   elif test -f "$ac_dir/install.sh"; then
2353     ac_aux_dir=$ac_dir
2354     ac_install_sh="$ac_aux_dir/install.sh -c"
2355     break
2356   elif test -f "$ac_dir/shtool"; then
2357     ac_aux_dir=$ac_dir
2358     ac_install_sh="$ac_aux_dir/shtool install -c"
2359     break
2360   fi
2361 done
2362 if test -z "$ac_aux_dir"; then
2363   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2364 fi
2365
2366 # These three variables are undocumented and unsupported,
2367 # and are intended to be withdrawn in a future Autoconf release.
2368 # They can cause serious problems if a builder's source tree is in a directory
2369 # whose full name contains unusual characters.
2370 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2371 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2372 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2373
2374
2375
2376 am__api_version='1.15'
2377
2378 # Find a good install program.  We prefer a C program (faster),
2379 # so one script is as good as another.  But avoid the broken or
2380 # incompatible versions:
2381 # SysV /etc/install, /usr/sbin/install
2382 # SunOS /usr/etc/install
2383 # IRIX /sbin/install
2384 # AIX /bin/install
2385 # AmigaOS /C/install, which installs bootblocks on floppy discs
2386 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2387 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2388 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2389 # OS/2's system install, which has a completely different semantic
2390 # ./install, which can be erroneously created by make from ./install.sh.
2391 # Reject install programs that cannot install multiple files.
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2393 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2394 if test -z "$INSTALL"; then
2395 if ${ac_cv_path_install+:} false; then :
2396   $as_echo_n "(cached) " >&6
2397 else
2398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401   IFS=$as_save_IFS
2402   test -z "$as_dir" && as_dir=.
2403     # Account for people who put trailing slashes in PATH elements.
2404 case $as_dir/ in #((
2405   ./ | .// | /[cC]/* | \
2406   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2407   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2408   /usr/ucb/* ) ;;
2409   *)
2410     # OSF1 and SCO ODT 3.0 have their own names for install.
2411     # Don't use installbsd from OSF since it installs stuff as root
2412     # by default.
2413     for ac_prog in ginstall scoinst install; do
2414       for ac_exec_ext in '' $ac_executable_extensions; do
2415         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2416           if test $ac_prog = install &&
2417             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2418             # AIX install.  It has an incompatible calling convention.
2419             :
2420           elif test $ac_prog = install &&
2421             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2422             # program-specific install script used by HP pwplus--don't use.
2423             :
2424           else
2425             rm -rf conftest.one conftest.two conftest.dir
2426             echo one > conftest.one
2427             echo two > conftest.two
2428             mkdir conftest.dir
2429             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2430               test -s conftest.one && test -s conftest.two &&
2431               test -s conftest.dir/conftest.one &&
2432               test -s conftest.dir/conftest.two
2433             then
2434               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2435               break 3
2436             fi
2437           fi
2438         fi
2439       done
2440     done
2441     ;;
2442 esac
2443
2444   done
2445 IFS=$as_save_IFS
2446
2447 rm -rf conftest.one conftest.two conftest.dir
2448
2449 fi
2450   if test "${ac_cv_path_install+set}" = set; then
2451     INSTALL=$ac_cv_path_install
2452   else
2453     # As a last resort, use the slow shell script.  Don't cache a
2454     # value for INSTALL within a source directory, because that will
2455     # break other packages using the cache if that directory is
2456     # removed, or if the value is a relative name.
2457     INSTALL=$ac_install_sh
2458   fi
2459 fi
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2461 $as_echo "$INSTALL" >&6; }
2462
2463 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2464 # It thinks the first close brace ends the variable substitution.
2465 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2466
2467 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2468
2469 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2470
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2472 $as_echo_n "checking whether build environment is sane... " >&6; }
2473 # Reject unsafe characters in $srcdir or the absolute working directory
2474 # name.  Accept space and tab only in the latter.
2475 am_lf='
2476 '
2477 case `pwd` in
2478   *[\\\"\#\$\&\'\`$am_lf]*)
2479     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2480 esac
2481 case $srcdir in
2482   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2483     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2484 esac
2485
2486 # Do 'set' in a subshell so we don't clobber the current shell's
2487 # arguments.  Must try -L first in case configure is actually a
2488 # symlink; some systems play weird games with the mod time of symlinks
2489 # (eg FreeBSD returns the mod time of the symlink's containing
2490 # directory).
2491 if (
2492    am_has_slept=no
2493    for am_try in 1 2; do
2494      echo "timestamp, slept: $am_has_slept" > conftest.file
2495      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2496      if test "$*" = "X"; then
2497         # -L didn't work.
2498         set X `ls -t "$srcdir/configure" conftest.file`
2499      fi
2500      if test "$*" != "X $srcdir/configure conftest.file" \
2501         && test "$*" != "X conftest.file $srcdir/configure"; then
2502
2503         # If neither matched, then we have a broken ls.  This can happen
2504         # if, for instance, CONFIG_SHELL is bash and it inherits a
2505         # broken ls alias from the environment.  This has actually
2506         # happened.  Such a system could not be considered "sane".
2507         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2508   alias in your environment" "$LINENO" 5
2509      fi
2510      if test "$2" = conftest.file || test $am_try -eq 2; then
2511        break
2512      fi
2513      # Just in case.
2514      sleep 1
2515      am_has_slept=yes
2516    done
2517    test "$2" = conftest.file
2518    )
2519 then
2520    # Ok.
2521    :
2522 else
2523    as_fn_error $? "newly created file is older than distributed files!
2524 Check your system clock" "$LINENO" 5
2525 fi
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2527 $as_echo "yes" >&6; }
2528 # If we didn't sleep, we still need to ensure time stamps of config.status and
2529 # generated files are strictly newer.
2530 am_sleep_pid=
2531 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2532   ( sleep 1 ) &
2533   am_sleep_pid=$!
2534 fi
2535
2536 rm -f conftest.file
2537
2538 test "$program_prefix" != NONE &&
2539   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2540 # Use a double $ so make ignores it.
2541 test "$program_suffix" != NONE &&
2542   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2543 # Double any \ or $.
2544 # By default was `s,x,x', remove it if useless.
2545 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2546 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2547
2548 # Expand $ac_aux_dir to an absolute path.
2549 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2550
2551 if test x"${MISSING+set}" != xset; then
2552   case $am_aux_dir in
2553   *\ * | *\     *)
2554     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2555   *)
2556     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2557   esac
2558 fi
2559 # Use eval to expand $SHELL
2560 if eval "$MISSING --is-lightweight"; then
2561   am_missing_run="$MISSING "
2562 else
2563   am_missing_run=
2564   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2565 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2566 fi
2567
2568 if test x"${install_sh+set}" != xset; then
2569   case $am_aux_dir in
2570   *\ * | *\     *)
2571     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2572   *)
2573     install_sh="\${SHELL} $am_aux_dir/install-sh"
2574   esac
2575 fi
2576
2577 # Installed binaries are usually stripped using 'strip' when the user
2578 # run "make install-strip".  However 'strip' might not be the right
2579 # tool to use in cross-compilation environments, therefore Automake
2580 # will honor the 'STRIP' environment variable to overrule this program.
2581 if test "$cross_compiling" != no; then
2582   if test -n "$ac_tool_prefix"; then
2583   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}strip; ac_word=$2
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586 $as_echo_n "checking for $ac_word... " >&6; }
2587 if ${ac_cv_prog_STRIP+:} false; then :
2588   $as_echo_n "(cached) " >&6
2589 else
2590   if test -n "$STRIP"; then
2591   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596   IFS=$as_save_IFS
2597   test -z "$as_dir" && as_dir=.
2598     for ac_exec_ext in '' $ac_executable_extensions; do
2599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2600     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602     break 2
2603   fi
2604 done
2605   done
2606 IFS=$as_save_IFS
2607
2608 fi
2609 fi
2610 STRIP=$ac_cv_prog_STRIP
2611 if test -n "$STRIP"; then
2612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2613 $as_echo "$STRIP" >&6; }
2614 else
2615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616 $as_echo "no" >&6; }
2617 fi
2618
2619
2620 fi
2621 if test -z "$ac_cv_prog_STRIP"; then
2622   ac_ct_STRIP=$STRIP
2623   # Extract the first word of "strip", so it can be a program name with args.
2624 set dummy strip; ac_word=$2
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2628   $as_echo_n "(cached) " >&6
2629 else
2630   if test -n "$ac_ct_STRIP"; then
2631   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636   IFS=$as_save_IFS
2637   test -z "$as_dir" && as_dir=.
2638     for ac_exec_ext in '' $ac_executable_extensions; do
2639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2640     ac_cv_prog_ac_ct_STRIP="strip"
2641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642     break 2
2643   fi
2644 done
2645   done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2651 if test -n "$ac_ct_STRIP"; then
2652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2653 $as_echo "$ac_ct_STRIP" >&6; }
2654 else
2655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2657 fi
2658
2659   if test "x$ac_ct_STRIP" = x; then
2660     STRIP=":"
2661   else
2662     case $cross_compiling:$ac_tool_warned in
2663 yes:)
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2666 ac_tool_warned=yes ;;
2667 esac
2668     STRIP=$ac_ct_STRIP
2669   fi
2670 else
2671   STRIP="$ac_cv_prog_STRIP"
2672 fi
2673
2674 fi
2675 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2676
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2678 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2679 if test -z "$MKDIR_P"; then
2680   if ${ac_cv_path_mkdir+:} false; then :
2681   $as_echo_n "(cached) " >&6
2682 else
2683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2685 do
2686   IFS=$as_save_IFS
2687   test -z "$as_dir" && as_dir=.
2688     for ac_prog in mkdir gmkdir; do
2689          for ac_exec_ext in '' $ac_executable_extensions; do
2690            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2691            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2692              'mkdir (GNU coreutils) '* | \
2693              'mkdir (coreutils) '* | \
2694              'mkdir (fileutils) '4.1*)
2695                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2696                break 3;;
2697            esac
2698          done
2699        done
2700   done
2701 IFS=$as_save_IFS
2702
2703 fi
2704
2705   test -d ./--version && rmdir ./--version
2706   if test "${ac_cv_path_mkdir+set}" = set; then
2707     MKDIR_P="$ac_cv_path_mkdir -p"
2708   else
2709     # As a last resort, use the slow shell script.  Don't cache a
2710     # value for MKDIR_P within a source directory, because that will
2711     # break other packages using the cache if that directory is
2712     # removed, or if the value is a relative name.
2713     MKDIR_P="$ac_install_sh -d"
2714   fi
2715 fi
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2717 $as_echo "$MKDIR_P" >&6; }
2718
2719 for ac_prog in gawk mawk nawk awk
2720 do
2721   # Extract the first word of "$ac_prog", so it can be a program name with args.
2722 set dummy $ac_prog; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if ${ac_cv_prog_AWK+:} false; then :
2726   $as_echo_n "(cached) " >&6
2727 else
2728   if test -n "$AWK"; then
2729   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734   IFS=$as_save_IFS
2735   test -z "$as_dir" && as_dir=.
2736     for ac_exec_ext in '' $ac_executable_extensions; do
2737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738     ac_cv_prog_AWK="$ac_prog"
2739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740     break 2
2741   fi
2742 done
2743   done
2744 IFS=$as_save_IFS
2745
2746 fi
2747 fi
2748 AWK=$ac_cv_prog_AWK
2749 if test -n "$AWK"; then
2750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2751 $as_echo "$AWK" >&6; }
2752 else
2753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2755 fi
2756
2757
2758   test -n "$AWK" && break
2759 done
2760
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2762 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2763 set x ${MAKE-make}
2764 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2765 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2766   $as_echo_n "(cached) " >&6
2767 else
2768   cat >conftest.make <<\_ACEOF
2769 SHELL = /bin/sh
2770 all:
2771         @echo '@@@%%%=$(MAKE)=@@@%%%'
2772 _ACEOF
2773 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2774 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2775   *@@@%%%=?*=@@@%%%*)
2776     eval ac_cv_prog_make_${ac_make}_set=yes;;
2777   *)
2778     eval ac_cv_prog_make_${ac_make}_set=no;;
2779 esac
2780 rm -f conftest.make
2781 fi
2782 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2784 $as_echo "yes" >&6; }
2785   SET_MAKE=
2786 else
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2789   SET_MAKE="MAKE=${MAKE-make}"
2790 fi
2791
2792 rm -rf .tst 2>/dev/null
2793 mkdir .tst 2>/dev/null
2794 if test -d .tst; then
2795   am__leading_dot=.
2796 else
2797   am__leading_dot=_
2798 fi
2799 rmdir .tst 2>/dev/null
2800
2801 # Check whether --enable-silent-rules was given.
2802 if test "${enable_silent_rules+set}" = set; then :
2803   enableval=$enable_silent_rules;
2804 fi
2805
2806 case $enable_silent_rules in # (((
2807   yes) AM_DEFAULT_VERBOSITY=0;;
2808    no) AM_DEFAULT_VERBOSITY=1;;
2809     *) AM_DEFAULT_VERBOSITY=1;;
2810 esac
2811 am_make=${MAKE-make}
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2813 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2814 if ${am_cv_make_support_nested_variables+:} false; then :
2815   $as_echo_n "(cached) " >&6
2816 else
2817   if $as_echo 'TRUE=$(BAR$(V))
2818 BAR0=false
2819 BAR1=true
2820 V=1
2821 am__doit:
2822         @$(TRUE)
2823 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2824   am_cv_make_support_nested_variables=yes
2825 else
2826   am_cv_make_support_nested_variables=no
2827 fi
2828 fi
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2830 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2831 if test $am_cv_make_support_nested_variables = yes; then
2832     AM_V='$(V)'
2833   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2834 else
2835   AM_V=$AM_DEFAULT_VERBOSITY
2836   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2837 fi
2838 AM_BACKSLASH='\'
2839
2840 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2841   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2842   # is not polluted with repeated "-I."
2843   am__isrc=' -I$(srcdir)'
2844   # test to see if srcdir already configured
2845   if test -f $srcdir/config.status; then
2846     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2847   fi
2848 fi
2849
2850 # test whether we have cygpath
2851 if test -z "$CYGPATH_W"; then
2852   if (cygpath --version) >/dev/null 2>/dev/null; then
2853     CYGPATH_W='cygpath -w'
2854   else
2855     CYGPATH_W=echo
2856   fi
2857 fi
2858
2859
2860 # Define the identity of the package.
2861  PACKAGE='moonshot-ui'
2862  VERSION='1.0.3'
2863
2864
2865 cat >>confdefs.h <<_ACEOF
2866 #define PACKAGE "$PACKAGE"
2867 _ACEOF
2868
2869
2870 cat >>confdefs.h <<_ACEOF
2871 #define VERSION "$VERSION"
2872 _ACEOF
2873
2874 # Some tools Automake needs.
2875
2876 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2877
2878
2879 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2880
2881
2882 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2883
2884
2885 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2886
2887
2888 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2889
2890 # For better backward compatibility.  To be removed once Automake 1.9.x
2891 # dies out for good.  For more background, see:
2892 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2893 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2894 mkdir_p='$(MKDIR_P)'
2895
2896 # We need awk for the "check" target (and possibly the TAP driver).  The
2897 # system "awk" is bad on some platforms.
2898 # Always define AMTAR for backward compatibility.  Yes, it's still used
2899 # in the wild :-(  We should find a proper way to deprecate it ...
2900 AMTAR='$${TAR-tar}'
2901
2902
2903 # We'll loop over all known methods to create a tar archive until one works.
2904 _am_tools='gnutar  pax cpio none'
2905
2906
2907
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2909 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2910
2911   # Go ahead even if we have the value already cached.  We do so because we
2912   # need to set the values for the 'am__tar' and 'am__untar' variables.
2913   _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2914
2915   for _am_tool in $_am_tools; do
2916     case $_am_tool in
2917     gnutar)
2918       for _am_tar in tar gnutar gtar; do
2919         { echo "$as_me:$LINENO: $_am_tar --version" >&5
2920    ($_am_tar --version) >&5 2>&5
2921    ac_status=$?
2922    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923    (exit $ac_status); } && break
2924       done
2925       am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2926       am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2927       am__untar="$_am_tar -xf -"
2928       ;;
2929     plaintar)
2930       # Must skip GNU tar: if it does not support --format= it doesn't create
2931       # ustar tarball either.
2932       (tar --version) >/dev/null 2>&1 && continue
2933       am__tar='tar chf - "$$tardir"'
2934       am__tar_='tar chf - "$tardir"'
2935       am__untar='tar xf -'
2936       ;;
2937     pax)
2938       am__tar='pax -L -x pax -w "$$tardir"'
2939       am__tar_='pax -L -x pax -w "$tardir"'
2940       am__untar='pax -r'
2941       ;;
2942     cpio)
2943       am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2944       am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2945       am__untar='cpio -i -H pax -d'
2946       ;;
2947     none)
2948       am__tar=false
2949       am__tar_=false
2950       am__untar=false
2951       ;;
2952     esac
2953
2954     # If the value was cached, stop now.  We just wanted to have am__tar
2955     # and am__untar set.
2956     test -n "${am_cv_prog_tar_pax}" && break
2957
2958     # tar/untar a dummy directory, and stop if the command works.
2959     rm -rf conftest.dir
2960     mkdir conftest.dir
2961     echo GrepMe > conftest.dir/file
2962     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2963    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2964    ac_status=$?
2965    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966    (exit $ac_status); }
2967     rm -rf conftest.dir
2968     if test -s conftest.tar; then
2969       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2970    ($am__untar <conftest.tar) >&5 2>&5
2971    ac_status=$?
2972    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973    (exit $ac_status); }
2974       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2975    (cat conftest.dir/file) >&5 2>&5
2976    ac_status=$?
2977    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978    (exit $ac_status); }
2979       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2980     fi
2981   done
2982   rm -rf conftest.dir
2983
2984   if ${am_cv_prog_tar_pax+:} false; then :
2985   $as_echo_n "(cached) " >&6
2986 else
2987   am_cv_prog_tar_pax=$_am_tool
2988 fi
2989
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2991 $as_echo "$am_cv_prog_tar_pax" >&6; }
2992
2993
2994
2995
2996
2997
2998 # POSIX will say in a future version that running "rm -f" with no argument
2999 # is OK; and we want to be able to make that assumption in our Makefile
3000 # recipes.  So use an aggressive probe to check that the usage we want is
3001 # actually supported "in the wild" to an acceptable degree.
3002 # See automake bug#10828.
3003 # To make any issue more visible, cause the running configure to be aborted
3004 # by default if the 'rm' program in use doesn't match our expectations; the
3005 # user can still override this though.
3006 if rm -f && rm -fr && rm -rf; then : OK; else
3007   cat >&2 <<'END'
3008 Oops!
3009
3010 Your 'rm' program seems unable to run without file operands specified
3011 on the command line, even when the '-f' option is present.  This is contrary
3012 to the behaviour of most rm programs out there, and not conforming with
3013 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3014
3015 Please tell bug-automake@gnu.org about your system, including the value
3016 of your $PATH and any error possibly output before this message.  This
3017 can help us improve future automake versions.
3018
3019 END
3020   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3021     echo 'Configuration will proceed anyway, since you have set the' >&2
3022     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3023     echo >&2
3024   else
3025     cat >&2 <<'END'
3026 Aborting the configuration process, to ensure you take notice of the issue.
3027
3028 You can download and install GNU coreutils to get an 'rm' implementation
3029 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3030
3031 If you want to complete the configuration process using your problematic
3032 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3033 to "yes", and re-run configure.
3034
3035 END
3036     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3037   fi
3038 fi
3039
3040 # Check whether --enable-silent-rules was given.
3041 if test "${enable_silent_rules+set}" = set; then :
3042   enableval=$enable_silent_rules;
3043 fi
3044
3045 case $enable_silent_rules in # (((
3046   yes) AM_DEFAULT_VERBOSITY=0;;
3047    no) AM_DEFAULT_VERBOSITY=1;;
3048     *) AM_DEFAULT_VERBOSITY=0;;
3049 esac
3050 am_make=${MAKE-make}
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3052 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3053 if ${am_cv_make_support_nested_variables+:} false; then :
3054   $as_echo_n "(cached) " >&6
3055 else
3056   if $as_echo 'TRUE=$(BAR$(V))
3057 BAR0=false
3058 BAR1=true
3059 V=1
3060 am__doit:
3061         @$(TRUE)
3062 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3063   am_cv_make_support_nested_variables=yes
3064 else
3065   am_cv_make_support_nested_variables=no
3066 fi
3067 fi
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3069 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3070 if test $am_cv_make_support_nested_variables = yes; then
3071     AM_V='$(V)'
3072   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3073 else
3074   AM_V=$AM_DEFAULT_VERBOSITY
3075   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3076 fi
3077 AM_BACKSLASH='\'
3078
3079
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3081 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3082     # Check whether --enable-maintainer-mode was given.
3083 if test "${enable_maintainer_mode+set}" = set; then :
3084   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3085 else
3086   USE_MAINTAINER_MODE=yes
3087 fi
3088
3089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3090 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3091    if test $USE_MAINTAINER_MODE = yes; then
3092   MAINTAINER_MODE_TRUE=
3093   MAINTAINER_MODE_FALSE='#'
3094 else
3095   MAINTAINER_MODE_TRUE='#'
3096   MAINTAINER_MODE_FALSE=
3097 fi
3098
3099   MAINT=$MAINTAINER_MODE_TRUE
3100
3101
3102
3103
3104 case `pwd` in
3105   *\ * | *\     *)
3106     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3107 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3108 esac
3109
3110
3111
3112 macro_version='2.4.6'
3113 macro_revision='2.4.6'
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127 ltmain=$ac_aux_dir/ltmain.sh
3128
3129 # Make sure we can run config.sub.
3130 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3131   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3132
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3134 $as_echo_n "checking build system type... " >&6; }
3135 if ${ac_cv_build+:} false; then :
3136   $as_echo_n "(cached) " >&6
3137 else
3138   ac_build_alias=$build_alias
3139 test "x$ac_build_alias" = x &&
3140   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3141 test "x$ac_build_alias" = x &&
3142   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3143 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3144   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3145
3146 fi
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3148 $as_echo "$ac_cv_build" >&6; }
3149 case $ac_cv_build in
3150 *-*-*) ;;
3151 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3152 esac
3153 build=$ac_cv_build
3154 ac_save_IFS=$IFS; IFS='-'
3155 set x $ac_cv_build
3156 shift
3157 build_cpu=$1
3158 build_vendor=$2
3159 shift; shift
3160 # Remember, the first character of IFS is used to create $*,
3161 # except with old shells:
3162 build_os=$*
3163 IFS=$ac_save_IFS
3164 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3165
3166
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3168 $as_echo_n "checking host system type... " >&6; }
3169 if ${ac_cv_host+:} false; then :
3170   $as_echo_n "(cached) " >&6
3171 else
3172   if test "x$host_alias" = x; then
3173   ac_cv_host=$ac_cv_build
3174 else
3175   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3176     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3177 fi
3178
3179 fi
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3181 $as_echo "$ac_cv_host" >&6; }
3182 case $ac_cv_host in
3183 *-*-*) ;;
3184 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3185 esac
3186 host=$ac_cv_host
3187 ac_save_IFS=$IFS; IFS='-'
3188 set x $ac_cv_host
3189 shift
3190 host_cpu=$1
3191 host_vendor=$2
3192 shift; shift
3193 # Remember, the first character of IFS is used to create $*,
3194 # except with old shells:
3195 host_os=$*
3196 IFS=$ac_save_IFS
3197 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3198
3199
3200 # Backslashify metacharacters that are still active within
3201 # double-quoted strings.
3202 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3203
3204 # Same as above, but do not quote variable references.
3205 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3206
3207 # Sed substitution to delay expansion of an escaped shell variable in a
3208 # double_quote_subst'ed string.
3209 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3210
3211 # Sed substitution to delay expansion of an escaped single quote.
3212 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3213
3214 # Sed substitution to avoid accidental globbing in evaled expressions
3215 no_glob_subst='s/\*/\\\*/g'
3216
3217 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3218 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3219 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3220
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3222 $as_echo_n "checking how to print strings... " >&6; }
3223 # Test print first, because it will be a builtin if present.
3224 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3225    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3226   ECHO='print -r --'
3227 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3228   ECHO='printf %s\n'
3229 else
3230   # Use this function as a fallback that always works.
3231   func_fallback_echo ()
3232   {
3233     eval 'cat <<_LTECHO_EOF
3234 $1
3235 _LTECHO_EOF'
3236   }
3237   ECHO='func_fallback_echo'
3238 fi
3239
3240 # func_echo_all arg...
3241 # Invoke $ECHO with all args, space-separated.
3242 func_echo_all ()
3243 {
3244     $ECHO ""
3245 }
3246
3247 case $ECHO in
3248   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3249 $as_echo "printf" >&6; } ;;
3250   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3251 $as_echo "print -r" >&6; } ;;
3252   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3253 $as_echo "cat" >&6; } ;;
3254 esac
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269 DEPDIR="${am__leading_dot}deps"
3270
3271 ac_config_commands="$ac_config_commands depfiles"
3272
3273
3274 am_make=${MAKE-make}
3275 cat > confinc << 'END'
3276 am__doit:
3277         @echo this is the am__doit target
3278 .PHONY: am__doit
3279 END
3280 # If we don't find an include directive, just comment out the code.
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3282 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3283 am__include="#"
3284 am__quote=
3285 _am_result=none
3286 # First try GNU make style include.
3287 echo "include confinc" > confmf
3288 # Ignore all kinds of additional output from 'make'.
3289 case `$am_make -s -f confmf 2> /dev/null` in #(
3290 *the\ am__doit\ target*)
3291   am__include=include
3292   am__quote=
3293   _am_result=GNU
3294   ;;
3295 esac
3296 # Now try BSD make style include.
3297 if test "$am__include" = "#"; then
3298    echo '.include "confinc"' > confmf
3299    case `$am_make -s -f confmf 2> /dev/null` in #(
3300    *the\ am__doit\ target*)
3301      am__include=.include
3302      am__quote="\""
3303      _am_result=BSD
3304      ;;
3305    esac
3306 fi
3307
3308
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3310 $as_echo "$_am_result" >&6; }
3311 rm -f confinc confmf
3312
3313 # Check whether --enable-dependency-tracking was given.
3314 if test "${enable_dependency_tracking+set}" = set; then :
3315   enableval=$enable_dependency_tracking;
3316 fi
3317
3318 if test "x$enable_dependency_tracking" != xno; then
3319   am_depcomp="$ac_aux_dir/depcomp"
3320   AMDEPBACKSLASH='\'
3321   am__nodep='_no'
3322 fi
3323  if test "x$enable_dependency_tracking" != xno; then
3324   AMDEP_TRUE=
3325   AMDEP_FALSE='#'
3326 else
3327   AMDEP_TRUE='#'
3328   AMDEP_FALSE=
3329 fi
3330
3331
3332 ac_ext=c
3333 ac_cpp='$CPP $CPPFLAGS'
3334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3337 if test -n "$ac_tool_prefix"; then
3338   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3339 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_CC+:} false; then :
3343   $as_echo_n "(cached) " >&6
3344 else
3345   if test -n "$CC"; then
3346   ac_cv_prog_CC="$CC" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351   IFS=$as_save_IFS
3352   test -z "$as_dir" && as_dir=.
3353     for ac_exec_ext in '' $ac_executable_extensions; do
3354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357     break 2
3358   fi
3359 done
3360   done
3361 IFS=$as_save_IFS
3362
3363 fi
3364 fi
3365 CC=$ac_cv_prog_CC
3366 if test -n "$CC"; then
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3368 $as_echo "$CC" >&6; }
3369 else
3370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372 fi
3373
3374
3375 fi
3376 if test -z "$ac_cv_prog_CC"; then
3377   ac_ct_CC=$CC
3378   # Extract the first word of "gcc", so it can be a program name with args.
3379 set dummy gcc; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3383   $as_echo_n "(cached) " >&6
3384 else
3385   if test -n "$ac_ct_CC"; then
3386   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391   IFS=$as_save_IFS
3392   test -z "$as_dir" && as_dir=.
3393     for ac_exec_ext in '' $ac_executable_extensions; do
3394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3395     ac_cv_prog_ac_ct_CC="gcc"
3396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397     break 2
3398   fi
3399 done
3400   done
3401 IFS=$as_save_IFS
3402
3403 fi
3404 fi
3405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3406 if test -n "$ac_ct_CC"; then
3407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3408 $as_echo "$ac_ct_CC" >&6; }
3409 else
3410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 fi
3413
3414   if test "x$ac_ct_CC" = x; then
3415     CC=""
3416   else
3417     case $cross_compiling:$ac_tool_warned in
3418 yes:)
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3421 ac_tool_warned=yes ;;
3422 esac
3423     CC=$ac_ct_CC
3424   fi
3425 else
3426   CC="$ac_cv_prog_CC"
3427 fi
3428
3429 if test -z "$CC"; then
3430           if test -n "$ac_tool_prefix"; then
3431     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3432 set dummy ${ac_tool_prefix}cc; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_CC+:} false; then :
3436   $as_echo_n "(cached) " >&6
3437 else
3438   if test -n "$CC"; then
3439   ac_cv_prog_CC="$CC" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444   IFS=$as_save_IFS
3445   test -z "$as_dir" && as_dir=.
3446     for ac_exec_ext in '' $ac_executable_extensions; do
3447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448     ac_cv_prog_CC="${ac_tool_prefix}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 fi
3457 fi
3458 CC=$ac_cv_prog_CC
3459 if test -n "$CC"; then
3460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3461 $as_echo "$CC" >&6; }
3462 else
3463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 fi
3466
3467
3468   fi
3469 fi
3470 if test -z "$CC"; then
3471   # Extract the first word of "cc", so it can be a program name with args.
3472 set dummy cc; ac_word=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if ${ac_cv_prog_CC+:} false; then :
3476   $as_echo_n "(cached) " >&6
3477 else
3478   if test -n "$CC"; then
3479   ac_cv_prog_CC="$CC" # Let the user override the test.
3480 else
3481   ac_prog_rejected=no
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3484 do
3485   IFS=$as_save_IFS
3486   test -z "$as_dir" && as_dir=.
3487     for ac_exec_ext in '' $ac_executable_extensions; do
3488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3490        ac_prog_rejected=yes
3491        continue
3492      fi
3493     ac_cv_prog_CC="cc"
3494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495     break 2
3496   fi
3497 done
3498   done
3499 IFS=$as_save_IFS
3500
3501 if test $ac_prog_rejected = yes; then
3502   # We found a bogon in the path, so make sure we never use it.
3503   set dummy $ac_cv_prog_CC
3504   shift
3505   if test $# != 0; then
3506     # We chose a different compiler from the bogus one.
3507     # However, it has the same basename, so the bogon will be chosen
3508     # first if we set CC to just the basename; use the full file name.
3509     shift
3510     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3511   fi
3512 fi
3513 fi
3514 fi
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3519 else
3520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3522 fi
3523
3524
3525 fi
3526 if test -z "$CC"; then
3527   if test -n "$ac_tool_prefix"; then
3528   for ac_prog in cl.exe
3529   do
3530     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533 $as_echo_n "checking for $ac_word... " >&6; }
3534 if ${ac_cv_prog_CC+:} false; then :
3535   $as_echo_n "(cached) " >&6
3536 else
3537   if test -n "$CC"; then
3538   ac_cv_prog_CC="$CC" # Let the user override the test.
3539 else
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3542 do
3543   IFS=$as_save_IFS
3544   test -z "$as_dir" && as_dir=.
3545     for ac_exec_ext in '' $ac_executable_extensions; do
3546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549     break 2
3550   fi
3551 done
3552   done
3553 IFS=$as_save_IFS
3554
3555 fi
3556 fi
3557 CC=$ac_cv_prog_CC
3558 if test -n "$CC"; then
3559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560 $as_echo "$CC" >&6; }
3561 else
3562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3564 fi
3565
3566
3567     test -n "$CC" && break
3568   done
3569 fi
3570 if test -z "$CC"; then
3571   ac_ct_CC=$CC
3572   for ac_prog in cl.exe
3573 do
3574   # Extract the first word of "$ac_prog", so it can be a program name with args.
3575 set dummy $ac_prog; ac_word=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3579   $as_echo_n "(cached) " >&6
3580 else
3581   if test -n "$ac_ct_CC"; then
3582   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3583 else
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3586 do
3587   IFS=$as_save_IFS
3588   test -z "$as_dir" && as_dir=.
3589     for ac_exec_ext in '' $ac_executable_extensions; do
3590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3591     ac_cv_prog_ac_ct_CC="$ac_prog"
3592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593     break 2
3594   fi
3595 done
3596   done
3597 IFS=$as_save_IFS
3598
3599 fi
3600 fi
3601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3602 if test -n "$ac_ct_CC"; then
3603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3604 $as_echo "$ac_ct_CC" >&6; }
3605 else
3606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3608 fi
3609
3610
3611   test -n "$ac_ct_CC" && break
3612 done
3613
3614   if test "x$ac_ct_CC" = x; then
3615     CC=""
3616   else
3617     case $cross_compiling:$ac_tool_warned in
3618 yes:)
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3621 ac_tool_warned=yes ;;
3622 esac
3623     CC=$ac_ct_CC
3624   fi
3625 fi
3626
3627 fi
3628
3629
3630 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632 as_fn_error $? "no acceptable C compiler found in \$PATH
3633 See \`config.log' for more details" "$LINENO" 5; }
3634
3635 # Provide some information about the compiler.
3636 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3637 set X $ac_compile
3638 ac_compiler=$2
3639 for ac_option in --version -v -V -qversion; do
3640   { { ac_try="$ac_compiler $ac_option >&5"
3641 case "(($ac_try" in
3642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643   *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646 $as_echo "$ac_try_echo"; } >&5
3647   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3648   ac_status=$?
3649   if test -s conftest.err; then
3650     sed '10a\
3651 ... rest of stderr output deleted ...
3652          10q' conftest.err >conftest.er1
3653     cat conftest.er1 >&5
3654   fi
3655   rm -f conftest.er1 conftest.err
3656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657   test $ac_status = 0; }
3658 done
3659
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h.  */
3662
3663 int
3664 main ()
3665 {
3666
3667   ;
3668   return 0;
3669 }
3670 _ACEOF
3671 ac_clean_files_save=$ac_clean_files
3672 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3673 # Try to create an executable without -o first, disregard a.out.
3674 # It will help us diagnose broken compilers, and finding out an intuition
3675 # of exeext.
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3677 $as_echo_n "checking whether the C compiler works... " >&6; }
3678 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3679
3680 # The possible output files:
3681 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3682
3683 ac_rmfiles=
3684 for ac_file in $ac_files
3685 do
3686   case $ac_file in
3687     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3688     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3689   esac
3690 done
3691 rm -f $ac_rmfiles
3692
3693 if { { ac_try="$ac_link_default"
3694 case "(($ac_try" in
3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696   *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700   (eval "$ac_link_default") 2>&5
3701   ac_status=$?
3702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703   test $ac_status = 0; }; then :
3704   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3705 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3706 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3707 # so that the user can short-circuit this test for compilers unknown to
3708 # Autoconf.
3709 for ac_file in $ac_files ''
3710 do
3711   test -f "$ac_file" || continue
3712   case $ac_file in
3713     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3714         ;;
3715     [ab].out )
3716         # We found the default executable, but exeext='' is most
3717         # certainly right.
3718         break;;
3719     *.* )
3720         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3721         then :; else
3722            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3723         fi
3724         # We set ac_cv_exeext here because the later test for it is not
3725         # safe: cross compilers may not add the suffix if given an `-o'
3726         # argument, so we may need to know it at that point already.
3727         # Even if this section looks crufty: it has the advantage of
3728         # actually working.
3729         break;;
3730     * )
3731         break;;
3732   esac
3733 done
3734 test "$ac_cv_exeext" = no && ac_cv_exeext=
3735
3736 else
3737   ac_file=''
3738 fi
3739 if test -z "$ac_file"; then :
3740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3742 $as_echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3744
3745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747 as_fn_error 77 "C compiler cannot create executables
3748 See \`config.log' for more details" "$LINENO" 5; }
3749 else
3750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3751 $as_echo "yes" >&6; }
3752 fi
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3754 $as_echo_n "checking for C compiler default output file name... " >&6; }
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3756 $as_echo "$ac_file" >&6; }
3757 ac_exeext=$ac_cv_exeext
3758
3759 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3760 ac_clean_files=$ac_clean_files_save
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3762 $as_echo_n "checking for suffix of executables... " >&6; }
3763 if { { ac_try="$ac_link"
3764 case "(($ac_try" in
3765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766   *) ac_try_echo=$ac_try;;
3767 esac
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770   (eval "$ac_link") 2>&5
3771   ac_status=$?
3772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773   test $ac_status = 0; }; then :
3774   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3775 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3776 # work properly (i.e., refer to `conftest.exe'), while it won't with
3777 # `rm'.
3778 for ac_file in conftest.exe conftest conftest.*; do
3779   test -f "$ac_file" || continue
3780   case $ac_file in
3781     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3782     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3783           break;;
3784     * ) break;;
3785   esac
3786 done
3787 else
3788   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3791 See \`config.log' for more details" "$LINENO" 5; }
3792 fi
3793 rm -f conftest conftest$ac_cv_exeext
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3795 $as_echo "$ac_cv_exeext" >&6; }
3796
3797 rm -f conftest.$ac_ext
3798 EXEEXT=$ac_cv_exeext
3799 ac_exeext=$EXEEXT
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h.  */
3802 #include <stdio.h>
3803 int
3804 main ()
3805 {
3806 FILE *f = fopen ("conftest.out", "w");
3807  return ferror (f) || fclose (f) != 0;
3808
3809   ;
3810   return 0;
3811 }
3812 _ACEOF
3813 ac_clean_files="$ac_clean_files conftest.out"
3814 # Check that the compiler produces executables we can run.  If not, either
3815 # the compiler is broken, or we cross compile.
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3817 $as_echo_n "checking whether we are cross compiling... " >&6; }
3818 if test "$cross_compiling" != yes; then
3819   { { ac_try="$ac_link"
3820 case "(($ac_try" in
3821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822   *) ac_try_echo=$ac_try;;
3823 esac
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5
3826   (eval "$ac_link") 2>&5
3827   ac_status=$?
3828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829   test $ac_status = 0; }
3830   if { ac_try='./conftest$ac_cv_exeext'
3831   { { case "(($ac_try" in
3832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833   *) ac_try_echo=$ac_try;;
3834 esac
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837   (eval "$ac_try") 2>&5
3838   ac_status=$?
3839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3840   test $ac_status = 0; }; }; then
3841     cross_compiling=no
3842   else
3843     if test "$cross_compiling" = maybe; then
3844         cross_compiling=yes
3845     else
3846         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error $? "cannot run C compiled programs.
3849 If you meant to cross compile, use \`--host'.
3850 See \`config.log' for more details" "$LINENO" 5; }
3851     fi
3852   fi
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3855 $as_echo "$cross_compiling" >&6; }
3856
3857 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3858 ac_clean_files=$ac_clean_files_save
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3860 $as_echo_n "checking for suffix of object files... " >&6; }
3861 if ${ac_cv_objext+:} false; then :
3862   $as_echo_n "(cached) " >&6
3863 else
3864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h.  */
3866
3867 int
3868 main ()
3869 {
3870
3871   ;
3872   return 0;
3873 }
3874 _ACEOF
3875 rm -f conftest.o conftest.obj
3876 if { { ac_try="$ac_compile"
3877 case "(($ac_try" in
3878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879   *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 $as_echo "$ac_try_echo"; } >&5
3883   (eval "$ac_compile") 2>&5
3884   ac_status=$?
3885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3886   test $ac_status = 0; }; then :
3887   for ac_file in conftest.o conftest.obj conftest.*; do
3888   test -f "$ac_file" || continue;
3889   case $ac_file in
3890     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3891     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3892        break;;
3893   esac
3894 done
3895 else
3896   $as_echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 as_fn_error $? "cannot compute suffix of object files: cannot compile
3902 See \`config.log' for more details" "$LINENO" 5; }
3903 fi
3904 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3907 $as_echo "$ac_cv_objext" >&6; }
3908 OBJEXT=$ac_cv_objext
3909 ac_objext=$OBJEXT
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3911 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3912 if ${ac_cv_c_compiler_gnu+:} false; then :
3913   $as_echo_n "(cached) " >&6
3914 else
3915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h.  */
3917
3918 int
3919 main ()
3920 {
3921 #ifndef __GNUC__
3922        choke me
3923 #endif
3924
3925   ;
3926   return 0;
3927 }
3928 _ACEOF
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930   ac_compiler_gnu=yes
3931 else
3932   ac_compiler_gnu=no
3933 fi
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3936
3937 fi
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3939 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3940 if test $ac_compiler_gnu = yes; then
3941   GCC=yes
3942 else
3943   GCC=
3944 fi
3945 ac_test_CFLAGS=${CFLAGS+set}
3946 ac_save_CFLAGS=$CFLAGS
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3948 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3949 if ${ac_cv_prog_cc_g+:} false; then :
3950   $as_echo_n "(cached) " >&6
3951 else
3952   ac_save_c_werror_flag=$ac_c_werror_flag
3953    ac_c_werror_flag=yes
3954    ac_cv_prog_cc_g=no
3955    CFLAGS="-g"
3956    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h.  */
3958
3959 int
3960 main ()
3961 {
3962
3963   ;
3964   return 0;
3965 }
3966 _ACEOF
3967 if ac_fn_c_try_compile "$LINENO"; then :
3968   ac_cv_prog_cc_g=yes
3969 else
3970   CFLAGS=""
3971       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h.  */
3973
3974 int
3975 main ()
3976 {
3977
3978   ;
3979   return 0;
3980 }
3981 _ACEOF
3982 if ac_fn_c_try_compile "$LINENO"; then :
3983
3984 else
3985   ac_c_werror_flag=$ac_save_c_werror_flag
3986          CFLAGS="-g"
3987          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h.  */
3989
3990 int
3991 main ()
3992 {
3993
3994   ;
3995   return 0;
3996 }
3997 _ACEOF
3998 if ac_fn_c_try_compile "$LINENO"; then :
3999   ac_cv_prog_cc_g=yes
4000 fi
4001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 fi
4003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004 fi
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006    ac_c_werror_flag=$ac_save_c_werror_flag
4007 fi
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4009 $as_echo "$ac_cv_prog_cc_g" >&6; }
4010 if test "$ac_test_CFLAGS" = set; then
4011   CFLAGS=$ac_save_CFLAGS
4012 elif test $ac_cv_prog_cc_g = yes; then
4013   if test "$GCC" = yes; then
4014     CFLAGS="-g -O2"
4015   else
4016     CFLAGS="-g"
4017   fi
4018 else
4019   if test "$GCC" = yes; then
4020     CFLAGS="-O2"
4021   else
4022     CFLAGS=
4023   fi
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4026 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4027 if ${ac_cv_prog_cc_c89+:} false; then :
4028   $as_echo_n "(cached) " >&6
4029 else
4030   ac_cv_prog_cc_c89=no
4031 ac_save_CC=$CC
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h.  */
4034 #include <stdarg.h>
4035 #include <stdio.h>
4036 struct stat;
4037 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4038 struct buf { int x; };
4039 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4040 static char *e (p, i)
4041      char **p;
4042      int i;
4043 {
4044   return p[i];
4045 }
4046 static char *f (char * (*g) (char **, int), char **p, ...)
4047 {
4048   char *s;
4049   va_list v;
4050   va_start (v,p);
4051   s = g (p, va_arg (v,int));
4052   va_end (v);
4053   return s;
4054 }
4055
4056 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4057    function prototypes and stuff, but not '\xHH' hex character constants.
4058    These don't provoke an error unfortunately, instead are silently treated
4059    as 'x'.  The following induces an error, until -std is added to get
4060    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4061    array size at least.  It's necessary to write '\x00'==0 to get something
4062    that's true only with -std.  */
4063 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4064
4065 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4066    inside strings and character constants.  */
4067 #define FOO(x) 'x'
4068 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4069
4070 int test (int i, double x);
4071 struct s1 {int (*f) (int a);};
4072 struct s2 {int (*f) (double a);};
4073 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4074 int argc;
4075 char **argv;
4076 int
4077 main ()
4078 {
4079 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4080   ;
4081   return 0;
4082 }
4083 _ACEOF
4084 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4085         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4086 do
4087   CC="$ac_save_CC $ac_arg"
4088   if ac_fn_c_try_compile "$LINENO"; then :
4089   ac_cv_prog_cc_c89=$ac_arg
4090 fi
4091 rm -f core conftest.err conftest.$ac_objext
4092   test "x$ac_cv_prog_cc_c89" != "xno" && break
4093 done
4094 rm -f conftest.$ac_ext
4095 CC=$ac_save_CC
4096
4097 fi
4098 # AC_CACHE_VAL
4099 case "x$ac_cv_prog_cc_c89" in
4100   x)
4101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4102 $as_echo "none needed" >&6; } ;;
4103   xno)
4104     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4105 $as_echo "unsupported" >&6; } ;;
4106   *)
4107     CC="$CC $ac_cv_prog_cc_c89"
4108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4109 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4110 esac
4111 if test "x$ac_cv_prog_cc_c89" != xno; then :
4112
4113 fi
4114
4115 ac_ext=c
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120
4121 ac_ext=c
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4127 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4128 if ${am_cv_prog_cc_c_o+:} false; then :
4129   $as_echo_n "(cached) " >&6
4130 else
4131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h.  */
4133
4134 int
4135 main ()
4136 {
4137
4138   ;
4139   return 0;
4140 }
4141 _ACEOF
4142   # Make sure it works both with $CC and with simple cc.
4143   # Following AC_PROG_CC_C_O, we do the test twice because some
4144   # compilers refuse to overwrite an existing .o file with -o,
4145   # though they will create one.
4146   am_cv_prog_cc_c_o=yes
4147   for am_i in 1 2; do
4148     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4149    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4150    ac_status=$?
4151    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152    (exit $ac_status); } \
4153          && test -f conftest2.$ac_objext; then
4154       : OK
4155     else
4156       am_cv_prog_cc_c_o=no
4157       break
4158     fi
4159   done
4160   rm -f core conftest*
4161   unset am_i
4162 fi
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4164 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4165 if test "$am_cv_prog_cc_c_o" != yes; then
4166    # Losing compiler, so override with the script.
4167    # FIXME: It is wrong to rewrite CC.
4168    # But if we don't then we get into trouble of one sort or another.
4169    # A longer-term fix would be to have automake use am__CC in this case,
4170    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4171    CC="$am_aux_dir/compile $CC"
4172 fi
4173 ac_ext=c
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178
4179
4180 depcc="$CC"   am_compiler_list=
4181
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4183 $as_echo_n "checking dependency style of $depcc... " >&6; }
4184 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4185   $as_echo_n "(cached) " >&6
4186 else
4187   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4188   # We make a subdir and do the tests there.  Otherwise we can end up
4189   # making bogus files that we don't know about and never remove.  For
4190   # instance it was reported that on HP-UX the gcc test will end up
4191   # making a dummy file named 'D' -- because '-MD' means "put the output
4192   # in D".
4193   rm -rf conftest.dir
4194   mkdir conftest.dir
4195   # Copy depcomp to subdir because otherwise we won't find it if we're
4196   # using a relative directory.
4197   cp "$am_depcomp" conftest.dir
4198   cd conftest.dir
4199   # We will build objects and dependencies in a subdirectory because
4200   # it helps to detect inapplicable dependency modes.  For instance
4201   # both Tru64's cc and ICC support -MD to output dependencies as a
4202   # side effect of compilation, but ICC will put the dependencies in
4203   # the current directory while Tru64 will put them in the object
4204   # directory.
4205   mkdir sub
4206
4207   am_cv_CC_dependencies_compiler_type=none
4208   if test "$am_compiler_list" = ""; then
4209      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4210   fi
4211   am__universal=false
4212   case " $depcc " in #(
4213      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4214      esac
4215
4216   for depmode in $am_compiler_list; do
4217     # Setup a source with many dependencies, because some compilers
4218     # like to wrap large dependency lists on column 80 (with \), and
4219     # we should not choose a depcomp mode which is confused by this.
4220     #
4221     # We need to recreate these files for each test, as the compiler may
4222     # overwrite some of them when testing with obscure command lines.
4223     # This happens at least with the AIX C compiler.
4224     : > sub/conftest.c
4225     for i in 1 2 3 4 5 6; do
4226       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4227       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4228       # Solaris 10 /bin/sh.
4229       echo '/* dummy */' > sub/conftst$i.h
4230     done
4231     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4232
4233     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4234     # mode.  It turns out that the SunPro C++ compiler does not properly
4235     # handle '-M -o', and we need to detect this.  Also, some Intel
4236     # versions had trouble with output in subdirs.
4237     am__obj=sub/conftest.${OBJEXT-o}
4238     am__minus_obj="-o $am__obj"
4239     case $depmode in
4240     gcc)
4241       # This depmode causes a compiler race in universal mode.
4242       test "$am__universal" = false || continue
4243       ;;
4244     nosideeffect)
4245       # After this tag, mechanisms are not by side-effect, so they'll
4246       # only be used when explicitly requested.
4247       if test "x$enable_dependency_tracking" = xyes; then
4248         continue
4249       else
4250         break
4251       fi
4252       ;;
4253     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4254       # This compiler won't grok '-c -o', but also, the minuso test has
4255       # not run yet.  These depmodes are late enough in the game, and
4256       # so weak that their functioning should not be impacted.
4257       am__obj=conftest.${OBJEXT-o}
4258       am__minus_obj=
4259       ;;
4260     none) break ;;
4261     esac
4262     if depmode=$depmode \
4263        source=sub/conftest.c object=$am__obj \
4264        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4265        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4266          >/dev/null 2>conftest.err &&
4267        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4268        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4269        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4270        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4271       # icc doesn't choke on unknown options, it will just issue warnings
4272       # or remarks (even with -Werror).  So we grep stderr for any message
4273       # that says an option was ignored or not supported.
4274       # When given -MP, icc 7.0 and 7.1 complain thusly:
4275       #   icc: Command line warning: ignoring option '-M'; no argument required
4276       # The diagnosis changed in icc 8.0:
4277       #   icc: Command line remark: option '-MP' not supported
4278       if (grep 'ignoring option' conftest.err ||
4279           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4280         am_cv_CC_dependencies_compiler_type=$depmode
4281         break
4282       fi
4283     fi
4284   done
4285
4286   cd ..
4287   rm -rf conftest.dir
4288 else
4289   am_cv_CC_dependencies_compiler_type=none
4290 fi
4291
4292 fi
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4294 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4295 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4296
4297  if
4298   test "x$enable_dependency_tracking" != xno \
4299   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4300   am__fastdepCC_TRUE=
4301   am__fastdepCC_FALSE='#'
4302 else
4303   am__fastdepCC_TRUE='#'
4304   am__fastdepCC_FALSE=
4305 fi
4306
4307
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4309 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4310 if ${ac_cv_path_SED+:} false; then :
4311   $as_echo_n "(cached) " >&6
4312 else
4313             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4314      for ac_i in 1 2 3 4 5 6 7; do
4315        ac_script="$ac_script$as_nl$ac_script"
4316      done
4317      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4318      { ac_script=; unset ac_script;}
4319      if test -z "$SED"; then
4320   ac_path_SED_found=false
4321   # Loop through the user's path and test for each of PROGNAME-LIST
4322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4324 do
4325   IFS=$as_save_IFS
4326   test -z "$as_dir" && as_dir=.
4327     for ac_prog in sed gsed; do
4328     for ac_exec_ext in '' $ac_executable_extensions; do
4329       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4330       as_fn_executable_p "$ac_path_SED" || continue
4331 # Check for GNU ac_path_SED and select it if it is found.
4332   # Check for GNU $ac_path_SED
4333 case `"$ac_path_SED" --version 2>&1` in
4334 *GNU*)
4335   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4336 *)
4337   ac_count=0
4338   $as_echo_n 0123456789 >"conftest.in"
4339   while :
4340   do
4341     cat "conftest.in" "conftest.in" >"conftest.tmp"
4342     mv "conftest.tmp" "conftest.in"
4343     cp "conftest.in" "conftest.nl"
4344     $as_echo '' >> "conftest.nl"
4345     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4346     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4347     as_fn_arith $ac_count + 1 && ac_count=$as_val
4348     if test $ac_count -gt ${ac_path_SED_max-0}; then
4349       # Best one so far, save it but keep looking for a better one
4350       ac_cv_path_SED="$ac_path_SED"
4351       ac_path_SED_max=$ac_count
4352     fi
4353     # 10*(2^10) chars as input seems more than enough
4354     test $ac_count -gt 10 && break
4355   done
4356   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4357 esac
4358
4359       $ac_path_SED_found && break 3
4360     done
4361   done
4362   done
4363 IFS=$as_save_IFS
4364   if test -z "$ac_cv_path_SED"; then
4365     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4366   fi
4367 else
4368   ac_cv_path_SED=$SED
4369 fi
4370
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4373 $as_echo "$ac_cv_path_SED" >&6; }
4374  SED="$ac_cv_path_SED"
4375   rm -f conftest.sed
4376
4377 test -z "$SED" && SED=sed
4378 Xsed="$SED -e 1s/^X//"
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4391 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4392 if ${ac_cv_path_GREP+:} false; then :
4393   $as_echo_n "(cached) " >&6
4394 else
4395   if test -z "$GREP"; then
4396   ac_path_GREP_found=false
4397   # Loop through the user's path and test for each of PROGNAME-LIST
4398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4400 do
4401   IFS=$as_save_IFS
4402   test -z "$as_dir" && as_dir=.
4403     for ac_prog in grep ggrep; do
4404     for ac_exec_ext in '' $ac_executable_extensions; do
4405       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4406       as_fn_executable_p "$ac_path_GREP" || continue
4407 # Check for GNU ac_path_GREP and select it if it is found.
4408   # Check for GNU $ac_path_GREP
4409 case `"$ac_path_GREP" --version 2>&1` in
4410 *GNU*)
4411   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4412 *)
4413   ac_count=0
4414   $as_echo_n 0123456789 >"conftest.in"
4415   while :
4416   do
4417     cat "conftest.in" "conftest.in" >"conftest.tmp"
4418     mv "conftest.tmp" "conftest.in"
4419     cp "conftest.in" "conftest.nl"
4420     $as_echo 'GREP' >> "conftest.nl"
4421     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4422     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4423     as_fn_arith $ac_count + 1 && ac_count=$as_val
4424     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4425       # Best one so far, save it but keep looking for a better one
4426       ac_cv_path_GREP="$ac_path_GREP"
4427       ac_path_GREP_max=$ac_count
4428     fi
4429     # 10*(2^10) chars as input seems more than enough
4430     test $ac_count -gt 10 && break
4431   done
4432   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4433 esac
4434
4435       $ac_path_GREP_found && break 3
4436     done
4437   done
4438   done
4439 IFS=$as_save_IFS
4440   if test -z "$ac_cv_path_GREP"; then
4441     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4442   fi
4443 else
4444   ac_cv_path_GREP=$GREP
4445 fi
4446
4447 fi
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4449 $as_echo "$ac_cv_path_GREP" >&6; }
4450  GREP="$ac_cv_path_GREP"
4451
4452
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4454 $as_echo_n "checking for egrep... " >&6; }
4455 if ${ac_cv_path_EGREP+:} false; then :
4456   $as_echo_n "(cached) " >&6
4457 else
4458   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4459    then ac_cv_path_EGREP="$GREP -E"
4460    else
4461      if test -z "$EGREP"; then
4462   ac_path_EGREP_found=false
4463   # Loop through the user's path and test for each of PROGNAME-LIST
4464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4466 do
4467   IFS=$as_save_IFS
4468   test -z "$as_dir" && as_dir=.
4469     for ac_prog in egrep; do
4470     for ac_exec_ext in '' $ac_executable_extensions; do
4471       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4472       as_fn_executable_p "$ac_path_EGREP" || continue
4473 # Check for GNU ac_path_EGREP and select it if it is found.
4474   # Check for GNU $ac_path_EGREP
4475 case `"$ac_path_EGREP" --version 2>&1` in
4476 *GNU*)
4477   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4478 *)
4479   ac_count=0
4480   $as_echo_n 0123456789 >"conftest.in"
4481   while :
4482   do
4483     cat "conftest.in" "conftest.in" >"conftest.tmp"
4484     mv "conftest.tmp" "conftest.in"
4485     cp "conftest.in" "conftest.nl"
4486     $as_echo 'EGREP' >> "conftest.nl"
4487     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4488     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4489     as_fn_arith $ac_count + 1 && ac_count=$as_val
4490     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4491       # Best one so far, save it but keep looking for a better one
4492       ac_cv_path_EGREP="$ac_path_EGREP"
4493       ac_path_EGREP_max=$ac_count
4494     fi
4495     # 10*(2^10) chars as input seems more than enough
4496     test $ac_count -gt 10 && break
4497   done
4498   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4499 esac
4500
4501       $ac_path_EGREP_found && break 3
4502     done
4503   done
4504   done
4505 IFS=$as_save_IFS
4506   if test -z "$ac_cv_path_EGREP"; then
4507     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4508   fi
4509 else
4510   ac_cv_path_EGREP=$EGREP
4511 fi
4512
4513    fi
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4516 $as_echo "$ac_cv_path_EGREP" >&6; }
4517  EGREP="$ac_cv_path_EGREP"
4518
4519
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4521 $as_echo_n "checking for fgrep... " >&6; }
4522 if ${ac_cv_path_FGREP+:} false; then :
4523   $as_echo_n "(cached) " >&6
4524 else
4525   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4526    then ac_cv_path_FGREP="$GREP -F"
4527    else
4528      if test -z "$FGREP"; then
4529   ac_path_FGREP_found=false
4530   # Loop through the user's path and test for each of PROGNAME-LIST
4531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4533 do
4534   IFS=$as_save_IFS
4535   test -z "$as_dir" && as_dir=.
4536     for ac_prog in fgrep; do
4537     for ac_exec_ext in '' $ac_executable_extensions; do
4538       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4539       as_fn_executable_p "$ac_path_FGREP" || continue
4540 # Check for GNU ac_path_FGREP and select it if it is found.
4541   # Check for GNU $ac_path_FGREP
4542 case `"$ac_path_FGREP" --version 2>&1` in
4543 *GNU*)
4544   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4545 *)
4546   ac_count=0
4547   $as_echo_n 0123456789 >"conftest.in"
4548   while :
4549   do
4550     cat "conftest.in" "conftest.in" >"conftest.tmp"
4551     mv "conftest.tmp" "conftest.in"
4552     cp "conftest.in" "conftest.nl"
4553     $as_echo 'FGREP' >> "conftest.nl"
4554     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4555     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4556     as_fn_arith $ac_count + 1 && ac_count=$as_val
4557     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4558       # Best one so far, save it but keep looking for a better one
4559       ac_cv_path_FGREP="$ac_path_FGREP"
4560       ac_path_FGREP_max=$ac_count
4561     fi
4562     # 10*(2^10) chars as input seems more than enough
4563     test $ac_count -gt 10 && break
4564   done
4565   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4566 esac
4567
4568       $ac_path_FGREP_found && break 3
4569     done
4570   done
4571   done
4572 IFS=$as_save_IFS
4573   if test -z "$ac_cv_path_FGREP"; then
4574     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4575   fi
4576 else
4577   ac_cv_path_FGREP=$FGREP
4578 fi
4579
4580    fi
4581 fi
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4583 $as_echo "$ac_cv_path_FGREP" >&6; }
4584  FGREP="$ac_cv_path_FGREP"
4585
4586
4587 test -z "$GREP" && GREP=grep
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607 # Check whether --with-gnu-ld was given.
4608 if test "${with_gnu_ld+set}" = set; then :
4609   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4610 else
4611   with_gnu_ld=no
4612 fi
4613
4614 ac_prog=ld
4615 if test yes = "$GCC"; then
4616   # Check if gcc -print-prog-name=ld gives a path.
4617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4618 $as_echo_n "checking for ld used by $CC... " >&6; }
4619   case $host in
4620   *-*-mingw*)
4621     # gcc leaves a trailing carriage return, which upsets mingw
4622     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4623   *)
4624     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4625   esac
4626   case $ac_prog in
4627     # Accept absolute paths.
4628     [\\/]* | ?:[\\/]*)
4629       re_direlt='/[^/][^/]*/\.\./'
4630       # Canonicalize the pathname of ld
4631       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4632       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4633         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4634       done
4635       test -z "$LD" && LD=$ac_prog
4636       ;;
4637   "")
4638     # If it fails, then pretend we aren't using GCC.
4639     ac_prog=ld
4640     ;;
4641   *)
4642     # If it is relative, then search for the first ld in PATH.
4643     with_gnu_ld=unknown
4644     ;;
4645   esac
4646 elif test yes = "$with_gnu_ld"; then
4647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4648 $as_echo_n "checking for GNU ld... " >&6; }
4649 else
4650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4651 $as_echo_n "checking for non-GNU ld... " >&6; }
4652 fi
4653 if ${lt_cv_path_LD+:} false; then :
4654   $as_echo_n "(cached) " >&6
4655 else
4656   if test -z "$LD"; then
4657   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4658   for ac_dir in $PATH; do
4659     IFS=$lt_save_ifs
4660     test -z "$ac_dir" && ac_dir=.
4661     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4662       lt_cv_path_LD=$ac_dir/$ac_prog
4663       # Check to see if the program is GNU ld.  I'd rather use --version,
4664       # but apparently some variants of GNU ld only accept -v.
4665       # Break only if it was the GNU/non-GNU ld that we prefer.
4666       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4667       *GNU* | *'with BFD'*)
4668         test no != "$with_gnu_ld" && break
4669         ;;
4670       *)
4671         test yes != "$with_gnu_ld" && break
4672         ;;
4673       esac
4674     fi
4675   done
4676   IFS=$lt_save_ifs
4677 else
4678   lt_cv_path_LD=$LD # Let the user override the test with a path.
4679 fi
4680 fi
4681
4682 LD=$lt_cv_path_LD
4683 if test -n "$LD"; then
4684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4685 $as_echo "$LD" >&6; }
4686 else
4687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4689 fi
4690 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4692 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4693 if ${lt_cv_prog_gnu_ld+:} false; then :
4694   $as_echo_n "(cached) " >&6
4695 else
4696   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4697 case `$LD -v 2>&1 </dev/null` in
4698 *GNU* | *'with BFD'*)
4699   lt_cv_prog_gnu_ld=yes
4700   ;;
4701 *)
4702   lt_cv_prog_gnu_ld=no
4703   ;;
4704 esac
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4707 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4708 with_gnu_ld=$lt_cv_prog_gnu_ld
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4719 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4720 if ${lt_cv_path_NM+:} false; then :
4721   $as_echo_n "(cached) " >&6
4722 else
4723   if test -n "$NM"; then
4724   # Let the user override the test.
4725   lt_cv_path_NM=$NM
4726 else
4727   lt_nm_to_check=${ac_tool_prefix}nm
4728   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4729     lt_nm_to_check="$lt_nm_to_check nm"
4730   fi
4731   for lt_tmp_nm in $lt_nm_to_check; do
4732     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4733     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4734       IFS=$lt_save_ifs
4735       test -z "$ac_dir" && ac_dir=.
4736       tmp_nm=$ac_dir/$lt_tmp_nm
4737       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4738         # Check to see if the nm accepts a BSD-compat flag.
4739         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4740         #   nm: unknown option "B" ignored
4741         # Tru64's nm complains that /dev/null is an invalid object file
4742         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4743         case $build_os in
4744         mingw*) lt_bad_file=conftest.nm/nofile ;;
4745         *) lt_bad_file=/dev/null ;;
4746         esac
4747         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4748         *$lt_bad_file* | *'Invalid file or object type'*)
4749           lt_cv_path_NM="$tmp_nm -B"
4750           break 2
4751           ;;
4752         *)
4753           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4754           */dev/null*)
4755             lt_cv_path_NM="$tmp_nm -p"
4756             break 2
4757             ;;
4758           *)
4759             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4760             continue # so that we can try to find one that supports BSD flags
4761             ;;
4762           esac
4763           ;;
4764         esac
4765       fi
4766     done
4767     IFS=$lt_save_ifs
4768   done
4769   : ${lt_cv_path_NM=no}
4770 fi
4771 fi
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4773 $as_echo "$lt_cv_path_NM" >&6; }
4774 if test no != "$lt_cv_path_NM"; then
4775   NM=$lt_cv_path_NM
4776 else
4777   # Didn't find any BSD compatible name lister, look for dumpbin.
4778   if test -n "$DUMPBIN"; then :
4779     # Let the user override the test.
4780   else
4781     if test -n "$ac_tool_prefix"; then
4782   for ac_prog in dumpbin "link -dump"
4783   do
4784     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if ${ac_cv_prog_DUMPBIN+:} false; then :
4789   $as_echo_n "(cached) " >&6
4790 else
4791   if test -n "$DUMPBIN"; then
4792   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797   IFS=$as_save_IFS
4798   test -z "$as_dir" && as_dir=.
4799     for ac_exec_ext in '' $ac_executable_extensions; do
4800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4801     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803     break 2
4804   fi
4805 done
4806   done
4807 IFS=$as_save_IFS
4808
4809 fi
4810 fi
4811 DUMPBIN=$ac_cv_prog_DUMPBIN
4812 if test -n "$DUMPBIN"; then
4813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4814 $as_echo "$DUMPBIN" >&6; }
4815 else
4816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4818 fi
4819
4820
4821     test -n "$DUMPBIN" && break
4822   done
4823 fi
4824 if test -z "$DUMPBIN"; then
4825   ac_ct_DUMPBIN=$DUMPBIN
4826   for ac_prog in dumpbin "link -dump"
4827 do
4828   # Extract the first word of "$ac_prog", so it can be a program name with args.
4829 set dummy $ac_prog; ac_word=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4833   $as_echo_n "(cached) " >&6
4834 else
4835   if test -n "$ac_ct_DUMPBIN"; then
4836   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841   IFS=$as_save_IFS
4842   test -z "$as_dir" && as_dir=.
4843     for ac_exec_ext in '' $ac_executable_extensions; do
4844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847     break 2
4848   fi
4849 done
4850   done
4851 IFS=$as_save_IFS
4852
4853 fi
4854 fi
4855 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4856 if test -n "$ac_ct_DUMPBIN"; then
4857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4858 $as_echo "$ac_ct_DUMPBIN" >&6; }
4859 else
4860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4862 fi
4863
4864
4865   test -n "$ac_ct_DUMPBIN" && break
4866 done
4867
4868   if test "x$ac_ct_DUMPBIN" = x; then
4869     DUMPBIN=":"
4870   else
4871     case $cross_compiling:$ac_tool_warned in
4872 yes:)
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4875 ac_tool_warned=yes ;;
4876 esac
4877     DUMPBIN=$ac_ct_DUMPBIN
4878   fi
4879 fi
4880
4881     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4882     *COFF*)
4883       DUMPBIN="$DUMPBIN -symbols -headers"
4884       ;;
4885     *)
4886       DUMPBIN=:
4887       ;;
4888     esac
4889   fi
4890
4891   if test : != "$DUMPBIN"; then
4892     NM=$DUMPBIN
4893   fi
4894 fi
4895 test -z "$NM" && NM=nm
4896
4897
4898
4899
4900
4901
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4903 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4904 if ${lt_cv_nm_interface+:} false; then :
4905   $as_echo_n "(cached) " >&6
4906 else
4907   lt_cv_nm_interface="BSD nm"
4908   echo "int some_variable = 0;" > conftest.$ac_ext
4909   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4910   (eval "$ac_compile" 2>conftest.err)
4911   cat conftest.err >&5
4912   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4913   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4914   cat conftest.err >&5
4915   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4916   cat conftest.out >&5
4917   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4918     lt_cv_nm_interface="MS dumpbin"
4919   fi
4920   rm -f conftest*
4921 fi
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4923 $as_echo "$lt_cv_nm_interface" >&6; }
4924
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4926 $as_echo_n "checking whether ln -s works... " >&6; }
4927 LN_S=$as_ln_s
4928 if test "$LN_S" = "ln -s"; then
4929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4930 $as_echo "yes" >&6; }
4931 else
4932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4933 $as_echo "no, using $LN_S" >&6; }
4934 fi
4935
4936 # find the maximum length of command line arguments
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4938 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4939 if ${lt_cv_sys_max_cmd_len+:} false; then :
4940   $as_echo_n "(cached) " >&6
4941 else
4942     i=0
4943   teststring=ABCD
4944
4945   case $build_os in
4946   msdosdjgpp*)
4947     # On DJGPP, this test can blow up pretty badly due to problems in libc
4948     # (any single argument exceeding 2000 bytes causes a buffer overrun
4949     # during glob expansion).  Even if it were fixed, the result of this
4950     # check would be larger than it should be.
4951     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4952     ;;
4953
4954   gnu*)
4955     # Under GNU Hurd, this test is not required because there is
4956     # no limit to the length of command line arguments.
4957     # Libtool will interpret -1 as no limit whatsoever
4958     lt_cv_sys_max_cmd_len=-1;
4959     ;;
4960
4961   cygwin* | mingw* | cegcc*)
4962     # On Win9x/ME, this test blows up -- it succeeds, but takes
4963     # about 5 minutes as the teststring grows exponentially.
4964     # Worse, since 9x/ME are not pre-emptively multitasking,
4965     # you end up with a "frozen" computer, even though with patience
4966     # the test eventually succeeds (with a max line length of 256k).
4967     # Instead, let's just punt: use the minimum linelength reported by
4968     # all of the supported platforms: 8192 (on NT/2K/XP).
4969     lt_cv_sys_max_cmd_len=8192;
4970     ;;
4971
4972   mint*)
4973     # On MiNT this can take a long time and run out of memory.
4974     lt_cv_sys_max_cmd_len=8192;
4975     ;;
4976
4977   amigaos*)
4978     # On AmigaOS with pdksh, this test takes hours, literally.
4979     # So we just punt and use a minimum line length of 8192.
4980     lt_cv_sys_max_cmd_len=8192;
4981     ;;
4982
4983   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4984     # This has been around since 386BSD, at least.  Likely further.
4985     if test -x /sbin/sysctl; then
4986       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4987     elif test -x /usr/sbin/sysctl; then
4988       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4989     else
4990       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4991     fi
4992     # And add a safety zone
4993     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4994     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4995     ;;
4996
4997   interix*)
4998     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4999     lt_cv_sys_max_cmd_len=196608
5000     ;;
5001
5002   os2*)
5003     # The test takes a long time on OS/2.
5004     lt_cv_sys_max_cmd_len=8192
5005     ;;
5006
5007   osf*)
5008     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5009     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5010     # nice to cause kernel panics so lets avoid the loop below.
5011     # First set a reasonable default.
5012     lt_cv_sys_max_cmd_len=16384
5013     #
5014     if test -x /sbin/sysconfig; then
5015       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5016         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5017       esac
5018     fi
5019     ;;
5020   sco3.2v5*)
5021     lt_cv_sys_max_cmd_len=102400
5022     ;;
5023   sysv5* | sco5v6* | sysv4.2uw2*)
5024     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5025     if test -n "$kargmax"; then
5026       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5027     else
5028       lt_cv_sys_max_cmd_len=32768
5029     fi
5030     ;;
5031   *)
5032     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5033     if test -n "$lt_cv_sys_max_cmd_len" && \
5034        test undefined != "$lt_cv_sys_max_cmd_len"; then
5035       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5036       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5037     else
5038       # Make teststring a little bigger before we do anything with it.
5039       # a 1K string should be a reasonable start.
5040       for i in 1 2 3 4 5 6 7 8; do
5041         teststring=$teststring$teststring
5042       done
5043       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5044       # If test is not a shell built-in, we'll probably end up computing a
5045       # maximum length that is only half of the actual maximum length, but
5046       # we can't tell.
5047       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5048                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5049               test 17 != "$i" # 1/2 MB should be enough
5050       do
5051         i=`expr $i + 1`
5052         teststring=$teststring$teststring
5053       done
5054       # Only check the string length outside the loop.
5055       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5056       teststring=
5057       # Add a significant safety factor because C++ compilers can tack on
5058       # massive amounts of additional arguments before passing them to the
5059       # linker.  It appears as though 1/2 is a usable value.
5060       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5061     fi
5062     ;;
5063   esac
5064
5065 fi
5066
5067 if test -n "$lt_cv_sys_max_cmd_len"; then
5068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5069 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5070 else
5071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5072 $as_echo "none" >&6; }
5073 fi
5074 max_cmd_len=$lt_cv_sys_max_cmd_len
5075
5076
5077
5078
5079
5080
5081 : ${CP="cp -f"}
5082 : ${MV="mv -f"}
5083 : ${RM="rm -f"}
5084
5085 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5086   lt_unset=unset
5087 else
5088   lt_unset=false
5089 fi
5090
5091
5092
5093
5094
5095 # test EBCDIC or ASCII
5096 case `echo X|tr X '\101'` in
5097  A) # ASCII based system
5098     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5099   lt_SP2NL='tr \040 \012'
5100   lt_NL2SP='tr \015\012 \040\040'
5101   ;;
5102  *) # EBCDIC based system
5103   lt_SP2NL='tr \100 \n'
5104   lt_NL2SP='tr \r\n \100\100'
5105   ;;
5106 esac
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5117 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5118 if ${lt_cv_to_host_file_cmd+:} false; then :
5119   $as_echo_n "(cached) " >&6
5120 else
5121   case $host in
5122   *-*-mingw* )
5123     case $build in
5124       *-*-mingw* ) # actually msys
5125         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5126         ;;
5127       *-*-cygwin* )
5128         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5129         ;;
5130       * ) # otherwise, assume *nix
5131         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5132         ;;
5133     esac
5134     ;;
5135   *-*-cygwin* )
5136     case $build in
5137       *-*-mingw* ) # actually msys
5138         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5139         ;;
5140       *-*-cygwin* )
5141         lt_cv_to_host_file_cmd=func_convert_file_noop
5142         ;;
5143       * ) # otherwise, assume *nix
5144         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5145         ;;
5146     esac
5147     ;;
5148   * ) # unhandled hosts (and "normal" native builds)
5149     lt_cv_to_host_file_cmd=func_convert_file_noop
5150     ;;
5151 esac
5152
5153 fi
5154
5155 to_host_file_cmd=$lt_cv_to_host_file_cmd
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5157 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5158
5159
5160
5161
5162
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5164 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5165 if ${lt_cv_to_tool_file_cmd+:} false; then :
5166   $as_echo_n "(cached) " >&6
5167 else
5168   #assume ordinary cross tools, or native build.
5169 lt_cv_to_tool_file_cmd=func_convert_file_noop
5170 case $host in
5171   *-*-mingw* )
5172     case $build in
5173       *-*-mingw* ) # actually msys
5174         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5175         ;;
5176     esac
5177     ;;
5178 esac
5179
5180 fi
5181
5182 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5184 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5185
5186
5187
5188
5189
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5191 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5192 if ${lt_cv_ld_reload_flag+:} false; then :
5193   $as_echo_n "(cached) " >&6
5194 else
5195   lt_cv_ld_reload_flag='-r'
5196 fi
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5198 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5199 reload_flag=$lt_cv_ld_reload_flag
5200 case $reload_flag in
5201 "" | " "*) ;;
5202 *) reload_flag=" $reload_flag" ;;
5203 esac
5204 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5205 case $host_os in
5206   cygwin* | mingw* | pw32* | cegcc*)
5207     if test yes != "$GCC"; then
5208       reload_cmds=false
5209     fi
5210     ;;
5211   darwin*)
5212     if test yes = "$GCC"; then
5213       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5214     else
5215       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5216     fi
5217     ;;
5218 esac
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228 if test -n "$ac_tool_prefix"; then
5229   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5230 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if ${ac_cv_prog_OBJDUMP+:} false; then :
5234   $as_echo_n "(cached) " >&6
5235 else
5236   if test -n "$OBJDUMP"; then
5237   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242   IFS=$as_save_IFS
5243   test -z "$as_dir" && as_dir=.
5244     for ac_exec_ext in '' $ac_executable_extensions; do
5245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5246     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248     break 2
5249   fi
5250 done
5251   done
5252 IFS=$as_save_IFS
5253
5254 fi
5255 fi
5256 OBJDUMP=$ac_cv_prog_OBJDUMP
5257 if test -n "$OBJDUMP"; then
5258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5259 $as_echo "$OBJDUMP" >&6; }
5260 else
5261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5263 fi
5264
5265
5266 fi
5267 if test -z "$ac_cv_prog_OBJDUMP"; then
5268   ac_ct_OBJDUMP=$OBJDUMP
5269   # Extract the first word of "objdump", so it can be a program name with args.
5270 set dummy objdump; ac_word=$2
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272 $as_echo_n "checking for $ac_word... " >&6; }
5273 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5274   $as_echo_n "(cached) " >&6
5275 else
5276   if test -n "$ac_ct_OBJDUMP"; then
5277   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5278 else
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5281 do
5282   IFS=$as_save_IFS
5283   test -z "$as_dir" && as_dir=.
5284     for ac_exec_ext in '' $ac_executable_extensions; do
5285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288     break 2
5289   fi
5290 done
5291   done
5292 IFS=$as_save_IFS
5293
5294 fi
5295 fi
5296 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5297 if test -n "$ac_ct_OBJDUMP"; then
5298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5299 $as_echo "$ac_ct_OBJDUMP" >&6; }
5300 else
5301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5303 fi
5304
5305   if test "x$ac_ct_OBJDUMP" = x; then
5306     OBJDUMP="false"
5307   else
5308     case $cross_compiling:$ac_tool_warned in
5309 yes:)
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5312 ac_tool_warned=yes ;;
5313 esac
5314     OBJDUMP=$ac_ct_OBJDUMP
5315   fi
5316 else
5317   OBJDUMP="$ac_cv_prog_OBJDUMP"
5318 fi
5319
5320 test -z "$OBJDUMP" && OBJDUMP=objdump
5321
5322
5323
5324
5325
5326
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5328 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5329 if ${lt_cv_deplibs_check_method+:} false; then :
5330   $as_echo_n "(cached) " >&6
5331 else
5332   lt_cv_file_magic_cmd='$MAGIC_CMD'
5333 lt_cv_file_magic_test_file=
5334 lt_cv_deplibs_check_method='unknown'
5335 # Need to set the preceding variable on all platforms that support
5336 # interlibrary dependencies.
5337 # 'none' -- dependencies not supported.
5338 # 'unknown' -- same as none, but documents that we really don't know.
5339 # 'pass_all' -- all dependencies passed with no checks.
5340 # 'test_compile' -- check by making test program.
5341 # 'file_magic [[regex]]' -- check by looking for files in library path
5342 # that responds to the $file_magic_cmd with a given extended regex.
5343 # If you have 'file' or equivalent on your system and you're not sure
5344 # whether 'pass_all' will *always* work, you probably want this one.
5345
5346 case $host_os in
5347 aix[4-9]*)
5348   lt_cv_deplibs_check_method=pass_all
5349   ;;
5350
5351 beos*)
5352   lt_cv_deplibs_check_method=pass_all
5353   ;;
5354
5355 bsdi[45]*)
5356   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5357   lt_cv_file_magic_cmd='/usr/bin/file -L'
5358   lt_cv_file_magic_test_file=/shlib/libc.so
5359   ;;
5360
5361 cygwin*)
5362   # func_win32_libid is a shell function defined in ltmain.sh
5363   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5364   lt_cv_file_magic_cmd='func_win32_libid'
5365   ;;
5366
5367 mingw* | pw32*)
5368   # Base MSYS/MinGW do not provide the 'file' command needed by
5369   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5370   # unless we find 'file', for example because we are cross-compiling.
5371   if ( file / ) >/dev/null 2>&1; then
5372     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5373     lt_cv_file_magic_cmd='func_win32_libid'
5374   else
5375     # Keep this pattern in sync with the one in func_win32_libid.
5376     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5377     lt_cv_file_magic_cmd='$OBJDUMP -f'
5378   fi
5379   ;;
5380
5381 cegcc*)
5382   # use the weaker test based on 'objdump'. See mingw*.
5383   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5384   lt_cv_file_magic_cmd='$OBJDUMP -f'
5385   ;;
5386
5387 darwin* | rhapsody*)
5388   lt_cv_deplibs_check_method=pass_all
5389   ;;
5390
5391 freebsd* | dragonfly*)
5392   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5393     case $host_cpu in
5394     i*86 )
5395       # Not sure whether the presence of OpenBSD here was a mistake.
5396       # Let's accept both of them until this is cleared up.
5397       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5398       lt_cv_file_magic_cmd=/usr/bin/file
5399       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5400       ;;
5401     esac
5402   else
5403     lt_cv_deplibs_check_method=pass_all
5404   fi
5405   ;;
5406
5407 haiku*)
5408   lt_cv_deplibs_check_method=pass_all
5409   ;;
5410
5411 hpux10.20* | hpux11*)
5412   lt_cv_file_magic_cmd=/usr/bin/file
5413   case $host_cpu in
5414   ia64*)
5415     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5416     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5417     ;;
5418   hppa*64*)
5419     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]'
5420     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5421     ;;
5422   *)
5423     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5424     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5425     ;;
5426   esac
5427   ;;
5428
5429 interix[3-9]*)
5430   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5431   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5432   ;;
5433
5434 irix5* | irix6* | nonstopux*)
5435   case $LD in
5436   *-32|*"-32 ") libmagic=32-bit;;
5437   *-n32|*"-n32 ") libmagic=N32;;
5438   *-64|*"-64 ") libmagic=64-bit;;
5439   *) libmagic=never-match;;
5440   esac
5441   lt_cv_deplibs_check_method=pass_all
5442   ;;
5443
5444 # This must be glibc/ELF.
5445 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5446   lt_cv_deplibs_check_method=pass_all
5447   ;;
5448
5449 netbsd* | netbsdelf*-gnu)
5450   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5451     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5452   else
5453     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5454   fi
5455   ;;
5456
5457 newos6*)
5458   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5459   lt_cv_file_magic_cmd=/usr/bin/file
5460   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5461   ;;
5462
5463 *nto* | *qnx*)
5464   lt_cv_deplibs_check_method=pass_all
5465   ;;
5466
5467 openbsd* | bitrig*)
5468   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5469     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5470   else
5471     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5472   fi
5473   ;;
5474
5475 osf3* | osf4* | osf5*)
5476   lt_cv_deplibs_check_method=pass_all
5477   ;;
5478
5479 rdos*)
5480   lt_cv_deplibs_check_method=pass_all
5481   ;;
5482
5483 solaris*)
5484   lt_cv_deplibs_check_method=pass_all
5485   ;;
5486
5487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5488   lt_cv_deplibs_check_method=pass_all
5489   ;;
5490
5491 sysv4 | sysv4.3*)
5492   case $host_vendor in
5493   motorola)
5494     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]'
5495     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5496     ;;
5497   ncr)
5498     lt_cv_deplibs_check_method=pass_all
5499     ;;
5500   sequent)
5501     lt_cv_file_magic_cmd='/bin/file'
5502     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5503     ;;
5504   sni)
5505     lt_cv_file_magic_cmd='/bin/file'
5506     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5507     lt_cv_file_magic_test_file=/lib/libc.so
5508     ;;
5509   siemens)
5510     lt_cv_deplibs_check_method=pass_all
5511     ;;
5512   pc)
5513     lt_cv_deplibs_check_method=pass_all
5514     ;;
5515   esac
5516   ;;
5517
5518 tpf*)
5519   lt_cv_deplibs_check_method=pass_all
5520   ;;
5521 os2*)
5522   lt_cv_deplibs_check_method=pass_all
5523   ;;
5524 esac
5525
5526 fi
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5528 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5529
5530 file_magic_glob=
5531 want_nocaseglob=no
5532 if test "$build" = "$host"; then
5533   case $host_os in
5534   mingw* | pw32*)
5535     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5536       want_nocaseglob=yes
5537     else
5538       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5539     fi
5540     ;;
5541   esac
5542 fi
5543
5544 file_magic_cmd=$lt_cv_file_magic_cmd
5545 deplibs_check_method=$lt_cv_deplibs_check_method
5546 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569 if test -n "$ac_tool_prefix"; then
5570   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5571 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if ${ac_cv_prog_DLLTOOL+:} false; then :
5575   $as_echo_n "(cached) " >&6
5576 else
5577   if test -n "$DLLTOOL"; then
5578   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583   IFS=$as_save_IFS
5584   test -z "$as_dir" && as_dir=.
5585     for ac_exec_ext in '' $ac_executable_extensions; do
5586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589     break 2
5590   fi
5591 done
5592   done
5593 IFS=$as_save_IFS
5594
5595 fi
5596 fi
5597 DLLTOOL=$ac_cv_prog_DLLTOOL
5598 if test -n "$DLLTOOL"; then
5599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5600 $as_echo "$DLLTOOL" >&6; }
5601 else
5602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5604 fi
5605
5606
5607 fi
5608 if test -z "$ac_cv_prog_DLLTOOL"; then
5609   ac_ct_DLLTOOL=$DLLTOOL
5610   # Extract the first word of "dlltool", so it can be a program name with args.
5611 set dummy dlltool; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5615   $as_echo_n "(cached) " >&6
5616 else
5617   if test -n "$ac_ct_DLLTOOL"; then
5618   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5622 do
5623   IFS=$as_save_IFS
5624   test -z "$as_dir" && as_dir=.
5625     for ac_exec_ext in '' $ac_executable_extensions; do
5626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629     break 2
5630   fi
5631 done
5632   done
5633 IFS=$as_save_IFS
5634
5635 fi
5636 fi
5637 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5638 if test -n "$ac_ct_DLLTOOL"; then
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5640 $as_echo "$ac_ct_DLLTOOL" >&6; }
5641 else
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5644 fi
5645
5646   if test "x$ac_ct_DLLTOOL" = x; then
5647     DLLTOOL="false"
5648   else
5649     case $cross_compiling:$ac_tool_warned in
5650 yes:)
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5653 ac_tool_warned=yes ;;
5654 esac
5655     DLLTOOL=$ac_ct_DLLTOOL
5656   fi
5657 else
5658   DLLTOOL="$ac_cv_prog_DLLTOOL"
5659 fi
5660
5661 test -z "$DLLTOOL" && DLLTOOL=dlltool
5662
5663
5664
5665
5666
5667
5668
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5670 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5671 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5672   $as_echo_n "(cached) " >&6
5673 else
5674   lt_cv_sharedlib_from_linklib_cmd='unknown'
5675
5676 case $host_os in
5677 cygwin* | mingw* | pw32* | cegcc*)
5678   # two different shell functions defined in ltmain.sh;
5679   # decide which one to use based on capabilities of $DLLTOOL
5680   case `$DLLTOOL --help 2>&1` in
5681   *--identify-strict*)
5682     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5683     ;;
5684   *)
5685     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5686     ;;
5687   esac
5688   ;;
5689 *)
5690   # fallback: assume linklib IS sharedlib
5691   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5692   ;;
5693 esac
5694
5695 fi
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5697 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5698 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5699 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5700
5701
5702
5703
5704
5705
5706
5707
5708 if test -n "$ac_tool_prefix"; then
5709   for ac_prog in ar
5710   do
5711     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if ${ac_cv_prog_AR+:} false; then :
5716   $as_echo_n "(cached) " >&6
5717 else
5718   if test -n "$AR"; then
5719   ac_cv_prog_AR="$AR" # Let the user override the test.
5720 else
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH
5723 do
5724   IFS=$as_save_IFS
5725   test -z "$as_dir" && as_dir=.
5726     for ac_exec_ext in '' $ac_executable_extensions; do
5727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5728     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730     break 2
5731   fi
5732 done
5733   done
5734 IFS=$as_save_IFS
5735
5736 fi
5737 fi
5738 AR=$ac_cv_prog_AR
5739 if test -n "$AR"; then
5740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5741 $as_echo "$AR" >&6; }
5742 else
5743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5745 fi
5746
5747
5748     test -n "$AR" && break
5749   done
5750 fi
5751 if test -z "$AR"; then
5752   ac_ct_AR=$AR
5753   for ac_prog in ar
5754 do
5755   # Extract the first word of "$ac_prog", so it can be a program name with args.
5756 set dummy $ac_prog; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5760   $as_echo_n "(cached) " >&6
5761 else
5762   if test -n "$ac_ct_AR"; then
5763   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5767 do
5768   IFS=$as_save_IFS
5769   test -z "$as_dir" && as_dir=.
5770     for ac_exec_ext in '' $ac_executable_extensions; do
5771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772     ac_cv_prog_ac_ct_AR="$ac_prog"
5773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774     break 2
5775   fi
5776 done
5777   done
5778 IFS=$as_save_IFS
5779
5780 fi
5781 fi
5782 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5783 if test -n "$ac_ct_AR"; then
5784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5785 $as_echo "$ac_ct_AR" >&6; }
5786 else
5787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5789 fi
5790
5791
5792   test -n "$ac_ct_AR" && break
5793 done
5794
5795   if test "x$ac_ct_AR" = x; then
5796     AR="false"
5797   else
5798     case $cross_compiling:$ac_tool_warned in
5799 yes:)
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5802 ac_tool_warned=yes ;;
5803 esac
5804     AR=$ac_ct_AR
5805   fi
5806 fi
5807
5808 : ${AR=ar}
5809 : ${AR_FLAGS=cru}
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5822 $as_echo_n "checking for archiver @FILE support... " >&6; }
5823 if ${lt_cv_ar_at_file+:} false; then :
5824   $as_echo_n "(cached) " >&6
5825 else
5826   lt_cv_ar_at_file=no
5827    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h.  */
5829
5830 int
5831 main ()
5832 {
5833
5834   ;
5835   return 0;
5836 }
5837 _ACEOF
5838 if ac_fn_c_try_compile "$LINENO"; then :
5839   echo conftest.$ac_objext > conftest.lst
5840       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5841       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5842   (eval $lt_ar_try) 2>&5
5843   ac_status=$?
5844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5845   test $ac_status = 0; }
5846       if test 0 -eq "$ac_status"; then
5847         # Ensure the archiver fails upon bogus file names.
5848         rm -f conftest.$ac_objext libconftest.a
5849         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5850   (eval $lt_ar_try) 2>&5
5851   ac_status=$?
5852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5853   test $ac_status = 0; }
5854         if test 0 -ne "$ac_status"; then
5855           lt_cv_ar_at_file=@
5856         fi
5857       fi
5858       rm -f conftest.* libconftest.a
5859
5860 fi
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862
5863 fi
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5865 $as_echo "$lt_cv_ar_at_file" >&6; }
5866
5867 if test no = "$lt_cv_ar_at_file"; then
5868   archiver_list_spec=
5869 else
5870   archiver_list_spec=$lt_cv_ar_at_file
5871 fi
5872
5873
5874
5875
5876
5877
5878
5879 if test -n "$ac_tool_prefix"; then
5880   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5881 set dummy ${ac_tool_prefix}strip; ac_word=$2
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if ${ac_cv_prog_STRIP+:} false; then :
5885   $as_echo_n "(cached) " >&6
5886 else
5887   if test -n "$STRIP"; then
5888   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5889 else
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 for as_dir in $PATH
5892 do
5893   IFS=$as_save_IFS
5894   test -z "$as_dir" && as_dir=.
5895     for ac_exec_ext in '' $ac_executable_extensions; do
5896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899     break 2
5900   fi
5901 done
5902   done
5903 IFS=$as_save_IFS
5904
5905 fi
5906 fi
5907 STRIP=$ac_cv_prog_STRIP
5908 if test -n "$STRIP"; then
5909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5910 $as_echo "$STRIP" >&6; }
5911 else
5912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5914 fi
5915
5916
5917 fi
5918 if test -z "$ac_cv_prog_STRIP"; then
5919   ac_ct_STRIP=$STRIP
5920   # Extract the first word of "strip", so it can be a program name with args.
5921 set dummy strip; ac_word=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5925   $as_echo_n "(cached) " >&6
5926 else
5927   if test -n "$ac_ct_STRIP"; then
5928   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933   IFS=$as_save_IFS
5934   test -z "$as_dir" && as_dir=.
5935     for ac_exec_ext in '' $ac_executable_extensions; do
5936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937     ac_cv_prog_ac_ct_STRIP="strip"
5938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939     break 2
5940   fi
5941 done
5942   done
5943 IFS=$as_save_IFS
5944
5945 fi
5946 fi
5947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5948 if test -n "$ac_ct_STRIP"; then
5949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5950 $as_echo "$ac_ct_STRIP" >&6; }
5951 else
5952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5954 fi
5955
5956   if test "x$ac_ct_STRIP" = x; then
5957     STRIP=":"
5958   else
5959     case $cross_compiling:$ac_tool_warned in
5960 yes:)
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963 ac_tool_warned=yes ;;
5964 esac
5965     STRIP=$ac_ct_STRIP
5966   fi
5967 else
5968   STRIP="$ac_cv_prog_STRIP"
5969 fi
5970
5971 test -z "$STRIP" && STRIP=:
5972
5973
5974
5975
5976
5977
5978 if test -n "$ac_tool_prefix"; then
5979   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5980 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982 $as_echo_n "checking for $ac_word... " >&6; }
5983 if ${ac_cv_prog_RANLIB+:} false; then :
5984   $as_echo_n "(cached) " >&6
5985 else
5986   if test -n "$RANLIB"; then
5987   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5988 else
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 for as_dir in $PATH
5991 do
5992   IFS=$as_save_IFS
5993   test -z "$as_dir" && as_dir=.
5994     for ac_exec_ext in '' $ac_executable_extensions; do
5995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5996     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5998     break 2
5999   fi
6000 done
6001   done
6002 IFS=$as_save_IFS
6003
6004 fi
6005 fi
6006 RANLIB=$ac_cv_prog_RANLIB
6007 if test -n "$RANLIB"; then
6008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6009 $as_echo "$RANLIB" >&6; }
6010 else
6011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 $as_echo "no" >&6; }
6013 fi
6014
6015
6016 fi
6017 if test -z "$ac_cv_prog_RANLIB"; then
6018   ac_ct_RANLIB=$RANLIB
6019   # Extract the first word of "ranlib", so it can be a program name with args.
6020 set dummy ranlib; ac_word=$2
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6022 $as_echo_n "checking for $ac_word... " >&6; }
6023 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6024   $as_echo_n "(cached) " >&6
6025 else
6026   if test -n "$ac_ct_RANLIB"; then
6027   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6028 else
6029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 for as_dir in $PATH
6031 do
6032   IFS=$as_save_IFS
6033   test -z "$as_dir" && as_dir=.
6034     for ac_exec_ext in '' $ac_executable_extensions; do
6035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6036     ac_cv_prog_ac_ct_RANLIB="ranlib"
6037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6038     break 2
6039   fi
6040 done
6041   done
6042 IFS=$as_save_IFS
6043
6044 fi
6045 fi
6046 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6047 if test -n "$ac_ct_RANLIB"; then
6048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6049 $as_echo "$ac_ct_RANLIB" >&6; }
6050 else
6051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6052 $as_echo "no" >&6; }
6053 fi
6054
6055   if test "x$ac_ct_RANLIB" = x; then
6056     RANLIB=":"
6057   else
6058     case $cross_compiling:$ac_tool_warned in
6059 yes:)
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6062 ac_tool_warned=yes ;;
6063 esac
6064     RANLIB=$ac_ct_RANLIB
6065   fi
6066 else
6067   RANLIB="$ac_cv_prog_RANLIB"
6068 fi
6069
6070 test -z "$RANLIB" && RANLIB=:
6071
6072
6073
6074
6075
6076
6077 # Determine commands to create old-style static archives.
6078 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6079 old_postinstall_cmds='chmod 644 $oldlib'
6080 old_postuninstall_cmds=
6081
6082 if test -n "$RANLIB"; then
6083   case $host_os in
6084   bitrig* | openbsd*)
6085     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6086     ;;
6087   *)
6088     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6089     ;;
6090   esac
6091   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6092 fi
6093
6094 case $host_os in
6095   darwin*)
6096     lock_old_archive_extraction=yes ;;
6097   *)
6098     lock_old_archive_extraction=no ;;
6099 esac
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139 # If no C compiler was specified, use CC.
6140 LTCC=${LTCC-"$CC"}
6141
6142 # If no C compiler flags were specified, use CFLAGS.
6143 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6144
6145 # Allow CC to be a program name with arguments.
6146 compiler=$CC
6147
6148
6149 # Check for command to grab the raw symbol name followed by C symbol from nm.
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6151 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6152 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6153   $as_echo_n "(cached) " >&6
6154 else
6155
6156 # These are sane defaults that work on at least a few old systems.
6157 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6158
6159 # Character class describing NM global symbol codes.
6160 symcode='[BCDEGRST]'
6161
6162 # Regexp to match symbols that can be accessed directly from C.
6163 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6164
6165 # Define system-specific variables.
6166 case $host_os in
6167 aix*)
6168   symcode='[BCDT]'
6169   ;;
6170 cygwin* | mingw* | pw32* | cegcc*)
6171   symcode='[ABCDGISTW]'
6172   ;;
6173 hpux*)
6174   if test ia64 = "$host_cpu"; then
6175     symcode='[ABCDEGRST]'
6176   fi
6177   ;;
6178 irix* | nonstopux*)
6179   symcode='[BCDEGRST]'
6180   ;;
6181 osf*)
6182   symcode='[BCDEGQRST]'
6183   ;;
6184 solaris*)
6185   symcode='[BDRT]'
6186   ;;
6187 sco3.2v5*)
6188   symcode='[DT]'
6189   ;;
6190 sysv4.2uw2*)
6191   symcode='[DT]'
6192   ;;
6193 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6194   symcode='[ABDT]'
6195   ;;
6196 sysv4)
6197   symcode='[DFNSTU]'
6198   ;;
6199 esac
6200
6201 # If we're using GNU nm, then use its standard symbol codes.
6202 case `$NM -V 2>&1` in
6203 *GNU* | *'with BFD'*)
6204   symcode='[ABCDGIRSTW]' ;;
6205 esac
6206
6207 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6208   # Gets list of data symbols to import.
6209   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6210   # Adjust the below global symbol transforms to fixup imported variables.
6211   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6212   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6213   lt_c_name_lib_hook="\
6214   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6215   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6216 else
6217   # Disable hooks by default.
6218   lt_cv_sys_global_symbol_to_import=
6219   lt_cdecl_hook=
6220   lt_c_name_hook=
6221   lt_c_name_lib_hook=
6222 fi
6223
6224 # Transform an extracted symbol line into a proper C declaration.
6225 # Some systems (esp. on ia64) link data and code symbols differently,
6226 # so use this general approach.
6227 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6228 $lt_cdecl_hook\
6229 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6230 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6231
6232 # Transform an extracted symbol line into symbol name and symbol address
6233 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6234 $lt_c_name_hook\
6235 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6236 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6237
6238 # Transform an extracted symbol line into symbol name with lib prefix and
6239 # symbol address.
6240 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6241 $lt_c_name_lib_hook\
6242 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6243 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6244 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6245
6246 # Handle CRLF in mingw tool chain
6247 opt_cr=
6248 case $build_os in
6249 mingw*)
6250   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6251   ;;
6252 esac
6253
6254 # Try without a prefix underscore, then with it.
6255 for ac_symprfx in "" "_"; do
6256
6257   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6258   symxfrm="\\1 $ac_symprfx\\2 \\2"
6259
6260   # Write the raw and C identifiers.
6261   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6262     # Fake it for dumpbin and say T for any non-static function,
6263     # D for any global variable and I for any imported variable.
6264     # Also find C++ and __fastcall symbols from MSVC++,
6265     # which start with @ or ?.
6266     lt_cv_sys_global_symbol_pipe="$AWK '"\
6267 "     {last_section=section; section=\$ 3};"\
6268 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6269 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6270 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6271 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6272 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6273 "     \$ 0!~/External *\|/{next};"\
6274 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6275 "     {if(hide[section]) next};"\
6276 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6277 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6278 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6279 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6280 "     ' prfx=^$ac_symprfx"
6281   else
6282     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6283   fi
6284   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6285
6286   # Check to see that the pipe works correctly.
6287   pipe_works=no
6288
6289   rm -f conftest*
6290   cat > conftest.$ac_ext <<_LT_EOF
6291 #ifdef __cplusplus
6292 extern "C" {
6293 #endif
6294 char nm_test_var;
6295 void nm_test_func(void);
6296 void nm_test_func(void){}
6297 #ifdef __cplusplus
6298 }
6299 #endif
6300 int main(){nm_test_var='a';nm_test_func();return(0);}
6301 _LT_EOF
6302
6303   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6304   (eval $ac_compile) 2>&5
6305   ac_status=$?
6306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6307   test $ac_status = 0; }; then
6308     # Now try to grab the symbols.
6309     nlist=conftest.nm
6310     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6311   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6312   ac_status=$?
6313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6314   test $ac_status = 0; } && test -s "$nlist"; then
6315       # Try sorting and uniquifying the output.
6316       if sort "$nlist" | uniq > "$nlist"T; then
6317         mv -f "$nlist"T "$nlist"
6318       else
6319         rm -f "$nlist"T
6320       fi
6321
6322       # Make sure that we snagged all the symbols we need.
6323       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6324         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6325           cat <<_LT_EOF > conftest.$ac_ext
6326 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6327 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6328 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6329    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6330 # define LT_DLSYM_CONST
6331 #elif defined __osf__
6332 /* This system does not cope well with relocations in const data.  */
6333 # define LT_DLSYM_CONST
6334 #else
6335 # define LT_DLSYM_CONST const
6336 #endif
6337
6338 #ifdef __cplusplus
6339 extern "C" {
6340 #endif
6341
6342 _LT_EOF
6343           # Now generate the symbol file.
6344           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6345
6346           cat <<_LT_EOF >> conftest.$ac_ext
6347
6348 /* The mapping between symbol names and symbols.  */
6349 LT_DLSYM_CONST struct {
6350   const char *name;
6351   void       *address;
6352 }
6353 lt__PROGRAM__LTX_preloaded_symbols[] =
6354 {
6355   { "@PROGRAM@", (void *) 0 },
6356 _LT_EOF
6357           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6358           cat <<\_LT_EOF >> conftest.$ac_ext
6359   {0, (void *) 0}
6360 };
6361
6362 /* This works around a problem in FreeBSD linker */
6363 #ifdef FREEBSD_WORKAROUND
6364 static const void *lt_preloaded_setup() {
6365   return lt__PROGRAM__LTX_preloaded_symbols;
6366 }
6367 #endif
6368
6369 #ifdef __cplusplus
6370 }
6371 #endif
6372 _LT_EOF
6373           # Now try linking the two files.
6374           mv conftest.$ac_objext conftstm.$ac_objext
6375           lt_globsym_save_LIBS=$LIBS
6376           lt_globsym_save_CFLAGS=$CFLAGS
6377           LIBS=conftstm.$ac_objext
6378           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6379           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6380   (eval $ac_link) 2>&5
6381   ac_status=$?
6382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6383   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6384             pipe_works=yes
6385           fi
6386           LIBS=$lt_globsym_save_LIBS
6387           CFLAGS=$lt_globsym_save_CFLAGS
6388         else
6389           echo "cannot find nm_test_func in $nlist" >&5
6390         fi
6391       else
6392         echo "cannot find nm_test_var in $nlist" >&5
6393       fi
6394     else
6395       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6396     fi
6397   else
6398     echo "$progname: failed program was:" >&5
6399     cat conftest.$ac_ext >&5
6400   fi
6401   rm -rf conftest* conftst*
6402
6403   # Do not use the global_symbol_pipe unless it works.
6404   if test yes = "$pipe_works"; then
6405     break
6406   else
6407     lt_cv_sys_global_symbol_pipe=
6408   fi
6409 done
6410
6411 fi
6412
6413 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6414   lt_cv_sys_global_symbol_to_cdecl=
6415 fi
6416 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6418 $as_echo "failed" >&6; }
6419 else
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6421 $as_echo "ok" >&6; }
6422 fi
6423
6424 # Response file support.
6425 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6426   nm_file_list_spec='@'
6427 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6428   nm_file_list_spec='@'
6429 fi
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6468 $as_echo_n "checking for sysroot... " >&6; }
6469
6470 # Check whether --with-sysroot was given.
6471 if test "${with_sysroot+set}" = set; then :
6472   withval=$with_sysroot;
6473 else
6474   with_sysroot=no
6475 fi
6476
6477
6478 lt_sysroot=
6479 case $with_sysroot in #(
6480  yes)
6481    if test yes = "$GCC"; then
6482      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6483    fi
6484    ;; #(
6485  /*)
6486    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6487    ;; #(
6488  no|'')
6489    ;; #(
6490  *)
6491    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6492 $as_echo "$with_sysroot" >&6; }
6493    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6494    ;;
6495 esac
6496
6497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6498 $as_echo "${lt_sysroot:-no}" >&6; }
6499
6500
6501
6502
6503
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6505 $as_echo_n "checking for a working dd... " >&6; }
6506 if ${ac_cv_path_lt_DD+:} false; then :
6507   $as_echo_n "(cached) " >&6
6508 else
6509   printf 0123456789abcdef0123456789abcdef >conftest.i
6510 cat conftest.i conftest.i >conftest2.i
6511 : ${lt_DD:=$DD}
6512 if test -z "$lt_DD"; then
6513   ac_path_lt_DD_found=false
6514   # Loop through the user's path and test for each of PROGNAME-LIST
6515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518   IFS=$as_save_IFS
6519   test -z "$as_dir" && as_dir=.
6520     for ac_prog in dd; do
6521     for ac_exec_ext in '' $ac_executable_extensions; do
6522       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6523       as_fn_executable_p "$ac_path_lt_DD" || continue
6524 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6525   cmp -s conftest.i conftest.out \
6526   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6527 fi
6528       $ac_path_lt_DD_found && break 3
6529     done
6530   done
6531   done
6532 IFS=$as_save_IFS
6533   if test -z "$ac_cv_path_lt_DD"; then
6534     :
6535   fi
6536 else
6537   ac_cv_path_lt_DD=$lt_DD
6538 fi
6539
6540 rm -f conftest.i conftest2.i conftest.out
6541 fi
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6543 $as_echo "$ac_cv_path_lt_DD" >&6; }
6544
6545
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6547 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6548 if ${lt_cv_truncate_bin+:} false; then :
6549   $as_echo_n "(cached) " >&6
6550 else
6551   printf 0123456789abcdef0123456789abcdef >conftest.i
6552 cat conftest.i conftest.i >conftest2.i
6553 lt_cv_truncate_bin=
6554 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6555   cmp -s conftest.i conftest.out \
6556   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6557 fi
6558 rm -f conftest.i conftest2.i conftest.out
6559 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6560 fi
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6562 $as_echo "$lt_cv_truncate_bin" >&6; }
6563
6564
6565
6566
6567
6568
6569
6570 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6571 func_cc_basename ()
6572 {
6573     for cc_temp in $*""; do
6574       case $cc_temp in
6575         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6576         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6577         \-*) ;;
6578         *) break;;
6579       esac
6580     done
6581     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6582 }
6583
6584 # Check whether --enable-libtool-lock was given.
6585 if test "${enable_libtool_lock+set}" = set; then :
6586   enableval=$enable_libtool_lock;
6587 fi
6588
6589 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6590
6591 # Some flags need to be propagated to the compiler or linker for good
6592 # libtool support.
6593 case $host in
6594 ia64-*-hpux*)
6595   # Find out what ABI is being produced by ac_compile, and set mode
6596   # options accordingly.
6597   echo 'int i;' > conftest.$ac_ext
6598   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6599   (eval $ac_compile) 2>&5
6600   ac_status=$?
6601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6602   test $ac_status = 0; }; then
6603     case `/usr/bin/file conftest.$ac_objext` in
6604       *ELF-32*)
6605         HPUX_IA64_MODE=32
6606         ;;
6607       *ELF-64*)
6608         HPUX_IA64_MODE=64
6609         ;;
6610     esac
6611   fi
6612   rm -rf conftest*
6613   ;;
6614 *-*-irix6*)
6615   # Find out what ABI is being produced by ac_compile, and set linker
6616   # options accordingly.
6617   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6618   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6619   (eval $ac_compile) 2>&5
6620   ac_status=$?
6621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6622   test $ac_status = 0; }; then
6623     if test yes = "$lt_cv_prog_gnu_ld"; then
6624       case `/usr/bin/file conftest.$ac_objext` in
6625         *32-bit*)
6626           LD="${LD-ld} -melf32bsmip"
6627           ;;
6628         *N32*)
6629           LD="${LD-ld} -melf32bmipn32"
6630           ;;
6631         *64-bit*)
6632           LD="${LD-ld} -melf64bmip"
6633         ;;
6634       esac
6635     else
6636       case `/usr/bin/file conftest.$ac_objext` in
6637         *32-bit*)
6638           LD="${LD-ld} -32"
6639           ;;
6640         *N32*)
6641           LD="${LD-ld} -n32"
6642           ;;
6643         *64-bit*)
6644           LD="${LD-ld} -64"
6645           ;;
6646       esac
6647     fi
6648   fi
6649   rm -rf conftest*
6650   ;;
6651
6652 mips64*-*linux*)
6653   # Find out what ABI is being produced by ac_compile, and set linker
6654   # options accordingly.
6655   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6656   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6657   (eval $ac_compile) 2>&5
6658   ac_status=$?
6659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6660   test $ac_status = 0; }; then
6661     emul=elf
6662     case `/usr/bin/file conftest.$ac_objext` in
6663       *32-bit*)
6664         emul="${emul}32"
6665         ;;
6666       *64-bit*)
6667         emul="${emul}64"
6668         ;;
6669     esac
6670     case `/usr/bin/file conftest.$ac_objext` in
6671       *MSB*)
6672         emul="${emul}btsmip"
6673         ;;
6674       *LSB*)
6675         emul="${emul}ltsmip"
6676         ;;
6677     esac
6678     case `/usr/bin/file conftest.$ac_objext` in
6679       *N32*)
6680         emul="${emul}n32"
6681         ;;
6682     esac
6683     LD="${LD-ld} -m $emul"
6684   fi
6685   rm -rf conftest*
6686   ;;
6687
6688 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6689 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6690   # Find out what ABI is being produced by ac_compile, and set linker
6691   # options accordingly.  Note that the listed cases only cover the
6692   # situations where additional linker options are needed (such as when
6693   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6694   # vice versa); the common cases where no linker options are needed do
6695   # not appear in the list.
6696   echo 'int i;' > conftest.$ac_ext
6697   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6698   (eval $ac_compile) 2>&5
6699   ac_status=$?
6700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6701   test $ac_status = 0; }; then
6702     case `/usr/bin/file conftest.o` in
6703       *32-bit*)
6704         case $host in
6705           x86_64-*kfreebsd*-gnu)
6706             LD="${LD-ld} -m elf_i386_fbsd"
6707             ;;
6708           x86_64-*linux*)
6709             case `/usr/bin/file conftest.o` in
6710               *x86-64*)
6711                 LD="${LD-ld} -m elf32_x86_64"
6712                 ;;
6713               *)
6714                 LD="${LD-ld} -m elf_i386"
6715                 ;;
6716             esac
6717             ;;
6718           powerpc64le-*linux*)
6719             LD="${LD-ld} -m elf32lppclinux"
6720             ;;
6721           powerpc64-*linux*)
6722             LD="${LD-ld} -m elf32ppclinux"
6723             ;;
6724           s390x-*linux*)
6725             LD="${LD-ld} -m elf_s390"
6726             ;;
6727           sparc64-*linux*)
6728             LD="${LD-ld} -m elf32_sparc"
6729             ;;
6730         esac
6731         ;;
6732       *64-bit*)
6733         case $host in
6734           x86_64-*kfreebsd*-gnu)
6735             LD="${LD-ld} -m elf_x86_64_fbsd"
6736             ;;
6737           x86_64-*linux*)
6738             LD="${LD-ld} -m elf_x86_64"
6739             ;;
6740           powerpcle-*linux*)
6741             LD="${LD-ld} -m elf64lppc"
6742             ;;
6743           powerpc-*linux*)
6744             LD="${LD-ld} -m elf64ppc"
6745             ;;
6746           s390*-*linux*|s390*-*tpf*)
6747             LD="${LD-ld} -m elf64_s390"
6748             ;;
6749           sparc*-*linux*)
6750             LD="${LD-ld} -m elf64_sparc"
6751             ;;
6752         esac
6753         ;;
6754     esac
6755   fi
6756   rm -rf conftest*
6757   ;;
6758
6759 *-*-sco3.2v5*)
6760   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6761   SAVE_CFLAGS=$CFLAGS
6762   CFLAGS="$CFLAGS -belf"
6763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6764 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6765 if ${lt_cv_cc_needs_belf+:} false; then :
6766   $as_echo_n "(cached) " >&6
6767 else
6768   ac_ext=c
6769 ac_cpp='$CPP $CPPFLAGS'
6770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6773
6774      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h.  */
6776
6777 int
6778 main ()
6779 {
6780
6781   ;
6782   return 0;
6783 }
6784 _ACEOF
6785 if ac_fn_c_try_link "$LINENO"; then :
6786   lt_cv_cc_needs_belf=yes
6787 else
6788   lt_cv_cc_needs_belf=no
6789 fi
6790 rm -f core conftest.err conftest.$ac_objext \
6791     conftest$ac_exeext conftest.$ac_ext
6792      ac_ext=c
6793 ac_cpp='$CPP $CPPFLAGS'
6794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6797
6798 fi
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6800 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6801   if test yes != "$lt_cv_cc_needs_belf"; then
6802     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6803     CFLAGS=$SAVE_CFLAGS
6804   fi
6805   ;;
6806 *-*solaris*)
6807   # Find out what ABI is being produced by ac_compile, and set linker
6808   # options accordingly.
6809   echo 'int i;' > conftest.$ac_ext
6810   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6811   (eval $ac_compile) 2>&5
6812   ac_status=$?
6813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6814   test $ac_status = 0; }; then
6815     case `/usr/bin/file conftest.o` in
6816     *64-bit*)
6817       case $lt_cv_prog_gnu_ld in
6818       yes*)
6819         case $host in
6820         i?86-*-solaris*|x86_64-*-solaris*)
6821           LD="${LD-ld} -m elf_x86_64"
6822           ;;
6823         sparc*-*-solaris*)
6824           LD="${LD-ld} -m elf64_sparc"
6825           ;;
6826         esac
6827         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6828         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6829           LD=${LD-ld}_sol2
6830         fi
6831         ;;
6832       *)
6833         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6834           LD="${LD-ld} -64"
6835         fi
6836         ;;
6837       esac
6838       ;;
6839     esac
6840   fi
6841   rm -rf conftest*
6842   ;;
6843 esac
6844
6845 need_locks=$enable_libtool_lock
6846
6847 if test -n "$ac_tool_prefix"; then
6848   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6849 set dummy ${ac_tool_prefix}mt; ac_word=$2
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851 $as_echo_n "checking for $ac_word... " >&6; }
6852 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6853   $as_echo_n "(cached) " >&6
6854 else
6855   if test -n "$MANIFEST_TOOL"; then
6856   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6857 else
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 for as_dir in $PATH
6860 do
6861   IFS=$as_save_IFS
6862   test -z "$as_dir" && as_dir=.
6863     for ac_exec_ext in '' $ac_executable_extensions; do
6864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6865     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867     break 2
6868   fi
6869 done
6870   done
6871 IFS=$as_save_IFS
6872
6873 fi
6874 fi
6875 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6876 if test -n "$MANIFEST_TOOL"; then
6877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6878 $as_echo "$MANIFEST_TOOL" >&6; }
6879 else
6880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881 $as_echo "no" >&6; }
6882 fi
6883
6884
6885 fi
6886 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6887   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6888   # Extract the first word of "mt", so it can be a program name with args.
6889 set dummy mt; ac_word=$2
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891 $as_echo_n "checking for $ac_word... " >&6; }
6892 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6893   $as_echo_n "(cached) " >&6
6894 else
6895   if test -n "$ac_ct_MANIFEST_TOOL"; then
6896   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6897 else
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6900 do
6901   IFS=$as_save_IFS
6902   test -z "$as_dir" && as_dir=.
6903     for ac_exec_ext in '' $ac_executable_extensions; do
6904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6905     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907     break 2
6908   fi
6909 done
6910   done
6911 IFS=$as_save_IFS
6912
6913 fi
6914 fi
6915 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6916 if test -n "$ac_ct_MANIFEST_TOOL"; then
6917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6918 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6919 else
6920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 $as_echo "no" >&6; }
6922 fi
6923
6924   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6925     MANIFEST_TOOL=":"
6926   else
6927     case $cross_compiling:$ac_tool_warned in
6928 yes:)
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6931 ac_tool_warned=yes ;;
6932 esac
6933     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6934   fi
6935 else
6936   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6937 fi
6938
6939 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6941 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6942 if ${lt_cv_path_mainfest_tool+:} false; then :
6943   $as_echo_n "(cached) " >&6
6944 else
6945   lt_cv_path_mainfest_tool=no
6946   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6947   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6948   cat conftest.err >&5
6949   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6950     lt_cv_path_mainfest_tool=yes
6951   fi
6952   rm -f conftest*
6953 fi
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6955 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6956 if test yes != "$lt_cv_path_mainfest_tool"; then
6957   MANIFEST_TOOL=:
6958 fi
6959
6960
6961
6962
6963
6964
6965   case $host_os in
6966     rhapsody* | darwin*)
6967     if test -n "$ac_tool_prefix"; then
6968   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6969 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971 $as_echo_n "checking for $ac_word... " >&6; }
6972 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6973   $as_echo_n "(cached) " >&6
6974 else
6975   if test -n "$DSYMUTIL"; then
6976   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6977 else
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6980 do
6981   IFS=$as_save_IFS
6982   test -z "$as_dir" && as_dir=.
6983     for ac_exec_ext in '' $ac_executable_extensions; do
6984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6985     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987     break 2
6988   fi
6989 done
6990   done
6991 IFS=$as_save_IFS
6992
6993 fi
6994 fi
6995 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6996 if test -n "$DSYMUTIL"; then
6997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6998 $as_echo "$DSYMUTIL" >&6; }
6999 else
7000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7002 fi
7003
7004
7005 fi
7006 if test -z "$ac_cv_prog_DSYMUTIL"; then
7007   ac_ct_DSYMUTIL=$DSYMUTIL
7008   # Extract the first word of "dsymutil", so it can be a program name with args.
7009 set dummy dsymutil; ac_word=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7013   $as_echo_n "(cached) " >&6
7014 else
7015   if test -n "$ac_ct_DSYMUTIL"; then
7016   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7017 else
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7020 do
7021   IFS=$as_save_IFS
7022   test -z "$as_dir" && as_dir=.
7023     for ac_exec_ext in '' $ac_executable_extensions; do
7024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7025     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027     break 2
7028   fi
7029 done
7030   done
7031 IFS=$as_save_IFS
7032
7033 fi
7034 fi
7035 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7036 if test -n "$ac_ct_DSYMUTIL"; then
7037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7038 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7039 else
7040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7042 fi
7043
7044   if test "x$ac_ct_DSYMUTIL" = x; then
7045     DSYMUTIL=":"
7046   else
7047     case $cross_compiling:$ac_tool_warned in
7048 yes:)
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7051 ac_tool_warned=yes ;;
7052 esac
7053     DSYMUTIL=$ac_ct_DSYMUTIL
7054   fi
7055 else
7056   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7057 fi
7058
7059     if test -n "$ac_tool_prefix"; then
7060   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7061 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if ${ac_cv_prog_NMEDIT+:} false; then :
7065   $as_echo_n "(cached) " >&6
7066 else
7067   if test -n "$NMEDIT"; then
7068   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073   IFS=$as_save_IFS
7074   test -z "$as_dir" && as_dir=.
7075     for ac_exec_ext in '' $ac_executable_extensions; do
7076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079     break 2
7080   fi
7081 done
7082   done
7083 IFS=$as_save_IFS
7084
7085 fi
7086 fi
7087 NMEDIT=$ac_cv_prog_NMEDIT
7088 if test -n "$NMEDIT"; then
7089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7090 $as_echo "$NMEDIT" >&6; }
7091 else
7092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7094 fi
7095
7096
7097 fi
7098 if test -z "$ac_cv_prog_NMEDIT"; then
7099   ac_ct_NMEDIT=$NMEDIT
7100   # Extract the first word of "nmedit", so it can be a program name with args.
7101 set dummy nmedit; ac_word=$2
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103 $as_echo_n "checking for $ac_word... " >&6; }
7104 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7105   $as_echo_n "(cached) " >&6
7106 else
7107   if test -n "$ac_ct_NMEDIT"; then
7108   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113   IFS=$as_save_IFS
7114   test -z "$as_dir" && as_dir=.
7115     for ac_exec_ext in '' $ac_executable_extensions; do
7116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119     break 2
7120   fi
7121 done
7122   done
7123 IFS=$as_save_IFS
7124
7125 fi
7126 fi
7127 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7128 if test -n "$ac_ct_NMEDIT"; then
7129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7130 $as_echo "$ac_ct_NMEDIT" >&6; }
7131 else
7132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7134 fi
7135
7136   if test "x$ac_ct_NMEDIT" = x; then
7137     NMEDIT=":"
7138   else
7139     case $cross_compiling:$ac_tool_warned in
7140 yes:)
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7143 ac_tool_warned=yes ;;
7144 esac
7145     NMEDIT=$ac_ct_NMEDIT
7146   fi
7147 else
7148   NMEDIT="$ac_cv_prog_NMEDIT"
7149 fi
7150
7151     if test -n "$ac_tool_prefix"; then
7152   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7153 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if ${ac_cv_prog_LIPO+:} false; then :
7157   $as_echo_n "(cached) " >&6
7158 else
7159   if test -n "$LIPO"; then
7160   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165   IFS=$as_save_IFS
7166   test -z "$as_dir" && as_dir=.
7167     for ac_exec_ext in '' $ac_executable_extensions; do
7168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7169     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171     break 2
7172   fi
7173 done
7174   done
7175 IFS=$as_save_IFS
7176
7177 fi
7178 fi
7179 LIPO=$ac_cv_prog_LIPO
7180 if test -n "$LIPO"; then
7181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7182 $as_echo "$LIPO" >&6; }
7183 else
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7186 fi
7187
7188
7189 fi
7190 if test -z "$ac_cv_prog_LIPO"; then
7191   ac_ct_LIPO=$LIPO
7192   # Extract the first word of "lipo", so it can be a program name with args.
7193 set dummy lipo; ac_word=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 $as_echo_n "checking for $ac_word... " >&6; }
7196 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7197   $as_echo_n "(cached) " >&6
7198 else
7199   if test -n "$ac_ct_LIPO"; then
7200   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205   IFS=$as_save_IFS
7206   test -z "$as_dir" && as_dir=.
7207     for ac_exec_ext in '' $ac_executable_extensions; do
7208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209     ac_cv_prog_ac_ct_LIPO="lipo"
7210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211     break 2
7212   fi
7213 done
7214   done
7215 IFS=$as_save_IFS
7216
7217 fi
7218 fi
7219 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7220 if test -n "$ac_ct_LIPO"; then
7221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7222 $as_echo "$ac_ct_LIPO" >&6; }
7223 else
7224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7226 fi
7227
7228   if test "x$ac_ct_LIPO" = x; then
7229     LIPO=":"
7230   else
7231     case $cross_compiling:$ac_tool_warned in
7232 yes:)
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7235 ac_tool_warned=yes ;;
7236 esac
7237     LIPO=$ac_ct_LIPO
7238   fi
7239 else
7240   LIPO="$ac_cv_prog_LIPO"
7241 fi
7242
7243     if test -n "$ac_tool_prefix"; then
7244   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7245 set dummy ${ac_tool_prefix}otool; ac_word=$2
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247 $as_echo_n "checking for $ac_word... " >&6; }
7248 if ${ac_cv_prog_OTOOL+:} false; then :
7249   $as_echo_n "(cached) " >&6
7250 else
7251   if test -n "$OTOOL"; then
7252   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7253 else
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257   IFS=$as_save_IFS
7258   test -z "$as_dir" && as_dir=.
7259     for ac_exec_ext in '' $ac_executable_extensions; do
7260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263     break 2
7264   fi
7265 done
7266   done
7267 IFS=$as_save_IFS
7268
7269 fi
7270 fi
7271 OTOOL=$ac_cv_prog_OTOOL
7272 if test -n "$OTOOL"; then
7273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7274 $as_echo "$OTOOL" >&6; }
7275 else
7276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7278 fi
7279
7280
7281 fi
7282 if test -z "$ac_cv_prog_OTOOL"; then
7283   ac_ct_OTOOL=$OTOOL
7284   # Extract the first word of "otool", so it can be a program name with args.
7285 set dummy otool; ac_word=$2
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287 $as_echo_n "checking for $ac_word... " >&6; }
7288 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7289   $as_echo_n "(cached) " >&6
7290 else
7291   if test -n "$ac_ct_OTOOL"; then
7292   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7293 else
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297   IFS=$as_save_IFS
7298   test -z "$as_dir" && as_dir=.
7299     for ac_exec_ext in '' $ac_executable_extensions; do
7300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7301     ac_cv_prog_ac_ct_OTOOL="otool"
7302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303     break 2
7304   fi
7305 done
7306   done
7307 IFS=$as_save_IFS
7308
7309 fi
7310 fi
7311 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7312 if test -n "$ac_ct_OTOOL"; then
7313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7314 $as_echo "$ac_ct_OTOOL" >&6; }
7315 else
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317 $as_echo "no" >&6; }
7318 fi
7319
7320   if test "x$ac_ct_OTOOL" = x; then
7321     OTOOL=":"
7322   else
7323     case $cross_compiling:$ac_tool_warned in
7324 yes:)
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7327 ac_tool_warned=yes ;;
7328 esac
7329     OTOOL=$ac_ct_OTOOL
7330   fi
7331 else
7332   OTOOL="$ac_cv_prog_OTOOL"
7333 fi
7334
7335     if test -n "$ac_tool_prefix"; then
7336   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7337 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 $as_echo_n "checking for $ac_word... " >&6; }
7340 if ${ac_cv_prog_OTOOL64+:} false; then :
7341   $as_echo_n "(cached) " >&6
7342 else
7343   if test -n "$OTOOL64"; then
7344   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7345 else
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH
7348 do
7349   IFS=$as_save_IFS
7350   test -z "$as_dir" && as_dir=.
7351     for ac_exec_ext in '' $ac_executable_extensions; do
7352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7353     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355     break 2
7356   fi
7357 done
7358   done
7359 IFS=$as_save_IFS
7360
7361 fi
7362 fi
7363 OTOOL64=$ac_cv_prog_OTOOL64
7364 if test -n "$OTOOL64"; then
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7366 $as_echo "$OTOOL64" >&6; }
7367 else
7368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7370 fi
7371
7372
7373 fi
7374 if test -z "$ac_cv_prog_OTOOL64"; then
7375   ac_ct_OTOOL64=$OTOOL64
7376   # Extract the first word of "otool64", so it can be a program name with args.
7377 set dummy otool64; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7381   $as_echo_n "(cached) " >&6
7382 else
7383   if test -n "$ac_ct_OTOOL64"; then
7384   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389   IFS=$as_save_IFS
7390   test -z "$as_dir" && as_dir=.
7391     for ac_exec_ext in '' $ac_executable_extensions; do
7392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7393     ac_cv_prog_ac_ct_OTOOL64="otool64"
7394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395     break 2
7396   fi
7397 done
7398   done
7399 IFS=$as_save_IFS
7400
7401 fi
7402 fi
7403 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7404 if test -n "$ac_ct_OTOOL64"; then
7405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7406 $as_echo "$ac_ct_OTOOL64" >&6; }
7407 else
7408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7410 fi
7411
7412   if test "x$ac_ct_OTOOL64" = x; then
7413     OTOOL64=":"
7414   else
7415     case $cross_compiling:$ac_tool_warned in
7416 yes:)
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7419 ac_tool_warned=yes ;;
7420 esac
7421     OTOOL64=$ac_ct_OTOOL64
7422   fi
7423 else
7424   OTOOL64="$ac_cv_prog_OTOOL64"
7425 fi
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7454 $as_echo_n "checking for -single_module linker flag... " >&6; }
7455 if ${lt_cv_apple_cc_single_mod+:} false; then :
7456   $as_echo_n "(cached) " >&6
7457 else
7458   lt_cv_apple_cc_single_mod=no
7459       if test -z "$LT_MULTI_MODULE"; then
7460         # By default we will add the -single_module flag. You can override
7461         # by either setting the environment variable LT_MULTI_MODULE
7462         # non-empty at configure time, or by adding -multi_module to the
7463         # link flags.
7464         rm -rf libconftest.dylib*
7465         echo "int foo(void){return 1;}" > conftest.c
7466         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7467 -dynamiclib -Wl,-single_module conftest.c" >&5
7468         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7469           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7470         _lt_result=$?
7471         # If there is a non-empty error log, and "single_module"
7472         # appears in it, assume the flag caused a linker warning
7473         if test -s conftest.err && $GREP single_module conftest.err; then
7474           cat conftest.err >&5
7475         # Otherwise, if the output was created with a 0 exit code from
7476         # the compiler, it worked.
7477         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7478           lt_cv_apple_cc_single_mod=yes
7479         else
7480           cat conftest.err >&5
7481         fi
7482         rm -rf libconftest.dylib*
7483         rm -f conftest.*
7484       fi
7485 fi
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7487 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7488
7489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7490 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7491 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7492   $as_echo_n "(cached) " >&6
7493 else
7494   lt_cv_ld_exported_symbols_list=no
7495       save_LDFLAGS=$LDFLAGS
7496       echo "_main" > conftest.sym
7497       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7498       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h.  */
7500
7501 int
7502 main ()
7503 {
7504
7505   ;
7506   return 0;
7507 }
7508 _ACEOF
7509 if ac_fn_c_try_link "$LINENO"; then :
7510   lt_cv_ld_exported_symbols_list=yes
7511 else
7512   lt_cv_ld_exported_symbols_list=no
7513 fi
7514 rm -f core conftest.err conftest.$ac_objext \
7515     conftest$ac_exeext conftest.$ac_ext
7516         LDFLAGS=$save_LDFLAGS
7517
7518 fi
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7520 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7521
7522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7523 $as_echo_n "checking for -force_load linker flag... " >&6; }
7524 if ${lt_cv_ld_force_load+:} false; then :
7525   $as_echo_n "(cached) " >&6
7526 else
7527   lt_cv_ld_force_load=no
7528       cat > conftest.c << _LT_EOF
7529 int forced_loaded() { return 2;}
7530 _LT_EOF
7531       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7532       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7533       echo "$AR cru libconftest.a conftest.o" >&5
7534       $AR cru libconftest.a conftest.o 2>&5
7535       echo "$RANLIB libconftest.a" >&5
7536       $RANLIB libconftest.a 2>&5
7537       cat > conftest.c << _LT_EOF
7538 int main() { return 0;}
7539 _LT_EOF
7540       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7541       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7542       _lt_result=$?
7543       if test -s conftest.err && $GREP force_load conftest.err; then
7544         cat conftest.err >&5
7545       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7546         lt_cv_ld_force_load=yes
7547       else
7548         cat conftest.err >&5
7549       fi
7550         rm -f conftest.err libconftest.a conftest conftest.c
7551         rm -rf conftest.dSYM
7552
7553 fi
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7555 $as_echo "$lt_cv_ld_force_load" >&6; }
7556     case $host_os in
7557     rhapsody* | darwin1.[012])
7558       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7559     darwin1.*)
7560       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7561     darwin*) # darwin 5.x on
7562       # if running on 10.5 or later, the deployment target defaults
7563       # to the OS version, if on x86, and 10.4, the deployment
7564       # target defaults to 10.4. Don't you love it?
7565       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7566         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7567           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7568         10.[012][,.]*)
7569           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7570         10.*)
7571           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7572       esac
7573     ;;
7574   esac
7575     if test yes = "$lt_cv_apple_cc_single_mod"; then
7576       _lt_dar_single_mod='$single_module'
7577     fi
7578     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7579       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7580     else
7581       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7582     fi
7583     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7584       _lt_dsymutil='~$DSYMUTIL $lib || :'
7585     else
7586       _lt_dsymutil=
7587     fi
7588     ;;
7589   esac
7590
7591 # func_munge_path_list VARIABLE PATH
7592 # -----------------------------------
7593 # VARIABLE is name of variable containing _space_ separated list of
7594 # directories to be munged by the contents of PATH, which is string
7595 # having a format:
7596 # "DIR[:DIR]:"
7597 #       string "DIR[ DIR]" will be prepended to VARIABLE
7598 # ":DIR[:DIR]"
7599 #       string "DIR[ DIR]" will be appended to VARIABLE
7600 # "DIRP[:DIRP]::[DIRA:]DIRA"
7601 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7602 #       "DIRA[ DIRA]" will be appended to VARIABLE
7603 # "DIR[:DIR]"
7604 #       VARIABLE will be replaced by "DIR[ DIR]"
7605 func_munge_path_list ()
7606 {
7607     case x$2 in
7608     x)
7609         ;;
7610     *:)
7611         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7612         ;;
7613     x:*)
7614         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7615         ;;
7616     *::*)
7617         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7618         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7619         ;;
7620     *)
7621         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7622         ;;
7623     esac
7624 }
7625
7626 ac_ext=c
7627 ac_cpp='$CPP $CPPFLAGS'
7628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7632 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7633 # On Suns, sometimes $CPP names a directory.
7634 if test -n "$CPP" && test -d "$CPP"; then
7635   CPP=
7636 fi
7637 if test -z "$CPP"; then
7638   if ${ac_cv_prog_CPP+:} false; then :
7639   $as_echo_n "(cached) " >&6
7640 else
7641       # Double quotes because CPP needs to be expanded
7642     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7643     do
7644       ac_preproc_ok=false
7645 for ac_c_preproc_warn_flag in '' yes
7646 do
7647   # Use a header file that comes with gcc, so configuring glibc
7648   # with a fresh cross-compiler works.
7649   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7650   # <limits.h> exists even on freestanding compilers.
7651   # On the NeXT, cc -E runs the code through the compiler's parser,
7652   # not just through cpp. "Syntax error" is here to catch this case.
7653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h.  */
7655 #ifdef __STDC__
7656 # include <limits.h>
7657 #else
7658 # include <assert.h>
7659 #endif
7660                      Syntax error
7661 _ACEOF
7662 if ac_fn_c_try_cpp "$LINENO"; then :
7663
7664 else
7665   # Broken: fails on valid input.
7666 continue
7667 fi
7668 rm -f conftest.err conftest.i conftest.$ac_ext
7669
7670   # OK, works on sane cases.  Now check whether nonexistent headers
7671   # can be detected and how.
7672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h.  */
7674 #include <ac_nonexistent.h>
7675 _ACEOF
7676 if ac_fn_c_try_cpp "$LINENO"; then :
7677   # Broken: success on invalid input.
7678 continue
7679 else
7680   # Passes both tests.
7681 ac_preproc_ok=:
7682 break
7683 fi
7684 rm -f conftest.err conftest.i conftest.$ac_ext
7685
7686 done
7687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7688 rm -f conftest.i conftest.err conftest.$ac_ext
7689 if $ac_preproc_ok; then :
7690   break
7691 fi
7692
7693     done
7694     ac_cv_prog_CPP=$CPP
7695
7696 fi
7697   CPP=$ac_cv_prog_CPP
7698 else
7699   ac_cv_prog_CPP=$CPP
7700 fi
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7702 $as_echo "$CPP" >&6; }
7703 ac_preproc_ok=false
7704 for ac_c_preproc_warn_flag in '' yes
7705 do
7706   # Use a header file that comes with gcc, so configuring glibc
7707   # with a fresh cross-compiler works.
7708   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7709   # <limits.h> exists even on freestanding compilers.
7710   # On the NeXT, cc -E runs the code through the compiler's parser,
7711   # not just through cpp. "Syntax error" is here to catch this case.
7712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h.  */
7714 #ifdef __STDC__
7715 # include <limits.h>
7716 #else
7717 # include <assert.h>
7718 #endif
7719                      Syntax error
7720 _ACEOF
7721 if ac_fn_c_try_cpp "$LINENO"; then :
7722
7723 else
7724   # Broken: fails on valid input.
7725 continue
7726 fi
7727 rm -f conftest.err conftest.i conftest.$ac_ext
7728
7729   # OK, works on sane cases.  Now check whether nonexistent headers
7730   # can be detected and how.
7731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h.  */
7733 #include <ac_nonexistent.h>
7734 _ACEOF
7735 if ac_fn_c_try_cpp "$LINENO"; then :
7736   # Broken: success on invalid input.
7737 continue
7738 else
7739   # Passes both tests.
7740 ac_preproc_ok=:
7741 break
7742 fi
7743 rm -f conftest.err conftest.i conftest.$ac_ext
7744
7745 done
7746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7747 rm -f conftest.i conftest.err conftest.$ac_ext
7748 if $ac_preproc_ok; then :
7749
7750 else
7751   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7753 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7754 See \`config.log' for more details" "$LINENO" 5; }
7755 fi
7756
7757 ac_ext=c
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762
7763
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7765 $as_echo_n "checking for ANSI C header files... " >&6; }
7766 if ${ac_cv_header_stdc+:} false; then :
7767   $as_echo_n "(cached) " >&6
7768 else
7769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h.  */
7771 #include <stdlib.h>
7772 #include <stdarg.h>
7773 #include <string.h>
7774 #include <float.h>
7775
7776 int
7777 main ()
7778 {
7779
7780   ;
7781   return 0;
7782 }
7783 _ACEOF
7784 if ac_fn_c_try_compile "$LINENO"; then :
7785   ac_cv_header_stdc=yes
7786 else
7787   ac_cv_header_stdc=no
7788 fi
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790
7791 if test $ac_cv_header_stdc = yes; then
7792   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h.  */
7795 #include <string.h>
7796
7797 _ACEOF
7798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7799   $EGREP "memchr" >/dev/null 2>&1; then :
7800
7801 else
7802   ac_cv_header_stdc=no
7803 fi
7804 rm -f conftest*
7805
7806 fi
7807
7808 if test $ac_cv_header_stdc = yes; then
7809   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h.  */
7812 #include <stdlib.h>
7813
7814 _ACEOF
7815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7816   $EGREP "free" >/dev/null 2>&1; then :
7817
7818 else
7819   ac_cv_header_stdc=no
7820 fi
7821 rm -f conftest*
7822
7823 fi
7824
7825 if test $ac_cv_header_stdc = yes; then
7826   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7827   if test "$cross_compiling" = yes; then :
7828   :
7829 else
7830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h.  */
7832 #include <ctype.h>
7833 #include <stdlib.h>
7834 #if ((' ' & 0x0FF) == 0x020)
7835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7837 #else
7838 # define ISLOWER(c) \
7839                    (('a' <= (c) && (c) <= 'i') \
7840                      || ('j' <= (c) && (c) <= 'r') \
7841                      || ('s' <= (c) && (c) <= 'z'))
7842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7843 #endif
7844
7845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7846 int
7847 main ()
7848 {
7849   int i;
7850   for (i = 0; i < 256; i++)
7851     if (XOR (islower (i), ISLOWER (i))
7852         || toupper (i) != TOUPPER (i))
7853       return 2;
7854   return 0;
7855 }
7856 _ACEOF
7857 if ac_fn_c_try_run "$LINENO"; then :
7858
7859 else
7860   ac_cv_header_stdc=no
7861 fi
7862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7863   conftest.$ac_objext conftest.beam conftest.$ac_ext
7864 fi
7865
7866 fi
7867 fi
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7869 $as_echo "$ac_cv_header_stdc" >&6; }
7870 if test $ac_cv_header_stdc = yes; then
7871
7872 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7873
7874 fi
7875
7876 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7877 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7878                   inttypes.h stdint.h unistd.h
7879 do :
7880   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7881 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7882 "
7883 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7884   cat >>confdefs.h <<_ACEOF
7885 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7886 _ACEOF
7887
7888 fi
7889
7890 done
7891
7892
7893 for ac_header in dlfcn.h
7894 do :
7895   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7896 "
7897 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7898   cat >>confdefs.h <<_ACEOF
7899 #define HAVE_DLFCN_H 1
7900 _ACEOF
7901
7902 fi
7903
7904 done
7905
7906
7907
7908
7909
7910 # Set options
7911 enable_win32_dll=yes
7912
7913 case $host in
7914 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7915   if test -n "$ac_tool_prefix"; then
7916   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7917 set dummy ${ac_tool_prefix}as; ac_word=$2
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919 $as_echo_n "checking for $ac_word... " >&6; }
7920 if ${ac_cv_prog_AS+:} false; then :
7921   $as_echo_n "(cached) " >&6
7922 else
7923   if test -n "$AS"; then
7924   ac_cv_prog_AS="$AS" # Let the user override the test.
7925 else
7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927 for as_dir in $PATH
7928 do
7929   IFS=$as_save_IFS
7930   test -z "$as_dir" && as_dir=.
7931     for ac_exec_ext in '' $ac_executable_extensions; do
7932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7933     ac_cv_prog_AS="${ac_tool_prefix}as"
7934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935     break 2
7936   fi
7937 done
7938   done
7939 IFS=$as_save_IFS
7940
7941 fi
7942 fi
7943 AS=$ac_cv_prog_AS
7944 if test -n "$AS"; then
7945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7946 $as_echo "$AS" >&6; }
7947 else
7948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7950 fi
7951
7952
7953 fi
7954 if test -z "$ac_cv_prog_AS"; then
7955   ac_ct_AS=$AS
7956   # Extract the first word of "as", so it can be a program name with args.
7957 set dummy as; ac_word=$2
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7961   $as_echo_n "(cached) " >&6
7962 else
7963   if test -n "$ac_ct_AS"; then
7964   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7965 else
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $PATH
7968 do
7969   IFS=$as_save_IFS
7970   test -z "$as_dir" && as_dir=.
7971     for ac_exec_ext in '' $ac_executable_extensions; do
7972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7973     ac_cv_prog_ac_ct_AS="as"
7974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975     break 2
7976   fi
7977 done
7978   done
7979 IFS=$as_save_IFS
7980
7981 fi
7982 fi
7983 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7984 if test -n "$ac_ct_AS"; then
7985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7986 $as_echo "$ac_ct_AS" >&6; }
7987 else
7988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7990 fi
7991
7992   if test "x$ac_ct_AS" = x; then
7993     AS="false"
7994   else
7995     case $cross_compiling:$ac_tool_warned in
7996 yes:)
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7999 ac_tool_warned=yes ;;
8000 esac
8001     AS=$ac_ct_AS
8002   fi
8003 else
8004   AS="$ac_cv_prog_AS"
8005 fi
8006
8007   if test -n "$ac_tool_prefix"; then
8008   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8009 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if ${ac_cv_prog_DLLTOOL+:} false; then :
8013   $as_echo_n "(cached) " >&6
8014 else
8015   if test -n "$DLLTOOL"; then
8016   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8017 else
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8020 do
8021   IFS=$as_save_IFS
8022   test -z "$as_dir" && as_dir=.
8023     for ac_exec_ext in '' $ac_executable_extensions; do
8024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027     break 2
8028   fi
8029 done
8030   done
8031 IFS=$as_save_IFS
8032
8033 fi
8034 fi
8035 DLLTOOL=$ac_cv_prog_DLLTOOL
8036 if test -n "$DLLTOOL"; then
8037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8038 $as_echo "$DLLTOOL" >&6; }
8039 else
8040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8042 fi
8043
8044
8045 fi
8046 if test -z "$ac_cv_prog_DLLTOOL"; then
8047   ac_ct_DLLTOOL=$DLLTOOL
8048   # Extract the first word of "dlltool", so it can be a program name with args.
8049 set dummy dlltool; ac_word=$2
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 $as_echo_n "checking for $ac_word... " >&6; }
8052 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8053   $as_echo_n "(cached) " >&6
8054 else
8055   if test -n "$ac_ct_DLLTOOL"; then
8056   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8057 else
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 for as_dir in $PATH
8060 do
8061   IFS=$as_save_IFS
8062   test -z "$as_dir" && as_dir=.
8063     for ac_exec_ext in '' $ac_executable_extensions; do
8064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8065     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067     break 2
8068   fi
8069 done
8070   done
8071 IFS=$as_save_IFS
8072
8073 fi
8074 fi
8075 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8076 if test -n "$ac_ct_DLLTOOL"; then
8077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8078 $as_echo "$ac_ct_DLLTOOL" >&6; }
8079 else
8080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8082 fi
8083
8084   if test "x$ac_ct_DLLTOOL" = x; then
8085     DLLTOOL="false"
8086   else
8087     case $cross_compiling:$ac_tool_warned in
8088 yes:)
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8091 ac_tool_warned=yes ;;
8092 esac
8093     DLLTOOL=$ac_ct_DLLTOOL
8094   fi
8095 else
8096   DLLTOOL="$ac_cv_prog_DLLTOOL"
8097 fi
8098
8099   if test -n "$ac_tool_prefix"; then
8100   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8101 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 $as_echo_n "checking for $ac_word... " >&6; }
8104 if ${ac_cv_prog_OBJDUMP+:} false; then :
8105   $as_echo_n "(cached) " >&6
8106 else
8107   if test -n "$OBJDUMP"; then
8108   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8109 else
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8112 do
8113   IFS=$as_save_IFS
8114   test -z "$as_dir" && as_dir=.
8115     for ac_exec_ext in '' $ac_executable_extensions; do
8116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8117     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8119     break 2
8120   fi
8121 done
8122   done
8123 IFS=$as_save_IFS
8124
8125 fi
8126 fi
8127 OBJDUMP=$ac_cv_prog_OBJDUMP
8128 if test -n "$OBJDUMP"; then
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8130 $as_echo "$OBJDUMP" >&6; }
8131 else
8132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8134 fi
8135
8136
8137 fi
8138 if test -z "$ac_cv_prog_OBJDUMP"; then
8139   ac_ct_OBJDUMP=$OBJDUMP
8140   # Extract the first word of "objdump", so it can be a program name with args.
8141 set dummy objdump; ac_word=$2
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143 $as_echo_n "checking for $ac_word... " >&6; }
8144 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8145   $as_echo_n "(cached) " >&6
8146 else
8147   if test -n "$ac_ct_OBJDUMP"; then
8148   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8149 else
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8152 do
8153   IFS=$as_save_IFS
8154   test -z "$as_dir" && as_dir=.
8155     for ac_exec_ext in '' $ac_executable_extensions; do
8156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8157     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8159     break 2
8160   fi
8161 done
8162   done
8163 IFS=$as_save_IFS
8164
8165 fi
8166 fi
8167 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8168 if test -n "$ac_ct_OBJDUMP"; then
8169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8170 $as_echo "$ac_ct_OBJDUMP" >&6; }
8171 else
8172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8174 fi
8175
8176   if test "x$ac_ct_OBJDUMP" = x; then
8177     OBJDUMP="false"
8178   else
8179     case $cross_compiling:$ac_tool_warned in
8180 yes:)
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8183 ac_tool_warned=yes ;;
8184 esac
8185     OBJDUMP=$ac_ct_OBJDUMP
8186   fi
8187 else
8188   OBJDUMP="$ac_cv_prog_OBJDUMP"
8189 fi
8190
8191   ;;
8192 esac
8193
8194 test -z "$AS" && AS=as
8195
8196
8197
8198
8199
8200 test -z "$DLLTOOL" && DLLTOOL=dlltool
8201
8202
8203
8204
8205
8206 test -z "$OBJDUMP" && OBJDUMP=objdump
8207
8208
8209
8210
8211
8212
8213
8214         enable_dlopen=no
8215
8216
8217
8218             # Check whether --enable-shared was given.
8219 if test "${enable_shared+set}" = set; then :
8220   enableval=$enable_shared; p=${PACKAGE-default}
8221     case $enableval in
8222     yes) enable_shared=yes ;;
8223     no) enable_shared=no ;;
8224     *)
8225       enable_shared=no
8226       # Look at the argument we got.  We use all the common list separators.
8227       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8228       for pkg in $enableval; do
8229         IFS=$lt_save_ifs
8230         if test "X$pkg" = "X$p"; then
8231           enable_shared=yes
8232         fi
8233       done
8234       IFS=$lt_save_ifs
8235       ;;
8236     esac
8237 else
8238   enable_shared=yes
8239 fi
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249   # Check whether --enable-static was given.
8250 if test "${enable_static+set}" = set; then :
8251   enableval=$enable_static; p=${PACKAGE-default}
8252     case $enableval in
8253     yes) enable_static=yes ;;
8254     no) enable_static=no ;;
8255     *)
8256      enable_static=no
8257       # Look at the argument we got.  We use all the common list separators.
8258       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8259       for pkg in $enableval; do
8260         IFS=$lt_save_ifs
8261         if test "X$pkg" = "X$p"; then
8262           enable_static=yes
8263         fi
8264       done
8265       IFS=$lt_save_ifs
8266       ;;
8267     esac
8268 else
8269   enable_static=yes
8270 fi
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281 # Check whether --with-pic was given.
8282 if test "${with_pic+set}" = set; then :
8283   withval=$with_pic; lt_p=${PACKAGE-default}
8284     case $withval in
8285     yes|no) pic_mode=$withval ;;
8286     *)
8287       pic_mode=default
8288       # Look at the argument we got.  We use all the common list separators.
8289       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8290       for lt_pkg in $withval; do
8291         IFS=$lt_save_ifs
8292         if test "X$lt_pkg" = "X$lt_p"; then
8293           pic_mode=yes
8294         fi
8295       done
8296       IFS=$lt_save_ifs
8297       ;;
8298     esac
8299 else
8300   pic_mode=default
8301 fi
8302
8303
8304
8305
8306
8307
8308
8309
8310   # Check whether --enable-fast-install was given.
8311 if test "${enable_fast_install+set}" = set; then :
8312   enableval=$enable_fast_install; p=${PACKAGE-default}
8313     case $enableval in
8314     yes) enable_fast_install=yes ;;
8315     no) enable_fast_install=no ;;
8316     *)
8317       enable_fast_install=no
8318       # Look at the argument we got.  We use all the common list separators.
8319       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8320       for pkg in $enableval; do
8321         IFS=$lt_save_ifs
8322         if test "X$pkg" = "X$p"; then
8323           enable_fast_install=yes
8324         fi
8325       done
8326       IFS=$lt_save_ifs
8327       ;;
8328     esac
8329 else
8330   enable_fast_install=yes
8331 fi
8332
8333
8334
8335
8336
8337
8338
8339
8340   shared_archive_member_spec=
8341 case $host,$enable_shared in
8342 power*-*-aix[5-9]*,yes)
8343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8344 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8345
8346 # Check whether --with-aix-soname was given.
8347 if test "${with_aix_soname+set}" = set; then :
8348   withval=$with_aix_soname; case $withval in
8349     aix|svr4|both)
8350       ;;
8351     *)
8352       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8353       ;;
8354     esac
8355     lt_cv_with_aix_soname=$with_aix_soname
8356 else
8357   if ${lt_cv_with_aix_soname+:} false; then :
8358   $as_echo_n "(cached) " >&6
8359 else
8360   lt_cv_with_aix_soname=aix
8361 fi
8362
8363     with_aix_soname=$lt_cv_with_aix_soname
8364 fi
8365
8366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8367 $as_echo "$with_aix_soname" >&6; }
8368   if test aix != "$with_aix_soname"; then
8369     # For the AIX way of multilib, we name the shared archive member
8370     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8371     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8372     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8373     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8374     if test 64 = "${OBJECT_MODE-32}"; then
8375       shared_archive_member_spec=shr_64
8376     else
8377       shared_archive_member_spec=shr
8378     fi
8379   fi
8380   ;;
8381 *)
8382   with_aix_soname=aix
8383   ;;
8384 esac
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395 # This can be used to rebuild libtool when needed
8396 LIBTOOL_DEPS=$ltmain
8397
8398 # Always use our own libtool.
8399 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430 test -z "$LN_S" && LN_S="ln -s"
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445 if test -n "${ZSH_VERSION+set}"; then
8446    setopt NO_GLOB_SUBST
8447 fi
8448
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8450 $as_echo_n "checking for objdir... " >&6; }
8451 if ${lt_cv_objdir+:} false; then :
8452   $as_echo_n "(cached) " >&6
8453 else
8454   rm -f .libs 2>/dev/null
8455 mkdir .libs 2>/dev/null
8456 if test -d .libs; then
8457   lt_cv_objdir=.libs
8458 else
8459   # MS-DOS does not allow filenames that begin with a dot.
8460   lt_cv_objdir=_libs
8461 fi
8462 rmdir .libs 2>/dev/null
8463 fi
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8465 $as_echo "$lt_cv_objdir" >&6; }
8466 objdir=$lt_cv_objdir
8467
8468
8469
8470
8471
8472 cat >>confdefs.h <<_ACEOF
8473 #define LT_OBJDIR "$lt_cv_objdir/"
8474 _ACEOF
8475
8476
8477
8478
8479 case $host_os in
8480 aix3*)
8481   # AIX sometimes has problems with the GCC collect2 program.  For some
8482   # reason, if we set the COLLECT_NAMES environment variable, the problems
8483   # vanish in a puff of smoke.
8484   if test set != "${COLLECT_NAMES+set}"; then
8485     COLLECT_NAMES=
8486     export COLLECT_NAMES
8487   fi
8488   ;;
8489 esac
8490
8491 # Global variables:
8492 ofile=libtool
8493 can_build_shared=yes
8494
8495 # All known linkers require a '.a' archive for static linking (except MSVC,
8496 # which needs '.lib').
8497 libext=a
8498
8499 with_gnu_ld=$lt_cv_prog_gnu_ld
8500
8501 old_CC=$CC
8502 old_CFLAGS=$CFLAGS
8503
8504 # Set sane defaults for various variables
8505 test -z "$CC" && CC=cc
8506 test -z "$LTCC" && LTCC=$CC
8507 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8508 test -z "$LD" && LD=ld
8509 test -z "$ac_objext" && ac_objext=o
8510
8511 func_cc_basename $compiler
8512 cc_basename=$func_cc_basename_result
8513
8514
8515 # Only perform the check for file, if the check method requires it
8516 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8517 case $deplibs_check_method in
8518 file_magic*)
8519   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8521 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8522 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8523   $as_echo_n "(cached) " >&6
8524 else
8525   case $MAGIC_CMD in
8526 [\\/*] |  ?:[\\/]*)
8527   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8528   ;;
8529 *)
8530   lt_save_MAGIC_CMD=$MAGIC_CMD
8531   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8532   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8533   for ac_dir in $ac_dummy; do
8534     IFS=$lt_save_ifs
8535     test -z "$ac_dir" && ac_dir=.
8536     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8537       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8538       if test -n "$file_magic_test_file"; then
8539         case $deplibs_check_method in
8540         "file_magic "*)
8541           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8542           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8543           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8544             $EGREP "$file_magic_regex" > /dev/null; then
8545             :
8546           else
8547             cat <<_LT_EOF 1>&2
8548
8549 *** Warning: the command libtool uses to detect shared libraries,
8550 *** $file_magic_cmd, produces output that libtool cannot recognize.
8551 *** The result is that libtool may fail to recognize shared libraries
8552 *** as such.  This will affect the creation of libtool libraries that
8553 *** depend on shared libraries, but programs linked with such libtool
8554 *** libraries will work regardless of this problem.  Nevertheless, you
8555 *** may want to report the problem to your system manager and/or to
8556 *** bug-libtool@gnu.org
8557
8558 _LT_EOF
8559           fi ;;
8560         esac
8561       fi
8562       break
8563     fi
8564   done
8565   IFS=$lt_save_ifs
8566   MAGIC_CMD=$lt_save_MAGIC_CMD
8567   ;;
8568 esac
8569 fi
8570
8571 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8572 if test -n "$MAGIC_CMD"; then
8573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8574 $as_echo "$MAGIC_CMD" >&6; }
8575 else
8576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 $as_echo "no" >&6; }
8578 fi
8579
8580
8581
8582
8583
8584 if test -z "$lt_cv_path_MAGIC_CMD"; then
8585   if test -n "$ac_tool_prefix"; then
8586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8587 $as_echo_n "checking for file... " >&6; }
8588 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8589   $as_echo_n "(cached) " >&6
8590 else
8591   case $MAGIC_CMD in
8592 [\\/*] |  ?:[\\/]*)
8593   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8594   ;;
8595 *)
8596   lt_save_MAGIC_CMD=$MAGIC_CMD
8597   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8598   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8599   for ac_dir in $ac_dummy; do
8600     IFS=$lt_save_ifs
8601     test -z "$ac_dir" && ac_dir=.
8602     if test -f "$ac_dir/file"; then
8603       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8604       if test -n "$file_magic_test_file"; then
8605         case $deplibs_check_method in
8606         "file_magic "*)
8607           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8608           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8609           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8610             $EGREP "$file_magic_regex" > /dev/null; then
8611             :
8612           else
8613             cat <<_LT_EOF 1>&2
8614
8615 *** Warning: the command libtool uses to detect shared libraries,
8616 *** $file_magic_cmd, produces output that libtool cannot recognize.
8617 *** The result is that libtool may fail to recognize shared libraries
8618 *** as such.  This will affect the creation of libtool libraries that
8619 *** depend on shared libraries, but programs linked with such libtool
8620 *** libraries will work regardless of this problem.  Nevertheless, you
8621 *** may want to report the problem to your system manager and/or to
8622 *** bug-libtool@gnu.org
8623
8624 _LT_EOF
8625           fi ;;
8626         esac
8627       fi
8628       break
8629     fi
8630   done
8631   IFS=$lt_save_ifs
8632   MAGIC_CMD=$lt_save_MAGIC_CMD
8633   ;;
8634 esac
8635 fi
8636
8637 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8638 if test -n "$MAGIC_CMD"; then
8639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8640 $as_echo "$MAGIC_CMD" >&6; }
8641 else
8642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8644 fi
8645
8646
8647   else
8648     MAGIC_CMD=:
8649   fi
8650 fi
8651
8652   fi
8653   ;;
8654 esac
8655
8656 # Use C for the default configuration in the libtool script
8657
8658 lt_save_CC=$CC
8659 ac_ext=c
8660 ac_cpp='$CPP $CPPFLAGS'
8661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8664
8665
8666 # Source file extension for C test sources.
8667 ac_ext=c
8668
8669 # Object file extension for compiled C test sources.
8670 objext=o
8671 objext=$objext
8672
8673 # Code to be used in simple compile tests
8674 lt_simple_compile_test_code="int some_variable = 0;"
8675
8676 # Code to be used in simple link tests
8677 lt_simple_link_test_code='int main(){return(0);}'
8678
8679
8680
8681
8682
8683
8684
8685 # If no C compiler was specified, use CC.
8686 LTCC=${LTCC-"$CC"}
8687
8688 # If no C compiler flags were specified, use CFLAGS.
8689 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8690
8691 # Allow CC to be a program name with arguments.
8692 compiler=$CC
8693
8694 # Save the default compiler, since it gets overwritten when the other
8695 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8696 compiler_DEFAULT=$CC
8697
8698 # save warnings/boilerplate of simple test code
8699 ac_outfile=conftest.$ac_objext
8700 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8701 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8702 _lt_compiler_boilerplate=`cat conftest.err`
8703 $RM conftest*
8704
8705 ac_outfile=conftest.$ac_objext
8706 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8707 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8708 _lt_linker_boilerplate=`cat conftest.err`
8709 $RM -r conftest*
8710
8711
8712 ## CAVEAT EMPTOR:
8713 ## There is no encapsulation within the following macros, do not change
8714 ## the running order or otherwise move them around unless you know exactly
8715 ## what you are doing...
8716 if test -n "$compiler"; then
8717
8718 lt_prog_compiler_no_builtin_flag=
8719
8720 if test yes = "$GCC"; then
8721   case $cc_basename in
8722   nvcc*)
8723     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8724   *)
8725     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8726   esac
8727
8728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8729 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8730 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8731   $as_echo_n "(cached) " >&6
8732 else
8733   lt_cv_prog_compiler_rtti_exceptions=no
8734    ac_outfile=conftest.$ac_objext
8735    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8736    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8737    # Insert the option either (1) after the last *FLAGS variable, or
8738    # (2) before a word containing "conftest.", or (3) at the end.
8739    # Note that $ac_compile itself does not contain backslashes and begins
8740    # with a dollar sign (not a hyphen), so the echo should work correctly.
8741    # The option is referenced via a variable to avoid confusing sed.
8742    lt_compile=`echo "$ac_compile" | $SED \
8743    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8744    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8745    -e 's:$: $lt_compiler_flag:'`
8746    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8747    (eval "$lt_compile" 2>conftest.err)
8748    ac_status=$?
8749    cat conftest.err >&5
8750    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751    if (exit $ac_status) && test -s "$ac_outfile"; then
8752      # The compiler can only warn and ignore the option if not recognized
8753      # So say no if there are warnings other than the usual output.
8754      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8755      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8756      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8757        lt_cv_prog_compiler_rtti_exceptions=yes
8758      fi
8759    fi
8760    $RM conftest*
8761
8762 fi
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8764 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8765
8766 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8767     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8768 else
8769     :
8770 fi
8771
8772 fi
8773
8774
8775
8776
8777
8778
8779   lt_prog_compiler_wl=
8780 lt_prog_compiler_pic=
8781 lt_prog_compiler_static=
8782
8783
8784   if test yes = "$GCC"; then
8785     lt_prog_compiler_wl='-Wl,'
8786     lt_prog_compiler_static='-static'
8787
8788     case $host_os in
8789       aix*)
8790       # All AIX code is PIC.
8791       if test ia64 = "$host_cpu"; then
8792         # AIX 5 now supports IA64 processor
8793         lt_prog_compiler_static='-Bstatic'
8794       fi
8795       lt_prog_compiler_pic='-fPIC'
8796       ;;
8797
8798     amigaos*)
8799       case $host_cpu in
8800       powerpc)
8801             # see comment about AmigaOS4 .so support
8802             lt_prog_compiler_pic='-fPIC'
8803         ;;
8804       m68k)
8805             # FIXME: we need at least 68020 code to build shared libraries, but
8806             # adding the '-m68020' flag to GCC prevents building anything better,
8807             # like '-m68040'.
8808             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8809         ;;
8810       esac
8811       ;;
8812
8813     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8814       # PIC is the default for these OSes.
8815       ;;
8816
8817     mingw* | cygwin* | pw32* | os2* | cegcc*)
8818       # This hack is so that the source file can tell whether it is being
8819       # built for inclusion in a dll (and should export symbols for example).
8820       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8821       # (--disable-auto-import) libraries
8822       lt_prog_compiler_pic='-DDLL_EXPORT'
8823       case $host_os in
8824       os2*)
8825         lt_prog_compiler_static='$wl-static'
8826         ;;
8827       esac
8828       ;;
8829
8830     darwin* | rhapsody*)
8831       # PIC is the default on this platform
8832       # Common symbols not allowed in MH_DYLIB files
8833       lt_prog_compiler_pic='-fno-common'
8834       ;;
8835
8836     haiku*)
8837       # PIC is the default for Haiku.
8838       # The "-static" flag exists, but is broken.
8839       lt_prog_compiler_static=
8840       ;;
8841
8842     hpux*)
8843       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8844       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8845       # sets the default TLS model and affects inlining.
8846       case $host_cpu in
8847       hppa*64*)
8848         # +Z the default
8849         ;;
8850       *)
8851         lt_prog_compiler_pic='-fPIC'
8852         ;;
8853       esac
8854       ;;
8855
8856     interix[3-9]*)
8857       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8858       # Instead, we relocate shared libraries at runtime.
8859       ;;
8860
8861     msdosdjgpp*)
8862       # Just because we use GCC doesn't mean we suddenly get shared libraries
8863       # on systems that don't support them.
8864       lt_prog_compiler_can_build_shared=no
8865       enable_shared=no
8866       ;;
8867
8868     *nto* | *qnx*)
8869       # QNX uses GNU C++, but need to define -shared option too, otherwise
8870       # it will coredump.
8871       lt_prog_compiler_pic='-fPIC -shared'
8872       ;;
8873
8874     sysv4*MP*)
8875       if test -d /usr/nec; then
8876         lt_prog_compiler_pic=-Kconform_pic
8877       fi
8878       ;;
8879
8880     *)
8881       lt_prog_compiler_pic='-fPIC'
8882       ;;
8883     esac
8884
8885     case $cc_basename in
8886     nvcc*) # Cuda Compiler Driver 2.2
8887       lt_prog_compiler_wl='-Xlinker '
8888       if test -n "$lt_prog_compiler_pic"; then
8889         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8890       fi
8891       ;;
8892     esac
8893   else
8894     # PORTME Check for flag to pass linker flags through the system compiler.
8895     case $host_os in
8896     aix*)
8897       lt_prog_compiler_wl='-Wl,'
8898       if test ia64 = "$host_cpu"; then
8899         # AIX 5 now supports IA64 processor
8900         lt_prog_compiler_static='-Bstatic'
8901       else
8902         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8903       fi
8904       ;;
8905
8906     darwin* | rhapsody*)
8907       # PIC is the default on this platform
8908       # Common symbols not allowed in MH_DYLIB files
8909       lt_prog_compiler_pic='-fno-common'
8910       case $cc_basename in
8911       nagfor*)
8912         # NAG Fortran compiler
8913         lt_prog_compiler_wl='-Wl,-Wl,,'
8914         lt_prog_compiler_pic='-PIC'
8915         lt_prog_compiler_static='-Bstatic'
8916         ;;
8917       esac
8918       ;;
8919
8920     mingw* | cygwin* | pw32* | os2* | cegcc*)
8921       # This hack is so that the source file can tell whether it is being
8922       # built for inclusion in a dll (and should export symbols for example).
8923       lt_prog_compiler_pic='-DDLL_EXPORT'
8924       case $host_os in
8925       os2*)
8926         lt_prog_compiler_static='$wl-static'
8927         ;;
8928       esac
8929       ;;
8930
8931     hpux9* | hpux10* | hpux11*)
8932       lt_prog_compiler_wl='-Wl,'
8933       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8934       # not for PA HP-UX.
8935       case $host_cpu in
8936       hppa*64*|ia64*)
8937         # +Z the default
8938         ;;
8939       *)
8940         lt_prog_compiler_pic='+Z'
8941         ;;
8942       esac
8943       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8944       lt_prog_compiler_static='$wl-a ${wl}archive'
8945       ;;
8946
8947     irix5* | irix6* | nonstopux*)
8948       lt_prog_compiler_wl='-Wl,'
8949       # PIC (with -KPIC) is the default.
8950       lt_prog_compiler_static='-non_shared'
8951       ;;
8952
8953     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8954       case $cc_basename in
8955       # old Intel for x86_64, which still supported -KPIC.
8956       ecc*)
8957         lt_prog_compiler_wl='-Wl,'
8958         lt_prog_compiler_pic='-KPIC'
8959         lt_prog_compiler_static='-static'
8960         ;;
8961       # icc used to be incompatible with GCC.
8962       # ICC 10 doesn't accept -KPIC any more.
8963       icc* | ifort*)
8964         lt_prog_compiler_wl='-Wl,'
8965         lt_prog_compiler_pic='-fPIC'
8966         lt_prog_compiler_static='-static'
8967         ;;
8968       # Lahey Fortran 8.1.
8969       lf95*)
8970         lt_prog_compiler_wl='-Wl,'
8971         lt_prog_compiler_pic='--shared'
8972         lt_prog_compiler_static='--static'
8973         ;;
8974       nagfor*)
8975         # NAG Fortran compiler
8976         lt_prog_compiler_wl='-Wl,-Wl,,'
8977         lt_prog_compiler_pic='-PIC'
8978         lt_prog_compiler_static='-Bstatic'
8979         ;;
8980       tcc*)
8981         # Fabrice Bellard et al's Tiny C Compiler
8982         lt_prog_compiler_wl='-Wl,'
8983         lt_prog_compiler_pic='-fPIC'
8984         lt_prog_compiler_static='-static'
8985         ;;
8986       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8987         # Portland Group compilers (*not* the Pentium gcc compiler,
8988         # which looks to be a dead project)
8989         lt_prog_compiler_wl='-Wl,'
8990         lt_prog_compiler_pic='-fpic'
8991         lt_prog_compiler_static='-Bstatic'
8992         ;;
8993       ccc*)
8994         lt_prog_compiler_wl='-Wl,'
8995         # All Alpha code is PIC.
8996         lt_prog_compiler_static='-non_shared'
8997         ;;
8998       xl* | bgxl* | bgf* | mpixl*)
8999         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9000         lt_prog_compiler_wl='-Wl,'
9001         lt_prog_compiler_pic='-qpic'
9002         lt_prog_compiler_static='-qstaticlink'
9003         ;;
9004       *)
9005         case `$CC -V 2>&1 | sed 5q` in
9006         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9007           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9008           lt_prog_compiler_pic='-KPIC'
9009           lt_prog_compiler_static='-Bstatic'
9010           lt_prog_compiler_wl=''
9011           ;;
9012         *Sun\ F* | *Sun*Fortran*)
9013           lt_prog_compiler_pic='-KPIC'
9014           lt_prog_compiler_static='-Bstatic'
9015           lt_prog_compiler_wl='-Qoption ld '
9016           ;;
9017         *Sun\ C*)
9018           # Sun C 5.9
9019           lt_prog_compiler_pic='-KPIC'
9020           lt_prog_compiler_static='-Bstatic'
9021           lt_prog_compiler_wl='-Wl,'
9022           ;;
9023         *Intel*\ [CF]*Compiler*)
9024           lt_prog_compiler_wl='-Wl,'
9025           lt_prog_compiler_pic='-fPIC'
9026           lt_prog_compiler_static='-static'
9027           ;;
9028         *Portland\ Group*)
9029           lt_prog_compiler_wl='-Wl,'
9030           lt_prog_compiler_pic='-fpic'
9031           lt_prog_compiler_static='-Bstatic'
9032           ;;
9033         esac
9034         ;;
9035       esac
9036       ;;
9037
9038     newsos6)
9039       lt_prog_compiler_pic='-KPIC'
9040       lt_prog_compiler_static='-Bstatic'
9041       ;;
9042
9043     *nto* | *qnx*)
9044       # QNX uses GNU C++, but need to define -shared option too, otherwise
9045       # it will coredump.
9046       lt_prog_compiler_pic='-fPIC -shared'
9047       ;;
9048
9049     osf3* | osf4* | osf5*)
9050       lt_prog_compiler_wl='-Wl,'
9051       # All OSF/1 code is PIC.
9052       lt_prog_compiler_static='-non_shared'
9053       ;;
9054
9055     rdos*)
9056       lt_prog_compiler_static='-non_shared'
9057       ;;
9058
9059     solaris*)
9060       lt_prog_compiler_pic='-KPIC'
9061       lt_prog_compiler_static='-Bstatic'
9062       case $cc_basename in
9063       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9064         lt_prog_compiler_wl='-Qoption ld ';;
9065       *)
9066         lt_prog_compiler_wl='-Wl,';;
9067       esac
9068       ;;
9069
9070     sunos4*)
9071       lt_prog_compiler_wl='-Qoption ld '
9072       lt_prog_compiler_pic='-PIC'
9073       lt_prog_compiler_static='-Bstatic'
9074       ;;
9075
9076     sysv4 | sysv4.2uw2* | sysv4.3*)
9077       lt_prog_compiler_wl='-Wl,'
9078       lt_prog_compiler_pic='-KPIC'
9079       lt_prog_compiler_static='-Bstatic'
9080       ;;
9081
9082     sysv4*MP*)
9083       if test -d /usr/nec; then
9084         lt_prog_compiler_pic='-Kconform_pic'
9085         lt_prog_compiler_static='-Bstatic'
9086       fi
9087       ;;
9088
9089     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9090       lt_prog_compiler_wl='-Wl,'
9091       lt_prog_compiler_pic='-KPIC'
9092       lt_prog_compiler_static='-Bstatic'
9093       ;;
9094
9095     unicos*)
9096       lt_prog_compiler_wl='-Wl,'
9097       lt_prog_compiler_can_build_shared=no
9098       ;;
9099
9100     uts4*)
9101       lt_prog_compiler_pic='-pic'
9102       lt_prog_compiler_static='-Bstatic'
9103       ;;
9104
9105     *)
9106       lt_prog_compiler_can_build_shared=no
9107       ;;
9108     esac
9109   fi
9110
9111 case $host_os in
9112   # For platforms that do not support PIC, -DPIC is meaningless:
9113   *djgpp*)
9114     lt_prog_compiler_pic=
9115     ;;
9116   *)
9117     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9118     ;;
9119 esac
9120
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9122 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9123 if ${lt_cv_prog_compiler_pic+:} false; then :
9124   $as_echo_n "(cached) " >&6
9125 else
9126   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9127 fi
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9129 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9130 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9131
9132 #
9133 # Check to make sure the PIC flag actually works.
9134 #
9135 if test -n "$lt_prog_compiler_pic"; then
9136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9137 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9138 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9139   $as_echo_n "(cached) " >&6
9140 else
9141   lt_cv_prog_compiler_pic_works=no
9142    ac_outfile=conftest.$ac_objext
9143    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9144    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9145    # Insert the option either (1) after the last *FLAGS variable, or
9146    # (2) before a word containing "conftest.", or (3) at the end.
9147    # Note that $ac_compile itself does not contain backslashes and begins
9148    # with a dollar sign (not a hyphen), so the echo should work correctly.
9149    # The option is referenced via a variable to avoid confusing sed.
9150    lt_compile=`echo "$ac_compile" | $SED \
9151    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9152    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9153    -e 's:$: $lt_compiler_flag:'`
9154    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9155    (eval "$lt_compile" 2>conftest.err)
9156    ac_status=$?
9157    cat conftest.err >&5
9158    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159    if (exit $ac_status) && test -s "$ac_outfile"; then
9160      # The compiler can only warn and ignore the option if not recognized
9161      # So say no if there are warnings other than the usual output.
9162      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9163      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9164      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9165        lt_cv_prog_compiler_pic_works=yes
9166      fi
9167    fi
9168    $RM conftest*
9169
9170 fi
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9172 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9173
9174 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9175     case $lt_prog_compiler_pic in
9176      "" | " "*) ;;
9177      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9178      esac
9179 else
9180     lt_prog_compiler_pic=
9181      lt_prog_compiler_can_build_shared=no
9182 fi
9183
9184 fi
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196 #
9197 # Check to make sure the static flag actually works.
9198 #
9199 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9201 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9202 if ${lt_cv_prog_compiler_static_works+:} false; then :
9203   $as_echo_n "(cached) " >&6
9204 else
9205   lt_cv_prog_compiler_static_works=no
9206    save_LDFLAGS=$LDFLAGS
9207    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9208    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9209    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9210      # The linker can only warn and ignore the option if not recognized
9211      # So say no if there are warnings
9212      if test -s conftest.err; then
9213        # Append any errors to the config.log.
9214        cat conftest.err 1>&5
9215        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9216        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9217        if diff conftest.exp conftest.er2 >/dev/null; then
9218          lt_cv_prog_compiler_static_works=yes
9219        fi
9220      else
9221        lt_cv_prog_compiler_static_works=yes
9222      fi
9223    fi
9224    $RM -r conftest*
9225    LDFLAGS=$save_LDFLAGS
9226
9227 fi
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9229 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9230
9231 if test yes = "$lt_cv_prog_compiler_static_works"; then
9232     :
9233 else
9234     lt_prog_compiler_static=
9235 fi
9236
9237
9238
9239
9240
9241
9242
9243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9244 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9245 if ${lt_cv_prog_compiler_c_o+:} false; then :
9246   $as_echo_n "(cached) " >&6
9247 else
9248   lt_cv_prog_compiler_c_o=no
9249    $RM -r conftest 2>/dev/null
9250    mkdir conftest
9251    cd conftest
9252    mkdir out
9253    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9254
9255    lt_compiler_flag="-o out/conftest2.$ac_objext"
9256    # Insert the option either (1) after the last *FLAGS variable, or
9257    # (2) before a word containing "conftest.", or (3) at the end.
9258    # Note that $ac_compile itself does not contain backslashes and begins
9259    # with a dollar sign (not a hyphen), so the echo should work correctly.
9260    lt_compile=`echo "$ac_compile" | $SED \
9261    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9262    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9263    -e 's:$: $lt_compiler_flag:'`
9264    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9265    (eval "$lt_compile" 2>out/conftest.err)
9266    ac_status=$?
9267    cat out/conftest.err >&5
9268    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9270    then
9271      # The compiler can only warn and ignore the option if not recognized
9272      # So say no if there are warnings
9273      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9274      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9275      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9276        lt_cv_prog_compiler_c_o=yes
9277      fi
9278    fi
9279    chmod u+w . 2>&5
9280    $RM conftest*
9281    # SGI C++ compiler will create directory out/ii_files/ for
9282    # template instantiation
9283    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9284    $RM out/* && rmdir out
9285    cd ..
9286    $RM -r conftest
9287    $RM conftest*
9288
9289 fi
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9291 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9292
9293
9294
9295
9296
9297
9298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9299 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9300 if ${lt_cv_prog_compiler_c_o+:} false; then :
9301   $as_echo_n "(cached) " >&6
9302 else
9303   lt_cv_prog_compiler_c_o=no
9304    $RM -r conftest 2>/dev/null
9305    mkdir conftest
9306    cd conftest
9307    mkdir out
9308    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9309
9310    lt_compiler_flag="-o out/conftest2.$ac_objext"
9311    # Insert the option either (1) after the last *FLAGS variable, or
9312    # (2) before a word containing "conftest.", or (3) at the end.
9313    # Note that $ac_compile itself does not contain backslashes and begins
9314    # with a dollar sign (not a hyphen), so the echo should work correctly.
9315    lt_compile=`echo "$ac_compile" | $SED \
9316    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9317    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9318    -e 's:$: $lt_compiler_flag:'`
9319    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9320    (eval "$lt_compile" 2>out/conftest.err)
9321    ac_status=$?
9322    cat out/conftest.err >&5
9323    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9325    then
9326      # The compiler can only warn and ignore the option if not recognized
9327      # So say no if there are warnings
9328      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9329      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9330      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9331        lt_cv_prog_compiler_c_o=yes
9332      fi
9333    fi
9334    chmod u+w . 2>&5
9335    $RM conftest*
9336    # SGI C++ compiler will create directory out/ii_files/ for
9337    # template instantiation
9338    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9339    $RM out/* && rmdir out
9340    cd ..
9341    $RM -r conftest
9342    $RM conftest*
9343
9344 fi
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9346 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9347
9348
9349
9350
9351 hard_links=nottested
9352 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9353   # do not overwrite the value of need_locks provided by the user
9354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9355 $as_echo_n "checking if we can lock with hard links... " >&6; }
9356   hard_links=yes
9357   $RM conftest*
9358   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9359   touch conftest.a
9360   ln conftest.a conftest.b 2>&5 || hard_links=no
9361   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9363 $as_echo "$hard_links" >&6; }
9364   if test no = "$hard_links"; then
9365     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9366 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9367     need_locks=warn
9368   fi
9369 else
9370   need_locks=no
9371 fi
9372
9373
9374
9375
9376
9377
9378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9379 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9380
9381   runpath_var=
9382   allow_undefined_flag=
9383   always_export_symbols=no
9384   archive_cmds=
9385   archive_expsym_cmds=
9386   compiler_needs_object=no
9387   enable_shared_with_static_runtimes=no
9388   export_dynamic_flag_spec=
9389   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9390   hardcode_automatic=no
9391   hardcode_direct=no
9392   hardcode_direct_absolute=no
9393   hardcode_libdir_flag_spec=
9394   hardcode_libdir_separator=
9395   hardcode_minus_L=no
9396   hardcode_shlibpath_var=unsupported
9397   inherit_rpath=no
9398   link_all_deplibs=unknown
9399   module_cmds=
9400   module_expsym_cmds=
9401   old_archive_from_new_cmds=
9402   old_archive_from_expsyms_cmds=
9403   thread_safe_flag_spec=
9404   whole_archive_flag_spec=
9405   # include_expsyms should be a list of space-separated symbols to be *always*
9406   # included in the symbol list
9407   include_expsyms=
9408   # exclude_expsyms can be an extended regexp of symbols to exclude
9409   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9410   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9411   # as well as any symbol that contains 'd'.
9412   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9413   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9414   # platforms (ab)use it in PIC code, but their linkers get confused if
9415   # the symbol is explicitly referenced.  Since portable code cannot
9416   # rely on this symbol name, it's probably fine to never include it in
9417   # preloaded symbol tables.
9418   # Exclude shared library initialization/finalization symbols.
9419   extract_expsyms_cmds=
9420
9421   case $host_os in
9422   cygwin* | mingw* | pw32* | cegcc*)
9423     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9424     # When not using gcc, we currently assume that we are using
9425     # Microsoft Visual C++.
9426     if test yes != "$GCC"; then
9427       with_gnu_ld=no
9428     fi
9429     ;;
9430   interix*)
9431     # we just hope/assume this is gcc and not c89 (= MSVC++)
9432     with_gnu_ld=yes
9433     ;;
9434   openbsd* | bitrig*)
9435     with_gnu_ld=no
9436     ;;
9437   linux* | k*bsd*-gnu | gnu*)
9438     link_all_deplibs=no
9439     ;;
9440   esac
9441
9442   ld_shlibs=yes
9443
9444   # On some targets, GNU ld is compatible enough with the native linker
9445   # that we're better off using the native interface for both.
9446   lt_use_gnu_ld_interface=no
9447   if test yes = "$with_gnu_ld"; then
9448     case $host_os in
9449       aix*)
9450         # The AIX port of GNU ld has always aspired to compatibility
9451         # with the native linker.  However, as the warning in the GNU ld
9452         # block says, versions before 2.19.5* couldn't really create working
9453         # shared libraries, regardless of the interface used.
9454         case `$LD -v 2>&1` in
9455           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9456           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9457           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9458           *)
9459             lt_use_gnu_ld_interface=yes
9460             ;;
9461         esac
9462         ;;
9463       *)
9464         lt_use_gnu_ld_interface=yes
9465         ;;
9466     esac
9467   fi
9468
9469   if test yes = "$lt_use_gnu_ld_interface"; then
9470     # If archive_cmds runs LD, not CC, wlarc should be empty
9471     wlarc='$wl'
9472
9473     # Set some defaults for GNU ld with shared library support. These
9474     # are reset later if shared libraries are not supported. Putting them
9475     # here allows them to be overridden if necessary.
9476     runpath_var=LD_RUN_PATH
9477     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9478     export_dynamic_flag_spec='$wl--export-dynamic'
9479     # ancient GNU ld didn't support --whole-archive et. al.
9480     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9481       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9482     else
9483       whole_archive_flag_spec=
9484     fi
9485     supports_anon_versioning=no
9486     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9487       *GNU\ gold*) supports_anon_versioning=yes ;;
9488       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9489       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9490       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9491       *\ 2.11.*) ;; # other 2.11 versions
9492       *) supports_anon_versioning=yes ;;
9493     esac
9494
9495     # See if GNU ld supports shared libraries.
9496     case $host_os in
9497     aix[3-9]*)
9498       # On AIX/PPC, the GNU linker is very broken
9499       if test ia64 != "$host_cpu"; then
9500         ld_shlibs=no
9501         cat <<_LT_EOF 1>&2
9502
9503 *** Warning: the GNU linker, at least up to release 2.19, is reported
9504 *** to be unable to reliably create shared libraries on AIX.
9505 *** Therefore, libtool is disabling shared libraries support.  If you
9506 *** really care for shared libraries, you may want to install binutils
9507 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9508 *** You will then need to restart the configuration process.
9509
9510 _LT_EOF
9511       fi
9512       ;;
9513
9514     amigaos*)
9515       case $host_cpu in
9516       powerpc)
9517             # see comment about AmigaOS4 .so support
9518             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9519             archive_expsym_cmds=''
9520         ;;
9521       m68k)
9522             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)'
9523             hardcode_libdir_flag_spec='-L$libdir'
9524             hardcode_minus_L=yes
9525         ;;
9526       esac
9527       ;;
9528
9529     beos*)
9530       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9531         allow_undefined_flag=unsupported
9532         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9533         # support --undefined.  This deserves some investigation.  FIXME
9534         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9535       else
9536         ld_shlibs=no
9537       fi
9538       ;;
9539
9540     cygwin* | mingw* | pw32* | cegcc*)
9541       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9542       # as there is no search path for DLLs.
9543       hardcode_libdir_flag_spec='-L$libdir'
9544       export_dynamic_flag_spec='$wl--export-all-symbols'
9545       allow_undefined_flag=unsupported
9546       always_export_symbols=no
9547       enable_shared_with_static_runtimes=yes
9548       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'
9549       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9550
9551       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9552         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9553         # If the export-symbols file already is a .def file, use it as
9554         # is; otherwise, prepend EXPORTS...
9555         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9556           cp $export_symbols $output_objdir/$soname.def;
9557         else
9558           echo EXPORTS > $output_objdir/$soname.def;
9559           cat $export_symbols >> $output_objdir/$soname.def;
9560         fi~
9561         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9562       else
9563         ld_shlibs=no
9564       fi
9565       ;;
9566
9567     haiku*)
9568       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9569       link_all_deplibs=yes
9570       ;;
9571
9572     os2*)
9573       hardcode_libdir_flag_spec='-L$libdir'
9574       hardcode_minus_L=yes
9575       allow_undefined_flag=unsupported
9576       shrext_cmds=.dll
9577       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9578         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9579         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9580         $ECHO EXPORTS >> $output_objdir/$libname.def~
9581         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9582         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9583         emximp -o $lib $output_objdir/$libname.def'
9584       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9585         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9586         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9587         $ECHO EXPORTS >> $output_objdir/$libname.def~
9588         prefix_cmds="$SED"~
9589         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9590           prefix_cmds="$prefix_cmds -e 1d";
9591         fi~
9592         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9593         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9594         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9595         emximp -o $lib $output_objdir/$libname.def'
9596       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9597       enable_shared_with_static_runtimes=yes
9598       ;;
9599
9600     interix[3-9]*)
9601       hardcode_direct=no
9602       hardcode_shlibpath_var=no
9603       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9604       export_dynamic_flag_spec='$wl-E'
9605       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9606       # Instead, shared libraries are loaded at an image base (0x10000000 by
9607       # default) and relocated if they conflict, which is a slow very memory
9608       # consuming and fragmenting process.  To avoid this, we pick a random,
9609       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9610       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9611       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9612       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'
9613       ;;
9614
9615     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9616       tmp_diet=no
9617       if test linux-dietlibc = "$host_os"; then
9618         case $cc_basename in
9619           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9620         esac
9621       fi
9622       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9623          && test no = "$tmp_diet"
9624       then
9625         tmp_addflag=' $pic_flag'
9626         tmp_sharedflag='-shared'
9627         case $cc_basename,$host_cpu in
9628         pgcc*)                          # Portland Group C compiler
9629           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'
9630           tmp_addflag=' $pic_flag'
9631           ;;
9632         pgf77* | pgf90* | pgf95* | pgfortran*)
9633                                         # Portland Group f77 and f90 compilers
9634           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'
9635           tmp_addflag=' $pic_flag -Mnomain' ;;
9636         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9637           tmp_addflag=' -i_dynamic' ;;
9638         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9639           tmp_addflag=' -i_dynamic -nofor_main' ;;
9640         ifc* | ifort*)                  # Intel Fortran compiler
9641           tmp_addflag=' -nofor_main' ;;
9642         lf95*)                          # Lahey Fortran 8.1
9643           whole_archive_flag_spec=
9644           tmp_sharedflag='--shared' ;;
9645         nagfor*)                        # NAGFOR 5.3
9646           tmp_sharedflag='-Wl,-shared' ;;
9647         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9648           tmp_sharedflag='-qmkshrobj'
9649           tmp_addflag= ;;
9650         nvcc*)  # Cuda Compiler Driver 2.2
9651           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'
9652           compiler_needs_object=yes
9653           ;;
9654         esac
9655         case `$CC -V 2>&1 | sed 5q` in
9656         *Sun\ C*)                       # Sun C 5.9
9657           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'
9658           compiler_needs_object=yes
9659           tmp_sharedflag='-G' ;;
9660         *Sun\ F*)                       # Sun Fortran 8.3
9661           tmp_sharedflag='-G' ;;
9662         esac
9663         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9664
9665         if test yes = "$supports_anon_versioning"; then
9666           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9667             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9668             echo "local: *; };" >> $output_objdir/$libname.ver~
9669             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9670         fi
9671
9672         case $cc_basename in
9673         tcc*)
9674           export_dynamic_flag_spec='-rdynamic'
9675           ;;
9676         xlf* | bgf* | bgxlf* | mpixlf*)
9677           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9678           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9679           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9680           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9681           if test yes = "$supports_anon_versioning"; then
9682             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9683               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9684               echo "local: *; };" >> $output_objdir/$libname.ver~
9685               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9686           fi
9687           ;;
9688         esac
9689       else
9690         ld_shlibs=no
9691       fi
9692       ;;
9693
9694     netbsd* | netbsdelf*-gnu)
9695       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9696         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9697         wlarc=
9698       else
9699         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9700         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9701       fi
9702       ;;
9703
9704     solaris*)
9705       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9706         ld_shlibs=no
9707         cat <<_LT_EOF 1>&2
9708
9709 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9710 *** create shared libraries on Solaris systems.  Therefore, libtool
9711 *** is disabling shared libraries support.  We urge you to upgrade GNU
9712 *** binutils to release 2.9.1 or newer.  Another option is to modify
9713 *** your PATH or compiler configuration so that the native linker is
9714 *** used, and then restart.
9715
9716 _LT_EOF
9717       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9718         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9719         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9720       else
9721         ld_shlibs=no
9722       fi
9723       ;;
9724
9725     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9726       case `$LD -v 2>&1` in
9727         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9728         ld_shlibs=no
9729         cat <<_LT_EOF 1>&2
9730
9731 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9732 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9733 *** is disabling shared libraries support.  We urge you to upgrade GNU
9734 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9735 *** your PATH or compiler configuration so that the native linker is
9736 *** used, and then restart.
9737
9738 _LT_EOF
9739         ;;
9740         *)
9741           # For security reasons, it is highly recommended that you always
9742           # use absolute paths for naming shared libraries, and exclude the
9743           # DT_RUNPATH tag from executables and libraries.  But doing so
9744           # requires that you compile everything twice, which is a pain.
9745           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9746             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9747             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9748             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9749           else
9750             ld_shlibs=no
9751           fi
9752         ;;
9753       esac
9754       ;;
9755
9756     sunos4*)
9757       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9758       wlarc=
9759       hardcode_direct=yes
9760       hardcode_shlibpath_var=no
9761       ;;
9762
9763     *)
9764       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9765         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9766         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9767       else
9768         ld_shlibs=no
9769       fi
9770       ;;
9771     esac
9772
9773     if test no = "$ld_shlibs"; then
9774       runpath_var=
9775       hardcode_libdir_flag_spec=
9776       export_dynamic_flag_spec=
9777       whole_archive_flag_spec=
9778     fi
9779   else
9780     # PORTME fill in a description of your system's linker (not GNU ld)
9781     case $host_os in
9782     aix3*)
9783       allow_undefined_flag=unsupported
9784       always_export_symbols=yes
9785       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'
9786       # Note: this linker hardcodes the directories in LIBPATH if there
9787       # are no directories specified by -L.
9788       hardcode_minus_L=yes
9789       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9790         # Neither direct hardcoding nor static linking is supported with a
9791         # broken collect2.
9792         hardcode_direct=unsupported
9793       fi
9794       ;;
9795
9796     aix[4-9]*)
9797       if test ia64 = "$host_cpu"; then
9798         # On IA64, the linker does run time linking by default, so we don't
9799         # have to do anything special.
9800         aix_use_runtimelinking=no
9801         exp_sym_flag='-Bexport'
9802         no_entry_flag=
9803       else
9804         # If we're using GNU nm, then we don't want the "-C" option.
9805         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9806         # Without the "-l" option, or with the "-B" option, AIX nm treats
9807         # weak defined symbols like other global defined symbols, whereas
9808         # GNU nm marks them as "W".
9809         # While the 'weak' keyword is ignored in the Export File, we need
9810         # it in the Import File for the 'aix-soname' feature, so we have
9811         # to replace the "-B" option with "-P" for AIX nm.
9812         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9813           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9814         else
9815           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9816         fi
9817         aix_use_runtimelinking=no
9818
9819         # Test if we are trying to use run time linking or normal
9820         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9821         # have runtime linking enabled, and use it for executables.
9822         # For shared libraries, we enable/disable runtime linking
9823         # depending on the kind of the shared library created -
9824         # when "with_aix_soname,aix_use_runtimelinking" is:
9825         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9826         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9827         #            lib.a           static archive
9828         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9829         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9830         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9831         #            lib.a(lib.so.V) shared, rtl:no
9832         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9833         #            lib.a           static archive
9834         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9835           for ld_flag in $LDFLAGS; do
9836           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9837             aix_use_runtimelinking=yes
9838             break
9839           fi
9840           done
9841           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9842             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9843             # so we don't have lib.a shared libs to link our executables.
9844             # We have to force runtime linking in this case.
9845             aix_use_runtimelinking=yes
9846             LDFLAGS="$LDFLAGS -Wl,-brtl"
9847           fi
9848           ;;
9849         esac
9850
9851         exp_sym_flag='-bexport'
9852         no_entry_flag='-bnoentry'
9853       fi
9854
9855       # When large executables or shared objects are built, AIX ld can
9856       # have problems creating the table of contents.  If linking a library
9857       # or program results in "error TOC overflow" add -mminimal-toc to
9858       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9859       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9860
9861       archive_cmds=''
9862       hardcode_direct=yes
9863       hardcode_direct_absolute=yes
9864       hardcode_libdir_separator=':'
9865       link_all_deplibs=yes
9866       file_list_spec='$wl-f,'
9867       case $with_aix_soname,$aix_use_runtimelinking in
9868       aix,*) ;; # traditional, no import file
9869       svr4,* | *,yes) # use import file
9870         # The Import File defines what to hardcode.
9871         hardcode_direct=no
9872         hardcode_direct_absolute=no
9873         ;;
9874       esac
9875
9876       if test yes = "$GCC"; then
9877         case $host_os in aix4.[012]|aix4.[012].*)
9878         # We only want to do this on AIX 4.2 and lower, the check
9879         # below for broken collect2 doesn't work under 4.3+
9880           collect2name=`$CC -print-prog-name=collect2`
9881           if test -f "$collect2name" &&
9882            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9883           then
9884           # We have reworked collect2
9885           :
9886           else
9887           # We have old collect2
9888           hardcode_direct=unsupported
9889           # It fails to find uninstalled libraries when the uninstalled
9890           # path is not listed in the libpath.  Setting hardcode_minus_L
9891           # to unsupported forces relinking
9892           hardcode_minus_L=yes
9893           hardcode_libdir_flag_spec='-L$libdir'
9894           hardcode_libdir_separator=
9895           fi
9896           ;;
9897         esac
9898         shared_flag='-shared'
9899         if test yes = "$aix_use_runtimelinking"; then
9900           shared_flag="$shared_flag "'$wl-G'
9901         fi
9902         # Need to ensure runtime linking is disabled for the traditional
9903         # shared library, or the linker may eventually find shared libraries
9904         # /with/ Import File - we do not want to mix them.
9905         shared_flag_aix='-shared'
9906         shared_flag_svr4='-shared $wl-G'
9907       else
9908         # not using gcc
9909         if test ia64 = "$host_cpu"; then
9910         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9911         # chokes on -Wl,-G. The following line is correct:
9912           shared_flag='-G'
9913         else
9914           if test yes = "$aix_use_runtimelinking"; then
9915             shared_flag='$wl-G'
9916           else
9917             shared_flag='$wl-bM:SRE'
9918           fi
9919           shared_flag_aix='$wl-bM:SRE'
9920           shared_flag_svr4='$wl-G'
9921         fi
9922       fi
9923
9924       export_dynamic_flag_spec='$wl-bexpall'
9925       # It seems that -bexpall does not export symbols beginning with
9926       # underscore (_), so it is better to generate a list of symbols to export.
9927       always_export_symbols=yes
9928       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9929         # Warning - without using the other runtime loading flags (-brtl),
9930         # -berok will link without error, but may produce a broken library.
9931         allow_undefined_flag='-berok'
9932         # Determine the default libpath from the value encoded in an
9933         # empty executable.
9934         if test set = "${lt_cv_aix_libpath+set}"; then
9935   aix_libpath=$lt_cv_aix_libpath
9936 else
9937   if ${lt_cv_aix_libpath_+:} false; then :
9938   $as_echo_n "(cached) " >&6
9939 else
9940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h.  */
9942
9943 int
9944 main ()
9945 {
9946
9947   ;
9948   return 0;
9949 }
9950 _ACEOF
9951 if ac_fn_c_try_link "$LINENO"; then :
9952
9953   lt_aix_libpath_sed='
9954       /Import File Strings/,/^$/ {
9955           /^0/ {
9956               s/^0  *\([^ ]*\) *$/\1/
9957               p
9958           }
9959       }'
9960   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9961   # Check for a 64-bit object if we didn't find anything.
9962   if test -z "$lt_cv_aix_libpath_"; then
9963     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9964   fi
9965 fi
9966 rm -f core conftest.err conftest.$ac_objext \
9967     conftest$ac_exeext conftest.$ac_ext
9968   if test -z "$lt_cv_aix_libpath_"; then
9969     lt_cv_aix_libpath_=/usr/lib:/lib
9970   fi
9971
9972 fi
9973
9974   aix_libpath=$lt_cv_aix_libpath_
9975 fi
9976
9977         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9978         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9979       else
9980         if test ia64 = "$host_cpu"; then
9981           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9982           allow_undefined_flag="-z nodefs"
9983           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"
9984         else
9985          # Determine the default libpath from the value encoded in an
9986          # empty executable.
9987          if test set = "${lt_cv_aix_libpath+set}"; then
9988   aix_libpath=$lt_cv_aix_libpath
9989 else
9990   if ${lt_cv_aix_libpath_+:} false; then :
9991   $as_echo_n "(cached) " >&6
9992 else
9993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994 /* end confdefs.h.  */
9995
9996 int
9997 main ()
9998 {
9999
10000   ;
10001   return 0;
10002 }
10003 _ACEOF
10004 if ac_fn_c_try_link "$LINENO"; then :
10005
10006   lt_aix_libpath_sed='
10007       /Import File Strings/,/^$/ {
10008           /^0/ {
10009               s/^0  *\([^ ]*\) *$/\1/
10010               p
10011           }
10012       }'
10013   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10014   # Check for a 64-bit object if we didn't find anything.
10015   if test -z "$lt_cv_aix_libpath_"; then
10016     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10017   fi
10018 fi
10019 rm -f core conftest.err conftest.$ac_objext \
10020     conftest$ac_exeext conftest.$ac_ext
10021   if test -z "$lt_cv_aix_libpath_"; then
10022     lt_cv_aix_libpath_=/usr/lib:/lib
10023   fi
10024
10025 fi
10026
10027   aix_libpath=$lt_cv_aix_libpath_
10028 fi
10029
10030          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10031           # Warning - without using the other run time loading flags,
10032           # -berok will link without error, but may produce a broken library.
10033           no_undefined_flag=' $wl-bernotok'
10034           allow_undefined_flag=' $wl-berok'
10035           if test yes = "$with_gnu_ld"; then
10036             # We only use this code for GNU lds that support --whole-archive.
10037             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10038           else
10039             # Exported symbols can be pulled into shared objects from archives
10040             whole_archive_flag_spec='$convenience'
10041           fi
10042           archive_cmds_need_lc=yes
10043           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10044           # -brtl affects multiple linker settings, -berok does not and is overridden later
10045           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10046           if test svr4 != "$with_aix_soname"; then
10047             # This is similar to how AIX traditionally builds its shared libraries.
10048             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10049           fi
10050           if test aix != "$with_aix_soname"; then
10051             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10052           else
10053             # used by -dlpreopen to get the symbols
10054             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10055           fi
10056           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10057         fi
10058       fi
10059       ;;
10060
10061     amigaos*)
10062       case $host_cpu in
10063       powerpc)
10064             # see comment about AmigaOS4 .so support
10065             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10066             archive_expsym_cmds=''
10067         ;;
10068       m68k)
10069             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)'
10070             hardcode_libdir_flag_spec='-L$libdir'
10071             hardcode_minus_L=yes
10072         ;;
10073       esac
10074       ;;
10075
10076     bsdi[45]*)
10077       export_dynamic_flag_spec=-rdynamic
10078       ;;
10079
10080     cygwin* | mingw* | pw32* | cegcc*)
10081       # When not using gcc, we currently assume that we are using
10082       # Microsoft Visual C++.
10083       # hardcode_libdir_flag_spec is actually meaningless, as there is
10084       # no search path for DLLs.
10085       case $cc_basename in
10086       cl*)
10087         # Native MSVC
10088         hardcode_libdir_flag_spec=' '
10089         allow_undefined_flag=unsupported
10090         always_export_symbols=yes
10091         file_list_spec='@'
10092         # Tell ltmain to make .lib files, not .a files.
10093         libext=lib
10094         # Tell ltmain to make .dll files, not .so files.
10095         shrext_cmds=.dll
10096         # FIXME: Setting linknames here is a bad hack.
10097         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10098         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10099             cp "$export_symbols" "$output_objdir/$soname.def";
10100             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10101           else
10102             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10103           fi~
10104           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10105           linknames='
10106         # The linker will not automatically build a static lib if we build a DLL.
10107         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10108         enable_shared_with_static_runtimes=yes
10109         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10110         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10111         # Don't use ranlib
10112         old_postinstall_cmds='chmod 644 $oldlib'
10113         postlink_cmds='lt_outputfile="@OUTPUT@"~
10114           lt_tool_outputfile="@TOOL_OUTPUT@"~
10115           case $lt_outputfile in
10116             *.exe|*.EXE) ;;
10117             *)
10118               lt_outputfile=$lt_outputfile.exe
10119               lt_tool_outputfile=$lt_tool_outputfile.exe
10120               ;;
10121           esac~
10122           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10123             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10124             $RM "$lt_outputfile.manifest";
10125           fi'
10126         ;;
10127       *)
10128         # Assume MSVC wrapper
10129         hardcode_libdir_flag_spec=' '
10130         allow_undefined_flag=unsupported
10131         # Tell ltmain to make .lib files, not .a files.
10132         libext=lib
10133         # Tell ltmain to make .dll files, not .so files.
10134         shrext_cmds=.dll
10135         # FIXME: Setting linknames here is a bad hack.
10136         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10137         # The linker will automatically build a .lib file if we build a DLL.
10138         old_archive_from_new_cmds='true'
10139         # FIXME: Should let the user specify the lib program.
10140         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10141         enable_shared_with_static_runtimes=yes
10142         ;;
10143       esac
10144       ;;
10145
10146     darwin* | rhapsody*)
10147
10148
10149   archive_cmds_need_lc=no
10150   hardcode_direct=no
10151   hardcode_automatic=yes
10152   hardcode_shlibpath_var=unsupported
10153   if test yes = "$lt_cv_ld_force_load"; then
10154     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\"`'
10155
10156   else
10157     whole_archive_flag_spec=''
10158   fi
10159   link_all_deplibs=yes
10160   allow_undefined_flag=$_lt_dar_allow_undefined
10161   case $cc_basename in
10162      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10163      *) _lt_dar_can_shared=$GCC ;;
10164   esac
10165   if test yes = "$_lt_dar_can_shared"; then
10166     output_verbose_link_cmd=func_echo_all
10167     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10168     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10169     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"
10170     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"
10171
10172   else
10173   ld_shlibs=no
10174   fi
10175
10176       ;;
10177
10178     dgux*)
10179       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10180       hardcode_libdir_flag_spec='-L$libdir'
10181       hardcode_shlibpath_var=no
10182       ;;
10183
10184     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10185     # support.  Future versions do this automatically, but an explicit c++rt0.o
10186     # does not break anything, and helps significantly (at the cost of a little
10187     # extra space).
10188     freebsd2.2*)
10189       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10190       hardcode_libdir_flag_spec='-R$libdir'
10191       hardcode_direct=yes
10192       hardcode_shlibpath_var=no
10193       ;;
10194
10195     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10196     freebsd2.*)
10197       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10198       hardcode_direct=yes
10199       hardcode_minus_L=yes
10200       hardcode_shlibpath_var=no
10201       ;;
10202
10203     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10204     freebsd* | dragonfly*)
10205       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10206       hardcode_libdir_flag_spec='-R$libdir'
10207       hardcode_direct=yes
10208       hardcode_shlibpath_var=no
10209       ;;
10210
10211     hpux9*)
10212       if test yes = "$GCC"; then
10213         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10214       else
10215         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10216       fi
10217       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10218       hardcode_libdir_separator=:
10219       hardcode_direct=yes
10220
10221       # hardcode_minus_L: Not really in the search PATH,
10222       # but as the default location of the library.
10223       hardcode_minus_L=yes
10224       export_dynamic_flag_spec='$wl-E'
10225       ;;
10226
10227     hpux10*)
10228       if test yes,no = "$GCC,$with_gnu_ld"; then
10229         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10230       else
10231         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10232       fi
10233       if test no = "$with_gnu_ld"; then
10234         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10235         hardcode_libdir_separator=:
10236         hardcode_direct=yes
10237         hardcode_direct_absolute=yes
10238         export_dynamic_flag_spec='$wl-E'
10239         # hardcode_minus_L: Not really in the search PATH,
10240         # but as the default location of the library.
10241         hardcode_minus_L=yes
10242       fi
10243       ;;
10244
10245     hpux11*)
10246       if test yes,no = "$GCC,$with_gnu_ld"; then
10247         case $host_cpu in
10248         hppa*64*)
10249           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10250           ;;
10251         ia64*)
10252           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10253           ;;
10254         *)
10255           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10256           ;;
10257         esac
10258       else
10259         case $host_cpu in
10260         hppa*64*)
10261           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10262           ;;
10263         ia64*)
10264           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10265           ;;
10266         *)
10267
10268           # Older versions of the 11.00 compiler do not understand -b yet
10269           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10270           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10271 $as_echo_n "checking if $CC understands -b... " >&6; }
10272 if ${lt_cv_prog_compiler__b+:} false; then :
10273   $as_echo_n "(cached) " >&6
10274 else
10275   lt_cv_prog_compiler__b=no
10276    save_LDFLAGS=$LDFLAGS
10277    LDFLAGS="$LDFLAGS -b"
10278    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10279    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10280      # The linker can only warn and ignore the option if not recognized
10281      # So say no if there are warnings
10282      if test -s conftest.err; then
10283        # Append any errors to the config.log.
10284        cat conftest.err 1>&5
10285        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10286        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10287        if diff conftest.exp conftest.er2 >/dev/null; then
10288          lt_cv_prog_compiler__b=yes
10289        fi
10290      else
10291        lt_cv_prog_compiler__b=yes
10292      fi
10293    fi
10294    $RM -r conftest*
10295    LDFLAGS=$save_LDFLAGS
10296
10297 fi
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10299 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10300
10301 if test yes = "$lt_cv_prog_compiler__b"; then
10302     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10303 else
10304     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10305 fi
10306
10307           ;;
10308         esac
10309       fi
10310       if test no = "$with_gnu_ld"; then
10311         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10312         hardcode_libdir_separator=:
10313
10314         case $host_cpu in
10315         hppa*64*|ia64*)
10316           hardcode_direct=no
10317           hardcode_shlibpath_var=no
10318           ;;
10319         *)
10320           hardcode_direct=yes
10321           hardcode_direct_absolute=yes
10322           export_dynamic_flag_spec='$wl-E'
10323
10324           # hardcode_minus_L: Not really in the search PATH,
10325           # but as the default location of the library.
10326           hardcode_minus_L=yes
10327           ;;
10328         esac
10329       fi
10330       ;;
10331
10332     irix5* | irix6* | nonstopux*)
10333       if test yes = "$GCC"; then
10334         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'
10335         # Try to use the -exported_symbol ld option, if it does not
10336         # work, assume that -exports_file does not work either and
10337         # implicitly export all symbols.
10338         # This should be the same for all languages, so no per-tag cache variable.
10339         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10340 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10341 if ${lt_cv_irix_exported_symbol+:} false; then :
10342   $as_echo_n "(cached) " >&6
10343 else
10344   save_LDFLAGS=$LDFLAGS
10345            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10346            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h.  */
10348 int foo (void) { return 0; }
10349 _ACEOF
10350 if ac_fn_c_try_link "$LINENO"; then :
10351   lt_cv_irix_exported_symbol=yes
10352 else
10353   lt_cv_irix_exported_symbol=no
10354 fi
10355 rm -f core conftest.err conftest.$ac_objext \
10356     conftest$ac_exeext conftest.$ac_ext
10357            LDFLAGS=$save_LDFLAGS
10358 fi
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10360 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10361         if test yes = "$lt_cv_irix_exported_symbol"; then
10362           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'
10363         fi
10364         link_all_deplibs=no
10365       else
10366         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'
10367         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'
10368       fi
10369       archive_cmds_need_lc='no'
10370       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10371       hardcode_libdir_separator=:
10372       inherit_rpath=yes
10373       link_all_deplibs=yes
10374       ;;
10375
10376     linux*)
10377       case $cc_basename in
10378       tcc*)
10379         # Fabrice Bellard et al's Tiny C Compiler
10380         ld_shlibs=yes
10381         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10382         ;;
10383       esac
10384       ;;
10385
10386     netbsd* | netbsdelf*-gnu)
10387       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10388         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10389       else
10390         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10391       fi
10392       hardcode_libdir_flag_spec='-R$libdir'
10393       hardcode_direct=yes
10394       hardcode_shlibpath_var=no
10395       ;;
10396
10397     newsos6)
10398       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10399       hardcode_direct=yes
10400       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10401       hardcode_libdir_separator=:
10402       hardcode_shlibpath_var=no
10403       ;;
10404
10405     *nto* | *qnx*)
10406       ;;
10407
10408     openbsd* | bitrig*)
10409       if test -f /usr/libexec/ld.so; then
10410         hardcode_direct=yes
10411         hardcode_shlibpath_var=no
10412         hardcode_direct_absolute=yes
10413         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10414           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10415           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10416           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10417           export_dynamic_flag_spec='$wl-E'
10418         else
10419           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10420           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10421         fi
10422       else
10423         ld_shlibs=no
10424       fi
10425       ;;
10426
10427     os2*)
10428       hardcode_libdir_flag_spec='-L$libdir'
10429       hardcode_minus_L=yes
10430       allow_undefined_flag=unsupported
10431       shrext_cmds=.dll
10432       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10433         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10434         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10435         $ECHO EXPORTS >> $output_objdir/$libname.def~
10436         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10437         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10438         emximp -o $lib $output_objdir/$libname.def'
10439       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10440         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10441         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10442         $ECHO EXPORTS >> $output_objdir/$libname.def~
10443         prefix_cmds="$SED"~
10444         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10445           prefix_cmds="$prefix_cmds -e 1d";
10446         fi~
10447         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10448         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10449         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10450         emximp -o $lib $output_objdir/$libname.def'
10451       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10452       enable_shared_with_static_runtimes=yes
10453       ;;
10454
10455     osf3*)
10456       if test yes = "$GCC"; then
10457         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10458         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'
10459       else
10460         allow_undefined_flag=' -expect_unresolved \*'
10461         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'
10462       fi
10463       archive_cmds_need_lc='no'
10464       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10465       hardcode_libdir_separator=:
10466       ;;
10467
10468     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10469       if test yes = "$GCC"; then
10470         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10471         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'
10472         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10473       else
10474         allow_undefined_flag=' -expect_unresolved \*'
10475         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'
10476         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~
10477           $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'
10478
10479         # Both c and cxx compiler support -rpath directly
10480         hardcode_libdir_flag_spec='-rpath $libdir'
10481       fi
10482       archive_cmds_need_lc='no'
10483       hardcode_libdir_separator=:
10484       ;;
10485
10486     solaris*)
10487       no_undefined_flag=' -z defs'
10488       if test yes = "$GCC"; then
10489         wlarc='$wl'
10490         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10491         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10492           $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'
10493       else
10494         case `$CC -V 2>&1` in
10495         *"Compilers 5.0"*)
10496           wlarc=''
10497           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10498           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10499             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10500           ;;
10501         *)
10502           wlarc='$wl'
10503           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10504           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10505             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10506           ;;
10507         esac
10508       fi
10509       hardcode_libdir_flag_spec='-R$libdir'
10510       hardcode_shlibpath_var=no
10511       case $host_os in
10512       solaris2.[0-5] | solaris2.[0-5].*) ;;
10513       *)
10514         # The compiler driver will combine and reorder linker options,
10515         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10516         # but is careful enough not to reorder.
10517         # Supported since Solaris 2.6 (maybe 2.5.1?)
10518         if test yes = "$GCC"; then
10519           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10520         else
10521           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10522         fi
10523         ;;
10524       esac
10525       link_all_deplibs=yes
10526       ;;
10527
10528     sunos4*)
10529       if test sequent = "$host_vendor"; then
10530         # Use $CC to link under sequent, because it throws in some extra .o
10531         # files that make .init and .fini sections work.
10532         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10533       else
10534         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10535       fi
10536       hardcode_libdir_flag_spec='-L$libdir'
10537       hardcode_direct=yes
10538       hardcode_minus_L=yes
10539       hardcode_shlibpath_var=no
10540       ;;
10541
10542     sysv4)
10543       case $host_vendor in
10544         sni)
10545           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546           hardcode_direct=yes # is this really true???
10547         ;;
10548         siemens)
10549           ## LD is ld it makes a PLAMLIB
10550           ## CC just makes a GrossModule.
10551           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10552           reload_cmds='$CC -r -o $output$reload_objs'
10553           hardcode_direct=no
10554         ;;
10555         motorola)
10556           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10557           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10558         ;;
10559       esac
10560       runpath_var='LD_RUN_PATH'
10561       hardcode_shlibpath_var=no
10562       ;;
10563
10564     sysv4.3*)
10565       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10566       hardcode_shlibpath_var=no
10567       export_dynamic_flag_spec='-Bexport'
10568       ;;
10569
10570     sysv4*MP*)
10571       if test -d /usr/nec; then
10572         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573         hardcode_shlibpath_var=no
10574         runpath_var=LD_RUN_PATH
10575         hardcode_runpath_var=yes
10576         ld_shlibs=yes
10577       fi
10578       ;;
10579
10580     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10581       no_undefined_flag='$wl-z,text'
10582       archive_cmds_need_lc=no
10583       hardcode_shlibpath_var=no
10584       runpath_var='LD_RUN_PATH'
10585
10586       if test yes = "$GCC"; then
10587         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10588         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10589       else
10590         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10591         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10592       fi
10593       ;;
10594
10595     sysv5* | sco3.2v5* | sco5v6*)
10596       # Note: We CANNOT use -z defs as we might desire, because we do not
10597       # link with -lc, and that would cause any symbols used from libc to
10598       # always be unresolved, which means just about no library would
10599       # ever link correctly.  If we're not using GNU ld we use -z text
10600       # though, which does catch some bad symbols but isn't as heavy-handed
10601       # as -z defs.
10602       no_undefined_flag='$wl-z,text'
10603       allow_undefined_flag='$wl-z,nodefs'
10604       archive_cmds_need_lc=no
10605       hardcode_shlibpath_var=no
10606       hardcode_libdir_flag_spec='$wl-R,$libdir'
10607       hardcode_libdir_separator=':'
10608       link_all_deplibs=yes
10609       export_dynamic_flag_spec='$wl-Bexport'
10610       runpath_var='LD_RUN_PATH'
10611
10612       if test yes = "$GCC"; then
10613         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10614         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10615       else
10616         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10617         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10618       fi
10619       ;;
10620
10621     uts4*)
10622       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10623       hardcode_libdir_flag_spec='-L$libdir'
10624       hardcode_shlibpath_var=no
10625       ;;
10626
10627     *)
10628       ld_shlibs=no
10629       ;;
10630     esac
10631
10632     if test sni = "$host_vendor"; then
10633       case $host in
10634       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10635         export_dynamic_flag_spec='$wl-Blargedynsym'
10636         ;;
10637       esac
10638     fi
10639   fi
10640
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10642 $as_echo "$ld_shlibs" >&6; }
10643 test no = "$ld_shlibs" && can_build_shared=no
10644
10645 with_gnu_ld=$with_gnu_ld
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661 #
10662 # Do we need to explicitly link libc?
10663 #
10664 case "x$archive_cmds_need_lc" in
10665 x|xyes)
10666   # Assume -lc should be added
10667   archive_cmds_need_lc=yes
10668
10669   if test yes,yes = "$GCC,$enable_shared"; then
10670     case $archive_cmds in
10671     *'~'*)
10672       # FIXME: we may have to deal with multi-command sequences.
10673       ;;
10674     '$CC '*)
10675       # Test whether the compiler implicitly links with -lc since on some
10676       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10677       # to ld, don't add -lc before -lgcc.
10678       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10679 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10680 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10681   $as_echo_n "(cached) " >&6
10682 else
10683   $RM conftest*
10684         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10685
10686         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10687   (eval $ac_compile) 2>&5
10688   ac_status=$?
10689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10690   test $ac_status = 0; } 2>conftest.err; then
10691           soname=conftest
10692           lib=conftest
10693           libobjs=conftest.$ac_objext
10694           deplibs=
10695           wl=$lt_prog_compiler_wl
10696           pic_flag=$lt_prog_compiler_pic
10697           compiler_flags=-v
10698           linker_flags=-v
10699           verstring=
10700           output_objdir=.
10701           libname=conftest
10702           lt_save_allow_undefined_flag=$allow_undefined_flag
10703           allow_undefined_flag=
10704           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10705   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10706   ac_status=$?
10707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10708   test $ac_status = 0; }
10709           then
10710             lt_cv_archive_cmds_need_lc=no
10711           else
10712             lt_cv_archive_cmds_need_lc=yes
10713           fi
10714           allow_undefined_flag=$lt_save_allow_undefined_flag
10715         else
10716           cat conftest.err 1>&5
10717         fi
10718         $RM conftest*
10719
10720 fi
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10722 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10723       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10724       ;;
10725     esac
10726   fi
10727   ;;
10728 esac
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10882 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10883
10884 if test yes = "$GCC"; then
10885   case $host_os in
10886     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10887     *) lt_awk_arg='/^libraries:/' ;;
10888   esac
10889   case $host_os in
10890     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10891     *) lt_sed_strip_eq='s|=/|/|g' ;;
10892   esac
10893   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10894   case $lt_search_path_spec in
10895   *\;*)
10896     # if the path contains ";" then we assume it to be the separator
10897     # otherwise default to the standard path separator (i.e. ":") - it is
10898     # assumed that no part of a normal pathname contains ";" but that should
10899     # okay in the real world where ";" in dirpaths is itself problematic.
10900     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10901     ;;
10902   *)
10903     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10904     ;;
10905   esac
10906   # Ok, now we have the path, separated by spaces, we can step through it
10907   # and add multilib dir if necessary...
10908   lt_tmp_lt_search_path_spec=
10909   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10910   # ...but if some path component already ends with the multilib dir we assume
10911   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10912   case "$lt_multi_os_dir; $lt_search_path_spec " in
10913   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10914     lt_multi_os_dir=
10915     ;;
10916   esac
10917   for lt_sys_path in $lt_search_path_spec; do
10918     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10919       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10920     elif test -n "$lt_multi_os_dir"; then
10921       test -d "$lt_sys_path" && \
10922         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10923     fi
10924   done
10925   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10926 BEGIN {RS = " "; FS = "/|\n";} {
10927   lt_foo = "";
10928   lt_count = 0;
10929   for (lt_i = NF; lt_i > 0; lt_i--) {
10930     if ($lt_i != "" && $lt_i != ".") {
10931       if ($lt_i == "..") {
10932         lt_count++;
10933       } else {
10934         if (lt_count == 0) {
10935           lt_foo = "/" $lt_i lt_foo;
10936         } else {
10937           lt_count--;
10938         }
10939       }
10940     }
10941   }
10942   if (lt_foo != "") { lt_freq[lt_foo]++; }
10943   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10944 }'`
10945   # AWK program above erroneously prepends '/' to C:/dos/paths
10946   # for these hosts.
10947   case $host_os in
10948     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10949       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10950   esac
10951   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10952 else
10953   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10954 fi
10955 library_names_spec=
10956 libname_spec='lib$name'
10957 soname_spec=
10958 shrext_cmds=.so
10959 postinstall_cmds=
10960 postuninstall_cmds=
10961 finish_cmds=
10962 finish_eval=
10963 shlibpath_var=
10964 shlibpath_overrides_runpath=unknown
10965 version_type=none
10966 dynamic_linker="$host_os ld.so"
10967 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10968 need_lib_prefix=unknown
10969 hardcode_into_libs=no
10970
10971 # when you set need_version to no, make sure it does not cause -set_version
10972 # flags to be left without arguments
10973 need_version=unknown
10974
10975
10976
10977 case $host_os in
10978 aix3*)
10979   version_type=linux # correct to gnu/linux during the next big refactor
10980   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10981   shlibpath_var=LIBPATH
10982
10983   # AIX 3 has no versioning support, so we append a major version to the name.
10984   soname_spec='$libname$release$shared_ext$major'
10985   ;;
10986
10987 aix[4-9]*)
10988   version_type=linux # correct to gnu/linux during the next big refactor
10989   need_lib_prefix=no
10990   need_version=no
10991   hardcode_into_libs=yes
10992   if test ia64 = "$host_cpu"; then
10993     # AIX 5 supports IA64
10994     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10995     shlibpath_var=LD_LIBRARY_PATH
10996   else
10997     # With GCC up to 2.95.x, collect2 would create an import file
10998     # for dependence libraries.  The import file would start with
10999     # the line '#! .'.  This would cause the generated library to
11000     # depend on '.', always an invalid library.  This was fixed in
11001     # development snapshots of GCC prior to 3.0.
11002     case $host_os in
11003       aix4 | aix4.[01] | aix4.[01].*)
11004       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11005            echo ' yes '
11006            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11007         :
11008       else
11009         can_build_shared=no
11010       fi
11011       ;;
11012     esac
11013     # Using Import Files as archive members, it is possible to support
11014     # filename-based versioning of shared library archives on AIX. While
11015     # this would work for both with and without runtime linking, it will
11016     # prevent static linking of such archives. So we do filename-based
11017     # shared library versioning with .so extension only, which is used
11018     # when both runtime linking and shared linking is enabled.
11019     # Unfortunately, runtime linking may impact performance, so we do
11020     # not want this to be the default eventually. Also, we use the
11021     # versioned .so libs for executables only if there is the -brtl
11022     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11023     # To allow for filename-based versioning support, we need to create
11024     # libNAME.so.V as an archive file, containing:
11025     # *) an Import File, referring to the versioned filename of the
11026     #    archive as well as the shared archive member, telling the
11027     #    bitwidth (32 or 64) of that shared object, and providing the
11028     #    list of exported symbols of that shared object, eventually
11029     #    decorated with the 'weak' keyword
11030     # *) the shared object with the F_LOADONLY flag set, to really avoid
11031     #    it being seen by the linker.
11032     # At run time we better use the real file rather than another symlink,
11033     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11034
11035     case $with_aix_soname,$aix_use_runtimelinking in
11036     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11037     # soname into executable. Probably we can add versioning support to
11038     # collect2, so additional links can be useful in future.
11039     aix,yes) # traditional libtool
11040       dynamic_linker='AIX unversionable lib.so'
11041       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11042       # instead of lib<name>.a to let people know that these are not
11043       # typical AIX shared libraries.
11044       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11045       ;;
11046     aix,no) # traditional AIX only
11047       dynamic_linker='AIX lib.a(lib.so.V)'
11048       # We preserve .a as extension for shared libraries through AIX4.2
11049       # and later when we are not doing run time linking.
11050       library_names_spec='$libname$release.a $libname.a'
11051       soname_spec='$libname$release$shared_ext$major'
11052       ;;
11053     svr4,*) # full svr4 only
11054       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11055       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11056       # We do not specify a path in Import Files, so LIBPATH fires.
11057       shlibpath_overrides_runpath=yes
11058       ;;
11059     *,yes) # both, prefer svr4
11060       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11061       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11062       # unpreferred sharedlib libNAME.a needs extra handling
11063       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11064       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11065       # We do not specify a path in Import Files, so LIBPATH fires.
11066       shlibpath_overrides_runpath=yes
11067       ;;
11068     *,no) # both, prefer aix
11069       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11070       library_names_spec='$libname$release.a $libname.a'
11071       soname_spec='$libname$release$shared_ext$major'
11072       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11073       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11074       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11075       ;;
11076     esac
11077     shlibpath_var=LIBPATH
11078   fi
11079   ;;
11080
11081 amigaos*)
11082   case $host_cpu in
11083   powerpc)
11084     # Since July 2007 AmigaOS4 officially supports .so libraries.
11085     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11086     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11087     ;;
11088   m68k)
11089     library_names_spec='$libname.ixlibrary $libname.a'
11090     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11091     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11092     ;;
11093   esac
11094   ;;
11095
11096 beos*)
11097   library_names_spec='$libname$shared_ext'
11098   dynamic_linker="$host_os ld.so"
11099   shlibpath_var=LIBRARY_PATH
11100   ;;
11101
11102 bsdi[45]*)
11103   version_type=linux # correct to gnu/linux during the next big refactor
11104   need_version=no
11105   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11106   soname_spec='$libname$release$shared_ext$major'
11107   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11108   shlibpath_var=LD_LIBRARY_PATH
11109   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11110   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11111   # the default ld.so.conf also contains /usr/contrib/lib and
11112   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11113   # libtool to hard-code these into programs
11114   ;;
11115
11116 cygwin* | mingw* | pw32* | cegcc*)
11117   version_type=windows
11118   shrext_cmds=.dll
11119   need_version=no
11120   need_lib_prefix=no
11121
11122   case $GCC,$cc_basename in
11123   yes,*)
11124     # gcc
11125     library_names_spec='$libname.dll.a'
11126     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11127     postinstall_cmds='base_file=`basename \$file`~
11128       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11129       dldir=$destdir/`dirname \$dlpath`~
11130       test -d \$dldir || mkdir -p \$dldir~
11131       $install_prog $dir/$dlname \$dldir/$dlname~
11132       chmod a+x \$dldir/$dlname~
11133       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11134         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11135       fi'
11136     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11137       dlpath=$dir/\$dldll~
11138        $RM \$dlpath'
11139     shlibpath_overrides_runpath=yes
11140
11141     case $host_os in
11142     cygwin*)
11143       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11144       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11145
11146       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11147       ;;
11148     mingw* | cegcc*)
11149       # MinGW DLLs use traditional 'lib' prefix
11150       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11151       ;;
11152     pw32*)
11153       # pw32 DLLs use 'pw' prefix rather than 'lib'
11154       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11155       ;;
11156     esac
11157     dynamic_linker='Win32 ld.exe'
11158     ;;
11159
11160   *,cl*)
11161     # Native MSVC
11162     libname_spec='$name'
11163     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11164     library_names_spec='$libname.dll.lib'
11165
11166     case $build_os in
11167     mingw*)
11168       sys_lib_search_path_spec=
11169       lt_save_ifs=$IFS
11170       IFS=';'
11171       for lt_path in $LIB
11172       do
11173         IFS=$lt_save_ifs
11174         # Let DOS variable expansion print the short 8.3 style file name.
11175         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11176         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11177       done
11178       IFS=$lt_save_ifs
11179       # Convert to MSYS style.
11180       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11181       ;;
11182     cygwin*)
11183       # Convert to unix form, then to dos form, then back to unix form
11184       # but this time dos style (no spaces!) so that the unix form looks
11185       # like /cygdrive/c/PROGRA~1:/cygdr...
11186       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11187       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11188       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11189       ;;
11190     *)
11191       sys_lib_search_path_spec=$LIB
11192       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11193         # It is most probably a Windows format PATH.
11194         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11195       else
11196         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11197       fi
11198       # FIXME: find the short name or the path components, as spaces are
11199       # common. (e.g. "Program Files" -> "PROGRA~1")
11200       ;;
11201     esac
11202
11203     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11204     postinstall_cmds='base_file=`basename \$file`~
11205       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11206       dldir=$destdir/`dirname \$dlpath`~
11207       test -d \$dldir || mkdir -p \$dldir~
11208       $install_prog $dir/$dlname \$dldir/$dlname'
11209     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11210       dlpath=$dir/\$dldll~
11211        $RM \$dlpath'
11212     shlibpath_overrides_runpath=yes
11213     dynamic_linker='Win32 link.exe'
11214     ;;
11215
11216   *)
11217     # Assume MSVC wrapper
11218     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11219     dynamic_linker='Win32 ld.exe'
11220     ;;
11221   esac
11222   # FIXME: first we should search . and the directory the executable is in
11223   shlibpath_var=PATH
11224   ;;
11225
11226 darwin* | rhapsody*)
11227   dynamic_linker="$host_os dyld"
11228   version_type=darwin
11229   need_lib_prefix=no
11230   need_version=no
11231   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11232   soname_spec='$libname$release$major$shared_ext'
11233   shlibpath_overrides_runpath=yes
11234   shlibpath_var=DYLD_LIBRARY_PATH
11235   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11236
11237   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11238   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11239   ;;
11240
11241 dgux*)
11242   version_type=linux # correct to gnu/linux during the next big refactor
11243   need_lib_prefix=no
11244   need_version=no
11245   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11246   soname_spec='$libname$release$shared_ext$major'
11247   shlibpath_var=LD_LIBRARY_PATH
11248   ;;
11249
11250 freebsd* | dragonfly*)
11251   # DragonFly does not have aout.  When/if they implement a new
11252   # versioning mechanism, adjust this.
11253   if test -x /usr/bin/objformat; then
11254     objformat=`/usr/bin/objformat`
11255   else
11256     case $host_os in
11257     freebsd[23].*) objformat=aout ;;
11258     *) objformat=elf ;;
11259     esac
11260   fi
11261   version_type=freebsd-$objformat
11262   case $version_type in
11263     freebsd-elf*)
11264       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11265       soname_spec='$libname$release$shared_ext$major'
11266       need_version=no
11267       need_lib_prefix=no
11268       ;;
11269     freebsd-*)
11270       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11271       need_version=yes
11272       ;;
11273   esac
11274   shlibpath_var=LD_LIBRARY_PATH
11275   case $host_os in
11276   freebsd2.*)
11277     shlibpath_overrides_runpath=yes
11278     ;;
11279   freebsd3.[01]* | freebsdelf3.[01]*)
11280     shlibpath_overrides_runpath=yes
11281     hardcode_into_libs=yes
11282     ;;
11283   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11284   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11285     shlibpath_overrides_runpath=no
11286     hardcode_into_libs=yes
11287     ;;
11288   *) # from 4.6 on, and DragonFly
11289     shlibpath_overrides_runpath=yes
11290     hardcode_into_libs=yes
11291     ;;
11292   esac
11293   ;;
11294
11295 haiku*)
11296   version_type=linux # correct to gnu/linux during the next big refactor
11297   need_lib_prefix=no
11298   need_version=no
11299   dynamic_linker="$host_os runtime_loader"
11300   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11301   soname_spec='$libname$release$shared_ext$major'
11302   shlibpath_var=LIBRARY_PATH
11303   shlibpath_overrides_runpath=no
11304   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11305   hardcode_into_libs=yes
11306   ;;
11307
11308 hpux9* | hpux10* | hpux11*)
11309   # Give a soname corresponding to the major version so that dld.sl refuses to
11310   # link against other versions.
11311   version_type=sunos
11312   need_lib_prefix=no
11313   need_version=no
11314   case $host_cpu in
11315   ia64*)
11316     shrext_cmds='.so'
11317     hardcode_into_libs=yes
11318     dynamic_linker="$host_os dld.so"
11319     shlibpath_var=LD_LIBRARY_PATH
11320     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11321     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11322     soname_spec='$libname$release$shared_ext$major'
11323     if test 32 = "$HPUX_IA64_MODE"; then
11324       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11325       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11326     else
11327       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11328       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11329     fi
11330     ;;
11331   hppa*64*)
11332     shrext_cmds='.sl'
11333     hardcode_into_libs=yes
11334     dynamic_linker="$host_os dld.sl"
11335     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11336     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11337     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11338     soname_spec='$libname$release$shared_ext$major'
11339     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11340     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11341     ;;
11342   *)
11343     shrext_cmds='.sl'
11344     dynamic_linker="$host_os dld.sl"
11345     shlibpath_var=SHLIB_PATH
11346     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11347     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11348     soname_spec='$libname$release$shared_ext$major'
11349     ;;
11350   esac
11351   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11352   postinstall_cmds='chmod 555 $lib'
11353   # or fails outright, so override atomically:
11354   install_override_mode=555
11355   ;;
11356
11357 interix[3-9]*)
11358   version_type=linux # correct to gnu/linux during the next big refactor
11359   need_lib_prefix=no
11360   need_version=no
11361   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11362   soname_spec='$libname$release$shared_ext$major'
11363   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11364   shlibpath_var=LD_LIBRARY_PATH
11365   shlibpath_overrides_runpath=no
11366   hardcode_into_libs=yes
11367   ;;
11368
11369 irix5* | irix6* | nonstopux*)
11370   case $host_os in
11371     nonstopux*) version_type=nonstopux ;;
11372     *)
11373         if test yes = "$lt_cv_prog_gnu_ld"; then
11374                 version_type=linux # correct to gnu/linux during the next big refactor
11375         else
11376                 version_type=irix
11377         fi ;;
11378   esac
11379   need_lib_prefix=no
11380   need_version=no
11381   soname_spec='$libname$release$shared_ext$major'
11382   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11383   case $host_os in
11384   irix5* | nonstopux*)
11385     libsuff= shlibsuff=
11386     ;;
11387   *)
11388     case $LD in # libtool.m4 will add one of these switches to LD
11389     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11390       libsuff= shlibsuff= libmagic=32-bit;;
11391     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11392       libsuff=32 shlibsuff=N32 libmagic=N32;;
11393     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11394       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11395     *) libsuff= shlibsuff= libmagic=never-match;;
11396     esac
11397     ;;
11398   esac
11399   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11400   shlibpath_overrides_runpath=no
11401   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11402   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11403   hardcode_into_libs=yes
11404   ;;
11405
11406 # No shared lib support for Linux oldld, aout, or coff.
11407 linux*oldld* | linux*aout* | linux*coff*)
11408   dynamic_linker=no
11409   ;;
11410
11411 linux*android*)
11412   version_type=none # Android doesn't support versioned libraries.
11413   need_lib_prefix=no
11414   need_version=no
11415   library_names_spec='$libname$release$shared_ext'
11416   soname_spec='$libname$release$shared_ext'
11417   finish_cmds=
11418   shlibpath_var=LD_LIBRARY_PATH
11419   shlibpath_overrides_runpath=yes
11420
11421   # This implies no fast_install, which is unacceptable.
11422   # Some rework will be needed to allow for fast_install
11423   # before this can be enabled.
11424   hardcode_into_libs=yes
11425
11426   dynamic_linker='Android linker'
11427   # Don't embed -rpath directories since the linker doesn't support them.
11428   hardcode_libdir_flag_spec='-L$libdir'
11429   ;;
11430
11431 # This must be glibc/ELF.
11432 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11433   version_type=linux # correct to gnu/linux during the next big refactor
11434   need_lib_prefix=no
11435   need_version=no
11436   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11437   soname_spec='$libname$release$shared_ext$major'
11438   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11439   shlibpath_var=LD_LIBRARY_PATH
11440   shlibpath_overrides_runpath=no
11441
11442   # Some binutils ld are patched to set DT_RUNPATH
11443   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11444   $as_echo_n "(cached) " >&6
11445 else
11446   lt_cv_shlibpath_overrides_runpath=no
11447     save_LDFLAGS=$LDFLAGS
11448     save_libdir=$libdir
11449     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11450          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11451     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h.  */
11453
11454 int
11455 main ()
11456 {
11457
11458   ;
11459   return 0;
11460 }
11461 _ACEOF
11462 if ac_fn_c_try_link "$LINENO"; then :
11463   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11464   lt_cv_shlibpath_overrides_runpath=yes
11465 fi
11466 fi
11467 rm -f core conftest.err conftest.$ac_objext \
11468     conftest$ac_exeext conftest.$ac_ext
11469     LDFLAGS=$save_LDFLAGS
11470     libdir=$save_libdir
11471
11472 fi
11473
11474   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11475
11476   # This implies no fast_install, which is unacceptable.
11477   # Some rework will be needed to allow for fast_install
11478   # before this can be enabled.
11479   hardcode_into_libs=yes
11480
11481   # Ideally, we could use ldconfig to report *all* directores which are
11482   # searched for libraries, however this is still not possible.  Aside from not
11483   # being certain /sbin/ldconfig is available, command
11484   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11485   # even though it is searched at run-time.  Try to do the best guess by
11486   # appending ld.so.conf contents (and includes) to the search path.
11487   if test -f /etc/ld.so.conf; then
11488     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' ' '`
11489     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11490   fi
11491
11492   # We used to test for /lib/ld.so.1 and disable shared libraries on
11493   # powerpc, because MkLinux only supported shared libraries with the
11494   # GNU dynamic linker.  Since this was broken with cross compilers,
11495   # most powerpc-linux boxes support dynamic linking these days and
11496   # people can always --disable-shared, the test was removed, and we
11497   # assume the GNU/Linux dynamic linker is in use.
11498   dynamic_linker='GNU/Linux ld.so'
11499   ;;
11500
11501 netbsdelf*-gnu)
11502   version_type=linux
11503   need_lib_prefix=no
11504   need_version=no
11505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11506   soname_spec='${libname}${release}${shared_ext}$major'
11507   shlibpath_var=LD_LIBRARY_PATH
11508   shlibpath_overrides_runpath=no
11509   hardcode_into_libs=yes
11510   dynamic_linker='NetBSD ld.elf_so'
11511   ;;
11512
11513 netbsd*)
11514   version_type=sunos
11515   need_lib_prefix=no
11516   need_version=no
11517   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11518     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11519     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11520     dynamic_linker='NetBSD (a.out) ld.so'
11521   else
11522     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11523     soname_spec='$libname$release$shared_ext$major'
11524     dynamic_linker='NetBSD ld.elf_so'
11525   fi
11526   shlibpath_var=LD_LIBRARY_PATH
11527   shlibpath_overrides_runpath=yes
11528   hardcode_into_libs=yes
11529   ;;
11530
11531 newsos6)
11532   version_type=linux # correct to gnu/linux during the next big refactor
11533   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11534   shlibpath_var=LD_LIBRARY_PATH
11535   shlibpath_overrides_runpath=yes
11536   ;;
11537
11538 *nto* | *qnx*)
11539   version_type=qnx
11540   need_lib_prefix=no
11541   need_version=no
11542   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11543   soname_spec='$libname$release$shared_ext$major'
11544   shlibpath_var=LD_LIBRARY_PATH
11545   shlibpath_overrides_runpath=no
11546   hardcode_into_libs=yes
11547   dynamic_linker='ldqnx.so'
11548   ;;
11549
11550 openbsd* | bitrig*)
11551   version_type=sunos
11552   sys_lib_dlsearch_path_spec=/usr/lib
11553   need_lib_prefix=no
11554   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11555     need_version=no
11556   else
11557     need_version=yes
11558   fi
11559   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11560   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11561   shlibpath_var=LD_LIBRARY_PATH
11562   shlibpath_overrides_runpath=yes
11563   ;;
11564
11565 os2*)
11566   libname_spec='$name'
11567   version_type=windows
11568   shrext_cmds=.dll
11569   need_version=no
11570   need_lib_prefix=no
11571   # OS/2 can only load a DLL with a base name of 8 characters or less.
11572   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11573     v=$($ECHO $release$versuffix | tr -d .-);
11574     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11575     $ECHO $n$v`$shared_ext'
11576   library_names_spec='${libname}_dll.$libext'
11577   dynamic_linker='OS/2 ld.exe'
11578   shlibpath_var=BEGINLIBPATH
11579   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11580   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11581   postinstall_cmds='base_file=`basename \$file`~
11582     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11583     dldir=$destdir/`dirname \$dlpath`~
11584     test -d \$dldir || mkdir -p \$dldir~
11585     $install_prog $dir/$dlname \$dldir/$dlname~
11586     chmod a+x \$dldir/$dlname~
11587     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11588       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11589     fi'
11590   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11591     dlpath=$dir/\$dldll~
11592     $RM \$dlpath'
11593   ;;
11594
11595 osf3* | osf4* | osf5*)
11596   version_type=osf
11597   need_lib_prefix=no
11598   need_version=no
11599   soname_spec='$libname$release$shared_ext$major'
11600   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11601   shlibpath_var=LD_LIBRARY_PATH
11602   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11603   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11604   ;;
11605
11606 rdos*)
11607   dynamic_linker=no
11608   ;;
11609
11610 solaris*)
11611   version_type=linux # correct to gnu/linux during the next big refactor
11612   need_lib_prefix=no
11613   need_version=no
11614   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11615   soname_spec='$libname$release$shared_ext$major'
11616   shlibpath_var=LD_LIBRARY_PATH
11617   shlibpath_overrides_runpath=yes
11618   hardcode_into_libs=yes
11619   # ldd complains unless libraries are executable
11620   postinstall_cmds='chmod +x $lib'
11621   ;;
11622
11623 sunos4*)
11624   version_type=sunos
11625   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11626   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11627   shlibpath_var=LD_LIBRARY_PATH
11628   shlibpath_overrides_runpath=yes
11629   if test yes = "$with_gnu_ld"; then
11630     need_lib_prefix=no
11631   fi
11632   need_version=yes
11633   ;;
11634
11635 sysv4 | sysv4.3*)
11636   version_type=linux # correct to gnu/linux during the next big refactor
11637   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11638   soname_spec='$libname$release$shared_ext$major'
11639   shlibpath_var=LD_LIBRARY_PATH
11640   case $host_vendor in
11641     sni)
11642       shlibpath_overrides_runpath=no
11643       need_lib_prefix=no
11644       runpath_var=LD_RUN_PATH
11645       ;;
11646     siemens)
11647       need_lib_prefix=no
11648       ;;
11649     motorola)
11650       need_lib_prefix=no
11651       need_version=no
11652       shlibpath_overrides_runpath=no
11653       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11654       ;;
11655   esac
11656   ;;
11657
11658 sysv4*MP*)
11659   if test -d /usr/nec; then
11660     version_type=linux # correct to gnu/linux during the next big refactor
11661     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11662     soname_spec='$libname$shared_ext.$major'
11663     shlibpath_var=LD_LIBRARY_PATH
11664   fi
11665   ;;
11666
11667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11668   version_type=sco
11669   need_lib_prefix=no
11670   need_version=no
11671   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11672   soname_spec='$libname$release$shared_ext$major'
11673   shlibpath_var=LD_LIBRARY_PATH
11674   shlibpath_overrides_runpath=yes
11675   hardcode_into_libs=yes
11676   if test yes = "$with_gnu_ld"; then
11677     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11678   else
11679     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11680     case $host_os in
11681       sco3.2v5*)
11682         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11683         ;;
11684     esac
11685   fi
11686   sys_lib_dlsearch_path_spec='/usr/lib'
11687   ;;
11688
11689 tpf*)
11690   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11691   version_type=linux # correct to gnu/linux during the next big refactor
11692   need_lib_prefix=no
11693   need_version=no
11694   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11695   shlibpath_var=LD_LIBRARY_PATH
11696   shlibpath_overrides_runpath=no
11697   hardcode_into_libs=yes
11698   ;;
11699
11700 uts4*)
11701   version_type=linux # correct to gnu/linux during the next big refactor
11702   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11703   soname_spec='$libname$release$shared_ext$major'
11704   shlibpath_var=LD_LIBRARY_PATH
11705   ;;
11706
11707 *)
11708   dynamic_linker=no
11709   ;;
11710 esac
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11712 $as_echo "$dynamic_linker" >&6; }
11713 test no = "$dynamic_linker" && can_build_shared=no
11714
11715 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11716 if test yes = "$GCC"; then
11717   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11718 fi
11719
11720 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11721   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11722 fi
11723
11724 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11725   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11726 fi
11727
11728 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11729 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11730
11731 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11732 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11733
11734 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11735 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11834 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11835 hardcode_action=
11836 if test -n "$hardcode_libdir_flag_spec" ||
11837    test -n "$runpath_var" ||
11838    test yes = "$hardcode_automatic"; then
11839
11840   # We can hardcode non-existent directories.
11841   if test no != "$hardcode_direct" &&
11842      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11843      # have to relink, otherwise we might link with an installed library
11844      # when we should be linking with a yet-to-be-installed one
11845      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11846      test no != "$hardcode_minus_L"; then
11847     # Linking always hardcodes the temporary library directory.
11848     hardcode_action=relink
11849   else
11850     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11851     hardcode_action=immediate
11852   fi
11853 else
11854   # We cannot hardcode anything, or else we can only hardcode existing
11855   # directories.
11856   hardcode_action=unsupported
11857 fi
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11859 $as_echo "$hardcode_action" >&6; }
11860
11861 if test relink = "$hardcode_action" ||
11862    test yes = "$inherit_rpath"; then
11863   # Fast installation is not supported
11864   enable_fast_install=no
11865 elif test yes = "$shlibpath_overrides_runpath" ||
11866      test no = "$enable_shared"; then
11867   # Fast installation is not necessary
11868   enable_fast_install=needless
11869 fi
11870
11871
11872
11873
11874
11875
11876   if test yes != "$enable_dlopen"; then
11877   enable_dlopen=unknown
11878   enable_dlopen_self=unknown
11879   enable_dlopen_self_static=unknown
11880 else
11881   lt_cv_dlopen=no
11882   lt_cv_dlopen_libs=
11883
11884   case $host_os in
11885   beos*)
11886     lt_cv_dlopen=load_add_on
11887     lt_cv_dlopen_libs=
11888     lt_cv_dlopen_self=yes
11889     ;;
11890
11891   mingw* | pw32* | cegcc*)
11892     lt_cv_dlopen=LoadLibrary
11893     lt_cv_dlopen_libs=
11894     ;;
11895
11896   cygwin*)
11897     lt_cv_dlopen=dlopen
11898     lt_cv_dlopen_libs=
11899     ;;
11900
11901   darwin*)
11902     # if libdl is installed we need to link against it
11903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11904 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11905 if ${ac_cv_lib_dl_dlopen+:} false; then :
11906   $as_echo_n "(cached) " >&6
11907 else
11908   ac_check_lib_save_LIBS=$LIBS
11909 LIBS="-ldl  $LIBS"
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h.  */
11912
11913 /* Override any GCC internal prototype to avoid an error.
11914    Use char because int might match the return type of a GCC
11915    builtin and then its argument prototype would still apply.  */
11916 #ifdef __cplusplus
11917 extern "C"
11918 #endif
11919 char dlopen ();
11920 int
11921 main ()
11922 {
11923 return dlopen ();
11924   ;
11925   return 0;
11926 }
11927 _ACEOF
11928 if ac_fn_c_try_link "$LINENO"; then :
11929   ac_cv_lib_dl_dlopen=yes
11930 else
11931   ac_cv_lib_dl_dlopen=no
11932 fi
11933 rm -f core conftest.err conftest.$ac_objext \
11934     conftest$ac_exeext conftest.$ac_ext
11935 LIBS=$ac_check_lib_save_LIBS
11936 fi
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11938 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11939 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11940   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11941 else
11942
11943     lt_cv_dlopen=dyld
11944     lt_cv_dlopen_libs=
11945     lt_cv_dlopen_self=yes
11946
11947 fi
11948
11949     ;;
11950
11951   tpf*)
11952     # Don't try to run any link tests for TPF.  We know it's impossible
11953     # because TPF is a cross-compiler, and we know how we open DSOs.
11954     lt_cv_dlopen=dlopen
11955     lt_cv_dlopen_libs=
11956     lt_cv_dlopen_self=no
11957     ;;
11958
11959   *)
11960     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11961 if test "x$ac_cv_func_shl_load" = xyes; then :
11962   lt_cv_dlopen=shl_load
11963 else
11964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11965 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11966 if ${ac_cv_lib_dld_shl_load+:} false; then :
11967   $as_echo_n "(cached) " >&6
11968 else
11969   ac_check_lib_save_LIBS=$LIBS
11970 LIBS="-ldld  $LIBS"
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h.  */
11973
11974 /* Override any GCC internal prototype to avoid an error.
11975    Use char because int might match the return type of a GCC
11976    builtin and then its argument prototype would still apply.  */
11977 #ifdef __cplusplus
11978 extern "C"
11979 #endif
11980 char shl_load ();
11981 int
11982 main ()
11983 {
11984 return shl_load ();
11985   ;
11986   return 0;
11987 }
11988 _ACEOF
11989 if ac_fn_c_try_link "$LINENO"; then :
11990   ac_cv_lib_dld_shl_load=yes
11991 else
11992   ac_cv_lib_dld_shl_load=no
11993 fi
11994 rm -f core conftest.err conftest.$ac_objext \
11995     conftest$ac_exeext conftest.$ac_ext
11996 LIBS=$ac_check_lib_save_LIBS
11997 fi
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11999 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12000 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12001   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12002 else
12003   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12004 if test "x$ac_cv_func_dlopen" = xyes; then :
12005   lt_cv_dlopen=dlopen
12006 else
12007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12008 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12009 if ${ac_cv_lib_dl_dlopen+:} false; then :
12010   $as_echo_n "(cached) " >&6
12011 else
12012   ac_check_lib_save_LIBS=$LIBS
12013 LIBS="-ldl  $LIBS"
12014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h.  */
12016
12017 /* Override any GCC internal prototype to avoid an error.
12018    Use char because int might match the return type of a GCC
12019    builtin and then its argument prototype would still apply.  */
12020 #ifdef __cplusplus
12021 extern "C"
12022 #endif
12023 char dlopen ();
12024 int
12025 main ()
12026 {
12027 return dlopen ();
12028   ;
12029   return 0;
12030 }
12031 _ACEOF
12032 if ac_fn_c_try_link "$LINENO"; then :
12033   ac_cv_lib_dl_dlopen=yes
12034 else
12035   ac_cv_lib_dl_dlopen=no
12036 fi
12037 rm -f core conftest.err conftest.$ac_objext \
12038     conftest$ac_exeext conftest.$ac_ext
12039 LIBS=$ac_check_lib_save_LIBS
12040 fi
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12042 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12043 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12044   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12045 else
12046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12047 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12048 if ${ac_cv_lib_svld_dlopen+:} false; then :
12049   $as_echo_n "(cached) " >&6
12050 else
12051   ac_check_lib_save_LIBS=$LIBS
12052 LIBS="-lsvld  $LIBS"
12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054 /* end confdefs.h.  */
12055
12056 /* Override any GCC internal prototype to avoid an error.
12057    Use char because int might match the return type of a GCC
12058    builtin and then its argument prototype would still apply.  */
12059 #ifdef __cplusplus
12060 extern "C"
12061 #endif
12062 char dlopen ();
12063 int
12064 main ()
12065 {
12066 return dlopen ();
12067   ;
12068   return 0;
12069 }
12070 _ACEOF
12071 if ac_fn_c_try_link "$LINENO"; then :
12072   ac_cv_lib_svld_dlopen=yes
12073 else
12074   ac_cv_lib_svld_dlopen=no
12075 fi
12076 rm -f core conftest.err conftest.$ac_objext \
12077     conftest$ac_exeext conftest.$ac_ext
12078 LIBS=$ac_check_lib_save_LIBS
12079 fi
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12081 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12082 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12083   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12084 else
12085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12086 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12087 if ${ac_cv_lib_dld_dld_link+:} false; then :
12088   $as_echo_n "(cached) " >&6
12089 else
12090   ac_check_lib_save_LIBS=$LIBS
12091 LIBS="-ldld  $LIBS"
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h.  */
12094
12095 /* Override any GCC internal prototype to avoid an error.
12096    Use char because int might match the return type of a GCC
12097    builtin and then its argument prototype would still apply.  */
12098 #ifdef __cplusplus
12099 extern "C"
12100 #endif
12101 char dld_link ();
12102 int
12103 main ()
12104 {
12105 return dld_link ();
12106   ;
12107   return 0;
12108 }
12109 _ACEOF
12110 if ac_fn_c_try_link "$LINENO"; then :
12111   ac_cv_lib_dld_dld_link=yes
12112 else
12113   ac_cv_lib_dld_dld_link=no
12114 fi
12115 rm -f core conftest.err conftest.$ac_objext \
12116     conftest$ac_exeext conftest.$ac_ext
12117 LIBS=$ac_check_lib_save_LIBS
12118 fi
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12120 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12121 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12122   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12123 fi
12124
12125
12126 fi
12127
12128
12129 fi
12130
12131
12132 fi
12133
12134
12135 fi
12136
12137
12138 fi
12139
12140     ;;
12141   esac
12142
12143   if test no = "$lt_cv_dlopen"; then
12144     enable_dlopen=no
12145   else
12146     enable_dlopen=yes
12147   fi
12148
12149   case $lt_cv_dlopen in
12150   dlopen)
12151     save_CPPFLAGS=$CPPFLAGS
12152     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12153
12154     save_LDFLAGS=$LDFLAGS
12155     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12156
12157     save_LIBS=$LIBS
12158     LIBS="$lt_cv_dlopen_libs $LIBS"
12159
12160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12161 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12162 if ${lt_cv_dlopen_self+:} false; then :
12163   $as_echo_n "(cached) " >&6
12164 else
12165           if test yes = "$cross_compiling"; then :
12166   lt_cv_dlopen_self=cross
12167 else
12168   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12169   lt_status=$lt_dlunknown
12170   cat > conftest.$ac_ext <<_LT_EOF
12171 #line $LINENO "configure"
12172 #include "confdefs.h"
12173
12174 #if HAVE_DLFCN_H
12175 #include <dlfcn.h>
12176 #endif
12177
12178 #include <stdio.h>
12179
12180 #ifdef RTLD_GLOBAL
12181 #  define LT_DLGLOBAL           RTLD_GLOBAL
12182 #else
12183 #  ifdef DL_GLOBAL
12184 #    define LT_DLGLOBAL         DL_GLOBAL
12185 #  else
12186 #    define LT_DLGLOBAL         0
12187 #  endif
12188 #endif
12189
12190 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12191    find out it does not work in some platform. */
12192 #ifndef LT_DLLAZY_OR_NOW
12193 #  ifdef RTLD_LAZY
12194 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12195 #  else
12196 #    ifdef DL_LAZY
12197 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12198 #    else
12199 #      ifdef RTLD_NOW
12200 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12201 #      else
12202 #        ifdef DL_NOW
12203 #          define LT_DLLAZY_OR_NOW      DL_NOW
12204 #        else
12205 #          define LT_DLLAZY_OR_NOW      0
12206 #        endif
12207 #      endif
12208 #    endif
12209 #  endif
12210 #endif
12211
12212 /* When -fvisibility=hidden is used, assume the code has been annotated
12213    correspondingly for the symbols needed.  */
12214 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12215 int fnord () __attribute__((visibility("default")));
12216 #endif
12217
12218 int fnord () { return 42; }
12219 int main ()
12220 {
12221   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12222   int status = $lt_dlunknown;
12223
12224   if (self)
12225     {
12226       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12227       else
12228         {
12229           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12230           else puts (dlerror ());
12231         }
12232       /* dlclose (self); */
12233     }
12234   else
12235     puts (dlerror ());
12236
12237   return status;
12238 }
12239 _LT_EOF
12240   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12241   (eval $ac_link) 2>&5
12242   ac_status=$?
12243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12244   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12245     (./conftest; exit; ) >&5 2>/dev/null
12246     lt_status=$?
12247     case x$lt_status in
12248       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12249       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12250       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12251     esac
12252   else :
12253     # compilation failed
12254     lt_cv_dlopen_self=no
12255   fi
12256 fi
12257 rm -fr conftest*
12258
12259
12260 fi
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12262 $as_echo "$lt_cv_dlopen_self" >&6; }
12263
12264     if test yes = "$lt_cv_dlopen_self"; then
12265       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12266       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12267 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12268 if ${lt_cv_dlopen_self_static+:} false; then :
12269   $as_echo_n "(cached) " >&6
12270 else
12271           if test yes = "$cross_compiling"; then :
12272   lt_cv_dlopen_self_static=cross
12273 else
12274   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12275   lt_status=$lt_dlunknown
12276   cat > conftest.$ac_ext <<_LT_EOF
12277 #line $LINENO "configure"
12278 #include "confdefs.h"
12279
12280 #if HAVE_DLFCN_H
12281 #include <dlfcn.h>
12282 #endif
12283
12284 #include <stdio.h>
12285
12286 #ifdef RTLD_GLOBAL
12287 #  define LT_DLGLOBAL           RTLD_GLOBAL
12288 #else
12289 #  ifdef DL_GLOBAL
12290 #    define LT_DLGLOBAL         DL_GLOBAL
12291 #  else
12292 #    define LT_DLGLOBAL         0
12293 #  endif
12294 #endif
12295
12296 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12297    find out it does not work in some platform. */
12298 #ifndef LT_DLLAZY_OR_NOW
12299 #  ifdef RTLD_LAZY
12300 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12301 #  else
12302 #    ifdef DL_LAZY
12303 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12304 #    else
12305 #      ifdef RTLD_NOW
12306 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12307 #      else
12308 #        ifdef DL_NOW
12309 #          define LT_DLLAZY_OR_NOW      DL_NOW
12310 #        else
12311 #          define LT_DLLAZY_OR_NOW      0
12312 #        endif
12313 #      endif
12314 #    endif
12315 #  endif
12316 #endif
12317
12318 /* When -fvisibility=hidden is used, assume the code has been annotated
12319    correspondingly for the symbols needed.  */
12320 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12321 int fnord () __attribute__((visibility("default")));
12322 #endif
12323
12324 int fnord () { return 42; }
12325 int main ()
12326 {
12327   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12328   int status = $lt_dlunknown;
12329
12330   if (self)
12331     {
12332       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12333       else
12334         {
12335           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12336           else puts (dlerror ());
12337         }
12338       /* dlclose (self); */
12339     }
12340   else
12341     puts (dlerror ());
12342
12343   return status;
12344 }
12345 _LT_EOF
12346   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12347   (eval $ac_link) 2>&5
12348   ac_status=$?
12349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12350   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12351     (./conftest; exit; ) >&5 2>/dev/null
12352     lt_status=$?
12353     case x$lt_status in
12354       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12355       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12356       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12357     esac
12358   else :
12359     # compilation failed
12360     lt_cv_dlopen_self_static=no
12361   fi
12362 fi
12363 rm -fr conftest*
12364
12365
12366 fi
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12368 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12369     fi
12370
12371     CPPFLAGS=$save_CPPFLAGS
12372     LDFLAGS=$save_LDFLAGS
12373     LIBS=$save_LIBS
12374     ;;
12375   esac
12376
12377   case $lt_cv_dlopen_self in
12378   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12379   *) enable_dlopen_self=unknown ;;
12380   esac
12381
12382   case $lt_cv_dlopen_self_static in
12383   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12384   *) enable_dlopen_self_static=unknown ;;
12385   esac
12386 fi
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404 striplib=
12405 old_striplib=
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12407 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12408 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12409   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12410   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12412 $as_echo "yes" >&6; }
12413 else
12414 # FIXME - insert some real tests, host_os isn't really good enough
12415   case $host_os in
12416   darwin*)
12417     if test -n "$STRIP"; then
12418       striplib="$STRIP -x"
12419       old_striplib="$STRIP -S"
12420       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12421 $as_echo "yes" >&6; }
12422     else
12423       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424 $as_echo "no" >&6; }
12425     fi
12426     ;;
12427   *)
12428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429 $as_echo "no" >&6; }
12430     ;;
12431   esac
12432 fi
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445   # Report what library types will actually be built
12446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12447 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12449 $as_echo "$can_build_shared" >&6; }
12450
12451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12452 $as_echo_n "checking whether to build shared libraries... " >&6; }
12453   test no = "$can_build_shared" && enable_shared=no
12454
12455   # On AIX, shared libraries and static libraries use the same namespace, and
12456   # are all built from PIC.
12457   case $host_os in
12458   aix3*)
12459     test yes = "$enable_shared" && enable_static=no
12460     if test -n "$RANLIB"; then
12461       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12462       postinstall_cmds='$RANLIB $lib'
12463     fi
12464     ;;
12465
12466   aix[4-9]*)
12467     if test ia64 != "$host_cpu"; then
12468       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12469       yes,aix,yes) ;;                   # shared object as lib.so file only
12470       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12471       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12472       esac
12473     fi
12474     ;;
12475   esac
12476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12477 $as_echo "$enable_shared" >&6; }
12478
12479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12480 $as_echo_n "checking whether to build static libraries... " >&6; }
12481   # Make sure either enable_shared or enable_static is yes.
12482   test yes = "$enable_shared" || enable_static=yes
12483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12484 $as_echo "$enable_static" >&6; }
12485
12486
12487
12488
12489 fi
12490 ac_ext=c
12491 ac_cpp='$CPP $CPPFLAGS'
12492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12495
12496 CC=$lt_save_CC
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512         ac_config_commands="$ac_config_commands libtool"
12513
12514
12515
12516
12517 # Only expand once:
12518
12519
12520
12521
12522
12523   for ac_func in $ac_func_list
12524 do :
12525   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12526 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12527 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12528   cat >>confdefs.h <<_ACEOF
12529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12530 _ACEOF
12531
12532 fi
12533 done
12534
12535
12536
12537
12538
12539
12540
12541 # Checks for programs.
12542
12543
12544
12545
12546
12547
12548
12549 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12550         if test -n "$ac_tool_prefix"; then
12551   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12552 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12554 $as_echo_n "checking for $ac_word... " >&6; }
12555 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12556   $as_echo_n "(cached) " >&6
12557 else
12558   case $PKG_CONFIG in
12559   [\\/]* | ?:[\\/]*)
12560   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12561   ;;
12562   *)
12563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564 for as_dir in $PATH
12565 do
12566   IFS=$as_save_IFS
12567   test -z "$as_dir" && as_dir=.
12568     for ac_exec_ext in '' $ac_executable_extensions; do
12569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12570     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12572     break 2
12573   fi
12574 done
12575   done
12576 IFS=$as_save_IFS
12577
12578   ;;
12579 esac
12580 fi
12581 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12582 if test -n "$PKG_CONFIG"; then
12583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12584 $as_echo "$PKG_CONFIG" >&6; }
12585 else
12586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12588 fi
12589
12590
12591 fi
12592 if test -z "$ac_cv_path_PKG_CONFIG"; then
12593   ac_pt_PKG_CONFIG=$PKG_CONFIG
12594   # Extract the first word of "pkg-config", so it can be a program name with args.
12595 set dummy pkg-config; ac_word=$2
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597 $as_echo_n "checking for $ac_word... " >&6; }
12598 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12599   $as_echo_n "(cached) " >&6
12600 else
12601   case $ac_pt_PKG_CONFIG in
12602   [\\/]* | ?:[\\/]*)
12603   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12604   ;;
12605   *)
12606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12608 do
12609   IFS=$as_save_IFS
12610   test -z "$as_dir" && as_dir=.
12611     for ac_exec_ext in '' $ac_executable_extensions; do
12612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12613     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12615     break 2
12616   fi
12617 done
12618   done
12619 IFS=$as_save_IFS
12620
12621   ;;
12622 esac
12623 fi
12624 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12625 if test -n "$ac_pt_PKG_CONFIG"; then
12626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12627 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12628 else
12629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12631 fi
12632
12633   if test "x$ac_pt_PKG_CONFIG" = x; then
12634     PKG_CONFIG=""
12635   else
12636     case $cross_compiling:$ac_tool_warned in
12637 yes:)
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12640 ac_tool_warned=yes ;;
12641 esac
12642     PKG_CONFIG=$ac_pt_PKG_CONFIG
12643   fi
12644 else
12645   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12646 fi
12647
12648 fi
12649 if test -n "$PKG_CONFIG"; then
12650         _pkg_min_version=0.23
12651         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12652 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12653         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12654                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12655 $as_echo "yes" >&6; }
12656         else
12657                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12659                 PKG_CONFIG=""
12660         fi
12661 fi
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 if test -n "$ac_tool_prefix"; then
12668   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12669 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12671 $as_echo_n "checking for $ac_word... " >&6; }
12672 if ${ac_cv_prog_CC+:} false; then :
12673   $as_echo_n "(cached) " >&6
12674 else
12675   if test -n "$CC"; then
12676   ac_cv_prog_CC="$CC" # Let the user override the test.
12677 else
12678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12679 for as_dir in $PATH
12680 do
12681   IFS=$as_save_IFS
12682   test -z "$as_dir" && as_dir=.
12683     for ac_exec_ext in '' $ac_executable_extensions; do
12684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12685     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12687     break 2
12688   fi
12689 done
12690   done
12691 IFS=$as_save_IFS
12692
12693 fi
12694 fi
12695 CC=$ac_cv_prog_CC
12696 if test -n "$CC"; then
12697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12698 $as_echo "$CC" >&6; }
12699 else
12700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701 $as_echo "no" >&6; }
12702 fi
12703
12704
12705 fi
12706 if test -z "$ac_cv_prog_CC"; then
12707   ac_ct_CC=$CC
12708   # Extract the first word of "gcc", so it can be a program name with args.
12709 set dummy gcc; ac_word=$2
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12711 $as_echo_n "checking for $ac_word... " >&6; }
12712 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12713   $as_echo_n "(cached) " >&6
12714 else
12715   if test -n "$ac_ct_CC"; then
12716   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12717 else
12718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12719 for as_dir in $PATH
12720 do
12721   IFS=$as_save_IFS
12722   test -z "$as_dir" && as_dir=.
12723     for ac_exec_ext in '' $ac_executable_extensions; do
12724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12725     ac_cv_prog_ac_ct_CC="gcc"
12726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12727     break 2
12728   fi
12729 done
12730   done
12731 IFS=$as_save_IFS
12732
12733 fi
12734 fi
12735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12736 if test -n "$ac_ct_CC"; then
12737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12738 $as_echo "$ac_ct_CC" >&6; }
12739 else
12740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741 $as_echo "no" >&6; }
12742 fi
12743
12744   if test "x$ac_ct_CC" = x; then
12745     CC=""
12746   else
12747     case $cross_compiling:$ac_tool_warned in
12748 yes:)
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12751 ac_tool_warned=yes ;;
12752 esac
12753     CC=$ac_ct_CC
12754   fi
12755 else
12756   CC="$ac_cv_prog_CC"
12757 fi
12758
12759 if test -z "$CC"; then
12760           if test -n "$ac_tool_prefix"; then
12761     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12762 set dummy ${ac_tool_prefix}cc; ac_word=$2
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12764 $as_echo_n "checking for $ac_word... " >&6; }
12765 if ${ac_cv_prog_CC+:} false; then :
12766   $as_echo_n "(cached) " >&6
12767 else
12768   if test -n "$CC"; then
12769   ac_cv_prog_CC="$CC" # Let the user override the test.
12770 else
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in $PATH
12773 do
12774   IFS=$as_save_IFS
12775   test -z "$as_dir" && as_dir=.
12776     for ac_exec_ext in '' $ac_executable_extensions; do
12777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12778     ac_cv_prog_CC="${ac_tool_prefix}cc"
12779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780     break 2
12781   fi
12782 done
12783   done
12784 IFS=$as_save_IFS
12785
12786 fi
12787 fi
12788 CC=$ac_cv_prog_CC
12789 if test -n "$CC"; then
12790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12791 $as_echo "$CC" >&6; }
12792 else
12793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12795 fi
12796
12797
12798   fi
12799 fi
12800 if test -z "$CC"; then
12801   # Extract the first word of "cc", so it can be a program name with args.
12802 set dummy cc; ac_word=$2
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12804 $as_echo_n "checking for $ac_word... " >&6; }
12805 if ${ac_cv_prog_CC+:} false; then :
12806   $as_echo_n "(cached) " >&6
12807 else
12808   if test -n "$CC"; then
12809   ac_cv_prog_CC="$CC" # Let the user override the test.
12810 else
12811   ac_prog_rejected=no
12812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12813 for as_dir in $PATH
12814 do
12815   IFS=$as_save_IFS
12816   test -z "$as_dir" && as_dir=.
12817     for ac_exec_ext in '' $ac_executable_extensions; do
12818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12819     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12820        ac_prog_rejected=yes
12821        continue
12822      fi
12823     ac_cv_prog_CC="cc"
12824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12825     break 2
12826   fi
12827 done
12828   done
12829 IFS=$as_save_IFS
12830
12831 if test $ac_prog_rejected = yes; then
12832   # We found a bogon in the path, so make sure we never use it.
12833   set dummy $ac_cv_prog_CC
12834   shift
12835   if test $# != 0; then
12836     # We chose a different compiler from the bogus one.
12837     # However, it has the same basename, so the bogon will be chosen
12838     # first if we set CC to just the basename; use the full file name.
12839     shift
12840     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12841   fi
12842 fi
12843 fi
12844 fi
12845 CC=$ac_cv_prog_CC
12846 if test -n "$CC"; then
12847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12848 $as_echo "$CC" >&6; }
12849 else
12850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12851 $as_echo "no" >&6; }
12852 fi
12853
12854
12855 fi
12856 if test -z "$CC"; then
12857   if test -n "$ac_tool_prefix"; then
12858   for ac_prog in cl.exe
12859   do
12860     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12863 $as_echo_n "checking for $ac_word... " >&6; }
12864 if ${ac_cv_prog_CC+:} false; then :
12865   $as_echo_n "(cached) " >&6
12866 else
12867   if test -n "$CC"; then
12868   ac_cv_prog_CC="$CC" # Let the user override the test.
12869 else
12870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12871 for as_dir in $PATH
12872 do
12873   IFS=$as_save_IFS
12874   test -z "$as_dir" && as_dir=.
12875     for ac_exec_ext in '' $ac_executable_extensions; do
12876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12877     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12879     break 2
12880   fi
12881 done
12882   done
12883 IFS=$as_save_IFS
12884
12885 fi
12886 fi
12887 CC=$ac_cv_prog_CC
12888 if test -n "$CC"; then
12889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12890 $as_echo "$CC" >&6; }
12891 else
12892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12894 fi
12895
12896
12897     test -n "$CC" && break
12898   done
12899 fi
12900 if test -z "$CC"; then
12901   ac_ct_CC=$CC
12902   for ac_prog in cl.exe
12903 do
12904   # Extract the first word of "$ac_prog", so it can be a program name with args.
12905 set dummy $ac_prog; ac_word=$2
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907 $as_echo_n "checking for $ac_word... " >&6; }
12908 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12909   $as_echo_n "(cached) " >&6
12910 else
12911   if test -n "$ac_ct_CC"; then
12912   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12913 else
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12916 do
12917   IFS=$as_save_IFS
12918   test -z "$as_dir" && as_dir=.
12919     for ac_exec_ext in '' $ac_executable_extensions; do
12920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12921     ac_cv_prog_ac_ct_CC="$ac_prog"
12922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12923     break 2
12924   fi
12925 done
12926   done
12927 IFS=$as_save_IFS
12928
12929 fi
12930 fi
12931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12932 if test -n "$ac_ct_CC"; then
12933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12934 $as_echo "$ac_ct_CC" >&6; }
12935 else
12936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12938 fi
12939
12940
12941   test -n "$ac_ct_CC" && break
12942 done
12943
12944   if test "x$ac_ct_CC" = x; then
12945     CC=""
12946   else
12947     case $cross_compiling:$ac_tool_warned in
12948 yes:)
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12951 ac_tool_warned=yes ;;
12952 esac
12953     CC=$ac_ct_CC
12954   fi
12955 fi
12956
12957 fi
12958
12959
12960 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12962 as_fn_error $? "no acceptable C compiler found in \$PATH
12963 See \`config.log' for more details" "$LINENO" 5; }
12964
12965 # Provide some information about the compiler.
12966 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12967 set X $ac_compile
12968 ac_compiler=$2
12969 for ac_option in --version -v -V -qversion; do
12970   { { ac_try="$ac_compiler $ac_option >&5"
12971 case "(($ac_try" in
12972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973   *) ac_try_echo=$ac_try;;
12974 esac
12975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12976 $as_echo "$ac_try_echo"; } >&5
12977   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12978   ac_status=$?
12979   if test -s conftest.err; then
12980     sed '10a\
12981 ... rest of stderr output deleted ...
12982          10q' conftest.err >conftest.er1
12983     cat conftest.er1 >&5
12984   fi
12985   rm -f conftest.er1 conftest.err
12986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12987   test $ac_status = 0; }
12988 done
12989
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12991 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12992 if ${ac_cv_c_compiler_gnu+:} false; then :
12993   $as_echo_n "(cached) " >&6
12994 else
12995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h.  */
12997
12998 int
12999 main ()
13000 {
13001 #ifndef __GNUC__
13002        choke me
13003 #endif
13004
13005   ;
13006   return 0;
13007 }
13008 _ACEOF
13009 if ac_fn_c_try_compile "$LINENO"; then :
13010   ac_compiler_gnu=yes
13011 else
13012   ac_compiler_gnu=no
13013 fi
13014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13015 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13016
13017 fi
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13019 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13020 if test $ac_compiler_gnu = yes; then
13021   GCC=yes
13022 else
13023   GCC=
13024 fi
13025 ac_test_CFLAGS=${CFLAGS+set}
13026 ac_save_CFLAGS=$CFLAGS
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13028 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13029 if ${ac_cv_prog_cc_g+:} false; then :
13030   $as_echo_n "(cached) " >&6
13031 else
13032   ac_save_c_werror_flag=$ac_c_werror_flag
13033    ac_c_werror_flag=yes
13034    ac_cv_prog_cc_g=no
13035    CFLAGS="-g"
13036    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h.  */
13038
13039 int
13040 main ()
13041 {
13042
13043   ;
13044   return 0;
13045 }
13046 _ACEOF
13047 if ac_fn_c_try_compile "$LINENO"; then :
13048   ac_cv_prog_cc_g=yes
13049 else
13050   CFLAGS=""
13051       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h.  */
13053
13054 int
13055 main ()
13056 {
13057
13058   ;
13059   return 0;
13060 }
13061 _ACEOF
13062 if ac_fn_c_try_compile "$LINENO"; then :
13063
13064 else
13065   ac_c_werror_flag=$ac_save_c_werror_flag
13066          CFLAGS="-g"
13067          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13068 /* end confdefs.h.  */
13069
13070 int
13071 main ()
13072 {
13073
13074   ;
13075   return 0;
13076 }
13077 _ACEOF
13078 if ac_fn_c_try_compile "$LINENO"; then :
13079   ac_cv_prog_cc_g=yes
13080 fi
13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13082 fi
13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084 fi
13085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13086    ac_c_werror_flag=$ac_save_c_werror_flag
13087 fi
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13089 $as_echo "$ac_cv_prog_cc_g" >&6; }
13090 if test "$ac_test_CFLAGS" = set; then
13091   CFLAGS=$ac_save_CFLAGS
13092 elif test $ac_cv_prog_cc_g = yes; then
13093   if test "$GCC" = yes; then
13094     CFLAGS="-g -O2"
13095   else
13096     CFLAGS="-g"
13097   fi
13098 else
13099   if test "$GCC" = yes; then
13100     CFLAGS="-O2"
13101   else
13102     CFLAGS=
13103   fi
13104 fi
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13106 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13107 if ${ac_cv_prog_cc_c89+:} false; then :
13108   $as_echo_n "(cached) " >&6
13109 else
13110   ac_cv_prog_cc_c89=no
13111 ac_save_CC=$CC
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h.  */
13114 #include <stdarg.h>
13115 #include <stdio.h>
13116 struct stat;
13117 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13118 struct buf { int x; };
13119 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13120 static char *e (p, i)
13121      char **p;
13122      int i;
13123 {
13124   return p[i];
13125 }
13126 static char *f (char * (*g) (char **, int), char **p, ...)
13127 {
13128   char *s;
13129   va_list v;
13130   va_start (v,p);
13131   s = g (p, va_arg (v,int));
13132   va_end (v);
13133   return s;
13134 }
13135
13136 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13137    function prototypes and stuff, but not '\xHH' hex character constants.
13138    These don't provoke an error unfortunately, instead are silently treated
13139    as 'x'.  The following induces an error, until -std is added to get
13140    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13141    array size at least.  It's necessary to write '\x00'==0 to get something
13142    that's true only with -std.  */
13143 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13144
13145 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13146    inside strings and character constants.  */
13147 #define FOO(x) 'x'
13148 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13149
13150 int test (int i, double x);
13151 struct s1 {int (*f) (int a);};
13152 struct s2 {int (*f) (double a);};
13153 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13154 int argc;
13155 char **argv;
13156 int
13157 main ()
13158 {
13159 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13160   ;
13161   return 0;
13162 }
13163 _ACEOF
13164 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13165         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13166 do
13167   CC="$ac_save_CC $ac_arg"
13168   if ac_fn_c_try_compile "$LINENO"; then :
13169   ac_cv_prog_cc_c89=$ac_arg
13170 fi
13171 rm -f core conftest.err conftest.$ac_objext
13172   test "x$ac_cv_prog_cc_c89" != "xno" && break
13173 done
13174 rm -f conftest.$ac_ext
13175 CC=$ac_save_CC
13176
13177 fi
13178 # AC_CACHE_VAL
13179 case "x$ac_cv_prog_cc_c89" in
13180   x)
13181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13182 $as_echo "none needed" >&6; } ;;
13183   xno)
13184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13185 $as_echo "unsupported" >&6; } ;;
13186   *)
13187     CC="$CC $ac_cv_prog_cc_c89"
13188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13189 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13190 esac
13191 if test "x$ac_cv_prog_cc_c89" != xno; then :
13192
13193 fi
13194
13195 ac_ext=c
13196 ac_cpp='$CPP $CPPFLAGS'
13197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13200
13201 ac_ext=c
13202 ac_cpp='$CPP $CPPFLAGS'
13203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13207 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13208 if ${am_cv_prog_cc_c_o+:} false; then :
13209   $as_echo_n "(cached) " >&6
13210 else
13211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h.  */
13213
13214 int
13215 main ()
13216 {
13217
13218   ;
13219   return 0;
13220 }
13221 _ACEOF
13222   # Make sure it works both with $CC and with simple cc.
13223   # Following AC_PROG_CC_C_O, we do the test twice because some
13224   # compilers refuse to overwrite an existing .o file with -o,
13225   # though they will create one.
13226   am_cv_prog_cc_c_o=yes
13227   for am_i in 1 2; do
13228     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13229    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13230    ac_status=$?
13231    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232    (exit $ac_status); } \
13233          && test -f conftest2.$ac_objext; then
13234       : OK
13235     else
13236       am_cv_prog_cc_c_o=no
13237       break
13238     fi
13239   done
13240   rm -f core conftest*
13241   unset am_i
13242 fi
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13244 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13245 if test "$am_cv_prog_cc_c_o" != yes; then
13246    # Losing compiler, so override with the script.
13247    # FIXME: It is wrong to rewrite CC.
13248    # But if we don't then we get into trouble of one sort or another.
13249    # A longer-term fix would be to have automake use am__CC in this case,
13250    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13251    CC="$am_aux_dir/compile $CC"
13252 fi
13253 ac_ext=c
13254 ac_cpp='$CPP $CPPFLAGS'
13255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13258
13259
13260 depcc="$CC"   am_compiler_list=
13261
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13263 $as_echo_n "checking dependency style of $depcc... " >&6; }
13264 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13265   $as_echo_n "(cached) " >&6
13266 else
13267   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13268   # We make a subdir and do the tests there.  Otherwise we can end up
13269   # making bogus files that we don't know about and never remove.  For
13270   # instance it was reported that on HP-UX the gcc test will end up
13271   # making a dummy file named 'D' -- because '-MD' means "put the output
13272   # in D".
13273   rm -rf conftest.dir
13274   mkdir conftest.dir
13275   # Copy depcomp to subdir because otherwise we won't find it if we're
13276   # using a relative directory.
13277   cp "$am_depcomp" conftest.dir
13278   cd conftest.dir
13279   # We will build objects and dependencies in a subdirectory because
13280   # it helps to detect inapplicable dependency modes.  For instance
13281   # both Tru64's cc and ICC support -MD to output dependencies as a
13282   # side effect of compilation, but ICC will put the dependencies in
13283   # the current directory while Tru64 will put them in the object
13284   # directory.
13285   mkdir sub
13286
13287   am_cv_CC_dependencies_compiler_type=none
13288   if test "$am_compiler_list" = ""; then
13289      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13290   fi
13291   am__universal=false
13292   case " $depcc " in #(
13293      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13294      esac
13295
13296   for depmode in $am_compiler_list; do
13297     # Setup a source with many dependencies, because some compilers
13298     # like to wrap large dependency lists on column 80 (with \), and
13299     # we should not choose a depcomp mode which is confused by this.
13300     #
13301     # We need to recreate these files for each test, as the compiler may
13302     # overwrite some of them when testing with obscure command lines.
13303     # This happens at least with the AIX C compiler.
13304     : > sub/conftest.c
13305     for i in 1 2 3 4 5 6; do
13306       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13307       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13308       # Solaris 10 /bin/sh.
13309       echo '/* dummy */' > sub/conftst$i.h
13310     done
13311     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13312
13313     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13314     # mode.  It turns out that the SunPro C++ compiler does not properly
13315     # handle '-M -o', and we need to detect this.  Also, some Intel
13316     # versions had trouble with output in subdirs.
13317     am__obj=sub/conftest.${OBJEXT-o}
13318     am__minus_obj="-o $am__obj"
13319     case $depmode in
13320     gcc)
13321       # This depmode causes a compiler race in universal mode.
13322       test "$am__universal" = false || continue
13323       ;;
13324     nosideeffect)
13325       # After this tag, mechanisms are not by side-effect, so they'll
13326       # only be used when explicitly requested.
13327       if test "x$enable_dependency_tracking" = xyes; then
13328         continue
13329       else
13330         break
13331       fi
13332       ;;
13333     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13334       # This compiler won't grok '-c -o', but also, the minuso test has
13335       # not run yet.  These depmodes are late enough in the game, and
13336       # so weak that their functioning should not be impacted.
13337       am__obj=conftest.${OBJEXT-o}
13338       am__minus_obj=
13339       ;;
13340     none) break ;;
13341     esac
13342     if depmode=$depmode \
13343        source=sub/conftest.c object=$am__obj \
13344        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13345        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13346          >/dev/null 2>conftest.err &&
13347        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13348        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13349        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13350        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13351       # icc doesn't choke on unknown options, it will just issue warnings
13352       # or remarks (even with -Werror).  So we grep stderr for any message
13353       # that says an option was ignored or not supported.
13354       # When given -MP, icc 7.0 and 7.1 complain thusly:
13355       #   icc: Command line warning: ignoring option '-M'; no argument required
13356       # The diagnosis changed in icc 8.0:
13357       #   icc: Command line remark: option '-MP' not supported
13358       if (grep 'ignoring option' conftest.err ||
13359           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13360         am_cv_CC_dependencies_compiler_type=$depmode
13361         break
13362       fi
13363     fi
13364   done
13365
13366   cd ..
13367   rm -rf conftest.dir
13368 else
13369   am_cv_CC_dependencies_compiler_type=none
13370 fi
13371
13372 fi
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13374 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13375 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13376
13377  if
13378   test "x$enable_dependency_tracking" != xno \
13379   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13380   am__fastdepCC_TRUE=
13381   am__fastdepCC_FALSE='#'
13382 else
13383   am__fastdepCC_TRUE='#'
13384   am__fastdepCC_FALSE=
13385 fi
13386
13387
13388
13389 # Extract the first word of "valac", so it can be a program name with args.
13390 set dummy valac; ac_word=$2
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13392 $as_echo_n "checking for $ac_word... " >&6; }
13393 if ${ac_cv_path_VALAC+:} false; then :
13394   $as_echo_n "(cached) " >&6
13395 else
13396   case $VALAC in
13397   [\\/]* | ?:[\\/]*)
13398   ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
13399   ;;
13400   *)
13401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13402 for as_dir in $PATH
13403 do
13404   IFS=$as_save_IFS
13405   test -z "$as_dir" && as_dir=.
13406     for ac_exec_ext in '' $ac_executable_extensions; do
13407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13408     ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
13409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13410     break 2
13411   fi
13412 done
13413   done
13414 IFS=$as_save_IFS
13415
13416   test -z "$ac_cv_path_VALAC" && ac_cv_path_VALAC="valac"
13417   ;;
13418 esac
13419 fi
13420 VALAC=$ac_cv_path_VALAC
13421 if test -n "$VALAC"; then
13422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
13423 $as_echo "$VALAC" >&6; }
13424 else
13425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426 $as_echo "no" >&6; }
13427 fi
13428
13429
13430    if test "$VALAC" != valac && test -n "0.9"; then :
13431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $VALAC is at least version 0.9" >&5
13432 $as_echo_n "checking whether $VALAC is at least version 0.9... " >&6; }
13433        am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
13434        as_arg_v1=0.9
13435 as_arg_v2="$am__vala_version"
13436 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13437 case $? in #(
13438   1) :
13439     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13440 $as_echo "yes" >&6; } ;; #(
13441   0) :
13442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13443 $as_echo "yes" >&6; } ;; #(
13444   2) :
13445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446 $as_echo "no" >&6; }
13447           VALAC=valac ;; #(
13448   *) :
13449      ;;
13450 esac
13451 fi
13452     if test "$VALAC" = valac; then
13453       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no proper vala compiler found" >&5
13454 $as_echo "$as_me: WARNING: no proper vala compiler found" >&2;}
13455          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: you will not be able to compile vala source files" >&5
13456 $as_echo "$as_me: WARNING: you will not be able to compile vala source files" >&2;}
13457     else
13458       :
13459     fi
13460
13461 # Platform checks
13462
13463
13464 case "$host" in
13465   *-*-mingw*)
13466     win32=yes
13467     macos=no
13468     linux=no
13469     SERVER_IPC_MODULE="msrpc-glib2-1.0"
13470     CLIENT_IPC_MODULE="msrpc-mingw-1.0"
13471     ;;
13472
13473   *darwin*)
13474     win32=no
13475     macos=yes
13476     linux=no
13477
13478     # We require dbus-glib for the client library even if we are using GDBus
13479     # in the server. The reason we can't always use dbus-glib in the server is
13480     # because Vala drops support for it, but as it ships with DBus there is very
13481     # little danger of it being dropped by distros any time soon.
13482     CLIENT_IPC_MODULE="dbus-glib-1"
13483         SERVER_IPC_MODULE="dbus-glib-1"
13484
13485
13486 pkg_failed=no
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAC" >&5
13488 $as_echo_n "checking for MAC... " >&6; }
13489
13490 if test -n "$MAC_CFLAGS"; then
13491     pkg_cv_MAC_CFLAGS="$MAC_CFLAGS"
13492  elif test -n "$PKG_CONFIG"; then
13493     if test -n "$PKG_CONFIG" && \
13494     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
13495         \""; } >&5
13496   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
13497         ") 2>&5
13498   ac_status=$?
13499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13500   test $ac_status = 0; }; then
13501   pkg_cv_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration >= 1.0.1
13502         " 2>/dev/null`
13503                       test "x$?" != "x0" && pkg_failed=yes
13504 else
13505   pkg_failed=yes
13506 fi
13507  else
13508     pkg_failed=untried
13509 fi
13510 if test -n "$MAC_LIBS"; then
13511     pkg_cv_MAC_LIBS="$MAC_LIBS"
13512  elif test -n "$PKG_CONFIG"; then
13513     if test -n "$PKG_CONFIG" && \
13514     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
13515         \""; } >&5
13516   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
13517         ") 2>&5
13518   ac_status=$?
13519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13520   test $ac_status = 0; }; then
13521   pkg_cv_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration >= 1.0.1
13522         " 2>/dev/null`
13523                       test "x$?" != "x0" && pkg_failed=yes
13524 else
13525   pkg_failed=yes
13526 fi
13527  else
13528     pkg_failed=untried
13529 fi
13530
13531
13532
13533 if test $pkg_failed = yes; then
13534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535 $as_echo "no" >&6; }
13536
13537 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13538         _pkg_short_errors_supported=yes
13539 else
13540         _pkg_short_errors_supported=no
13541 fi
13542         if test $_pkg_short_errors_supported = yes; then
13543                 MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
13544         " 2>&1`
13545         else
13546                 MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
13547         " 2>&1`
13548         fi
13549         # Put the nasty error message in config.log where it belongs
13550         echo "$MAC_PKG_ERRORS" >&5
13551
13552         as_fn_error $? "Package requirements (gtk-mac-integration >= 1.0.1
13553         ) were not met:
13554
13555 $MAC_PKG_ERRORS
13556
13557 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13558 installed software in a non-standard prefix.
13559
13560 Alternatively, you may set the environment variables MAC_CFLAGS
13561 and MAC_LIBS to avoid the need to call pkg-config.
13562 See the pkg-config man page for more details." "$LINENO" 5
13563 elif test $pkg_failed = untried; then
13564         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13565 $as_echo "no" >&6; }
13566         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13568 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13569 is in your PATH or set the PKG_CONFIG environment variable to the full
13570 path to pkg-config.
13571
13572 Alternatively, you may set the environment variables MAC_CFLAGS
13573 and MAC_LIBS to avoid the need to call pkg-config.
13574 See the pkg-config man page for more details.
13575
13576 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13577 See \`config.log' for more details" "$LINENO" 5; }
13578 else
13579         MAC_CFLAGS=$pkg_cv_MAC_CFLAGS
13580         MAC_LIBS=$pkg_cv_MAC_LIBS
13581         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13582 $as_echo "yes" >&6; }
13583
13584 fi
13585
13586     ;;
13587   *)
13588     macos=no
13589     win32=no
13590     linux=yes
13591
13592     # We require dbus-glib for the client library even if we are using GDBus
13593     # in the server. The reason we can't always use dbus-glib in the server is
13594     # because Vala drops support for it, but as it ships with DBus there is very
13595     # little danger of it being dropped by distros any time soon.
13596     CLIENT_IPC_MODULE="dbus-glib-1"
13597
13598 pkg_failed=no
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDBUS" >&5
13600 $as_echo_n "checking for GDBUS... " >&6; }
13601
13602 if test -n "$GDBUS_CFLAGS"; then
13603     pkg_cv_GDBUS_CFLAGS="$GDBUS_CFLAGS"
13604  elif test -n "$PKG_CONFIG"; then
13605     if test -n "$PKG_CONFIG" && \
13606     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
13607   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
13608   ac_status=$?
13609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13610   test $ac_status = 0; }; then
13611   pkg_cv_GDBUS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
13612                       test "x$?" != "x0" && pkg_failed=yes
13613 else
13614   pkg_failed=yes
13615 fi
13616  else
13617     pkg_failed=untried
13618 fi
13619 if test -n "$GDBUS_LIBS"; then
13620     pkg_cv_GDBUS_LIBS="$GDBUS_LIBS"
13621  elif test -n "$PKG_CONFIG"; then
13622     if test -n "$PKG_CONFIG" && \
13623     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
13624   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
13625   ac_status=$?
13626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13627   test $ac_status = 0; }; then
13628   pkg_cv_GDBUS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
13629                       test "x$?" != "x0" && pkg_failed=yes
13630 else
13631   pkg_failed=yes
13632 fi
13633  else
13634     pkg_failed=untried
13635 fi
13636
13637
13638
13639 if test $pkg_failed = yes; then
13640         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13642
13643 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13644         _pkg_short_errors_supported=yes
13645 else
13646         _pkg_short_errors_supported=no
13647 fi
13648         if test $_pkg_short_errors_supported = yes; then
13649                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
13650         else
13651                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
13652         fi
13653         # Put the nasty error message in config.log where it belongs
13654         echo "$GDBUS_PKG_ERRORS" >&5
13655
13656         SERVER_IPC_MODULE="dbus-glib-1"
13657
13658 elif test $pkg_failed = untried; then
13659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660 $as_echo "no" >&6; }
13661         SERVER_IPC_MODULE="dbus-glib-1"
13662
13663 else
13664         GDBUS_CFLAGS=$pkg_cv_GDBUS_CFLAGS
13665         GDBUS_LIBS=$pkg_cv_GDBUS_LIBS
13666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13667 $as_echo "yes" >&6; }
13668         SERVER_IPC_MODULE="gio-2.0"
13669 fi
13670
13671     ;;
13672 esac
13673
13674
13675 # For all platforms: Use Gtk+3.0 if available; else revert to Gtk+2.0
13676
13677 pkg_failed=no
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
13679 $as_echo_n "checking for GTK... " >&6; }
13680
13681 if test -n "$GTK_CFLAGS"; then
13682     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13683  elif test -n "$PKG_CONFIG"; then
13684     if test -n "$PKG_CONFIG" && \
13685     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.1\""; } >&5
13686   ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.1") 2>&5
13687   ac_status=$?
13688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13689   test $ac_status = 0; }; then
13690   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.1" 2>/dev/null`
13691                       test "x$?" != "x0" && pkg_failed=yes
13692 else
13693   pkg_failed=yes
13694 fi
13695  else
13696     pkg_failed=untried
13697 fi
13698 if test -n "$GTK_LIBS"; then
13699     pkg_cv_GTK_LIBS="$GTK_LIBS"
13700  elif test -n "$PKG_CONFIG"; then
13701     if test -n "$PKG_CONFIG" && \
13702     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.1\""; } >&5
13703   ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.1") 2>&5
13704   ac_status=$?
13705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13706   test $ac_status = 0; }; then
13707   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.1" 2>/dev/null`
13708                       test "x$?" != "x0" && pkg_failed=yes
13709 else
13710   pkg_failed=yes
13711 fi
13712  else
13713     pkg_failed=untried
13714 fi
13715
13716
13717
13718 if test $pkg_failed = yes; then
13719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13720 $as_echo "no" >&6; }
13721
13722 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13723         _pkg_short_errors_supported=yes
13724 else
13725         _pkg_short_errors_supported=no
13726 fi
13727         if test $_pkg_short_errors_supported = yes; then
13728                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.1" 2>&1`
13729         else
13730                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.1" 2>&1`
13731         fi
13732         # Put the nasty error message in config.log where it belongs
13733         echo "$GTK_PKG_ERRORS" >&5
13734
13735
13736 pkg_failed=no
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
13738 $as_echo_n "checking for GTK... " >&6; }
13739
13740 if test -n "$GTK_CFLAGS"; then
13741     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13742  elif test -n "$PKG_CONFIG"; then
13743     if test -n "$PKG_CONFIG" && \
13744     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13745   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13746   ac_status=$?
13747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13748   test $ac_status = 0; }; then
13749   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
13750                       test "x$?" != "x0" && pkg_failed=yes
13751 else
13752   pkg_failed=yes
13753 fi
13754  else
13755     pkg_failed=untried
13756 fi
13757 if test -n "$GTK_LIBS"; then
13758     pkg_cv_GTK_LIBS="$GTK_LIBS"
13759  elif test -n "$PKG_CONFIG"; then
13760     if test -n "$PKG_CONFIG" && \
13761     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13762   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13763   ac_status=$?
13764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13765   test $ac_status = 0; }; then
13766   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
13767                       test "x$?" != "x0" && pkg_failed=yes
13768 else
13769   pkg_failed=yes
13770 fi
13771  else
13772     pkg_failed=untried
13773 fi
13774
13775
13776
13777 if test $pkg_failed = yes; then
13778         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13779 $as_echo "no" >&6; }
13780
13781 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13782         _pkg_short_errors_supported=yes
13783 else
13784         _pkg_short_errors_supported=no
13785 fi
13786         if test $_pkg_short_errors_supported = yes; then
13787                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13788         else
13789                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13790         fi
13791         # Put the nasty error message in config.log where it belongs
13792         echo "$GTK_PKG_ERRORS" >&5
13793
13794         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13795
13796 $GTK_PKG_ERRORS
13797
13798 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13799 installed software in a non-standard prefix.
13800
13801 Alternatively, you may set the environment variables GTK_CFLAGS
13802 and GTK_LIBS to avoid the need to call pkg-config.
13803 See the pkg-config man page for more details." "$LINENO" 5
13804 elif test $pkg_failed = untried; then
13805         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13806 $as_echo "no" >&6; }
13807         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13809 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13810 is in your PATH or set the PKG_CONFIG environment variable to the full
13811 path to pkg-config.
13812
13813 Alternatively, you may set the environment variables GTK_CFLAGS
13814 and GTK_LIBS to avoid the need to call pkg-config.
13815 See the pkg-config man page for more details.
13816
13817 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13818 See \`config.log' for more details" "$LINENO" 5; }
13819 else
13820         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13821         GTK_LIBS=$pkg_cv_GTK_LIBS
13822         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13823 $as_echo "yes" >&6; }
13824         GTK_VERSION="gtk+-2.0"
13825
13826 fi
13827
13828 elif test $pkg_failed = untried; then
13829         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13830 $as_echo "no" >&6; }
13831
13832 pkg_failed=no
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
13834 $as_echo_n "checking for GTK... " >&6; }
13835
13836 if test -n "$GTK_CFLAGS"; then
13837     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13838  elif test -n "$PKG_CONFIG"; then
13839     if test -n "$PKG_CONFIG" && \
13840     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13841   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13842   ac_status=$?
13843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13844   test $ac_status = 0; }; then
13845   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
13846                       test "x$?" != "x0" && pkg_failed=yes
13847 else
13848   pkg_failed=yes
13849 fi
13850  else
13851     pkg_failed=untried
13852 fi
13853 if test -n "$GTK_LIBS"; then
13854     pkg_cv_GTK_LIBS="$GTK_LIBS"
13855  elif test -n "$PKG_CONFIG"; then
13856     if test -n "$PKG_CONFIG" && \
13857     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13858   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13859   ac_status=$?
13860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13861   test $ac_status = 0; }; then
13862   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
13863                       test "x$?" != "x0" && pkg_failed=yes
13864 else
13865   pkg_failed=yes
13866 fi
13867  else
13868     pkg_failed=untried
13869 fi
13870
13871
13872
13873 if test $pkg_failed = yes; then
13874         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13875 $as_echo "no" >&6; }
13876
13877 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13878         _pkg_short_errors_supported=yes
13879 else
13880         _pkg_short_errors_supported=no
13881 fi
13882         if test $_pkg_short_errors_supported = yes; then
13883                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13884         else
13885                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13886         fi
13887         # Put the nasty error message in config.log where it belongs
13888         echo "$GTK_PKG_ERRORS" >&5
13889
13890         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13891
13892 $GTK_PKG_ERRORS
13893
13894 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13895 installed software in a non-standard prefix.
13896
13897 Alternatively, you may set the environment variables GTK_CFLAGS
13898 and GTK_LIBS to avoid the need to call pkg-config.
13899 See the pkg-config man page for more details." "$LINENO" 5
13900 elif test $pkg_failed = untried; then
13901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13902 $as_echo "no" >&6; }
13903         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13905 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13906 is in your PATH or set the PKG_CONFIG environment variable to the full
13907 path to pkg-config.
13908
13909 Alternatively, you may set the environment variables GTK_CFLAGS
13910 and GTK_LIBS to avoid the need to call pkg-config.
13911 See the pkg-config man page for more details.
13912
13913 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13914 See \`config.log' for more details" "$LINENO" 5; }
13915 else
13916         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13917         GTK_LIBS=$pkg_cv_GTK_LIBS
13918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13919 $as_echo "yes" >&6; }
13920         GTK_VERSION="gtk+-2.0"
13921
13922 fi
13923
13924 else
13925         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13926         GTK_LIBS=$pkg_cv_GTK_LIBS
13927         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13928 $as_echo "yes" >&6; }
13929         GTK_VERSION="gtk+-3.0"
13930 fi
13931
13932
13933
13934 # For all platforms: If Log4Vala is enabled, then Use Log4Vala 0.2 if available; else revert to 0.1
13935 if test x$log4vala = xtrue; then
13936
13937 pkg_failed=no
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG4VALA" >&5
13939 $as_echo_n "checking for LOG4VALA... " >&6; }
13940
13941 if test -n "$LOG4VALA_CFLAGS"; then
13942     pkg_cv_LOG4VALA_CFLAGS="$LOG4VALA_CFLAGS"
13943  elif test -n "$PKG_CONFIG"; then
13944     if test -n "$PKG_CONFIG" && \
13945     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"log4vala-0.2\""; } >&5
13946   ($PKG_CONFIG --exists --print-errors "log4vala-0.2") 2>&5
13947   ac_status=$?
13948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13949   test $ac_status = 0; }; then
13950   pkg_cv_LOG4VALA_CFLAGS=`$PKG_CONFIG --cflags "log4vala-0.2" 2>/dev/null`
13951                       test "x$?" != "x0" && pkg_failed=yes
13952 else
13953   pkg_failed=yes
13954 fi
13955  else
13956     pkg_failed=untried
13957 fi
13958 if test -n "$LOG4VALA_LIBS"; then
13959     pkg_cv_LOG4VALA_LIBS="$LOG4VALA_LIBS"
13960  elif test -n "$PKG_CONFIG"; then
13961     if test -n "$PKG_CONFIG" && \
13962     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"log4vala-0.2\""; } >&5
13963   ($PKG_CONFIG --exists --print-errors "log4vala-0.2") 2>&5
13964   ac_status=$?
13965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13966   test $ac_status = 0; }; then
13967   pkg_cv_LOG4VALA_LIBS=`$PKG_CONFIG --libs "log4vala-0.2" 2>/dev/null`
13968                       test "x$?" != "x0" && pkg_failed=yes
13969 else
13970   pkg_failed=yes
13971 fi
13972  else
13973     pkg_failed=untried
13974 fi
13975
13976
13977
13978 if test $pkg_failed = yes; then
13979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13980 $as_echo "no" >&6; }
13981
13982 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13983         _pkg_short_errors_supported=yes
13984 else
13985         _pkg_short_errors_supported=no
13986 fi
13987         if test $_pkg_short_errors_supported = yes; then
13988                 LOG4VALA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "log4vala-0.2" 2>&1`
13989         else
13990                 LOG4VALA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "log4vala-0.2" 2>&1`
13991         fi
13992         # Put the nasty error message in config.log where it belongs
13993         echo "$LOG4VALA_PKG_ERRORS" >&5
13994
13995
13996 pkg_failed=no
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG4VALA" >&5
13998 $as_echo_n "checking for LOG4VALA... " >&6; }
13999
14000 if test -n "$LOG4VALA_CFLAGS"; then
14001     pkg_cv_LOG4VALA_CFLAGS="$LOG4VALA_CFLAGS"
14002  elif test -n "$PKG_CONFIG"; then
14003     if test -n "$PKG_CONFIG" && \
14004     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"log4vala-0.1\""; } >&5
14005   ($PKG_CONFIG --exists --print-errors "log4vala-0.1") 2>&5
14006   ac_status=$?
14007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14008   test $ac_status = 0; }; then
14009   pkg_cv_LOG4VALA_CFLAGS=`$PKG_CONFIG --cflags "log4vala-0.1" 2>/dev/null`
14010                       test "x$?" != "x0" && pkg_failed=yes
14011 else
14012   pkg_failed=yes
14013 fi
14014  else
14015     pkg_failed=untried
14016 fi
14017 if test -n "$LOG4VALA_LIBS"; then
14018     pkg_cv_LOG4VALA_LIBS="$LOG4VALA_LIBS"
14019  elif test -n "$PKG_CONFIG"; then
14020     if test -n "$PKG_CONFIG" && \
14021     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"log4vala-0.1\""; } >&5
14022   ($PKG_CONFIG --exists --print-errors "log4vala-0.1") 2>&5
14023   ac_status=$?
14024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14025   test $ac_status = 0; }; then
14026   pkg_cv_LOG4VALA_LIBS=`$PKG_CONFIG --libs "log4vala-0.1" 2>/dev/null`
14027                       test "x$?" != "x0" && pkg_failed=yes
14028 else
14029   pkg_failed=yes
14030 fi
14031  else
14032     pkg_failed=untried
14033 fi
14034
14035
14036
14037 if test $pkg_failed = yes; then
14038         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14039 $as_echo "no" >&6; }
14040
14041 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14042         _pkg_short_errors_supported=yes
14043 else
14044         _pkg_short_errors_supported=no
14045 fi
14046         if test $_pkg_short_errors_supported = yes; then
14047                 LOG4VALA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "log4vala-0.1" 2>&1`
14048         else
14049                 LOG4VALA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "log4vala-0.1" 2>&1`
14050         fi
14051         # Put the nasty error message in config.log where it belongs
14052         echo "$LOG4VALA_PKG_ERRORS" >&5
14053
14054         as_fn_error $? "Package requirements (log4vala-0.1) were not met:
14055
14056 $LOG4VALA_PKG_ERRORS
14057
14058 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14059 installed software in a non-standard prefix.
14060
14061 Alternatively, you may set the environment variables LOG4VALA_CFLAGS
14062 and LOG4VALA_LIBS to avoid the need to call pkg-config.
14063 See the pkg-config man page for more details." "$LINENO" 5
14064 elif test $pkg_failed = untried; then
14065         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14066 $as_echo "no" >&6; }
14067         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14069 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14070 is in your PATH or set the PKG_CONFIG environment variable to the full
14071 path to pkg-config.
14072
14073 Alternatively, you may set the environment variables LOG4VALA_CFLAGS
14074 and LOG4VALA_LIBS to avoid the need to call pkg-config.
14075 See the pkg-config man page for more details.
14076
14077 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14078 See \`config.log' for more details" "$LINENO" 5; }
14079 else
14080         LOG4VALA_CFLAGS=$pkg_cv_LOG4VALA_CFLAGS
14081         LOG4VALA_LIBS=$pkg_cv_LOG4VALA_LIBS
14082         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14083 $as_echo "yes" >&6; }
14084         LOG4VALA_VERSION="log4vala-0.1"
14085
14086 fi
14087
14088 elif test $pkg_failed = untried; then
14089         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14090 $as_echo "no" >&6; }
14091
14092 pkg_failed=no
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG4VALA" >&5
14094 $as_echo_n "checking for LOG4VALA... " >&6; }
14095
14096 if test -n "$LOG4VALA_CFLAGS"; then
14097     pkg_cv_LOG4VALA_CFLAGS="$LOG4VALA_CFLAGS"
14098  elif test -n "$PKG_CONFIG"; then
14099     if test -n "$PKG_CONFIG" && \
14100     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"log4vala-0.1\""; } >&5
14101   ($PKG_CONFIG --exists --print-errors "log4vala-0.1") 2>&5
14102   ac_status=$?
14103   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14104   test $ac_status = 0; }; then
14105   pkg_cv_LOG4VALA_CFLAGS=`$PKG_CONFIG --cflags "log4vala-0.1" 2>/dev/null`
14106                       test "x$?" != "x0" && pkg_failed=yes
14107 else
14108   pkg_failed=yes
14109 fi
14110  else
14111     pkg_failed=untried
14112 fi
14113 if test -n "$LOG4VALA_LIBS"; then
14114     pkg_cv_LOG4VALA_LIBS="$LOG4VALA_LIBS"
14115  elif test -n "$PKG_CONFIG"; then
14116     if test -n "$PKG_CONFIG" && \
14117     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"log4vala-0.1\""; } >&5
14118   ($PKG_CONFIG --exists --print-errors "log4vala-0.1") 2>&5
14119   ac_status=$?
14120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14121   test $ac_status = 0; }; then
14122   pkg_cv_LOG4VALA_LIBS=`$PKG_CONFIG --libs "log4vala-0.1" 2>/dev/null`
14123                       test "x$?" != "x0" && pkg_failed=yes
14124 else
14125   pkg_failed=yes
14126 fi
14127  else
14128     pkg_failed=untried
14129 fi
14130
14131
14132
14133 if test $pkg_failed = yes; then
14134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14135 $as_echo "no" >&6; }
14136
14137 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14138         _pkg_short_errors_supported=yes
14139 else
14140         _pkg_short_errors_supported=no
14141 fi
14142         if test $_pkg_short_errors_supported = yes; then
14143                 LOG4VALA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "log4vala-0.1" 2>&1`
14144         else
14145                 LOG4VALA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "log4vala-0.1" 2>&1`
14146         fi
14147         # Put the nasty error message in config.log where it belongs
14148         echo "$LOG4VALA_PKG_ERRORS" >&5
14149
14150         as_fn_error $? "Package requirements (log4vala-0.1) were not met:
14151
14152 $LOG4VALA_PKG_ERRORS
14153
14154 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14155 installed software in a non-standard prefix.
14156
14157 Alternatively, you may set the environment variables LOG4VALA_CFLAGS
14158 and LOG4VALA_LIBS to avoid the need to call pkg-config.
14159 See the pkg-config man page for more details." "$LINENO" 5
14160 elif test $pkg_failed = untried; then
14161         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14162 $as_echo "no" >&6; }
14163         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14165 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14166 is in your PATH or set the PKG_CONFIG environment variable to the full
14167 path to pkg-config.
14168
14169 Alternatively, you may set the environment variables LOG4VALA_CFLAGS
14170 and LOG4VALA_LIBS to avoid the need to call pkg-config.
14171 See the pkg-config man page for more details.
14172
14173 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14174 See \`config.log' for more details" "$LINENO" 5; }
14175 else
14176         LOG4VALA_CFLAGS=$pkg_cv_LOG4VALA_CFLAGS
14177         LOG4VALA_LIBS=$pkg_cv_LOG4VALA_LIBS
14178         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14179 $as_echo "yes" >&6; }
14180         LOG4VALA_VERSION="log4vala-0.1"
14181
14182 fi
14183
14184 else
14185         LOG4VALA_CFLAGS=$pkg_cv_LOG4VALA_CFLAGS
14186         LOG4VALA_LIBS=$pkg_cv_LOG4VALA_LIBS
14187         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14188 $as_echo "yes" >&6; }
14189         LOG4VALA_VERSION="log4vala-0.2"
14190 fi
14191
14192 fi
14193
14194
14195 # For all platforms: Use gee-0.8 if available; else revert to gee-1.0
14196 # (yes, gee-0.8 is an upgrade from gee-1.0!)
14197
14198 pkg_failed=no
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIB_GEE" >&5
14200 $as_echo_n "checking for LIB_GEE... " >&6; }
14201
14202 if test -n "$LIB_GEE_CFLAGS"; then
14203     pkg_cv_LIB_GEE_CFLAGS="$LIB_GEE_CFLAGS"
14204  elif test -n "$PKG_CONFIG"; then
14205     if test -n "$PKG_CONFIG" && \
14206     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-0.8 >= 0.10.5\""; } >&5
14207   ($PKG_CONFIG --exists --print-errors "gee-0.8 >= 0.10.5") 2>&5
14208   ac_status=$?
14209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14210   test $ac_status = 0; }; then
14211   pkg_cv_LIB_GEE_CFLAGS=`$PKG_CONFIG --cflags "gee-0.8 >= 0.10.5" 2>/dev/null`
14212                       test "x$?" != "x0" && pkg_failed=yes
14213 else
14214   pkg_failed=yes
14215 fi
14216  else
14217     pkg_failed=untried
14218 fi
14219 if test -n "$LIB_GEE_LIBS"; then
14220     pkg_cv_LIB_GEE_LIBS="$LIB_GEE_LIBS"
14221  elif test -n "$PKG_CONFIG"; then
14222     if test -n "$PKG_CONFIG" && \
14223     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-0.8 >= 0.10.5\""; } >&5
14224   ($PKG_CONFIG --exists --print-errors "gee-0.8 >= 0.10.5") 2>&5
14225   ac_status=$?
14226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14227   test $ac_status = 0; }; then
14228   pkg_cv_LIB_GEE_LIBS=`$PKG_CONFIG --libs "gee-0.8 >= 0.10.5" 2>/dev/null`
14229                       test "x$?" != "x0" && pkg_failed=yes
14230 else
14231   pkg_failed=yes
14232 fi
14233  else
14234     pkg_failed=untried
14235 fi
14236
14237
14238
14239 if test $pkg_failed = yes; then
14240         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14241 $as_echo "no" >&6; }
14242
14243 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14244         _pkg_short_errors_supported=yes
14245 else
14246         _pkg_short_errors_supported=no
14247 fi
14248         if test $_pkg_short_errors_supported = yes; then
14249                 LIB_GEE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gee-0.8 >= 0.10.5" 2>&1`
14250         else
14251                 LIB_GEE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gee-0.8 >= 0.10.5" 2>&1`
14252         fi
14253         # Put the nasty error message in config.log where it belongs
14254         echo "$LIB_GEE_PKG_ERRORS" >&5
14255
14256
14257 pkg_failed=no
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIB_GEE" >&5
14259 $as_echo_n "checking for LIB_GEE... " >&6; }
14260
14261 if test -n "$LIB_GEE_CFLAGS"; then
14262     pkg_cv_LIB_GEE_CFLAGS="$LIB_GEE_CFLAGS"
14263  elif test -n "$PKG_CONFIG"; then
14264     if test -n "$PKG_CONFIG" && \
14265     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-1.0 >= 0.5\""; } >&5
14266   ($PKG_CONFIG --exists --print-errors "gee-1.0 >= 0.5") 2>&5
14267   ac_status=$?
14268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14269   test $ac_status = 0; }; then
14270   pkg_cv_LIB_GEE_CFLAGS=`$PKG_CONFIG --cflags "gee-1.0 >= 0.5" 2>/dev/null`
14271                       test "x$?" != "x0" && pkg_failed=yes
14272 else
14273   pkg_failed=yes
14274 fi
14275  else
14276     pkg_failed=untried
14277 fi
14278 if test -n "$LIB_GEE_LIBS"; then
14279     pkg_cv_LIB_GEE_LIBS="$LIB_GEE_LIBS"
14280  elif test -n "$PKG_CONFIG"; then
14281     if test -n "$PKG_CONFIG" && \
14282     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-1.0 >= 0.5\""; } >&5
14283   ($PKG_CONFIG --exists --print-errors "gee-1.0 >= 0.5") 2>&5
14284   ac_status=$?
14285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14286   test $ac_status = 0; }; then
14287   pkg_cv_LIB_GEE_LIBS=`$PKG_CONFIG --libs "gee-1.0 >= 0.5" 2>/dev/null`
14288                       test "x$?" != "x0" && pkg_failed=yes
14289 else
14290   pkg_failed=yes
14291 fi
14292  else
14293     pkg_failed=untried
14294 fi
14295
14296
14297
14298 if test $pkg_failed = yes; then
14299         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14300 $as_echo "no" >&6; }
14301
14302 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14303         _pkg_short_errors_supported=yes
14304 else
14305         _pkg_short_errors_supported=no
14306 fi
14307         if test $_pkg_short_errors_supported = yes; then
14308                 LIB_GEE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gee-1.0 >= 0.5" 2>&1`
14309         else
14310                 LIB_GEE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gee-1.0 >= 0.5" 2>&1`
14311         fi
14312         # Put the nasty error message in config.log where it belongs
14313         echo "$LIB_GEE_PKG_ERRORS" >&5
14314
14315         as_fn_error $? "Package requirements (gee-1.0 >= 0.5) were not met:
14316
14317 $LIB_GEE_PKG_ERRORS
14318
14319 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14320 installed software in a non-standard prefix.
14321
14322 Alternatively, you may set the environment variables LIB_GEE_CFLAGS
14323 and LIB_GEE_LIBS to avoid the need to call pkg-config.
14324 See the pkg-config man page for more details." "$LINENO" 5
14325 elif test $pkg_failed = untried; then
14326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14327 $as_echo "no" >&6; }
14328         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14330 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14331 is in your PATH or set the PKG_CONFIG environment variable to the full
14332 path to pkg-config.
14333
14334 Alternatively, you may set the environment variables LIB_GEE_CFLAGS
14335 and LIB_GEE_LIBS to avoid the need to call pkg-config.
14336 See the pkg-config man page for more details.
14337
14338 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14339 See \`config.log' for more details" "$LINENO" 5; }
14340 else
14341         LIB_GEE_CFLAGS=$pkg_cv_LIB_GEE_CFLAGS
14342         LIB_GEE_LIBS=$pkg_cv_LIB_GEE_LIBS
14343         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14344 $as_echo "yes" >&6; }
14345         GEE_VERSION="gee-1.0"
14346
14347 fi
14348
14349 elif test $pkg_failed = untried; then
14350         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14352
14353 pkg_failed=no
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIB_GEE" >&5
14355 $as_echo_n "checking for LIB_GEE... " >&6; }
14356
14357 if test -n "$LIB_GEE_CFLAGS"; then
14358     pkg_cv_LIB_GEE_CFLAGS="$LIB_GEE_CFLAGS"
14359  elif test -n "$PKG_CONFIG"; then
14360     if test -n "$PKG_CONFIG" && \
14361     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-1.0 >= 0.5\""; } >&5
14362   ($PKG_CONFIG --exists --print-errors "gee-1.0 >= 0.5") 2>&5
14363   ac_status=$?
14364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14365   test $ac_status = 0; }; then
14366   pkg_cv_LIB_GEE_CFLAGS=`$PKG_CONFIG --cflags "gee-1.0 >= 0.5" 2>/dev/null`
14367                       test "x$?" != "x0" && pkg_failed=yes
14368 else
14369   pkg_failed=yes
14370 fi
14371  else
14372     pkg_failed=untried
14373 fi
14374 if test -n "$LIB_GEE_LIBS"; then
14375     pkg_cv_LIB_GEE_LIBS="$LIB_GEE_LIBS"
14376  elif test -n "$PKG_CONFIG"; then
14377     if test -n "$PKG_CONFIG" && \
14378     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-1.0 >= 0.5\""; } >&5
14379   ($PKG_CONFIG --exists --print-errors "gee-1.0 >= 0.5") 2>&5
14380   ac_status=$?
14381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14382   test $ac_status = 0; }; then
14383   pkg_cv_LIB_GEE_LIBS=`$PKG_CONFIG --libs "gee-1.0 >= 0.5" 2>/dev/null`
14384                       test "x$?" != "x0" && pkg_failed=yes
14385 else
14386   pkg_failed=yes
14387 fi
14388  else
14389     pkg_failed=untried
14390 fi
14391
14392
14393
14394 if test $pkg_failed = yes; then
14395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14396 $as_echo "no" >&6; }
14397
14398 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14399         _pkg_short_errors_supported=yes
14400 else
14401         _pkg_short_errors_supported=no
14402 fi
14403         if test $_pkg_short_errors_supported = yes; then
14404                 LIB_GEE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gee-1.0 >= 0.5" 2>&1`
14405         else
14406                 LIB_GEE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gee-1.0 >= 0.5" 2>&1`
14407         fi
14408         # Put the nasty error message in config.log where it belongs
14409         echo "$LIB_GEE_PKG_ERRORS" >&5
14410
14411         as_fn_error $? "Package requirements (gee-1.0 >= 0.5) were not met:
14412
14413 $LIB_GEE_PKG_ERRORS
14414
14415 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14416 installed software in a non-standard prefix.
14417
14418 Alternatively, you may set the environment variables LIB_GEE_CFLAGS
14419 and LIB_GEE_LIBS to avoid the need to call pkg-config.
14420 See the pkg-config man page for more details." "$LINENO" 5
14421 elif test $pkg_failed = untried; then
14422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14423 $as_echo "no" >&6; }
14424         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14426 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14427 is in your PATH or set the PKG_CONFIG environment variable to the full
14428 path to pkg-config.
14429
14430 Alternatively, you may set the environment variables LIB_GEE_CFLAGS
14431 and LIB_GEE_LIBS to avoid the need to call pkg-config.
14432 See the pkg-config man page for more details.
14433
14434 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14435 See \`config.log' for more details" "$LINENO" 5; }
14436 else
14437         LIB_GEE_CFLAGS=$pkg_cv_LIB_GEE_CFLAGS
14438         LIB_GEE_LIBS=$pkg_cv_LIB_GEE_LIBS
14439         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14440 $as_echo "yes" >&6; }
14441         GEE_VERSION="gee-1.0"
14442
14443 fi
14444
14445 else
14446         LIB_GEE_CFLAGS=$pkg_cv_LIB_GEE_CFLAGS
14447         LIB_GEE_LIBS=$pkg_cv_LIB_GEE_LIBS
14448         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14449 $as_echo "yes" >&6; }
14450         GEE_VERSION="gee-0.8"
14451 fi
14452
14453
14454 #enable the optional use of Log4Vala (Must have the package installed!)
14455 # Check whether --enable-log4vala was given.
14456 if test "${enable_log4vala+set}" = set; then :
14457   enableval=$enable_log4vala; case "${enableval}" in
14458   yes) log4vala=true ;;
14459   no)  log4vala=false ;;
14460   *) as_fn_error $? "bad value ${enableval} for --enable-log4vala" "$LINENO" 5 ;;
14461 esac
14462 else
14463   log4vala=false
14464 fi
14465
14466  if test x$log4vala = xtrue; then
14467   LOG4VALA_TRUE=
14468   LOG4VALA_FALSE='#'
14469 else
14470   LOG4VALA_TRUE='#'
14471   LOG4VALA_FALSE=
14472 fi
14473
14474
14475
14476  if test "$linux" = "yes"; then
14477   OS_LINUX_TRUE=
14478   OS_LINUX_FALSE='#'
14479 else
14480   OS_LINUX_TRUE='#'
14481   OS_LINUX_FALSE=
14482 fi
14483
14484  if test "$win32" = "yes"; then
14485   OS_WIN32_TRUE=
14486   OS_WIN32_FALSE='#'
14487 else
14488   OS_WIN32_TRUE='#'
14489   OS_WIN32_FALSE=
14490 fi
14491
14492  if test "$macos" = "yes"; then
14493   OS_MACOS_TRUE=
14494   OS_MACOS_FALSE='#'
14495 else
14496   OS_MACOS_TRUE='#'
14497   OS_MACOS_FALSE=
14498 fi
14499
14500
14501  if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
14502   IPC_MSRPC_TRUE=
14503   IPC_MSRPC_FALSE='#'
14504 else
14505   IPC_MSRPC_TRUE='#'
14506   IPC_MSRPC_FALSE=
14507 fi
14508
14509  if test "$SERVER_IPC_MODULE" != "msrpc-glib2-1.0"; then
14510   IPC_DBUS_TRUE=
14511   IPC_DBUS_FALSE='#'
14512 else
14513   IPC_DBUS_TRUE='#'
14514   IPC_DBUS_FALSE=
14515 fi
14516
14517  if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
14518   IPC_DBUS_GLIB_TRUE=
14519   IPC_DBUS_GLIB_FALSE='#'
14520 else
14521   IPC_DBUS_GLIB_TRUE='#'
14522   IPC_DBUS_GLIB_FALSE=
14523 fi
14524
14525  if test "$SERVER_IPC_MODULE" = "gio-2.0"; then
14526   IPC_GDBUS_TRUE=
14527   IPC_GDBUS_FALSE='#'
14528 else
14529   IPC_GDBUS_TRUE='#'
14530   IPC_GDBUS_FALSE=
14531 fi
14532
14533
14534 vala_version=`$VALAC --version | sed 's/Vala  *//'`
14535 as_arg_v1="$vala_version"
14536 as_arg_v2=0.11.1
14537 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14538 case $? in #(
14539   1) :
14540     gio_vapi_uses_arrays="no" ;; #(
14541   0) :
14542     gio_vapi_uses_arrays="yes" ;; #(
14543   2) :
14544     gio_vapi_uses_arrays="yes" ;; #(
14545   *) :
14546      ;;
14547 esac
14548  if test "$gio_vapi_uses_arrays" = "yes"; then
14549   GIO_VAPI_USES_ARRAYS_TRUE=
14550   GIO_VAPI_USES_ARRAYS_FALSE='#'
14551 else
14552   GIO_VAPI_USES_ARRAYS_TRUE='#'
14553   GIO_VAPI_USES_ARRAYS_FALSE=
14554 fi
14555
14556 if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
14557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is no greater than 0.12.1" >&5
14558 $as_echo_n "checking $VALAC is no greater than 0.12.1... " >&6; }
14559   as_arg_v1=0.12.2
14560 as_arg_v2="$vala_version"
14561 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14562 case $? in #(
14563   1) :
14564     vala_supports_dbus_glib="no" ;; #(
14565   0) :
14566     vala_supports_dbus_glib="no" ;; #(
14567   2) :
14568     vala_supports_dbus_glib="yes" ;; #(
14569   *) :
14570      ;;
14571 esac
14572
14573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vala_supports_dbus_glib" >&5
14574 $as_echo "$vala_supports_dbus_glib" >&6; }
14575   if test "$vala_supports_dbus_glib" = "no"; then
14576     as_fn_error $? "
14577 *** Vala 0.12.1 or earlier is required for dbus-glib support. Newer versions
14578 *** require that you have GLib 2.26 or newer (for GDBus support)." "$LINENO" 5
14579   fi
14580 fi
14581
14582 if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
14583   # MS RPC utilities
14584
14585   pkg_config_args="msrpc-mingw-1.0"
14586
14587
14588
14589
14590
14591
14592
14593
14594 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14595         if test -n "$ac_tool_prefix"; then
14596   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14597 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14599 $as_echo_n "checking for $ac_word... " >&6; }
14600 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14601   $as_echo_n "(cached) " >&6
14602 else
14603   case $PKG_CONFIG in
14604   [\\/]* | ?:[\\/]*)
14605   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14606   ;;
14607   *)
14608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14609 for as_dir in $PATH
14610 do
14611   IFS=$as_save_IFS
14612   test -z "$as_dir" && as_dir=.
14613     for ac_exec_ext in '' $ac_executable_extensions; do
14614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14615     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14617     break 2
14618   fi
14619 done
14620   done
14621 IFS=$as_save_IFS
14622
14623   ;;
14624 esac
14625 fi
14626 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14627 if test -n "$PKG_CONFIG"; then
14628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14629 $as_echo "$PKG_CONFIG" >&6; }
14630 else
14631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14632 $as_echo "no" >&6; }
14633 fi
14634
14635
14636 fi
14637 if test -z "$ac_cv_path_PKG_CONFIG"; then
14638   ac_pt_PKG_CONFIG=$PKG_CONFIG
14639   # Extract the first word of "pkg-config", so it can be a program name with args.
14640 set dummy pkg-config; ac_word=$2
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14642 $as_echo_n "checking for $ac_word... " >&6; }
14643 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14644   $as_echo_n "(cached) " >&6
14645 else
14646   case $ac_pt_PKG_CONFIG in
14647   [\\/]* | ?:[\\/]*)
14648   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14649   ;;
14650   *)
14651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14652 for as_dir in $PATH
14653 do
14654   IFS=$as_save_IFS
14655   test -z "$as_dir" && as_dir=.
14656     for ac_exec_ext in '' $ac_executable_extensions; do
14657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14658     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14660     break 2
14661   fi
14662 done
14663   done
14664 IFS=$as_save_IFS
14665
14666   ;;
14667 esac
14668 fi
14669 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14670 if test -n "$ac_pt_PKG_CONFIG"; then
14671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14672 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14673 else
14674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14675 $as_echo "no" >&6; }
14676 fi
14677
14678   if test "x$ac_pt_PKG_CONFIG" = x; then
14679     PKG_CONFIG=""
14680   else
14681     case $cross_compiling:$ac_tool_warned in
14682 yes:)
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14685 ac_tool_warned=yes ;;
14686 esac
14687     PKG_CONFIG=$ac_pt_PKG_CONFIG
14688   fi
14689 else
14690   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14691 fi
14692
14693 fi
14694 if test -n "$PKG_CONFIG"; then
14695         _pkg_min_version=0.16
14696         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14697 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14698         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14699                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14700 $as_echo "yes" >&6; }
14701         else
14702                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14703 $as_echo "no" >&6; }
14704                 PKG_CONFIG=""
14705         fi
14706 fi
14707
14708   no_msrpc=""
14709
14710   if test "x$PKG_CONFIG" = x ; then
14711     no_msrpc=yes
14712     PKG_CONFIG=no
14713   fi
14714
14715   min_msrpc_mingw_version=0.1.0
14716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msrpc-mingw - version >= $min_msrpc_version" >&5
14717 $as_echo_n "checking for msrpc-mingw - version >= $min_msrpc_version... " >&6; }
14718
14719   if test x$PKG_CONFIG != xno ; then
14720     if $PKG_CONFIG --uninstalled $pkg_config_args; then
14721       echo "Will use uninstalled version of msrpc-mingw found in PKG_CONFIG_PATH"
14722     fi
14723
14724     if $PKG_CONFIG --atleast-version $min_msrpc_mingw_version $pkg_config_args; then
14725       :
14726     else
14727       no_msrpc=yes
14728     fi
14729   fi
14730
14731   if test x"$no_msrpc" = x ; then
14732     MIDL_WRAPPER=`$PKG_CONFIG --variable=midl_wrapper msrpc-mingw-1.0`
14733     MSRPC_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
14734     MSRPC_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
14735   fi
14736
14737   if test "x$no_msrpc" = x ; then
14738      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14739 $as_echo "yes" >&6; }
14740      :
14741   else
14742      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14743 $as_echo "no" >&6; }
14744      if test "$PKG_CONFIG" = "no" ; then
14745        echo "*** A new enough version of pkg-config was not found."
14746        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
14747      else
14748        echo "not found"
14749      fi
14750      MSRPC_CFLAGS=""
14751      MSRPC_LIBS=""
14752      MIDL_WRAPPER=""
14753      as_fn_error $? "
14754 *** msrpc-mingw 0.1.0 or better is required." "$LINENO" 5
14755   fi
14756
14757
14758
14759
14760
14761   # Extract the first word of "midl", so it can be a program name with args.
14762 set dummy midl; ac_word=$2
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14764 $as_echo_n "checking for $ac_word... " >&6; }
14765 if ${ac_cv_path_MIDL+:} false; then :
14766   $as_echo_n "(cached) " >&6
14767 else
14768   case $MIDL in
14769   [\\/]* | ?:[\\/]*)
14770   ac_cv_path_MIDL="$MIDL" # Let the user override the test with a path.
14771   ;;
14772   *)
14773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14774 for as_dir in /c/Program\ Files/Microsoft\ SDKs/Windows/v7.0/Bin$PATH_SEPARATOR$PATH
14775 do
14776   IFS=$as_save_IFS
14777   test -z "$as_dir" && as_dir=.
14778     for ac_exec_ext in '' $ac_executable_extensions; do
14779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14780     ac_cv_path_MIDL="$as_dir/$ac_word$ac_exec_ext"
14781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14782     break 2
14783   fi
14784 done
14785   done
14786 IFS=$as_save_IFS
14787
14788   test -z "$ac_cv_path_MIDL" && ac_cv_path_MIDL="no"
14789   ;;
14790 esac
14791 fi
14792 MIDL=$ac_cv_path_MIDL
14793 if test -n "$MIDL"; then
14794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIDL" >&5
14795 $as_echo "$MIDL" >&6; }
14796 else
14797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14798 $as_echo "no" >&6; }
14799 fi
14800
14801
14802   if test "$MIDL" = "no"; then
14803      as_fn_error $? "
14804 *** Could not find the Microsoft interface compiler MIDL.EXE.
14805 *** This program is available as part of the MS Windows SDK, in
14806 *** the Win32 Development Tools package. If it is not in the PATH
14807 *** or its default location you may set the 'MIDL' environment
14808 *** variable to point to its location and rerun configure." "$LINENO" 5
14809   fi
14810 fi
14811
14812 if test "$win32" = "yes"; then
14813   # Other Windows-specific tools
14814
14815   # LIB.EXE from MSVC to build an MSVC-compatible import library.
14816   # Extract the first word of "lib", so it can be a program name with args.
14817 set dummy lib; ac_word=$2
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14819 $as_echo_n "checking for $ac_word... " >&6; }
14820 if ${ac_cv_path_MSVC_LIB+:} false; then :
14821   $as_echo_n "(cached) " >&6
14822 else
14823   case $MSVC_LIB in
14824   [\\/]* | ?:[\\/]*)
14825   ac_cv_path_MSVC_LIB="$MSVC_LIB" # Let the user override the test with a path.
14826   ;;
14827   *)
14828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14829 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
14830 do
14831   IFS=$as_save_IFS
14832   test -z "$as_dir" && as_dir=.
14833     for ac_exec_ext in '' $ac_executable_extensions; do
14834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14835     ac_cv_path_MSVC_LIB="$as_dir/$ac_word$ac_exec_ext"
14836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14837     break 2
14838   fi
14839 done
14840   done
14841 IFS=$as_save_IFS
14842
14843   test -z "$ac_cv_path_MSVC_LIB" && ac_cv_path_MSVC_LIB="no"
14844   ;;
14845 esac
14846 fi
14847 MSVC_LIB=$ac_cv_path_MSVC_LIB
14848 if test -n "$MSVC_LIB"; then
14849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_LIB" >&5
14850 $as_echo "$MSVC_LIB" >&6; }
14851 else
14852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14853 $as_echo "no" >&6; }
14854 fi
14855
14856
14857
14858   if test "$MSVC_LIB" = "no"; then
14859      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14860 *** Could not find the Microsoft 'LIB.EXE' program. This is required
14861 *** to build the Visual C import library for libmoonshot. Use the
14862 *** MSVC_LIB environment variable to pass its location if this is
14863 *** outside the PATH." >&5
14864 $as_echo "$as_me: WARNING:
14865 *** Could not find the Microsoft 'LIB.EXE' program. This is required
14866 *** to build the Visual C import library for libmoonshot. Use the
14867 *** MSVC_LIB environment variable to pass its location if this is
14868 *** outside the PATH." >&2;}
14869   fi
14870
14871
14872   # ImageMagick for the 'make icons' target. Note that
14873   # c:/windows/system32/convert.exe is nothing to do with ImageMagick.
14874   # Extract the first word of "convert", so it can be a program name with args.
14875 set dummy convert; ac_word=$2
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14877 $as_echo_n "checking for $ac_word... " >&6; }
14878 if ${ac_cv_path_IMAGEMAGICK_CONVERT+:} false; then :
14879   $as_echo_n "(cached) " >&6
14880 else
14881   case $IMAGEMAGICK_CONVERT in
14882   [\\/]* | ?:[\\/]*)
14883   ac_cv_path_IMAGEMAGICK_CONVERT="$IMAGEMAGICK_CONVERT" # Let the user override the test with a path.
14884   ;;
14885   *)
14886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14887 for as_dir in /c/Program\ Files/ImageMagick$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/ImageMagick$PATH_SEPARATOR$PATH
14888 do
14889   IFS=$as_save_IFS
14890   test -z "$as_dir" && as_dir=.
14891     for ac_exec_ext in '' $ac_executable_extensions; do
14892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14893     ac_cv_path_IMAGEMAGICK_CONVERT="$as_dir/$ac_word$ac_exec_ext"
14894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14895     break 2
14896   fi
14897 done
14898   done
14899 IFS=$as_save_IFS
14900
14901   test -z "$ac_cv_path_IMAGEMAGICK_CONVERT" && ac_cv_path_IMAGEMAGICK_CONVERT="no"
14902   ;;
14903 esac
14904 fi
14905 IMAGEMAGICK_CONVERT=$ac_cv_path_IMAGEMAGICK_CONVERT
14906 if test -n "$IMAGEMAGICK_CONVERT"; then
14907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CONVERT" >&5
14908 $as_echo "$IMAGEMAGICK_CONVERT" >&6; }
14909 else
14910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14911 $as_echo "no" >&6; }
14912 fi
14913
14914
14915
14916   if test "$IMAGEMAGICK_CONVERT" = "no" || test "$IMAGEMAGICK_CONVERT" = "/c/windows/system32/convert"; then
14917      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14918 *** Could not find ImageMagick convert.exe. This is required for the
14919 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
14920 *** variable to pass its location if this is outside the PATH." >&5
14921 $as_echo "$as_me: WARNING:
14922 *** Could not find ImageMagick convert.exe. This is required for the
14923 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
14924 *** variable to pass its location if this is outside the PATH." >&2;}
14925   fi
14926
14927
14928   # Windows Installer XML tools
14929   # Extract the first word of "candle", so it can be a program name with args.
14930 set dummy candle; ac_word=$2
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14932 $as_echo_n "checking for $ac_word... " >&6; }
14933 if ${ac_cv_path_WIX_CANDLE+:} false; then :
14934   $as_echo_n "(cached) " >&6
14935 else
14936   case $WIX_CANDLE in
14937   [\\/]* | ?:[\\/]*)
14938   ac_cv_path_WIX_CANDLE="$WIX_CANDLE" # Let the user override the test with a path.
14939   ;;
14940   *)
14941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14942 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
14943 do
14944   IFS=$as_save_IFS
14945   test -z "$as_dir" && as_dir=.
14946     for ac_exec_ext in '' $ac_executable_extensions; do
14947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14948     ac_cv_path_WIX_CANDLE="$as_dir/$ac_word$ac_exec_ext"
14949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14950     break 2
14951   fi
14952 done
14953   done
14954 IFS=$as_save_IFS
14955
14956   test -z "$ac_cv_path_WIX_CANDLE" && ac_cv_path_WIX_CANDLE="no"
14957   ;;
14958 esac
14959 fi
14960 WIX_CANDLE=$ac_cv_path_WIX_CANDLE
14961 if test -n "$WIX_CANDLE"; then
14962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_CANDLE" >&5
14963 $as_echo "$WIX_CANDLE" >&6; }
14964 else
14965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14966 $as_echo "no" >&6; }
14967 fi
14968
14969
14970   # Extract the first word of "light", so it can be a program name with args.
14971 set dummy light; ac_word=$2
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14973 $as_echo_n "checking for $ac_word... " >&6; }
14974 if ${ac_cv_path_WIX_LIGHT+:} false; then :
14975   $as_echo_n "(cached) " >&6
14976 else
14977   case $WIX_LIGHT in
14978   [\\/]* | ?:[\\/]*)
14979   ac_cv_path_WIX_LIGHT="$WIX_LIGHT" # Let the user override the test with a path.
14980   ;;
14981   *)
14982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14983 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
14984 do
14985   IFS=$as_save_IFS
14986   test -z "$as_dir" && as_dir=.
14987     for ac_exec_ext in '' $ac_executable_extensions; do
14988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14989     ac_cv_path_WIX_LIGHT="$as_dir/$ac_word$ac_exec_ext"
14990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14991     break 2
14992   fi
14993 done
14994   done
14995 IFS=$as_save_IFS
14996
14997   test -z "$ac_cv_path_WIX_LIGHT" && ac_cv_path_WIX_LIGHT="no"
14998   ;;
14999 esac
15000 fi
15001 WIX_LIGHT=$ac_cv_path_WIX_LIGHT
15002 if test -n "$WIX_LIGHT"; then
15003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_LIGHT" >&5
15004 $as_echo "$WIX_LIGHT" >&6; }
15005 else
15006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15007 $as_echo "no" >&6; }
15008 fi
15009
15010
15011
15012   if test "$WIX_CANDLE" = "no" || test "$WIX_LIGHT" = "no"; then
15013      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15014 *** Could not find the Windows Installer XML tools. These are required
15015 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
15016 *** environment variables to pass their locations if they are outside
15017 *** the PATH." >&5
15018 $as_echo "$as_me: WARNING:
15019 *** Could not find the Windows Installer XML tools. These are required
15020 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
15021 *** environment variables to pass their locations if they are outside
15022 *** the PATH." >&2;}
15023   fi
15024 fi
15025
15026 if test "$linux" = "yes"; then
15027   # Extract the first word of "update-mime-database", so it can be a program name with args.
15028 set dummy update-mime-database; ac_word=$2
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15030 $as_echo_n "checking for $ac_word... " >&6; }
15031 if ${ac_cv_path_UPDATE_MIME_DATABASE+:} false; then :
15032   $as_echo_n "(cached) " >&6
15033 else
15034   case $UPDATE_MIME_DATABASE in
15035   [\\/]* | ?:[\\/]*)
15036   ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
15037   ;;
15038   *)
15039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15040 for as_dir in $PATH
15041 do
15042   IFS=$as_save_IFS
15043   test -z "$as_dir" && as_dir=.
15044     for ac_exec_ext in '' $ac_executable_extensions; do
15045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15046     ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
15047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15048     break 2
15049   fi
15050 done
15051   done
15052 IFS=$as_save_IFS
15053
15054   test -z "$ac_cv_path_UPDATE_MIME_DATABASE" && ac_cv_path_UPDATE_MIME_DATABASE="no"
15055   ;;
15056 esac
15057 fi
15058 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
15059 if test -n "$UPDATE_MIME_DATABASE"; then
15060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
15061 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
15062 else
15063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15064 $as_echo "no" >&6; }
15065 fi
15066
15067
15068   if test "$UPDATE_MIME_DATABASE" = "no"; then
15069     as_fn_error $? "
15070 *** Could not find the Freedesktop.org  mime database update tool.
15071 *** Web provisioning files could not be automatically installed." "$LINENO" 5
15072   fi
15073   # Extract the first word of "update-desktop-database", so it can be a program name with args.
15074 set dummy update-desktop-database; ac_word=$2
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15076 $as_echo_n "checking for $ac_word... " >&6; }
15077 if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
15078   $as_echo_n "(cached) " >&6
15079 else
15080   case $UPDATE_DESKTOP_DATABASE in
15081   [\\/]* | ?:[\\/]*)
15082   ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
15083   ;;
15084   *)
15085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15086 for as_dir in $PATH
15087 do
15088   IFS=$as_save_IFS
15089   test -z "$as_dir" && as_dir=.
15090     for ac_exec_ext in '' $ac_executable_extensions; do
15091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15092     ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
15093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15094     break 2
15095   fi
15096 done
15097   done
15098 IFS=$as_save_IFS
15099
15100   test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
15101   ;;
15102 esac
15103 fi
15104 UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
15105 if test -n "$UPDATE_DESKTOP_DATABASE"; then
15106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
15107 $as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
15108 else
15109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15110 $as_echo "no" >&6; }
15111 fi
15112
15113
15114   if test "$UPDATE_DESKTOP_DATABASE" = "no"; then
15115     as_fn_error $? "
15116 *** Could not find the Freedesktop.org desktop entry database update
15117 *** tool. Web provisioning files could not be automatically installed." "$LINENO" 5
15118   fi
15119 fi
15120
15121 MOONSHOT_APP="$bindir/moonshot"
15122 MOONSHOT_WEBP="$bindir/moonshot-webp"
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134 # Dependencies
15135
15136 pkg_failed=no
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot" >&5
15138 $as_echo_n "checking for moonshot... " >&6; }
15139
15140 if test -n "$moonshot_CFLAGS"; then
15141     pkg_cv_moonshot_CFLAGS="$moonshot_CFLAGS"
15142  elif test -n "$PKG_CONFIG"; then
15143     if test -n "$PKG_CONFIG" && \
15144     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
15145         atk >= 1.20
15146         glib-2.0 >= 2.22
15147         gobject-2.0 >= 2.22
15148         libssl
15149         \$GTK_VERSION
15150         \$GEE_VERSION
15151         \$SERVER_IPC_MODULE
15152                 \$MAC
15153 \""; } >&5
15154   ($PKG_CONFIG --exists --print-errors "
15155         atk >= 1.20
15156         glib-2.0 >= 2.22
15157         gobject-2.0 >= 2.22
15158         libssl
15159         $GTK_VERSION
15160         $GEE_VERSION
15161         $SERVER_IPC_MODULE
15162                 $MAC
15163 ") 2>&5
15164   ac_status=$?
15165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15166   test $ac_status = 0; }; then
15167   pkg_cv_moonshot_CFLAGS=`$PKG_CONFIG --cflags "
15168         atk >= 1.20
15169         glib-2.0 >= 2.22
15170         gobject-2.0 >= 2.22
15171         libssl
15172         $GTK_VERSION
15173         $GEE_VERSION
15174         $SERVER_IPC_MODULE
15175                 $MAC
15176 " 2>/dev/null`
15177                       test "x$?" != "x0" && pkg_failed=yes
15178 else
15179   pkg_failed=yes
15180 fi
15181  else
15182     pkg_failed=untried
15183 fi
15184 if test -n "$moonshot_LIBS"; then
15185     pkg_cv_moonshot_LIBS="$moonshot_LIBS"
15186  elif test -n "$PKG_CONFIG"; then
15187     if test -n "$PKG_CONFIG" && \
15188     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
15189         atk >= 1.20
15190         glib-2.0 >= 2.22
15191         gobject-2.0 >= 2.22
15192         libssl
15193         \$GTK_VERSION
15194         \$GEE_VERSION
15195         \$SERVER_IPC_MODULE
15196                 \$MAC
15197 \""; } >&5
15198   ($PKG_CONFIG --exists --print-errors "
15199         atk >= 1.20
15200         glib-2.0 >= 2.22
15201         gobject-2.0 >= 2.22
15202         libssl
15203         $GTK_VERSION
15204         $GEE_VERSION
15205         $SERVER_IPC_MODULE
15206                 $MAC
15207 ") 2>&5
15208   ac_status=$?
15209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15210   test $ac_status = 0; }; then
15211   pkg_cv_moonshot_LIBS=`$PKG_CONFIG --libs "
15212         atk >= 1.20
15213         glib-2.0 >= 2.22
15214         gobject-2.0 >= 2.22
15215         libssl
15216         $GTK_VERSION
15217         $GEE_VERSION
15218         $SERVER_IPC_MODULE
15219                 $MAC
15220 " 2>/dev/null`
15221                       test "x$?" != "x0" && pkg_failed=yes
15222 else
15223   pkg_failed=yes
15224 fi
15225  else
15226     pkg_failed=untried
15227 fi
15228
15229
15230
15231 if test $pkg_failed = yes; then
15232         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15233 $as_echo "no" >&6; }
15234
15235 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15236         _pkg_short_errors_supported=yes
15237 else
15238         _pkg_short_errors_supported=no
15239 fi
15240         if test $_pkg_short_errors_supported = yes; then
15241                 moonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
15242         atk >= 1.20
15243         glib-2.0 >= 2.22
15244         gobject-2.0 >= 2.22
15245         libssl
15246         $GTK_VERSION
15247         $GEE_VERSION
15248         $SERVER_IPC_MODULE
15249                 $MAC
15250 " 2>&1`
15251         else
15252                 moonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
15253         atk >= 1.20
15254         glib-2.0 >= 2.22
15255         gobject-2.0 >= 2.22
15256         libssl
15257         $GTK_VERSION
15258         $GEE_VERSION
15259         $SERVER_IPC_MODULE
15260                 $MAC
15261 " 2>&1`
15262         fi
15263         # Put the nasty error message in config.log where it belongs
15264         echo "$moonshot_PKG_ERRORS" >&5
15265
15266         as_fn_error $? "Package requirements (
15267         atk >= 1.20
15268         glib-2.0 >= 2.22
15269         gobject-2.0 >= 2.22
15270         libssl
15271         $GTK_VERSION
15272         $GEE_VERSION
15273         $SERVER_IPC_MODULE
15274                 $MAC
15275 ) were not met:
15276
15277 $moonshot_PKG_ERRORS
15278
15279 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15280 installed software in a non-standard prefix.
15281
15282 Alternatively, you may set the environment variables moonshot_CFLAGS
15283 and moonshot_LIBS to avoid the need to call pkg-config.
15284 See the pkg-config man page for more details." "$LINENO" 5
15285 elif test $pkg_failed = untried; then
15286         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15287 $as_echo "no" >&6; }
15288         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15290 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15291 is in your PATH or set the PKG_CONFIG environment variable to the full
15292 path to pkg-config.
15293
15294 Alternatively, you may set the environment variables moonshot_CFLAGS
15295 and moonshot_LIBS to avoid the need to call pkg-config.
15296 See the pkg-config man page for more details.
15297
15298 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15299 See \`config.log' for more details" "$LINENO" 5; }
15300 else
15301         moonshot_CFLAGS=$pkg_cv_moonshot_CFLAGS
15302         moonshot_LIBS=$pkg_cv_moonshot_LIBS
15303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15304 $as_echo "yes" >&6; }
15305
15306 fi
15307
15308
15309 pkg_failed=no
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmoonshot" >&5
15311 $as_echo_n "checking for libmoonshot... " >&6; }
15312
15313 if test -n "$libmoonshot_CFLAGS"; then
15314     pkg_cv_libmoonshot_CFLAGS="$libmoonshot_CFLAGS"
15315  elif test -n "$PKG_CONFIG"; then
15316     if test -n "$PKG_CONFIG" && \
15317     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
15318         \$CLIENT_IPC_MODULE
15319 \""; } >&5
15320   ($PKG_CONFIG --exists --print-errors "
15321         $CLIENT_IPC_MODULE
15322 ") 2>&5
15323   ac_status=$?
15324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15325   test $ac_status = 0; }; then
15326   pkg_cv_libmoonshot_CFLAGS=`$PKG_CONFIG --cflags "
15327         $CLIENT_IPC_MODULE
15328 " 2>/dev/null`
15329                       test "x$?" != "x0" && pkg_failed=yes
15330 else
15331   pkg_failed=yes
15332 fi
15333  else
15334     pkg_failed=untried
15335 fi
15336 if test -n "$libmoonshot_LIBS"; then
15337     pkg_cv_libmoonshot_LIBS="$libmoonshot_LIBS"
15338  elif test -n "$PKG_CONFIG"; then
15339     if test -n "$PKG_CONFIG" && \
15340     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
15341         \$CLIENT_IPC_MODULE
15342 \""; } >&5
15343   ($PKG_CONFIG --exists --print-errors "
15344         $CLIENT_IPC_MODULE
15345 ") 2>&5
15346   ac_status=$?
15347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15348   test $ac_status = 0; }; then
15349   pkg_cv_libmoonshot_LIBS=`$PKG_CONFIG --libs "
15350         $CLIENT_IPC_MODULE
15351 " 2>/dev/null`
15352                       test "x$?" != "x0" && pkg_failed=yes
15353 else
15354   pkg_failed=yes
15355 fi
15356  else
15357     pkg_failed=untried
15358 fi
15359
15360
15361
15362 if test $pkg_failed = yes; then
15363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15364 $as_echo "no" >&6; }
15365
15366 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15367         _pkg_short_errors_supported=yes
15368 else
15369         _pkg_short_errors_supported=no
15370 fi
15371         if test $_pkg_short_errors_supported = yes; then
15372                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
15373         $CLIENT_IPC_MODULE
15374 " 2>&1`
15375         else
15376                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
15377         $CLIENT_IPC_MODULE
15378 " 2>&1`
15379         fi
15380         # Put the nasty error message in config.log where it belongs
15381         echo "$libmoonshot_PKG_ERRORS" >&5
15382
15383         as_fn_error $? "Package requirements (
15384         $CLIENT_IPC_MODULE
15385 ) were not met:
15386
15387 $libmoonshot_PKG_ERRORS
15388
15389 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15390 installed software in a non-standard prefix.
15391
15392 Alternatively, you may set the environment variables libmoonshot_CFLAGS
15393 and libmoonshot_LIBS to avoid the need to call pkg-config.
15394 See the pkg-config man page for more details." "$LINENO" 5
15395 elif test $pkg_failed = untried; then
15396         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15397 $as_echo "no" >&6; }
15398         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15400 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15401 is in your PATH or set the PKG_CONFIG environment variable to the full
15402 path to pkg-config.
15403
15404 Alternatively, you may set the environment variables libmoonshot_CFLAGS
15405 and libmoonshot_LIBS to avoid the need to call pkg-config.
15406 See the pkg-config man page for more details.
15407
15408 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15409 See \`config.log' for more details" "$LINENO" 5; }
15410 else
15411         libmoonshot_CFLAGS=$pkg_cv_libmoonshot_CFLAGS
15412         libmoonshot_LIBS=$pkg_cv_libmoonshot_LIBS
15413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15414 $as_echo "yes" >&6; }
15415
15416 fi
15417
15418 # i18n stuff
15419
15420 mkdir_p="$MKDIR_P"
15421 case $mkdir_p in
15422   [\\/$]* | ?:[\\/]*) ;;
15423   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
15424 esac
15425
15426
15427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15428 $as_echo_n "checking whether NLS is requested... " >&6; }
15429     # Check whether --enable-nls was given.
15430 if test "${enable_nls+set}" = set; then :
15431   enableval=$enable_nls; USE_NLS=$enableval
15432 else
15433   USE_NLS=yes
15434 fi
15435
15436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15437 $as_echo "$USE_NLS" >&6; }
15438
15439
15440
15441
15442       GETTEXT_MACRO_VERSION=0.18
15443
15444
15445
15446
15447 # Prepare PATH_SEPARATOR.
15448 # The user is always right.
15449 if test "${PATH_SEPARATOR+set}" != set; then
15450   echo "#! /bin/sh" >conf$$.sh
15451   echo  "exit 0"   >>conf$$.sh
15452   chmod +x conf$$.sh
15453   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15454     PATH_SEPARATOR=';'
15455   else
15456     PATH_SEPARATOR=:
15457   fi
15458   rm -f conf$$.sh
15459 fi
15460
15461 # Find out how to test for executable files. Don't use a zero-byte file,
15462 # as systems may use methods other than mode bits to determine executability.
15463 cat >conf$$.file <<_ASEOF
15464 #! /bin/sh
15465 exit 0
15466 _ASEOF
15467 chmod +x conf$$.file
15468 if test -x conf$$.file >/dev/null 2>&1; then
15469   ac_executable_p="test -x"
15470 else
15471   ac_executable_p="test -f"
15472 fi
15473 rm -f conf$$.file
15474
15475 # Extract the first word of "msgfmt", so it can be a program name with args.
15476 set dummy msgfmt; ac_word=$2
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15478 $as_echo_n "checking for $ac_word... " >&6; }
15479 if ${ac_cv_path_MSGFMT+:} false; then :
15480   $as_echo_n "(cached) " >&6
15481 else
15482   case "$MSGFMT" in
15483   [\\/]* | ?:[\\/]*)
15484     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15485     ;;
15486   *)
15487     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15488     for ac_dir in $PATH; do
15489       IFS="$ac_save_IFS"
15490       test -z "$ac_dir" && ac_dir=.
15491       for ac_exec_ext in '' $ac_executable_extensions; do
15492         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15493           echo "$as_me: trying $ac_dir/$ac_word..." >&5
15494           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15495      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15496             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15497             break 2
15498           fi
15499         fi
15500       done
15501     done
15502     IFS="$ac_save_IFS"
15503   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15504     ;;
15505 esac
15506 fi
15507 MSGFMT="$ac_cv_path_MSGFMT"
15508 if test "$MSGFMT" != ":"; then
15509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15510 $as_echo "$MSGFMT" >&6; }
15511 else
15512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15513 $as_echo "no" >&6; }
15514 fi
15515
15516   # Extract the first word of "gmsgfmt", so it can be a program name with args.
15517 set dummy gmsgfmt; ac_word=$2
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15519 $as_echo_n "checking for $ac_word... " >&6; }
15520 if ${ac_cv_path_GMSGFMT+:} false; then :
15521   $as_echo_n "(cached) " >&6
15522 else
15523   case $GMSGFMT in
15524   [\\/]* | ?:[\\/]*)
15525   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15526   ;;
15527   *)
15528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15529 for as_dir in $PATH
15530 do
15531   IFS=$as_save_IFS
15532   test -z "$as_dir" && as_dir=.
15533     for ac_exec_ext in '' $ac_executable_extensions; do
15534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15535     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15537     break 2
15538   fi
15539 done
15540   done
15541 IFS=$as_save_IFS
15542
15543   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15544   ;;
15545 esac
15546 fi
15547 GMSGFMT=$ac_cv_path_GMSGFMT
15548 if test -n "$GMSGFMT"; then
15549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15550 $as_echo "$GMSGFMT" >&6; }
15551 else
15552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15553 $as_echo "no" >&6; }
15554 fi
15555
15556
15557
15558     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15559     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
15560     *) MSGFMT_015=$MSGFMT ;;
15561   esac
15562
15563   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15564     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
15565     *) GMSGFMT_015=$GMSGFMT ;;
15566   esac
15567
15568
15569
15570 # Prepare PATH_SEPARATOR.
15571 # The user is always right.
15572 if test "${PATH_SEPARATOR+set}" != set; then
15573   echo "#! /bin/sh" >conf$$.sh
15574   echo  "exit 0"   >>conf$$.sh
15575   chmod +x conf$$.sh
15576   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15577     PATH_SEPARATOR=';'
15578   else
15579     PATH_SEPARATOR=:
15580   fi
15581   rm -f conf$$.sh
15582 fi
15583
15584 # Find out how to test for executable files. Don't use a zero-byte file,
15585 # as systems may use methods other than mode bits to determine executability.
15586 cat >conf$$.file <<_ASEOF
15587 #! /bin/sh
15588 exit 0
15589 _ASEOF
15590 chmod +x conf$$.file
15591 if test -x conf$$.file >/dev/null 2>&1; then
15592   ac_executable_p="test -x"
15593 else
15594   ac_executable_p="test -f"
15595 fi
15596 rm -f conf$$.file
15597
15598 # Extract the first word of "xgettext", so it can be a program name with args.
15599 set dummy xgettext; ac_word=$2
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15601 $as_echo_n "checking for $ac_word... " >&6; }
15602 if ${ac_cv_path_XGETTEXT+:} false; then :
15603   $as_echo_n "(cached) " >&6
15604 else
15605   case "$XGETTEXT" in
15606   [\\/]* | ?:[\\/]*)
15607     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15608     ;;
15609   *)
15610     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15611     for ac_dir in $PATH; do
15612       IFS="$ac_save_IFS"
15613       test -z "$ac_dir" && ac_dir=.
15614       for ac_exec_ext in '' $ac_executable_extensions; do
15615         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15616           echo "$as_me: trying $ac_dir/$ac_word..." >&5
15617           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
15618      (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
15619             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15620             break 2
15621           fi
15622         fi
15623       done
15624     done
15625     IFS="$ac_save_IFS"
15626   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15627     ;;
15628 esac
15629 fi
15630 XGETTEXT="$ac_cv_path_XGETTEXT"
15631 if test "$XGETTEXT" != ":"; then
15632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15633 $as_echo "$XGETTEXT" >&6; }
15634 else
15635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15636 $as_echo "no" >&6; }
15637 fi
15638
15639     rm -f messages.po
15640
15641     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15642     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
15643     *) XGETTEXT_015=$XGETTEXT ;;
15644   esac
15645
15646
15647
15648 # Prepare PATH_SEPARATOR.
15649 # The user is always right.
15650 if test "${PATH_SEPARATOR+set}" != set; then
15651   echo "#! /bin/sh" >conf$$.sh
15652   echo  "exit 0"   >>conf$$.sh
15653   chmod +x conf$$.sh
15654   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15655     PATH_SEPARATOR=';'
15656   else
15657     PATH_SEPARATOR=:
15658   fi
15659   rm -f conf$$.sh
15660 fi
15661
15662 # Find out how to test for executable files. Don't use a zero-byte file,
15663 # as systems may use methods other than mode bits to determine executability.
15664 cat >conf$$.file <<_ASEOF
15665 #! /bin/sh
15666 exit 0
15667 _ASEOF
15668 chmod +x conf$$.file
15669 if test -x conf$$.file >/dev/null 2>&1; then
15670   ac_executable_p="test -x"
15671 else
15672   ac_executable_p="test -f"
15673 fi
15674 rm -f conf$$.file
15675
15676 # Extract the first word of "msgmerge", so it can be a program name with args.
15677 set dummy msgmerge; ac_word=$2
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15679 $as_echo_n "checking for $ac_word... " >&6; }
15680 if ${ac_cv_path_MSGMERGE+:} false; then :
15681   $as_echo_n "(cached) " >&6
15682 else
15683   case "$MSGMERGE" in
15684   [\\/]* | ?:[\\/]*)
15685     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15686     ;;
15687   *)
15688     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15689     for ac_dir in $PATH; do
15690       IFS="$ac_save_IFS"
15691       test -z "$ac_dir" && ac_dir=.
15692       for ac_exec_ext in '' $ac_executable_extensions; do
15693         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15694           echo "$as_me: trying $ac_dir/$ac_word..." >&5
15695           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
15696             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15697             break 2
15698           fi
15699         fi
15700       done
15701     done
15702     IFS="$ac_save_IFS"
15703   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15704     ;;
15705 esac
15706 fi
15707 MSGMERGE="$ac_cv_path_MSGMERGE"
15708 if test "$MSGMERGE" != ":"; then
15709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15710 $as_echo "$MSGMERGE" >&6; }
15711 else
15712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15713 $as_echo "no" >&6; }
15714 fi
15715
15716
15717         test -n "$localedir" || localedir='${datadir}/locale'
15718
15719
15720     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
15721
15722
15723   ac_config_commands="$ac_config_commands po-directories"
15724
15725
15726
15727       if test "X$prefix" = "XNONE"; then
15728     acl_final_prefix="$ac_default_prefix"
15729   else
15730     acl_final_prefix="$prefix"
15731   fi
15732   if test "X$exec_prefix" = "XNONE"; then
15733     acl_final_exec_prefix='${prefix}'
15734   else
15735     acl_final_exec_prefix="$exec_prefix"
15736   fi
15737   acl_save_prefix="$prefix"
15738   prefix="$acl_final_prefix"
15739   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15740   prefix="$acl_save_prefix"
15741
15742
15743 # Check whether --with-gnu-ld was given.
15744 if test "${with_gnu_ld+set}" = set; then :
15745   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15746 else
15747   with_gnu_ld=no
15748 fi
15749
15750 # Prepare PATH_SEPARATOR.
15751 # The user is always right.
15752 if test "${PATH_SEPARATOR+set}" != set; then
15753   echo "#! /bin/sh" >conf$$.sh
15754   echo  "exit 0"   >>conf$$.sh
15755   chmod +x conf$$.sh
15756   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15757     PATH_SEPARATOR=';'
15758   else
15759     PATH_SEPARATOR=:
15760   fi
15761   rm -f conf$$.sh
15762 fi
15763 ac_prog=ld
15764 if test "$GCC" = yes; then
15765   # Check if gcc -print-prog-name=ld gives a path.
15766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15767 $as_echo_n "checking for ld used by GCC... " >&6; }
15768   case $host in
15769   *-*-mingw*)
15770     # gcc leaves a trailing carriage return which upsets mingw
15771     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15772   *)
15773     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15774   esac
15775   case $ac_prog in
15776     # Accept absolute paths.
15777     [\\/]* | [A-Za-z]:[\\/]*)
15778       re_direlt='/[^/][^/]*/\.\./'
15779       # Canonicalize the path of ld
15780       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15781       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15782         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15783       done
15784       test -z "$LD" && LD="$ac_prog"
15785       ;;
15786   "")
15787     # If it fails, then pretend we aren't using GCC.
15788     ac_prog=ld
15789     ;;
15790   *)
15791     # If it is relative, then search for the first ld in PATH.
15792     with_gnu_ld=unknown
15793     ;;
15794   esac
15795 elif test "$with_gnu_ld" = yes; then
15796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15797 $as_echo_n "checking for GNU ld... " >&6; }
15798 else
15799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15800 $as_echo_n "checking for non-GNU ld... " >&6; }
15801 fi
15802 if ${acl_cv_path_LD+:} false; then :
15803   $as_echo_n "(cached) " >&6
15804 else
15805   if test -z "$LD"; then
15806   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15807   for ac_dir in $PATH; do
15808     test -z "$ac_dir" && ac_dir=.
15809     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15810       acl_cv_path_LD="$ac_dir/$ac_prog"
15811       # Check to see if the program is GNU ld.  I'd rather use --version,
15812       # but apparently some GNU ld's only accept -v.
15813       # Break only if it was the GNU/non-GNU ld that we prefer.
15814       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15815       *GNU* | *'with BFD'*)
15816         test "$with_gnu_ld" != no && break ;;
15817       *)
15818         test "$with_gnu_ld" != yes && break ;;
15819       esac
15820     fi
15821   done
15822   IFS="$ac_save_ifs"
15823 else
15824   acl_cv_path_LD="$LD" # Let the user override the test with a path.
15825 fi
15826 fi
15827
15828 LD="$acl_cv_path_LD"
15829 if test -n "$LD"; then
15830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15831 $as_echo "$LD" >&6; }
15832 else
15833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15834 $as_echo "no" >&6; }
15835 fi
15836 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15838 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15839 if ${acl_cv_prog_gnu_ld+:} false; then :
15840   $as_echo_n "(cached) " >&6
15841 else
15842   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15843 case `$LD -v 2>&1 </dev/null` in
15844 *GNU* | *'with BFD'*)
15845   acl_cv_prog_gnu_ld=yes ;;
15846 *)
15847   acl_cv_prog_gnu_ld=no ;;
15848 esac
15849 fi
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15851 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15852 with_gnu_ld=$acl_cv_prog_gnu_ld
15853
15854
15855
15856
15857                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15858 $as_echo_n "checking for shared library run path origin... " >&6; }
15859 if ${acl_cv_rpath+:} false; then :
15860   $as_echo_n "(cached) " >&6
15861 else
15862
15863     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15864     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15865     . ./conftest.sh
15866     rm -f ./conftest.sh
15867     acl_cv_rpath=done
15868
15869 fi
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15871 $as_echo "$acl_cv_rpath" >&6; }
15872   wl="$acl_cv_wl"
15873   acl_libext="$acl_cv_libext"
15874   acl_shlibext="$acl_cv_shlibext"
15875   acl_libname_spec="$acl_cv_libname_spec"
15876   acl_library_names_spec="$acl_cv_library_names_spec"
15877   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15878   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15879   acl_hardcode_direct="$acl_cv_hardcode_direct"
15880   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15881     # Check whether --enable-rpath was given.
15882 if test "${enable_rpath+set}" = set; then :
15883   enableval=$enable_rpath; :
15884 else
15885   enable_rpath=yes
15886 fi
15887
15888
15889
15890
15891   acl_libdirstem=lib
15892   acl_libdirstem2=
15893   case "$host_os" in
15894     solaris*)
15895                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15896 $as_echo_n "checking for 64-bit host... " >&6; }
15897 if ${gl_cv_solaris_64bit+:} false; then :
15898   $as_echo_n "(cached) " >&6
15899 else
15900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h.  */
15902
15903 #ifdef _LP64
15904 sixtyfour bits
15905 #endif
15906
15907 _ACEOF
15908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15909   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
15910   gl_cv_solaris_64bit=yes
15911 else
15912   gl_cv_solaris_64bit=no
15913 fi
15914 rm -f conftest*
15915
15916
15917 fi
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15919 $as_echo "$gl_cv_solaris_64bit" >&6; }
15920       if test $gl_cv_solaris_64bit = yes; then
15921         acl_libdirstem=lib/64
15922         case "$host_cpu" in
15923           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
15924           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15925         esac
15926       fi
15927       ;;
15928     *)
15929       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15930       if test -n "$searchpath"; then
15931         acl_save_IFS="${IFS=    }"; IFS=":"
15932         for searchdir in $searchpath; do
15933           if test -d "$searchdir"; then
15934             case "$searchdir" in
15935               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15936               */../ | */.. )
15937                 # Better ignore directories of this form. They are misleading.
15938                 ;;
15939               *) searchdir=`cd "$searchdir" && pwd`
15940                  case "$searchdir" in
15941                    */lib64 ) acl_libdirstem=lib64 ;;
15942                  esac ;;
15943             esac
15944           fi
15945         done
15946         IFS="$acl_save_IFS"
15947       fi
15948       ;;
15949   esac
15950   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963     use_additional=yes
15964
15965   acl_save_prefix="$prefix"
15966   prefix="$acl_final_prefix"
15967   acl_save_exec_prefix="$exec_prefix"
15968   exec_prefix="$acl_final_exec_prefix"
15969
15970     eval additional_includedir=\"$includedir\"
15971     eval additional_libdir=\"$libdir\"
15972
15973   exec_prefix="$acl_save_exec_prefix"
15974   prefix="$acl_save_prefix"
15975
15976
15977 # Check whether --with-libiconv-prefix was given.
15978 if test "${with_libiconv_prefix+set}" = set; then :
15979   withval=$with_libiconv_prefix;
15980     if test "X$withval" = "Xno"; then
15981       use_additional=no
15982     else
15983       if test "X$withval" = "X"; then
15984
15985   acl_save_prefix="$prefix"
15986   prefix="$acl_final_prefix"
15987   acl_save_exec_prefix="$exec_prefix"
15988   exec_prefix="$acl_final_exec_prefix"
15989
15990           eval additional_includedir=\"$includedir\"
15991           eval additional_libdir=\"$libdir\"
15992
15993   exec_prefix="$acl_save_exec_prefix"
15994   prefix="$acl_save_prefix"
15995
15996       else
15997         additional_includedir="$withval/include"
15998         additional_libdir="$withval/$acl_libdirstem"
15999         if test "$acl_libdirstem2" != "$acl_libdirstem" \
16000            && ! test -d "$withval/$acl_libdirstem"; then
16001           additional_libdir="$withval/$acl_libdirstem2"
16002         fi
16003       fi
16004     fi
16005
16006 fi
16007
16008       LIBICONV=
16009   LTLIBICONV=
16010   INCICONV=
16011   LIBICONV_PREFIX=
16012       HAVE_LIBICONV=
16013   rpathdirs=
16014   ltrpathdirs=
16015   names_already_handled=
16016   names_next_round='iconv '
16017   while test -n "$names_next_round"; do
16018     names_this_round="$names_next_round"
16019     names_next_round=
16020     for name in $names_this_round; do
16021       already_handled=
16022       for n in $names_already_handled; do
16023         if test "$n" = "$name"; then
16024           already_handled=yes
16025           break
16026         fi
16027       done
16028       if test -z "$already_handled"; then
16029         names_already_handled="$names_already_handled $name"
16030                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16031         eval value=\"\$HAVE_LIB$uppername\"
16032         if test -n "$value"; then
16033           if test "$value" = yes; then
16034             eval value=\"\$LIB$uppername\"
16035             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16036             eval value=\"\$LTLIB$uppername\"
16037             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16038           else
16039                                     :
16040           fi
16041         else
16042                               found_dir=
16043           found_la=
16044           found_so=
16045           found_a=
16046           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16047           if test -n "$acl_shlibext"; then
16048             shrext=".$acl_shlibext"             # typically: shrext=.so
16049           else
16050             shrext=
16051           fi
16052           if test $use_additional = yes; then
16053             dir="$additional_libdir"
16054                                     if test -n "$acl_shlibext"; then
16055               if test -f "$dir/$libname$shrext"; then
16056                 found_dir="$dir"
16057                 found_so="$dir/$libname$shrext"
16058               else
16059                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16060                   ver=`(cd "$dir" && \
16061                         for f in "$libname$shrext".*; do echo "$f"; done \
16062                         | sed -e "s,^$libname$shrext\\\\.,," \
16063                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16064                         | sed 1q ) 2>/dev/null`
16065                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16066                     found_dir="$dir"
16067                     found_so="$dir/$libname$shrext.$ver"
16068                   fi
16069                 else
16070                   eval library_names=\"$acl_library_names_spec\"
16071                   for f in $library_names; do
16072                     if test -f "$dir/$f"; then
16073                       found_dir="$dir"
16074                       found_so="$dir/$f"
16075                       break
16076                     fi
16077                   done
16078                 fi
16079               fi
16080             fi
16081                         if test "X$found_dir" = "X"; then
16082               if test -f "$dir/$libname.$acl_libext"; then
16083                 found_dir="$dir"
16084                 found_a="$dir/$libname.$acl_libext"
16085               fi
16086             fi
16087             if test "X$found_dir" != "X"; then
16088               if test -f "$dir/$libname.la"; then
16089                 found_la="$dir/$libname.la"
16090               fi
16091             fi
16092           fi
16093           if test "X$found_dir" = "X"; then
16094             for x in $LDFLAGS $LTLIBICONV; do
16095
16096   acl_save_prefix="$prefix"
16097   prefix="$acl_final_prefix"
16098   acl_save_exec_prefix="$exec_prefix"
16099   exec_prefix="$acl_final_exec_prefix"
16100   eval x=\"$x\"
16101   exec_prefix="$acl_save_exec_prefix"
16102   prefix="$acl_save_prefix"
16103
16104               case "$x" in
16105                 -L*)
16106                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16107                                     if test -n "$acl_shlibext"; then
16108                     if test -f "$dir/$libname$shrext"; then
16109                       found_dir="$dir"
16110                       found_so="$dir/$libname$shrext"
16111                     else
16112                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16113                         ver=`(cd "$dir" && \
16114                               for f in "$libname$shrext".*; do echo "$f"; done \
16115                               | sed -e "s,^$libname$shrext\\\\.,," \
16116                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16117                               | sed 1q ) 2>/dev/null`
16118                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16119                           found_dir="$dir"
16120                           found_so="$dir/$libname$shrext.$ver"
16121                         fi
16122                       else
16123                         eval library_names=\"$acl_library_names_spec\"
16124                         for f in $library_names; do
16125                           if test -f "$dir/$f"; then
16126                             found_dir="$dir"
16127                             found_so="$dir/$f"
16128                             break
16129                           fi
16130                         done
16131                       fi
16132                     fi
16133                   fi
16134                                     if test "X$found_dir" = "X"; then
16135                     if test -f "$dir/$libname.$acl_libext"; then
16136                       found_dir="$dir"
16137                       found_a="$dir/$libname.$acl_libext"
16138                     fi
16139                   fi
16140                   if test "X$found_dir" != "X"; then
16141                     if test -f "$dir/$libname.la"; then
16142                       found_la="$dir/$libname.la"
16143                     fi
16144                   fi
16145                   ;;
16146               esac
16147               if test "X$found_dir" != "X"; then
16148                 break
16149               fi
16150             done
16151           fi
16152           if test "X$found_dir" != "X"; then
16153                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16154             if test "X$found_so" != "X"; then
16155                                                         if test "$enable_rpath" = no \
16156                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16157                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16158                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16159               else
16160                                                                                 haveit=
16161                 for x in $ltrpathdirs; do
16162                   if test "X$x" = "X$found_dir"; then
16163                     haveit=yes
16164                     break
16165                   fi
16166                 done
16167                 if test -z "$haveit"; then
16168                   ltrpathdirs="$ltrpathdirs $found_dir"
16169                 fi
16170                                 if test "$acl_hardcode_direct" = yes; then
16171                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16172                 else
16173                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16174                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16175                                                             haveit=
16176                     for x in $rpathdirs; do
16177                       if test "X$x" = "X$found_dir"; then
16178                         haveit=yes
16179                         break
16180                       fi
16181                     done
16182                     if test -z "$haveit"; then
16183                       rpathdirs="$rpathdirs $found_dir"
16184                     fi
16185                   else
16186                                                                                 haveit=
16187                     for x in $LDFLAGS $LIBICONV; do
16188
16189   acl_save_prefix="$prefix"
16190   prefix="$acl_final_prefix"
16191   acl_save_exec_prefix="$exec_prefix"
16192   exec_prefix="$acl_final_exec_prefix"
16193   eval x=\"$x\"
16194   exec_prefix="$acl_save_exec_prefix"
16195   prefix="$acl_save_prefix"
16196
16197                       if test "X$x" = "X-L$found_dir"; then
16198                         haveit=yes
16199                         break
16200                       fi
16201                     done
16202                     if test -z "$haveit"; then
16203                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16204                     fi
16205                     if test "$acl_hardcode_minus_L" != no; then
16206                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16207                     else
16208                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16209                     fi
16210                   fi
16211                 fi
16212               fi
16213             else
16214               if test "X$found_a" != "X"; then
16215                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16216               else
16217                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16218               fi
16219             fi
16220                         additional_includedir=
16221             case "$found_dir" in
16222               */$acl_libdirstem | */$acl_libdirstem/)
16223                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16224                 if test "$name" = 'iconv'; then
16225                   LIBICONV_PREFIX="$basedir"
16226                 fi
16227                 additional_includedir="$basedir/include"
16228                 ;;
16229               */$acl_libdirstem2 | */$acl_libdirstem2/)
16230                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16231                 if test "$name" = 'iconv'; then
16232                   LIBICONV_PREFIX="$basedir"
16233                 fi
16234                 additional_includedir="$basedir/include"
16235                 ;;
16236             esac
16237             if test "X$additional_includedir" != "X"; then
16238                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16239                 haveit=
16240                 if test "X$additional_includedir" = "X/usr/local/include"; then
16241                   if test -n "$GCC"; then
16242                     case $host_os in
16243                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16244                     esac
16245                   fi
16246                 fi
16247                 if test -z "$haveit"; then
16248                   for x in $CPPFLAGS $INCICONV; do
16249
16250   acl_save_prefix="$prefix"
16251   prefix="$acl_final_prefix"
16252   acl_save_exec_prefix="$exec_prefix"
16253   exec_prefix="$acl_final_exec_prefix"
16254   eval x=\"$x\"
16255   exec_prefix="$acl_save_exec_prefix"
16256   prefix="$acl_save_prefix"
16257
16258                     if test "X$x" = "X-I$additional_includedir"; then
16259                       haveit=yes
16260                       break
16261                     fi
16262                   done
16263                   if test -z "$haveit"; then
16264                     if test -d "$additional_includedir"; then
16265                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16266                     fi
16267                   fi
16268                 fi
16269               fi
16270             fi
16271                         if test -n "$found_la"; then
16272                                                         save_libdir="$libdir"
16273               case "$found_la" in
16274                 */* | *\\*) . "$found_la" ;;
16275                 *) . "./$found_la" ;;
16276               esac
16277               libdir="$save_libdir"
16278                             for dep in $dependency_libs; do
16279                 case "$dep" in
16280                   -L*)
16281                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16282                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16283                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16284                       haveit=
16285                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16286                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16287                         if test -n "$GCC"; then
16288                           case $host_os in
16289                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16290                           esac
16291                         fi
16292                       fi
16293                       if test -z "$haveit"; then
16294                         haveit=
16295                         for x in $LDFLAGS $LIBICONV; do
16296
16297   acl_save_prefix="$prefix"
16298   prefix="$acl_final_prefix"
16299   acl_save_exec_prefix="$exec_prefix"
16300   exec_prefix="$acl_final_exec_prefix"
16301   eval x=\"$x\"
16302   exec_prefix="$acl_save_exec_prefix"
16303   prefix="$acl_save_prefix"
16304
16305                           if test "X$x" = "X-L$additional_libdir"; then
16306                             haveit=yes
16307                             break
16308                           fi
16309                         done
16310                         if test -z "$haveit"; then
16311                           if test -d "$additional_libdir"; then
16312                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16313                           fi
16314                         fi
16315                         haveit=
16316                         for x in $LDFLAGS $LTLIBICONV; do
16317
16318   acl_save_prefix="$prefix"
16319   prefix="$acl_final_prefix"
16320   acl_save_exec_prefix="$exec_prefix"
16321   exec_prefix="$acl_final_exec_prefix"
16322   eval x=\"$x\"
16323   exec_prefix="$acl_save_exec_prefix"
16324   prefix="$acl_save_prefix"
16325
16326                           if test "X$x" = "X-L$additional_libdir"; then
16327                             haveit=yes
16328                             break
16329                           fi
16330                         done
16331                         if test -z "$haveit"; then
16332                           if test -d "$additional_libdir"; then
16333                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16334                           fi
16335                         fi
16336                       fi
16337                     fi
16338                     ;;
16339                   -R*)
16340                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16341                     if test "$enable_rpath" != no; then
16342                                                                   haveit=
16343                       for x in $rpathdirs; do
16344                         if test "X$x" = "X$dir"; then
16345                           haveit=yes
16346                           break
16347                         fi
16348                       done
16349                       if test -z "$haveit"; then
16350                         rpathdirs="$rpathdirs $dir"
16351                       fi
16352                                                                   haveit=
16353                       for x in $ltrpathdirs; do
16354                         if test "X$x" = "X$dir"; then
16355                           haveit=yes
16356                           break
16357                         fi
16358                       done
16359                       if test -z "$haveit"; then
16360                         ltrpathdirs="$ltrpathdirs $dir"
16361                       fi
16362                     fi
16363                     ;;
16364                   -l*)
16365                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16366                     ;;
16367                   *.la)
16368                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16369                     ;;
16370                   *)
16371                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16372                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16373                     ;;
16374                 esac
16375               done
16376             fi
16377           else
16378                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16379             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16380           fi
16381         fi
16382       fi
16383     done
16384   done
16385   if test "X$rpathdirs" != "X"; then
16386     if test -n "$acl_hardcode_libdir_separator"; then
16387                         alldirs=
16388       for found_dir in $rpathdirs; do
16389         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16390       done
16391             acl_save_libdir="$libdir"
16392       libdir="$alldirs"
16393       eval flag=\"$acl_hardcode_libdir_flag_spec\"
16394       libdir="$acl_save_libdir"
16395       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16396     else
16397             for found_dir in $rpathdirs; do
16398         acl_save_libdir="$libdir"
16399         libdir="$found_dir"
16400         eval flag=\"$acl_hardcode_libdir_flag_spec\"
16401         libdir="$acl_save_libdir"
16402         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16403       done
16404     fi
16405   fi
16406   if test "X$ltrpathdirs" != "X"; then
16407             for found_dir in $ltrpathdirs; do
16408       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16409     done
16410   fi
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16443 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16444 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
16445   $as_echo_n "(cached) " >&6
16446 else
16447   gt_save_LIBS="$LIBS"
16448      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16449      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16450 /* end confdefs.h.  */
16451 #include <CoreFoundation/CFPreferences.h>
16452 int
16453 main ()
16454 {
16455 CFPreferencesCopyAppValue(NULL, NULL)
16456   ;
16457   return 0;
16458 }
16459 _ACEOF
16460 if ac_fn_c_try_link "$LINENO"; then :
16461   gt_cv_func_CFPreferencesCopyAppValue=yes
16462 else
16463   gt_cv_func_CFPreferencesCopyAppValue=no
16464 fi
16465 rm -f core conftest.err conftest.$ac_objext \
16466     conftest$ac_exeext conftest.$ac_ext
16467      LIBS="$gt_save_LIBS"
16468 fi
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16470 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16471   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16472
16473 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16474
16475   fi
16476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16477 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16478 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
16479   $as_echo_n "(cached) " >&6
16480 else
16481   gt_save_LIBS="$LIBS"
16482      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16483      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16484 /* end confdefs.h.  */
16485 #include <CoreFoundation/CFLocale.h>
16486 int
16487 main ()
16488 {
16489 CFLocaleCopyCurrent();
16490   ;
16491   return 0;
16492 }
16493 _ACEOF
16494 if ac_fn_c_try_link "$LINENO"; then :
16495   gt_cv_func_CFLocaleCopyCurrent=yes
16496 else
16497   gt_cv_func_CFLocaleCopyCurrent=no
16498 fi
16499 rm -f core conftest.err conftest.$ac_objext \
16500     conftest$ac_exeext conftest.$ac_ext
16501      LIBS="$gt_save_LIBS"
16502 fi
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16504 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16505   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16506
16507 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16508
16509   fi
16510   INTL_MACOSX_LIBS=
16511   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16512     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16513   fi
16514
16515
16516
16517
16518
16519
16520   LIBINTL=
16521   LTLIBINTL=
16522   POSUB=
16523
16524     case " $gt_needs " in
16525     *" need-formatstring-macros "*) gt_api_version=3 ;;
16526     *" need-ngettext "*) gt_api_version=2 ;;
16527     *) gt_api_version=1 ;;
16528   esac
16529   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
16530   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
16531
16532     if test "$USE_NLS" = "yes"; then
16533     gt_use_preinstalled_gnugettext=no
16534
16535
16536         if test $gt_api_version -ge 3; then
16537           gt_revision_test_code='
16538 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16539 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
16540 #endif
16541 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
16542 '
16543         else
16544           gt_revision_test_code=
16545         fi
16546         if test $gt_api_version -ge 2; then
16547           gt_expression_test_code=' + * ngettext ("", "", 0)'
16548         else
16549           gt_expression_test_code=
16550         fi
16551
16552         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16553 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16554 if eval \${$gt_func_gnugettext_libc+:} false; then :
16555   $as_echo_n "(cached) " >&6
16556 else
16557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558 /* end confdefs.h.  */
16559 #include <libintl.h>
16560 $gt_revision_test_code
16561 extern int _nl_msg_cat_cntr;
16562 extern int *_nl_domain_bindings;
16563 int
16564 main ()
16565 {
16566 bindtextdomain ("", "");
16567 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
16568   ;
16569   return 0;
16570 }
16571 _ACEOF
16572 if ac_fn_c_try_link "$LINENO"; then :
16573   eval "$gt_func_gnugettext_libc=yes"
16574 else
16575   eval "$gt_func_gnugettext_libc=no"
16576 fi
16577 rm -f core conftest.err conftest.$ac_objext \
16578     conftest$ac_exeext conftest.$ac_ext
16579 fi
16580 eval ac_res=\$$gt_func_gnugettext_libc
16581                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16582 $as_echo "$ac_res" >&6; }
16583
16584         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
16585
16586
16587
16588
16589
16590           am_save_CPPFLAGS="$CPPFLAGS"
16591
16592   for element in $INCICONV; do
16593     haveit=
16594     for x in $CPPFLAGS; do
16595
16596   acl_save_prefix="$prefix"
16597   prefix="$acl_final_prefix"
16598   acl_save_exec_prefix="$exec_prefix"
16599   exec_prefix="$acl_final_exec_prefix"
16600   eval x=\"$x\"
16601   exec_prefix="$acl_save_exec_prefix"
16602   prefix="$acl_save_prefix"
16603
16604       if test "X$x" = "X$element"; then
16605         haveit=yes
16606         break
16607       fi
16608     done
16609     if test -z "$haveit"; then
16610       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16611     fi
16612   done
16613
16614
16615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16616 $as_echo_n "checking for iconv... " >&6; }
16617 if ${am_cv_func_iconv+:} false; then :
16618   $as_echo_n "(cached) " >&6
16619 else
16620
16621     am_cv_func_iconv="no, consider installing GNU libiconv"
16622     am_cv_lib_iconv=no
16623     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624 /* end confdefs.h.  */
16625 #include <stdlib.h>
16626 #include <iconv.h>
16627 int
16628 main ()
16629 {
16630 iconv_t cd = iconv_open("","");
16631        iconv(cd,NULL,NULL,NULL,NULL);
16632        iconv_close(cd);
16633   ;
16634   return 0;
16635 }
16636 _ACEOF
16637 if ac_fn_c_try_link "$LINENO"; then :
16638   am_cv_func_iconv=yes
16639 fi
16640 rm -f core conftest.err conftest.$ac_objext \
16641     conftest$ac_exeext conftest.$ac_ext
16642     if test "$am_cv_func_iconv" != yes; then
16643       am_save_LIBS="$LIBS"
16644       LIBS="$LIBS $LIBICONV"
16645       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h.  */
16647 #include <stdlib.h>
16648 #include <iconv.h>
16649 int
16650 main ()
16651 {
16652 iconv_t cd = iconv_open("","");
16653          iconv(cd,NULL,NULL,NULL,NULL);
16654          iconv_close(cd);
16655   ;
16656   return 0;
16657 }
16658 _ACEOF
16659 if ac_fn_c_try_link "$LINENO"; then :
16660   am_cv_lib_iconv=yes
16661         am_cv_func_iconv=yes
16662 fi
16663 rm -f core conftest.err conftest.$ac_objext \
16664     conftest$ac_exeext conftest.$ac_ext
16665       LIBS="$am_save_LIBS"
16666     fi
16667
16668 fi
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16670 $as_echo "$am_cv_func_iconv" >&6; }
16671   if test "$am_cv_func_iconv" = yes; then
16672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16673 $as_echo_n "checking for working iconv... " >&6; }
16674 if ${am_cv_func_iconv_works+:} false; then :
16675   $as_echo_n "(cached) " >&6
16676 else
16677
16678             am_save_LIBS="$LIBS"
16679       if test $am_cv_lib_iconv = yes; then
16680         LIBS="$LIBS $LIBICONV"
16681       fi
16682       if test "$cross_compiling" = yes; then :
16683   case "$host_os" in
16684            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16685            *)            am_cv_func_iconv_works="guessing yes" ;;
16686          esac
16687 else
16688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16689 /* end confdefs.h.  */
16690
16691 #include <iconv.h>
16692 #include <string.h>
16693 int main ()
16694 {
16695   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16696      returns.  */
16697   {
16698     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16699     if (cd_utf8_to_88591 != (iconv_t)(-1))
16700       {
16701         static const char input[] = "\342\202\254"; /* EURO SIGN */
16702         char buf[10];
16703         const char *inptr = input;
16704         size_t inbytesleft = strlen (input);
16705         char *outptr = buf;
16706         size_t outbytesleft = sizeof (buf);
16707         size_t res = iconv (cd_utf8_to_88591,
16708                             (char **) &inptr, &inbytesleft,
16709                             &outptr, &outbytesleft);
16710         if (res == 0)
16711           return 1;
16712       }
16713   }
16714   /* Test against Solaris 10 bug: Failures are not distinguishable from
16715      successful returns.  */
16716   {
16717     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16718     if (cd_ascii_to_88591 != (iconv_t)(-1))
16719       {
16720         static const char input[] = "\263";
16721         char buf[10];
16722         const char *inptr = input;
16723         size_t inbytesleft = strlen (input);
16724         char *outptr = buf;
16725         size_t outbytesleft = sizeof (buf);
16726         size_t res = iconv (cd_ascii_to_88591,
16727                             (char **) &inptr, &inbytesleft,
16728                             &outptr, &outbytesleft);
16729         if (res == 0)
16730           return 1;
16731       }
16732   }
16733 #if 0 /* This bug could be worked around by the caller.  */
16734   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
16735   {
16736     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16737     if (cd_88591_to_utf8 != (iconv_t)(-1))
16738       {
16739         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16740         char buf[50];
16741         const char *inptr = input;
16742         size_t inbytesleft = strlen (input);
16743         char *outptr = buf;
16744         size_t outbytesleft = sizeof (buf);
16745         size_t res = iconv (cd_88591_to_utf8,
16746                             (char **) &inptr, &inbytesleft,
16747                             &outptr, &outbytesleft);
16748         if ((int)res > 0)
16749           return 1;
16750       }
16751   }
16752 #endif
16753   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16754      provided.  */
16755   if (/* Try standardized names.  */
16756       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16757       /* Try IRIX, OSF/1 names.  */
16758       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16759       /* Try AIX names.  */
16760       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16761       /* Try HP-UX names.  */
16762       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16763     return 1;
16764   return 0;
16765 }
16766 _ACEOF
16767 if ac_fn_c_try_run "$LINENO"; then :
16768   am_cv_func_iconv_works=yes
16769 else
16770   am_cv_func_iconv_works=no
16771 fi
16772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16773   conftest.$ac_objext conftest.beam conftest.$ac_ext
16774 fi
16775
16776       LIBS="$am_save_LIBS"
16777
16778 fi
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16780 $as_echo "$am_cv_func_iconv_works" >&6; }
16781     case "$am_cv_func_iconv_works" in
16782       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16783       *)   am_func_iconv=yes ;;
16784     esac
16785   else
16786     am_func_iconv=no am_cv_lib_iconv=no
16787   fi
16788   if test "$am_func_iconv" = yes; then
16789
16790 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
16791
16792   fi
16793   if test "$am_cv_lib_iconv" = yes; then
16794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16795 $as_echo_n "checking how to link with libiconv... " >&6; }
16796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16797 $as_echo "$LIBICONV" >&6; }
16798   else
16799             CPPFLAGS="$am_save_CPPFLAGS"
16800     LIBICONV=
16801     LTLIBICONV=
16802   fi
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814     use_additional=yes
16815
16816   acl_save_prefix="$prefix"
16817   prefix="$acl_final_prefix"
16818   acl_save_exec_prefix="$exec_prefix"
16819   exec_prefix="$acl_final_exec_prefix"
16820
16821     eval additional_includedir=\"$includedir\"
16822     eval additional_libdir=\"$libdir\"
16823
16824   exec_prefix="$acl_save_exec_prefix"
16825   prefix="$acl_save_prefix"
16826
16827
16828 # Check whether --with-libintl-prefix was given.
16829 if test "${with_libintl_prefix+set}" = set; then :
16830   withval=$with_libintl_prefix;
16831     if test "X$withval" = "Xno"; then
16832       use_additional=no
16833     else
16834       if test "X$withval" = "X"; then
16835
16836   acl_save_prefix="$prefix"
16837   prefix="$acl_final_prefix"
16838   acl_save_exec_prefix="$exec_prefix"
16839   exec_prefix="$acl_final_exec_prefix"
16840
16841           eval additional_includedir=\"$includedir\"
16842           eval additional_libdir=\"$libdir\"
16843
16844   exec_prefix="$acl_save_exec_prefix"
16845   prefix="$acl_save_prefix"
16846
16847       else
16848         additional_includedir="$withval/include"
16849         additional_libdir="$withval/$acl_libdirstem"
16850         if test "$acl_libdirstem2" != "$acl_libdirstem" \
16851            && ! test -d "$withval/$acl_libdirstem"; then
16852           additional_libdir="$withval/$acl_libdirstem2"
16853         fi
16854       fi
16855     fi
16856
16857 fi
16858
16859       LIBINTL=
16860   LTLIBINTL=
16861   INCINTL=
16862   LIBINTL_PREFIX=
16863       HAVE_LIBINTL=
16864   rpathdirs=
16865   ltrpathdirs=
16866   names_already_handled=
16867   names_next_round='intl '
16868   while test -n "$names_next_round"; do
16869     names_this_round="$names_next_round"
16870     names_next_round=
16871     for name in $names_this_round; do
16872       already_handled=
16873       for n in $names_already_handled; do
16874         if test "$n" = "$name"; then
16875           already_handled=yes
16876           break
16877         fi
16878       done
16879       if test -z "$already_handled"; then
16880         names_already_handled="$names_already_handled $name"
16881                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16882         eval value=\"\$HAVE_LIB$uppername\"
16883         if test -n "$value"; then
16884           if test "$value" = yes; then
16885             eval value=\"\$LIB$uppername\"
16886             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16887             eval value=\"\$LTLIB$uppername\"
16888             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16889           else
16890                                     :
16891           fi
16892         else
16893                               found_dir=
16894           found_la=
16895           found_so=
16896           found_a=
16897           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16898           if test -n "$acl_shlibext"; then
16899             shrext=".$acl_shlibext"             # typically: shrext=.so
16900           else
16901             shrext=
16902           fi
16903           if test $use_additional = yes; then
16904             dir="$additional_libdir"
16905                                     if test -n "$acl_shlibext"; then
16906               if test -f "$dir/$libname$shrext"; then
16907                 found_dir="$dir"
16908                 found_so="$dir/$libname$shrext"
16909               else
16910                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16911                   ver=`(cd "$dir" && \
16912                         for f in "$libname$shrext".*; do echo "$f"; done \
16913                         | sed -e "s,^$libname$shrext\\\\.,," \
16914                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16915                         | sed 1q ) 2>/dev/null`
16916                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16917                     found_dir="$dir"
16918                     found_so="$dir/$libname$shrext.$ver"
16919                   fi
16920                 else
16921                   eval library_names=\"$acl_library_names_spec\"
16922                   for f in $library_names; do
16923                     if test -f "$dir/$f"; then
16924                       found_dir="$dir"
16925                       found_so="$dir/$f"
16926                       break
16927                     fi
16928                   done
16929                 fi
16930               fi
16931             fi
16932                         if test "X$found_dir" = "X"; then
16933               if test -f "$dir/$libname.$acl_libext"; then
16934                 found_dir="$dir"
16935                 found_a="$dir/$libname.$acl_libext"
16936               fi
16937             fi
16938             if test "X$found_dir" != "X"; then
16939               if test -f "$dir/$libname.la"; then
16940                 found_la="$dir/$libname.la"
16941               fi
16942             fi
16943           fi
16944           if test "X$found_dir" = "X"; then
16945             for x in $LDFLAGS $LTLIBINTL; do
16946
16947   acl_save_prefix="$prefix"
16948   prefix="$acl_final_prefix"
16949   acl_save_exec_prefix="$exec_prefix"
16950   exec_prefix="$acl_final_exec_prefix"
16951   eval x=\"$x\"
16952   exec_prefix="$acl_save_exec_prefix"
16953   prefix="$acl_save_prefix"
16954
16955               case "$x" in
16956                 -L*)
16957                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16958                                     if test -n "$acl_shlibext"; then
16959                     if test -f "$dir/$libname$shrext"; then
16960                       found_dir="$dir"
16961                       found_so="$dir/$libname$shrext"
16962                     else
16963                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16964                         ver=`(cd "$dir" && \
16965                               for f in "$libname$shrext".*; do echo "$f"; done \
16966                               | sed -e "s,^$libname$shrext\\\\.,," \
16967                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16968                               | sed 1q ) 2>/dev/null`
16969                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16970                           found_dir="$dir"
16971                           found_so="$dir/$libname$shrext.$ver"
16972                         fi
16973                       else
16974                         eval library_names=\"$acl_library_names_spec\"
16975                         for f in $library_names; do
16976                           if test -f "$dir/$f"; then
16977                             found_dir="$dir"
16978                             found_so="$dir/$f"
16979                             break
16980                           fi
16981                         done
16982                       fi
16983                     fi
16984                   fi
16985                                     if test "X$found_dir" = "X"; then
16986                     if test -f "$dir/$libname.$acl_libext"; then
16987                       found_dir="$dir"
16988                       found_a="$dir/$libname.$acl_libext"
16989                     fi
16990                   fi
16991                   if test "X$found_dir" != "X"; then
16992                     if test -f "$dir/$libname.la"; then
16993                       found_la="$dir/$libname.la"
16994                     fi
16995                   fi
16996                   ;;
16997               esac
16998               if test "X$found_dir" != "X"; then
16999                 break
17000               fi
17001             done
17002           fi
17003           if test "X$found_dir" != "X"; then
17004                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17005             if test "X$found_so" != "X"; then
17006                                                         if test "$enable_rpath" = no \
17007                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17008                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17009                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17010               else
17011                                                                                 haveit=
17012                 for x in $ltrpathdirs; do
17013                   if test "X$x" = "X$found_dir"; then
17014                     haveit=yes
17015                     break
17016                   fi
17017                 done
17018                 if test -z "$haveit"; then
17019                   ltrpathdirs="$ltrpathdirs $found_dir"
17020                 fi
17021                                 if test "$acl_hardcode_direct" = yes; then
17022                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17023                 else
17024                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17025                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17026                                                             haveit=
17027                     for x in $rpathdirs; do
17028                       if test "X$x" = "X$found_dir"; then
17029                         haveit=yes
17030                         break
17031                       fi
17032                     done
17033                     if test -z "$haveit"; then
17034                       rpathdirs="$rpathdirs $found_dir"
17035                     fi
17036                   else
17037                                                                                 haveit=
17038                     for x in $LDFLAGS $LIBINTL; do
17039
17040   acl_save_prefix="$prefix"
17041   prefix="$acl_final_prefix"
17042   acl_save_exec_prefix="$exec_prefix"
17043   exec_prefix="$acl_final_exec_prefix"
17044   eval x=\"$x\"
17045   exec_prefix="$acl_save_exec_prefix"
17046   prefix="$acl_save_prefix"
17047
17048                       if test "X$x" = "X-L$found_dir"; then
17049                         haveit=yes
17050                         break
17051                       fi
17052                     done
17053                     if test -z "$haveit"; then
17054                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17055                     fi
17056                     if test "$acl_hardcode_minus_L" != no; then
17057                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17058                     else
17059                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17060                     fi
17061                   fi
17062                 fi
17063               fi
17064             else
17065               if test "X$found_a" != "X"; then
17066                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17067               else
17068                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17069               fi
17070             fi
17071                         additional_includedir=
17072             case "$found_dir" in
17073               */$acl_libdirstem | */$acl_libdirstem/)
17074                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17075                 if test "$name" = 'intl'; then
17076                   LIBINTL_PREFIX="$basedir"
17077                 fi
17078                 additional_includedir="$basedir/include"
17079                 ;;
17080               */$acl_libdirstem2 | */$acl_libdirstem2/)
17081                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17082                 if test "$name" = 'intl'; then
17083                   LIBINTL_PREFIX="$basedir"
17084                 fi
17085                 additional_includedir="$basedir/include"
17086                 ;;
17087             esac
17088             if test "X$additional_includedir" != "X"; then
17089                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17090                 haveit=
17091                 if test "X$additional_includedir" = "X/usr/local/include"; then
17092                   if test -n "$GCC"; then
17093                     case $host_os in
17094                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17095                     esac
17096                   fi
17097                 fi
17098                 if test -z "$haveit"; then
17099                   for x in $CPPFLAGS $INCINTL; do
17100
17101   acl_save_prefix="$prefix"
17102   prefix="$acl_final_prefix"
17103   acl_save_exec_prefix="$exec_prefix"
17104   exec_prefix="$acl_final_exec_prefix"
17105   eval x=\"$x\"
17106   exec_prefix="$acl_save_exec_prefix"
17107   prefix="$acl_save_prefix"
17108
17109                     if test "X$x" = "X-I$additional_includedir"; then
17110                       haveit=yes
17111                       break
17112                     fi
17113                   done
17114                   if test -z "$haveit"; then
17115                     if test -d "$additional_includedir"; then
17116                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17117                     fi
17118                   fi
17119                 fi
17120               fi
17121             fi
17122                         if test -n "$found_la"; then
17123                                                         save_libdir="$libdir"
17124               case "$found_la" in
17125                 */* | *\\*) . "$found_la" ;;
17126                 *) . "./$found_la" ;;
17127               esac
17128               libdir="$save_libdir"
17129                             for dep in $dependency_libs; do
17130                 case "$dep" in
17131                   -L*)
17132                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17133                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17134                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17135                       haveit=
17136                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17137                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17138                         if test -n "$GCC"; then
17139                           case $host_os in
17140                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17141                           esac
17142                         fi
17143                       fi
17144                       if test -z "$haveit"; then
17145                         haveit=
17146                         for x in $LDFLAGS $LIBINTL; do
17147
17148   acl_save_prefix="$prefix"
17149   prefix="$acl_final_prefix"
17150   acl_save_exec_prefix="$exec_prefix"
17151   exec_prefix="$acl_final_exec_prefix"
17152   eval x=\"$x\"
17153   exec_prefix="$acl_save_exec_prefix"
17154   prefix="$acl_save_prefix"
17155
17156                           if test "X$x" = "X-L$additional_libdir"; then
17157                             haveit=yes
17158                             break
17159                           fi
17160                         done
17161                         if test -z "$haveit"; then
17162                           if test -d "$additional_libdir"; then
17163                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17164                           fi
17165                         fi
17166                         haveit=
17167                         for x in $LDFLAGS $LTLIBINTL; do
17168
17169   acl_save_prefix="$prefix"
17170   prefix="$acl_final_prefix"
17171   acl_save_exec_prefix="$exec_prefix"
17172   exec_prefix="$acl_final_exec_prefix"
17173   eval x=\"$x\"
17174   exec_prefix="$acl_save_exec_prefix"
17175   prefix="$acl_save_prefix"
17176
17177                           if test "X$x" = "X-L$additional_libdir"; then
17178                             haveit=yes
17179                             break
17180                           fi
17181                         done
17182                         if test -z "$haveit"; then
17183                           if test -d "$additional_libdir"; then
17184                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17185                           fi
17186                         fi
17187                       fi
17188                     fi
17189                     ;;
17190                   -R*)
17191                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17192                     if test "$enable_rpath" != no; then
17193                                                                   haveit=
17194                       for x in $rpathdirs; do
17195                         if test "X$x" = "X$dir"; then
17196                           haveit=yes
17197                           break
17198                         fi
17199                       done
17200                       if test -z "$haveit"; then
17201                         rpathdirs="$rpathdirs $dir"
17202                       fi
17203                                                                   haveit=
17204                       for x in $ltrpathdirs; do
17205                         if test "X$x" = "X$dir"; then
17206                           haveit=yes
17207                           break
17208                         fi
17209                       done
17210                       if test -z "$haveit"; then
17211                         ltrpathdirs="$ltrpathdirs $dir"
17212                       fi
17213                     fi
17214                     ;;
17215                   -l*)
17216                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17217                     ;;
17218                   *.la)
17219                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17220                     ;;
17221                   *)
17222                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17223                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17224                     ;;
17225                 esac
17226               done
17227             fi
17228           else
17229                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17230             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17231           fi
17232         fi
17233       fi
17234     done
17235   done
17236   if test "X$rpathdirs" != "X"; then
17237     if test -n "$acl_hardcode_libdir_separator"; then
17238                         alldirs=
17239       for found_dir in $rpathdirs; do
17240         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17241       done
17242             acl_save_libdir="$libdir"
17243       libdir="$alldirs"
17244       eval flag=\"$acl_hardcode_libdir_flag_spec\"
17245       libdir="$acl_save_libdir"
17246       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17247     else
17248             for found_dir in $rpathdirs; do
17249         acl_save_libdir="$libdir"
17250         libdir="$found_dir"
17251         eval flag=\"$acl_hardcode_libdir_flag_spec\"
17252         libdir="$acl_save_libdir"
17253         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17254       done
17255     fi
17256   fi
17257   if test "X$ltrpathdirs" != "X"; then
17258             for found_dir in $ltrpathdirs; do
17259       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17260     done
17261   fi
17262
17263
17264
17265
17266
17267
17268           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17269 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17270 if eval \${$gt_func_gnugettext_libintl+:} false; then :
17271   $as_echo_n "(cached) " >&6
17272 else
17273   gt_save_CPPFLAGS="$CPPFLAGS"
17274             CPPFLAGS="$CPPFLAGS $INCINTL"
17275             gt_save_LIBS="$LIBS"
17276             LIBS="$LIBS $LIBINTL"
17277                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278 /* end confdefs.h.  */
17279 #include <libintl.h>
17280 $gt_revision_test_code
17281 extern int _nl_msg_cat_cntr;
17282 extern
17283 #ifdef __cplusplus
17284 "C"
17285 #endif
17286 const char *_nl_expand_alias (const char *);
17287 int
17288 main ()
17289 {
17290 bindtextdomain ("", "");
17291 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17292   ;
17293   return 0;
17294 }
17295 _ACEOF
17296 if ac_fn_c_try_link "$LINENO"; then :
17297   eval "$gt_func_gnugettext_libintl=yes"
17298 else
17299   eval "$gt_func_gnugettext_libintl=no"
17300 fi
17301 rm -f core conftest.err conftest.$ac_objext \
17302     conftest$ac_exeext conftest.$ac_ext
17303                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17304               LIBS="$LIBS $LIBICONV"
17305               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17306 /* end confdefs.h.  */
17307 #include <libintl.h>
17308 $gt_revision_test_code
17309 extern int _nl_msg_cat_cntr;
17310 extern
17311 #ifdef __cplusplus
17312 "C"
17313 #endif
17314 const char *_nl_expand_alias (const char *);
17315 int
17316 main ()
17317 {
17318 bindtextdomain ("", "");
17319 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17320   ;
17321   return 0;
17322 }
17323 _ACEOF
17324 if ac_fn_c_try_link "$LINENO"; then :
17325   LIBINTL="$LIBINTL $LIBICONV"
17326                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17327                 eval "$gt_func_gnugettext_libintl=yes"
17328
17329 fi
17330 rm -f core conftest.err conftest.$ac_objext \
17331     conftest$ac_exeext conftest.$ac_ext
17332             fi
17333             CPPFLAGS="$gt_save_CPPFLAGS"
17334             LIBS="$gt_save_LIBS"
17335 fi
17336 eval ac_res=\$$gt_func_gnugettext_libintl
17337                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17338 $as_echo "$ac_res" >&6; }
17339         fi
17340
17341                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17342            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17343                 && test "$PACKAGE" != gettext-runtime \
17344                 && test "$PACKAGE" != gettext-tools; }; then
17345           gt_use_preinstalled_gnugettext=yes
17346         else
17347                     LIBINTL=
17348           LTLIBINTL=
17349           INCINTL=
17350         fi
17351
17352
17353
17354     if test -n "$INTL_MACOSX_LIBS"; then
17355       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17356          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17357                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17358         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17359       fi
17360     fi
17361
17362     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17363        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17364
17365 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17366
17367     else
17368       USE_NLS=no
17369     fi
17370   fi
17371
17372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17373 $as_echo_n "checking whether to use NLS... " >&6; }
17374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17375 $as_echo "$USE_NLS" >&6; }
17376   if test "$USE_NLS" = "yes"; then
17377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17378 $as_echo_n "checking where the gettext function comes from... " >&6; }
17379     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17380       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17381         gt_source="external libintl"
17382       else
17383         gt_source="libc"
17384       fi
17385     else
17386       gt_source="included intl directory"
17387     fi
17388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17389 $as_echo "$gt_source" >&6; }
17390   fi
17391
17392   if test "$USE_NLS" = "yes"; then
17393
17394     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17395       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17396         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17397 $as_echo_n "checking how to link with libintl... " >&6; }
17398         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17399 $as_echo "$LIBINTL" >&6; }
17400
17401   for element in $INCINTL; do
17402     haveit=
17403     for x in $CPPFLAGS; do
17404
17405   acl_save_prefix="$prefix"
17406   prefix="$acl_final_prefix"
17407   acl_save_exec_prefix="$exec_prefix"
17408   exec_prefix="$acl_final_exec_prefix"
17409   eval x=\"$x\"
17410   exec_prefix="$acl_save_exec_prefix"
17411   prefix="$acl_save_prefix"
17412
17413       if test "X$x" = "X$element"; then
17414         haveit=yes
17415         break
17416       fi
17417     done
17418     if test -z "$haveit"; then
17419       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17420     fi
17421   done
17422
17423       fi
17424
17425
17426 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17427
17428
17429 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17430
17431     fi
17432
17433         POSUB=po
17434   fi
17435
17436
17437
17438     INTLLIBS="$LIBINTL"
17439
17440
17441
17442
17443
17444
17445
17446
17447 GETTEXT_PACKAGE=PACKAGE_TARNAME
17448
17449
17450 $as_echo "#define GETTEXT_PACKAGE PACKAGE_TARNAME" >>confdefs.h
17451
17452
17453 ac_config_files="$ac_config_files Makefile po/Makefile.in moonshot.desktop moonshot-webp.desktop moonshot-ui.spec"
17454
17455
17456 cat >confcache <<\_ACEOF
17457 # This file is a shell script that caches the results of configure
17458 # tests run on this system so they can be shared between configure
17459 # scripts and configure runs, see configure's option --config-cache.
17460 # It is not useful on other systems.  If it contains results you don't
17461 # want to keep, you may remove or edit it.
17462 #
17463 # config.status only pays attention to the cache file if you give it
17464 # the --recheck option to rerun configure.
17465 #
17466 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17467 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17468 # following values.
17469
17470 _ACEOF
17471
17472 # The following way of writing the cache mishandles newlines in values,
17473 # but we know of no workaround that is simple, portable, and efficient.
17474 # So, we kill variables containing newlines.
17475 # Ultrix sh set writes to stderr and can't be redirected directly,
17476 # and sets the high bit in the cache file unless we assign to the vars.
17477 (
17478   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17479     eval ac_val=\$$ac_var
17480     case $ac_val in #(
17481     *${as_nl}*)
17482       case $ac_var in #(
17483       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17484 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17485       esac
17486       case $ac_var in #(
17487       _ | IFS | as_nl) ;; #(
17488       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17489       *) { eval $ac_var=; unset $ac_var;} ;;
17490       esac ;;
17491     esac
17492   done
17493
17494   (set) 2>&1 |
17495     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17496     *${as_nl}ac_space=\ *)
17497       # `set' does not quote correctly, so add quotes: double-quote
17498       # substitution turns \\\\ into \\, and sed turns \\ into \.
17499       sed -n \
17500         "s/'/'\\\\''/g;
17501           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17502       ;; #(
17503     *)
17504       # `set' quotes correctly as required by POSIX, so do not add quotes.
17505       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17506       ;;
17507     esac |
17508     sort
17509 ) |
17510   sed '
17511      /^ac_cv_env_/b end
17512      t clear
17513      :clear
17514      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17515      t end
17516      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17517      :end' >>confcache
17518 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17519   if test -w "$cache_file"; then
17520     if test "x$cache_file" != "x/dev/null"; then
17521       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17522 $as_echo "$as_me: updating cache $cache_file" >&6;}
17523       if test ! -f "$cache_file" || test -h "$cache_file"; then
17524         cat confcache >"$cache_file"
17525       else
17526         case $cache_file in #(
17527         */* | ?:*)
17528           mv -f confcache "$cache_file"$$ &&
17529           mv -f "$cache_file"$$ "$cache_file" ;; #(
17530         *)
17531           mv -f confcache "$cache_file" ;;
17532         esac
17533       fi
17534     fi
17535   else
17536     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17537 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17538   fi
17539 fi
17540 rm -f confcache
17541
17542 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17543 # Let make expand exec_prefix.
17544 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17545
17546 DEFS=-DHAVE_CONFIG_H
17547
17548 ac_libobjs=
17549 ac_ltlibobjs=
17550 U=
17551 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17552   # 1. Remove the extension, and $U if already installed.
17553   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17554   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17555   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17556   #    will be set to the directory where LIBOBJS objects are built.
17557   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17558   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17559 done
17560 LIBOBJS=$ac_libobjs
17561
17562 LTLIBOBJS=$ac_ltlibobjs
17563
17564
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17566 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17567    if test -n "$am_sleep_pid"; then
17568      # Hide warnings about reused PIDs.
17569      wait $am_sleep_pid 2>/dev/null
17570    fi
17571    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17572 $as_echo "done" >&6; }
17573  if test -n "$EXEEXT"; then
17574   am__EXEEXT_TRUE=
17575   am__EXEEXT_FALSE='#'
17576 else
17577   am__EXEEXT_TRUE='#'
17578   am__EXEEXT_FALSE=
17579 fi
17580
17581 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17582   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17584 fi
17585 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17586   as_fn_error $? "conditional \"AMDEP\" was never defined.
17587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17588 fi
17589 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17590   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17592 fi
17593 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17594   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17596 fi
17597 if test -z "${LOG4VALA_TRUE}" && test -z "${LOG4VALA_FALSE}"; then
17598   as_fn_error $? "conditional \"LOG4VALA\" was never defined.
17599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17600 fi
17601 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
17602   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
17603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17604 fi
17605 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
17606   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
17607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17608 fi
17609 if test -z "${OS_MACOS_TRUE}" && test -z "${OS_MACOS_FALSE}"; then
17610   as_fn_error $? "conditional \"OS_MACOS\" was never defined.
17611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17612 fi
17613 if test -z "${IPC_MSRPC_TRUE}" && test -z "${IPC_MSRPC_FALSE}"; then
17614   as_fn_error $? "conditional \"IPC_MSRPC\" was never defined.
17615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17616 fi
17617 if test -z "${IPC_DBUS_TRUE}" && test -z "${IPC_DBUS_FALSE}"; then
17618   as_fn_error $? "conditional \"IPC_DBUS\" was never defined.
17619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17620 fi
17621 if test -z "${IPC_DBUS_GLIB_TRUE}" && test -z "${IPC_DBUS_GLIB_FALSE}"; then
17622   as_fn_error $? "conditional \"IPC_DBUS_GLIB\" was never defined.
17623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17624 fi
17625 if test -z "${IPC_GDBUS_TRUE}" && test -z "${IPC_GDBUS_FALSE}"; then
17626   as_fn_error $? "conditional \"IPC_GDBUS\" was never defined.
17627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17628 fi
17629 if test -z "${GIO_VAPI_USES_ARRAYS_TRUE}" && test -z "${GIO_VAPI_USES_ARRAYS_FALSE}"; then
17630   as_fn_error $? "conditional \"GIO_VAPI_USES_ARRAYS\" was never defined.
17631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17632 fi
17633
17634 : "${CONFIG_STATUS=./config.status}"
17635 ac_write_fail=0
17636 ac_clean_files_save=$ac_clean_files
17637 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17639 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17640 as_write_fail=0
17641 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17642 #! $SHELL
17643 # Generated by $as_me.
17644 # Run this file to recreate the current configuration.
17645 # Compiler output produced by configure, useful for debugging
17646 # configure, is in config.log if it exists.
17647
17648 debug=false
17649 ac_cs_recheck=false
17650 ac_cs_silent=false
17651
17652 SHELL=\${CONFIG_SHELL-$SHELL}
17653 export SHELL
17654 _ASEOF
17655 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17656 ## -------------------- ##
17657 ## M4sh Initialization. ##
17658 ## -------------------- ##
17659
17660 # Be more Bourne compatible
17661 DUALCASE=1; export DUALCASE # for MKS sh
17662 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17663   emulate sh
17664   NULLCMD=:
17665   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17666   # is contrary to our usage.  Disable this feature.
17667   alias -g '${1+"$@"}'='"$@"'
17668   setopt NO_GLOB_SUBST
17669 else
17670   case `(set -o) 2>/dev/null` in #(
17671   *posix*) :
17672     set -o posix ;; #(
17673   *) :
17674      ;;
17675 esac
17676 fi
17677
17678
17679 as_nl='
17680 '
17681 export as_nl
17682 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17683 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17684 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17685 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17686 # Prefer a ksh shell builtin over an external printf program on Solaris,
17687 # but without wasting forks for bash or zsh.
17688 if test -z "$BASH_VERSION$ZSH_VERSION" \
17689     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17690   as_echo='print -r --'
17691   as_echo_n='print -rn --'
17692 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17693   as_echo='printf %s\n'
17694   as_echo_n='printf %s'
17695 else
17696   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17697     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17698     as_echo_n='/usr/ucb/echo -n'
17699   else
17700     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17701     as_echo_n_body='eval
17702       arg=$1;
17703       case $arg in #(
17704       *"$as_nl"*)
17705         expr "X$arg" : "X\\(.*\\)$as_nl";
17706         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17707       esac;
17708       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17709     '
17710     export as_echo_n_body
17711     as_echo_n='sh -c $as_echo_n_body as_echo'
17712   fi
17713   export as_echo_body
17714   as_echo='sh -c $as_echo_body as_echo'
17715 fi
17716
17717 # The user is always right.
17718 if test "${PATH_SEPARATOR+set}" != set; then
17719   PATH_SEPARATOR=:
17720   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17721     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17722       PATH_SEPARATOR=';'
17723   }
17724 fi
17725
17726
17727 # IFS
17728 # We need space, tab and new line, in precisely that order.  Quoting is
17729 # there to prevent editors from complaining about space-tab.
17730 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17731 # splitting by setting IFS to empty value.)
17732 IFS=" ""        $as_nl"
17733
17734 # Find who we are.  Look in the path if we contain no directory separator.
17735 as_myself=
17736 case $0 in #((
17737   *[\\/]* ) as_myself=$0 ;;
17738   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17739 for as_dir in $PATH
17740 do
17741   IFS=$as_save_IFS
17742   test -z "$as_dir" && as_dir=.
17743     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17744   done
17745 IFS=$as_save_IFS
17746
17747      ;;
17748 esac
17749 # We did not find ourselves, most probably we were run as `sh COMMAND'
17750 # in which case we are not to be found in the path.
17751 if test "x$as_myself" = x; then
17752   as_myself=$0
17753 fi
17754 if test ! -f "$as_myself"; then
17755   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17756   exit 1
17757 fi
17758
17759 # Unset variables that we do not need and which cause bugs (e.g. in
17760 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17761 # suppresses any "Segmentation fault" message there.  '((' could
17762 # trigger a bug in pdksh 5.2.14.
17763 for as_var in BASH_ENV ENV MAIL MAILPATH
17764 do eval test x\${$as_var+set} = xset \
17765   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17766 done
17767 PS1='$ '
17768 PS2='> '
17769 PS4='+ '
17770
17771 # NLS nuisances.
17772 LC_ALL=C
17773 export LC_ALL
17774 LANGUAGE=C
17775 export LANGUAGE
17776
17777 # CDPATH.
17778 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17779
17780
17781 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17782 # ----------------------------------------
17783 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17784 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17785 # script with STATUS, using 1 if that was 0.
17786 as_fn_error ()
17787 {
17788   as_status=$1; test $as_status -eq 0 && as_status=1
17789   if test "$4"; then
17790     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17791     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17792   fi
17793   $as_echo "$as_me: error: $2" >&2
17794   as_fn_exit $as_status
17795 } # as_fn_error
17796
17797
17798 # as_fn_set_status STATUS
17799 # -----------------------
17800 # Set $? to STATUS, without forking.
17801 as_fn_set_status ()
17802 {
17803   return $1
17804 } # as_fn_set_status
17805
17806 # as_fn_exit STATUS
17807 # -----------------
17808 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17809 as_fn_exit ()
17810 {
17811   set +e
17812   as_fn_set_status $1
17813   exit $1
17814 } # as_fn_exit
17815
17816 # as_fn_unset VAR
17817 # ---------------
17818 # Portably unset VAR.
17819 as_fn_unset ()
17820 {
17821   { eval $1=; unset $1;}
17822 }
17823 as_unset=as_fn_unset
17824 # as_fn_append VAR VALUE
17825 # ----------------------
17826 # Append the text in VALUE to the end of the definition contained in VAR. Take
17827 # advantage of any shell optimizations that allow amortized linear growth over
17828 # repeated appends, instead of the typical quadratic growth present in naive
17829 # implementations.
17830 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17831   eval 'as_fn_append ()
17832   {
17833     eval $1+=\$2
17834   }'
17835 else
17836   as_fn_append ()
17837   {
17838     eval $1=\$$1\$2
17839   }
17840 fi # as_fn_append
17841
17842 # as_fn_arith ARG...
17843 # ------------------
17844 # Perform arithmetic evaluation on the ARGs, and store the result in the
17845 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17846 # must be portable across $(()) and expr.
17847 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17848   eval 'as_fn_arith ()
17849   {
17850     as_val=$(( $* ))
17851   }'
17852 else
17853   as_fn_arith ()
17854   {
17855     as_val=`expr "$@" || test $? -eq 1`
17856   }
17857 fi # as_fn_arith
17858
17859
17860 if expr a : '\(a\)' >/dev/null 2>&1 &&
17861    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17862   as_expr=expr
17863 else
17864   as_expr=false
17865 fi
17866
17867 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17868   as_basename=basename
17869 else
17870   as_basename=false
17871 fi
17872
17873 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17874   as_dirname=dirname
17875 else
17876   as_dirname=false
17877 fi
17878
17879 as_me=`$as_basename -- "$0" ||
17880 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17881          X"$0" : 'X\(//\)$' \| \
17882          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17883 $as_echo X/"$0" |
17884     sed '/^.*\/\([^/][^/]*\)\/*$/{
17885             s//\1/
17886             q
17887           }
17888           /^X\/\(\/\/\)$/{
17889             s//\1/
17890             q
17891           }
17892           /^X\/\(\/\).*/{
17893             s//\1/
17894             q
17895           }
17896           s/.*/./; q'`
17897
17898 # Avoid depending upon Character Ranges.
17899 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17900 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17901 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17902 as_cr_digits='0123456789'
17903 as_cr_alnum=$as_cr_Letters$as_cr_digits
17904
17905 ECHO_C= ECHO_N= ECHO_T=
17906 case `echo -n x` in #(((((
17907 -n*)
17908   case `echo 'xy\c'` in
17909   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17910   xy)  ECHO_C='\c';;
17911   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17912        ECHO_T=' ';;
17913   esac;;
17914 *)
17915   ECHO_N='-n';;
17916 esac
17917
17918 rm -f conf$$ conf$$.exe conf$$.file
17919 if test -d conf$$.dir; then
17920   rm -f conf$$.dir/conf$$.file
17921 else
17922   rm -f conf$$.dir
17923   mkdir conf$$.dir 2>/dev/null
17924 fi
17925 if (echo >conf$$.file) 2>/dev/null; then
17926   if ln -s conf$$.file conf$$ 2>/dev/null; then
17927     as_ln_s='ln -s'
17928     # ... but there are two gotchas:
17929     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17930     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17931     # In both cases, we have to default to `cp -pR'.
17932     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17933       as_ln_s='cp -pR'
17934   elif ln conf$$.file conf$$ 2>/dev/null; then
17935     as_ln_s=ln
17936   else
17937     as_ln_s='cp -pR'
17938   fi
17939 else
17940   as_ln_s='cp -pR'
17941 fi
17942 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17943 rmdir conf$$.dir 2>/dev/null
17944
17945
17946 # as_fn_mkdir_p
17947 # -------------
17948 # Create "$as_dir" as a directory, including parents if necessary.
17949 as_fn_mkdir_p ()
17950 {
17951
17952   case $as_dir in #(
17953   -*) as_dir=./$as_dir;;
17954   esac
17955   test -d "$as_dir" || eval $as_mkdir_p || {
17956     as_dirs=
17957     while :; do
17958       case $as_dir in #(
17959       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17960       *) as_qdir=$as_dir;;
17961       esac
17962       as_dirs="'$as_qdir' $as_dirs"
17963       as_dir=`$as_dirname -- "$as_dir" ||
17964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17965          X"$as_dir" : 'X\(//\)[^/]' \| \
17966          X"$as_dir" : 'X\(//\)$' \| \
17967          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17968 $as_echo X"$as_dir" |
17969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17970             s//\1/
17971             q
17972           }
17973           /^X\(\/\/\)[^/].*/{
17974             s//\1/
17975             q
17976           }
17977           /^X\(\/\/\)$/{
17978             s//\1/
17979             q
17980           }
17981           /^X\(\/\).*/{
17982             s//\1/
17983             q
17984           }
17985           s/.*/./; q'`
17986       test -d "$as_dir" && break
17987     done
17988     test -z "$as_dirs" || eval "mkdir $as_dirs"
17989   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17990
17991
17992 } # as_fn_mkdir_p
17993 if mkdir -p . 2>/dev/null; then
17994   as_mkdir_p='mkdir -p "$as_dir"'
17995 else
17996   test -d ./-p && rmdir ./-p
17997   as_mkdir_p=false
17998 fi
17999
18000
18001 # as_fn_executable_p FILE
18002 # -----------------------
18003 # Test if FILE is an executable regular file.
18004 as_fn_executable_p ()
18005 {
18006   test -f "$1" && test -x "$1"
18007 } # as_fn_executable_p
18008 as_test_x='test -x'
18009 as_executable_p=as_fn_executable_p
18010
18011 # Sed expression to map a string onto a valid CPP name.
18012 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18013
18014 # Sed expression to map a string onto a valid variable name.
18015 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18016
18017
18018 exec 6>&1
18019 ## ----------------------------------- ##
18020 ## Main body of $CONFIG_STATUS script. ##
18021 ## ----------------------------------- ##
18022 _ASEOF
18023 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18024
18025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18026 # Save the log message, to keep $0 and so on meaningful, and to
18027 # report actual input values of CONFIG_FILES etc. instead of their
18028 # values after options handling.
18029 ac_log="
18030 This file was extended by Moonshot-ui $as_me 1.0.3, which was
18031 generated by GNU Autoconf 2.69.  Invocation command line was
18032
18033   CONFIG_FILES    = $CONFIG_FILES
18034   CONFIG_HEADERS  = $CONFIG_HEADERS
18035   CONFIG_LINKS    = $CONFIG_LINKS
18036   CONFIG_COMMANDS = $CONFIG_COMMANDS
18037   $ $0 $@
18038
18039 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18040 "
18041
18042 _ACEOF
18043
18044 case $ac_config_files in *"
18045 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18046 esac
18047
18048 case $ac_config_headers in *"
18049 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18050 esac
18051
18052
18053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18054 # Files that config.status was made for.
18055 config_files="$ac_config_files"
18056 config_headers="$ac_config_headers"
18057 config_commands="$ac_config_commands"
18058
18059 _ACEOF
18060
18061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18062 ac_cs_usage="\
18063 \`$as_me' instantiates files and other configuration actions
18064 from templates according to the current configuration.  Unless the files
18065 and actions are specified as TAGs, all are instantiated by default.
18066
18067 Usage: $0 [OPTION]... [TAG]...
18068
18069   -h, --help       print this help, then exit
18070   -V, --version    print version number and configuration settings, then exit
18071       --config     print configuration, then exit
18072   -q, --quiet, --silent
18073                    do not print progress messages
18074   -d, --debug      don't remove temporary files
18075       --recheck    update $as_me by reconfiguring in the same conditions
18076       --file=FILE[:TEMPLATE]
18077                    instantiate the configuration file FILE
18078       --header=FILE[:TEMPLATE]
18079                    instantiate the configuration header FILE
18080
18081 Configuration files:
18082 $config_files
18083
18084 Configuration headers:
18085 $config_headers
18086
18087 Configuration commands:
18088 $config_commands
18089
18090 Report bugs to <moonshot-community@jiscmail.ac.uk>.
18091 Moonshot-ui home page: <http://www.project-moonshot.org/>."
18092
18093 _ACEOF
18094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18095 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18096 ac_cs_version="\\
18097 Moonshot-ui config.status 1.0.3
18098 configured by $0, generated by GNU Autoconf 2.69,
18099   with options \\"\$ac_cs_config\\"
18100
18101 Copyright (C) 2012 Free Software Foundation, Inc.
18102 This config.status script is free software; the Free Software Foundation
18103 gives unlimited permission to copy, distribute and modify it."
18104
18105 ac_pwd='$ac_pwd'
18106 srcdir='$srcdir'
18107 INSTALL='$INSTALL'
18108 MKDIR_P='$MKDIR_P'
18109 AWK='$AWK'
18110 test -n "\$AWK" || AWK=awk
18111 _ACEOF
18112
18113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18114 # The default lists apply if the user does not specify any file.
18115 ac_need_defaults=:
18116 while test $# != 0
18117 do
18118   case $1 in
18119   --*=?*)
18120     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18121     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18122     ac_shift=:
18123     ;;
18124   --*=)
18125     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18126     ac_optarg=
18127     ac_shift=:
18128     ;;
18129   *)
18130     ac_option=$1
18131     ac_optarg=$2
18132     ac_shift=shift
18133     ;;
18134   esac
18135
18136   case $ac_option in
18137   # Handling of the options.
18138   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18139     ac_cs_recheck=: ;;
18140   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18141     $as_echo "$ac_cs_version"; exit ;;
18142   --config | --confi | --conf | --con | --co | --c )
18143     $as_echo "$ac_cs_config"; exit ;;
18144   --debug | --debu | --deb | --de | --d | -d )
18145     debug=: ;;
18146   --file | --fil | --fi | --f )
18147     $ac_shift
18148     case $ac_optarg in
18149     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18150     '') as_fn_error $? "missing file argument" ;;
18151     esac
18152     as_fn_append CONFIG_FILES " '$ac_optarg'"
18153     ac_need_defaults=false;;
18154   --header | --heade | --head | --hea )
18155     $ac_shift
18156     case $ac_optarg in
18157     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18158     esac
18159     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18160     ac_need_defaults=false;;
18161   --he | --h)
18162     # Conflict between --help and --header
18163     as_fn_error $? "ambiguous option: \`$1'
18164 Try \`$0 --help' for more information.";;
18165   --help | --hel | -h )
18166     $as_echo "$ac_cs_usage"; exit ;;
18167   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18168   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18169     ac_cs_silent=: ;;
18170
18171   # This is an error.
18172   -*) as_fn_error $? "unrecognized option: \`$1'
18173 Try \`$0 --help' for more information." ;;
18174
18175   *) as_fn_append ac_config_targets " $1"
18176      ac_need_defaults=false ;;
18177
18178   esac
18179   shift
18180 done
18181
18182 ac_configure_extra_args=
18183
18184 if $ac_cs_silent; then
18185   exec 6>/dev/null
18186   ac_configure_extra_args="$ac_configure_extra_args --silent"
18187 fi
18188
18189 _ACEOF
18190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18191 if \$ac_cs_recheck; then
18192   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18193   shift
18194   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18195   CONFIG_SHELL='$SHELL'
18196   export CONFIG_SHELL
18197   exec "\$@"
18198 fi
18199
18200 _ACEOF
18201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18202 exec 5>>config.log
18203 {
18204   echo
18205   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18206 ## Running $as_me. ##
18207 _ASBOX
18208   $as_echo "$ac_log"
18209 } >&5
18210
18211 _ACEOF
18212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18213 #
18214 # INIT-COMMANDS
18215 #
18216 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18217
18218
18219 # The HP-UX ksh and POSIX shell print the target directory to stdout
18220 # if CDPATH is set.
18221 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18222
18223 sed_quote_subst='$sed_quote_subst'
18224 double_quote_subst='$double_quote_subst'
18225 delay_variable_subst='$delay_variable_subst'
18226 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18227 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18228 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18229 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18230 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18231 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18232 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18233 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18234 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18235 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18236 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18237 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18238 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18239 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18240 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18241 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18242 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18243 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18244 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18245 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18246 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18247 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18248 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18249 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18250 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18251 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18252 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18253 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18254 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18255 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18256 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18257 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18258 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18259 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18260 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18261 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18262 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18263 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18264 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18265 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18266 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18267 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18268 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18269 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18270 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18271 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18272 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18273 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18274 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18275 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18276 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18277 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18278 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18279 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18280 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18281 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18282 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18283 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18284 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18285 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"`'
18286 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18287 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18288 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18289 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18290 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18291 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18292 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18293 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18294 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18295 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18296 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18297 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18298 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18299 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18300 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18301 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18302 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18303 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18304 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18305 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18306 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18307 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18308 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18309 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18310 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18311 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18312 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18313 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18314 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18315 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18316 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18317 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18318 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18319 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18320 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18321 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18322 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18323 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18324 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18325 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18326 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18327 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18328 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18329 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18330 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18331 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18332 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18333 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18334 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18335 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18336 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18337 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18338 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18339 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18340 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18341 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18342 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18343 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18344 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18345 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18346 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18347 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18348 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18349 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18350 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18351 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18352 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18353 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18354 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18355 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18356 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18357 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18358 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18359 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18360 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18361 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18362
18363 LTCC='$LTCC'
18364 LTCFLAGS='$LTCFLAGS'
18365 compiler='$compiler_DEFAULT'
18366
18367 # A function that is used when there is no print builtin or printf.
18368 func_fallback_echo ()
18369 {
18370   eval 'cat <<_LTECHO_EOF
18371 \$1
18372 _LTECHO_EOF'
18373 }
18374
18375 # Quote evaled strings.
18376 for var in AS \
18377 DLLTOOL \
18378 OBJDUMP \
18379 SHELL \
18380 ECHO \
18381 PATH_SEPARATOR \
18382 SED \
18383 GREP \
18384 EGREP \
18385 FGREP \
18386 LD \
18387 NM \
18388 LN_S \
18389 lt_SP2NL \
18390 lt_NL2SP \
18391 reload_flag \
18392 deplibs_check_method \
18393 file_magic_cmd \
18394 file_magic_glob \
18395 want_nocaseglob \
18396 sharedlib_from_linklib_cmd \
18397 AR \
18398 AR_FLAGS \
18399 archiver_list_spec \
18400 STRIP \
18401 RANLIB \
18402 CC \
18403 CFLAGS \
18404 compiler \
18405 lt_cv_sys_global_symbol_pipe \
18406 lt_cv_sys_global_symbol_to_cdecl \
18407 lt_cv_sys_global_symbol_to_import \
18408 lt_cv_sys_global_symbol_to_c_name_address \
18409 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18410 lt_cv_nm_interface \
18411 nm_file_list_spec \
18412 lt_cv_truncate_bin \
18413 lt_prog_compiler_no_builtin_flag \
18414 lt_prog_compiler_pic \
18415 lt_prog_compiler_wl \
18416 lt_prog_compiler_static \
18417 lt_cv_prog_compiler_c_o \
18418 need_locks \
18419 MANIFEST_TOOL \
18420 DSYMUTIL \
18421 NMEDIT \
18422 LIPO \
18423 OTOOL \
18424 OTOOL64 \
18425 shrext_cmds \
18426 export_dynamic_flag_spec \
18427 whole_archive_flag_spec \
18428 compiler_needs_object \
18429 with_gnu_ld \
18430 allow_undefined_flag \
18431 no_undefined_flag \
18432 hardcode_libdir_flag_spec \
18433 hardcode_libdir_separator \
18434 exclude_expsyms \
18435 include_expsyms \
18436 file_list_spec \
18437 variables_saved_for_relink \
18438 libname_spec \
18439 library_names_spec \
18440 soname_spec \
18441 install_override_mode \
18442 finish_eval \
18443 old_striplib \
18444 striplib; do
18445     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18446     *[\\\\\\\`\\"\\\$]*)
18447       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18448       ;;
18449     *)
18450       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18451       ;;
18452     esac
18453 done
18454
18455 # Double-quote double-evaled strings.
18456 for var in reload_cmds \
18457 old_postinstall_cmds \
18458 old_postuninstall_cmds \
18459 old_archive_cmds \
18460 extract_expsyms_cmds \
18461 old_archive_from_new_cmds \
18462 old_archive_from_expsyms_cmds \
18463 archive_cmds \
18464 archive_expsym_cmds \
18465 module_cmds \
18466 module_expsym_cmds \
18467 export_symbols_cmds \
18468 prelink_cmds \
18469 postlink_cmds \
18470 postinstall_cmds \
18471 postuninstall_cmds \
18472 finish_cmds \
18473 sys_lib_search_path_spec \
18474 configure_time_dlsearch_path \
18475 configure_time_lt_sys_library_path; do
18476     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18477     *[\\\\\\\`\\"\\\$]*)
18478       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18479       ;;
18480     *)
18481       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18482       ;;
18483     esac
18484 done
18485
18486 ac_aux_dir='$ac_aux_dir'
18487
18488 # See if we are running on zsh, and set the options that allow our
18489 # commands through without removal of \ escapes INIT.
18490 if test -n "\${ZSH_VERSION+set}"; then
18491    setopt NO_GLOB_SUBST
18492 fi
18493
18494
18495     PACKAGE='$PACKAGE'
18496     VERSION='$VERSION'
18497     RM='$RM'
18498     ofile='$ofile'
18499
18500
18501
18502 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18503     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
18504     # from automake < 1.5.
18505     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18506     # Capture the value of LINGUAS because we need it to compute CATALOGS.
18507     LINGUAS="${LINGUAS-%UNSET%}"
18508
18509
18510 _ACEOF
18511
18512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18513
18514 # Handling of arguments.
18515 for ac_config_target in $ac_config_targets
18516 do
18517   case $ac_config_target in
18518     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18519     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18520     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18521     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
18522     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18523     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18524     "moonshot.desktop") CONFIG_FILES="$CONFIG_FILES moonshot.desktop" ;;
18525     "moonshot-webp.desktop") CONFIG_FILES="$CONFIG_FILES moonshot-webp.desktop" ;;
18526     "moonshot-ui.spec") CONFIG_FILES="$CONFIG_FILES moonshot-ui.spec" ;;
18527
18528   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18529   esac
18530 done
18531
18532
18533 # If the user did not use the arguments to specify the items to instantiate,
18534 # then the envvar interface is used.  Set only those that are not.
18535 # We use the long form for the default assignment because of an extremely
18536 # bizarre bug on SunOS 4.1.3.
18537 if $ac_need_defaults; then
18538   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18539   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18540   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18541 fi
18542
18543 # Have a temporary directory for convenience.  Make it in the build tree
18544 # simply because there is no reason against having it here, and in addition,
18545 # creating and moving files from /tmp can sometimes cause problems.
18546 # Hook for its removal unless debugging.
18547 # Note that there is a small window in which the directory will not be cleaned:
18548 # after its creation but before its name has been assigned to `$tmp'.
18549 $debug ||
18550 {
18551   tmp= ac_tmp=
18552   trap 'exit_status=$?
18553   : "${ac_tmp:=$tmp}"
18554   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18555 ' 0
18556   trap 'as_fn_exit 1' 1 2 13 15
18557 }
18558 # Create a (secure) tmp directory for tmp files.
18559
18560 {
18561   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18562   test -d "$tmp"
18563 }  ||
18564 {
18565   tmp=./conf$$-$RANDOM
18566   (umask 077 && mkdir "$tmp")
18567 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18568 ac_tmp=$tmp
18569
18570 # Set up the scripts for CONFIG_FILES section.
18571 # No need to generate them if there are no CONFIG_FILES.
18572 # This happens for instance with `./config.status config.h'.
18573 if test -n "$CONFIG_FILES"; then
18574
18575
18576 ac_cr=`echo X | tr X '\015'`
18577 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18578 # But we know of no other shell where ac_cr would be empty at this
18579 # point, so we can use a bashism as a fallback.
18580 if test "x$ac_cr" = x; then
18581   eval ac_cr=\$\'\\r\'
18582 fi
18583 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18584 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18585   ac_cs_awk_cr='\\r'
18586 else
18587   ac_cs_awk_cr=$ac_cr
18588 fi
18589
18590 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18591 _ACEOF
18592
18593
18594 {
18595   echo "cat >conf$$subs.awk <<_ACEOF" &&
18596   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18597   echo "_ACEOF"
18598 } >conf$$subs.sh ||
18599   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18600 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18601 ac_delim='%!_!# '
18602 for ac_last_try in false false false false false :; do
18603   . ./conf$$subs.sh ||
18604     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18605
18606   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18607   if test $ac_delim_n = $ac_delim_num; then
18608     break
18609   elif $ac_last_try; then
18610     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18611   else
18612     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18613   fi
18614 done
18615 rm -f conf$$subs.sh
18616
18617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18618 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18619 _ACEOF
18620 sed -n '
18621 h
18622 s/^/S["/; s/!.*/"]=/
18623 p
18624 g
18625 s/^[^!]*!//
18626 :repl
18627 t repl
18628 s/'"$ac_delim"'$//
18629 t delim
18630 :nl
18631 h
18632 s/\(.\{148\}\)..*/\1/
18633 t more1
18634 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18635 p
18636 n
18637 b repl
18638 :more1
18639 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18640 p
18641 g
18642 s/.\{148\}//
18643 t nl
18644 :delim
18645 h
18646 s/\(.\{148\}\)..*/\1/
18647 t more2
18648 s/["\\]/\\&/g; s/^/"/; s/$/"/
18649 p
18650 b
18651 :more2
18652 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18653 p
18654 g
18655 s/.\{148\}//
18656 t delim
18657 ' <conf$$subs.awk | sed '
18658 /^[^""]/{
18659   N
18660   s/\n//
18661 }
18662 ' >>$CONFIG_STATUS || ac_write_fail=1
18663 rm -f conf$$subs.awk
18664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18665 _ACAWK
18666 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18667   for (key in S) S_is_set[key] = 1
18668   FS = "\a"
18669
18670 }
18671 {
18672   line = $ 0
18673   nfields = split(line, field, "@")
18674   substed = 0
18675   len = length(field[1])
18676   for (i = 2; i < nfields; i++) {
18677     key = field[i]
18678     keylen = length(key)
18679     if (S_is_set[key]) {
18680       value = S[key]
18681       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18682       len += length(value) + length(field[++i])
18683       substed = 1
18684     } else
18685       len += 1 + keylen
18686   }
18687
18688   print line
18689 }
18690
18691 _ACAWK
18692 _ACEOF
18693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18694 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18695   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18696 else
18697   cat
18698 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18699   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18700 _ACEOF
18701
18702 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18703 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18704 # trailing colons and then remove the whole line if VPATH becomes empty
18705 # (actually we leave an empty line to preserve line numbers).
18706 if test "x$srcdir" = x.; then
18707   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18708 h
18709 s///
18710 s/^/:/
18711 s/[      ]*$/:/
18712 s/:\$(srcdir):/:/g
18713 s/:\${srcdir}:/:/g
18714 s/:@srcdir@:/:/g
18715 s/^:*//
18716 s/:*$//
18717 x
18718 s/\(=[   ]*\).*/\1/
18719 G
18720 s/\n//
18721 s/^[^=]*=[       ]*$//
18722 }'
18723 fi
18724
18725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18726 fi # test -n "$CONFIG_FILES"
18727
18728 # Set up the scripts for CONFIG_HEADERS section.
18729 # No need to generate them if there are no CONFIG_HEADERS.
18730 # This happens for instance with `./config.status Makefile'.
18731 if test -n "$CONFIG_HEADERS"; then
18732 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18733 BEGIN {
18734 _ACEOF
18735
18736 # Transform confdefs.h into an awk script `defines.awk', embedded as
18737 # here-document in config.status, that substitutes the proper values into
18738 # config.h.in to produce config.h.
18739
18740 # Create a delimiter string that does not exist in confdefs.h, to ease
18741 # handling of long lines.
18742 ac_delim='%!_!# '
18743 for ac_last_try in false false :; do
18744   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18745   if test -z "$ac_tt"; then
18746     break
18747   elif $ac_last_try; then
18748     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18749   else
18750     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18751   fi
18752 done
18753
18754 # For the awk script, D is an array of macro values keyed by name,
18755 # likewise P contains macro parameters if any.  Preserve backslash
18756 # newline sequences.
18757
18758 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18759 sed -n '
18760 s/.\{148\}/&'"$ac_delim"'/g
18761 t rset
18762 :rset
18763 s/^[     ]*#[    ]*define[       ][      ]*/ /
18764 t def
18765 d
18766 :def
18767 s/\\$//
18768 t bsnl
18769 s/["\\]/\\&/g
18770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18771 D["\1"]=" \3"/p
18772 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18773 d
18774 :bsnl
18775 s/["\\]/\\&/g
18776 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18777 D["\1"]=" \3\\\\\\n"\\/p
18778 t cont
18779 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18780 t cont
18781 d
18782 :cont
18783 n
18784 s/.\{148\}/&'"$ac_delim"'/g
18785 t clear
18786 :clear
18787 s/\\$//
18788 t bsnlc
18789 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18790 d
18791 :bsnlc
18792 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18793 b cont
18794 ' <confdefs.h | sed '
18795 s/'"$ac_delim"'/"\\\
18796 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18797
18798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18799   for (key in D) D_is_set[key] = 1
18800   FS = "\a"
18801 }
18802 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18803   line = \$ 0
18804   split(line, arg, " ")
18805   if (arg[1] == "#") {
18806     defundef = arg[2]
18807     mac1 = arg[3]
18808   } else {
18809     defundef = substr(arg[1], 2)
18810     mac1 = arg[2]
18811   }
18812   split(mac1, mac2, "(") #)
18813   macro = mac2[1]
18814   prefix = substr(line, 1, index(line, defundef) - 1)
18815   if (D_is_set[macro]) {
18816     # Preserve the white space surrounding the "#".
18817     print prefix "define", macro P[macro] D[macro]
18818     next
18819   } else {
18820     # Replace #undef with comments.  This is necessary, for example,
18821     # in the case of _POSIX_SOURCE, which is predefined and required
18822     # on some systems where configure will not decide to define it.
18823     if (defundef == "undef") {
18824       print "/*", prefix defundef, macro, "*/"
18825       next
18826     }
18827   }
18828 }
18829 { print }
18830 _ACAWK
18831 _ACEOF
18832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18833   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18834 fi # test -n "$CONFIG_HEADERS"
18835
18836
18837 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18838 shift
18839 for ac_tag
18840 do
18841   case $ac_tag in
18842   :[FHLC]) ac_mode=$ac_tag; continue;;
18843   esac
18844   case $ac_mode$ac_tag in
18845   :[FHL]*:*);;
18846   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18847   :[FH]-) ac_tag=-:-;;
18848   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18849   esac
18850   ac_save_IFS=$IFS
18851   IFS=:
18852   set x $ac_tag
18853   IFS=$ac_save_IFS
18854   shift
18855   ac_file=$1
18856   shift
18857
18858   case $ac_mode in
18859   :L) ac_source=$1;;
18860   :[FH])
18861     ac_file_inputs=
18862     for ac_f
18863     do
18864       case $ac_f in
18865       -) ac_f="$ac_tmp/stdin";;
18866       *) # Look for the file first in the build tree, then in the source tree
18867          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18868          # because $ac_f cannot contain `:'.
18869          test -f "$ac_f" ||
18870            case $ac_f in
18871            [\\/$]*) false;;
18872            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18873            esac ||
18874            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18875       esac
18876       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18877       as_fn_append ac_file_inputs " '$ac_f'"
18878     done
18879
18880     # Let's still pretend it is `configure' which instantiates (i.e., don't
18881     # use $as_me), people would be surprised to read:
18882     #    /* config.h.  Generated by config.status.  */
18883     configure_input='Generated from '`
18884           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18885         `' by configure.'
18886     if test x"$ac_file" != x-; then
18887       configure_input="$ac_file.  $configure_input"
18888       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18889 $as_echo "$as_me: creating $ac_file" >&6;}
18890     fi
18891     # Neutralize special characters interpreted by sed in replacement strings.
18892     case $configure_input in #(
18893     *\&* | *\|* | *\\* )
18894        ac_sed_conf_input=`$as_echo "$configure_input" |
18895        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18896     *) ac_sed_conf_input=$configure_input;;
18897     esac
18898
18899     case $ac_tag in
18900     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18901       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18902     esac
18903     ;;
18904   esac
18905
18906   ac_dir=`$as_dirname -- "$ac_file" ||
18907 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18908          X"$ac_file" : 'X\(//\)[^/]' \| \
18909          X"$ac_file" : 'X\(//\)$' \| \
18910          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18911 $as_echo X"$ac_file" |
18912     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18913             s//\1/
18914             q
18915           }
18916           /^X\(\/\/\)[^/].*/{
18917             s//\1/
18918             q
18919           }
18920           /^X\(\/\/\)$/{
18921             s//\1/
18922             q
18923           }
18924           /^X\(\/\).*/{
18925             s//\1/
18926             q
18927           }
18928           s/.*/./; q'`
18929   as_dir="$ac_dir"; as_fn_mkdir_p
18930   ac_builddir=.
18931
18932 case "$ac_dir" in
18933 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18934 *)
18935   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18936   # A ".." for each directory in $ac_dir_suffix.
18937   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18938   case $ac_top_builddir_sub in
18939   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18940   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18941   esac ;;
18942 esac
18943 ac_abs_top_builddir=$ac_pwd
18944 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18945 # for backward compatibility:
18946 ac_top_builddir=$ac_top_build_prefix
18947
18948 case $srcdir in
18949   .)  # We are building in place.
18950     ac_srcdir=.
18951     ac_top_srcdir=$ac_top_builddir_sub
18952     ac_abs_top_srcdir=$ac_pwd ;;
18953   [\\/]* | ?:[\\/]* )  # Absolute name.
18954     ac_srcdir=$srcdir$ac_dir_suffix;
18955     ac_top_srcdir=$srcdir
18956     ac_abs_top_srcdir=$srcdir ;;
18957   *) # Relative name.
18958     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18959     ac_top_srcdir=$ac_top_build_prefix$srcdir
18960     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18961 esac
18962 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18963
18964
18965   case $ac_mode in
18966   :F)
18967   #
18968   # CONFIG_FILE
18969   #
18970
18971   case $INSTALL in
18972   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18973   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18974   esac
18975   ac_MKDIR_P=$MKDIR_P
18976   case $MKDIR_P in
18977   [\\/$]* | ?:[\\/]* ) ;;
18978   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18979   esac
18980 _ACEOF
18981
18982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18983 # If the template does not know about datarootdir, expand it.
18984 # FIXME: This hack should be removed a few years after 2.60.
18985 ac_datarootdir_hack=; ac_datarootdir_seen=
18986 ac_sed_dataroot='
18987 /datarootdir/ {
18988   p
18989   q
18990 }
18991 /@datadir@/p
18992 /@docdir@/p
18993 /@infodir@/p
18994 /@localedir@/p
18995 /@mandir@/p'
18996 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18997 *datarootdir*) ac_datarootdir_seen=yes;;
18998 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18999   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19000 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19001 _ACEOF
19002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19003   ac_datarootdir_hack='
19004   s&@datadir@&$datadir&g
19005   s&@docdir@&$docdir&g
19006   s&@infodir@&$infodir&g
19007   s&@localedir@&$localedir&g
19008   s&@mandir@&$mandir&g
19009   s&\\\${datarootdir}&$datarootdir&g' ;;
19010 esac
19011 _ACEOF
19012
19013 # Neutralize VPATH when `$srcdir' = `.'.
19014 # Shell code in configure.ac might set extrasub.
19015 # FIXME: do we really want to maintain this feature?
19016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19017 ac_sed_extra="$ac_vpsub
19018 $extrasub
19019 _ACEOF
19020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19021 :t
19022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19023 s|@configure_input@|$ac_sed_conf_input|;t t
19024 s&@top_builddir@&$ac_top_builddir_sub&;t t
19025 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19026 s&@srcdir@&$ac_srcdir&;t t
19027 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19028 s&@top_srcdir@&$ac_top_srcdir&;t t
19029 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19030 s&@builddir@&$ac_builddir&;t t
19031 s&@abs_builddir@&$ac_abs_builddir&;t t
19032 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19033 s&@INSTALL@&$ac_INSTALL&;t t
19034 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19035 $ac_datarootdir_hack
19036 "
19037 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19038   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19039
19040 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19041   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19042   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19043       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19044   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19045 which seems to be undefined.  Please make sure it is defined" >&5
19046 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19047 which seems to be undefined.  Please make sure it is defined" >&2;}
19048
19049   rm -f "$ac_tmp/stdin"
19050   case $ac_file in
19051   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19052   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19053   esac \
19054   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19055  ;;
19056   :H)
19057   #
19058   # CONFIG_HEADER
19059   #
19060   if test x"$ac_file" != x-; then
19061     {
19062       $as_echo "/* $configure_input  */" \
19063       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19064     } >"$ac_tmp/config.h" \
19065       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19066     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19067       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19068 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19069     else
19070       rm -f "$ac_file"
19071       mv "$ac_tmp/config.h" "$ac_file" \
19072         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19073     fi
19074   else
19075     $as_echo "/* $configure_input  */" \
19076       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19077       || as_fn_error $? "could not create -" "$LINENO" 5
19078   fi
19079 # Compute "$ac_file"'s index in $config_headers.
19080 _am_arg="$ac_file"
19081 _am_stamp_count=1
19082 for _am_header in $config_headers :; do
19083   case $_am_header in
19084     $_am_arg | $_am_arg:* )
19085       break ;;
19086     * )
19087       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19088   esac
19089 done
19090 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19091 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19092          X"$_am_arg" : 'X\(//\)[^/]' \| \
19093          X"$_am_arg" : 'X\(//\)$' \| \
19094          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19095 $as_echo X"$_am_arg" |
19096     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19097             s//\1/
19098             q
19099           }
19100           /^X\(\/\/\)[^/].*/{
19101             s//\1/
19102             q
19103           }
19104           /^X\(\/\/\)$/{
19105             s//\1/
19106             q
19107           }
19108           /^X\(\/\).*/{
19109             s//\1/
19110             q
19111           }
19112           s/.*/./; q'`/stamp-h$_am_stamp_count
19113  ;;
19114
19115   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19116 $as_echo "$as_me: executing $ac_file commands" >&6;}
19117  ;;
19118   esac
19119
19120
19121   case $ac_file$ac_mode in
19122     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19123   # Older Autoconf quotes --file arguments for eval, but not when files
19124   # are listed without --file.  Let's play safe and only enable the eval
19125   # if we detect the quoting.
19126   case $CONFIG_FILES in
19127   *\'*) eval set x "$CONFIG_FILES" ;;
19128   *)   set x $CONFIG_FILES ;;
19129   esac
19130   shift
19131   for mf
19132   do
19133     # Strip MF so we end up with the name of the file.
19134     mf=`echo "$mf" | sed -e 's/:.*$//'`
19135     # Check whether this is an Automake generated Makefile or not.
19136     # We used to match only the files named 'Makefile.in', but
19137     # some people rename them; so instead we look at the file content.
19138     # Grep'ing the first line is not enough: some people post-process
19139     # each Makefile.in and add a new line on top of each file to say so.
19140     # Grep'ing the whole file is not good either: AIX grep has a line
19141     # limit of 2048, but all sed's we know have understand at least 4000.
19142     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19143       dirpart=`$as_dirname -- "$mf" ||
19144 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19145          X"$mf" : 'X\(//\)[^/]' \| \
19146          X"$mf" : 'X\(//\)$' \| \
19147          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19148 $as_echo X"$mf" |
19149     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19150             s//\1/
19151             q
19152           }
19153           /^X\(\/\/\)[^/].*/{
19154             s//\1/
19155             q
19156           }
19157           /^X\(\/\/\)$/{
19158             s//\1/
19159             q
19160           }
19161           /^X\(\/\).*/{
19162             s//\1/
19163             q
19164           }
19165           s/.*/./; q'`
19166     else
19167       continue
19168     fi
19169     # Extract the definition of DEPDIR, am__include, and am__quote
19170     # from the Makefile without running 'make'.
19171     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19172     test -z "$DEPDIR" && continue
19173     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19174     test -z "$am__include" && continue
19175     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19176     # Find all dependency output files, they are included files with
19177     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19178     # simplest approach to changing $(DEPDIR) to its actual value in the
19179     # expansion.
19180     for file in `sed -n "
19181       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19182          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19183       # Make sure the directory exists.
19184       test -f "$dirpart/$file" && continue
19185       fdir=`$as_dirname -- "$file" ||
19186 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19187          X"$file" : 'X\(//\)[^/]' \| \
19188          X"$file" : 'X\(//\)$' \| \
19189          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19190 $as_echo X"$file" |
19191     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19192             s//\1/
19193             q
19194           }
19195           /^X\(\/\/\)[^/].*/{
19196             s//\1/
19197             q
19198           }
19199           /^X\(\/\/\)$/{
19200             s//\1/
19201             q
19202           }
19203           /^X\(\/\).*/{
19204             s//\1/
19205             q
19206           }
19207           s/.*/./; q'`
19208       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19209       # echo "creating $dirpart/$file"
19210       echo '# dummy' > "$dirpart/$file"
19211     done
19212   done
19213 }
19214  ;;
19215     "libtool":C)
19216
19217     # See if we are running on zsh, and set the options that allow our
19218     # commands through without removal of \ escapes.
19219     if test -n "${ZSH_VERSION+set}"; then
19220       setopt NO_GLOB_SUBST
19221     fi
19222
19223     cfgfile=${ofile}T
19224     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19225     $RM "$cfgfile"
19226
19227     cat <<_LT_EOF >> "$cfgfile"
19228 #! $SHELL
19229 # Generated automatically by $as_me ($PACKAGE) $VERSION
19230 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19231
19232 # Provide generalized library-building support services.
19233 # Written by Gordon Matzigkeit, 1996
19234
19235 # Copyright (C) 2014 Free Software Foundation, Inc.
19236 # This is free software; see the source for copying conditions.  There is NO
19237 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19238
19239 # GNU Libtool is free software; you can redistribute it and/or modify
19240 # it under the terms of the GNU General Public License as published by
19241 # the Free Software Foundation; either version 2 of of the License, or
19242 # (at your option) any later version.
19243 #
19244 # As a special exception to the GNU General Public License, if you
19245 # distribute this file as part of a program or library that is built
19246 # using GNU Libtool, you may include this file under the  same
19247 # distribution terms that you use for the rest of that program.
19248 #
19249 # GNU Libtool is distributed in the hope that it will be useful, but
19250 # WITHOUT ANY WARRANTY; without even the implied warranty of
19251 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19252 # GNU General Public License for more details.
19253 #
19254 # You should have received a copy of the GNU General Public License
19255 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19256
19257
19258 # The names of the tagged configurations supported by this script.
19259 available_tags=''
19260
19261 # Configured defaults for sys_lib_dlsearch_path munging.
19262 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19263
19264 # ### BEGIN LIBTOOL CONFIG
19265
19266 # Which release of libtool.m4 was used?
19267 macro_version=$macro_version
19268 macro_revision=$macro_revision
19269
19270 # Assembler program.
19271 AS=$lt_AS
19272
19273 # DLL creation program.
19274 DLLTOOL=$lt_DLLTOOL
19275
19276 # Object dumper program.
19277 OBJDUMP=$lt_OBJDUMP
19278
19279 # Whether or not to build shared libraries.
19280 build_libtool_libs=$enable_shared
19281
19282 # Whether or not to build static libraries.
19283 build_old_libs=$enable_static
19284
19285 # What type of objects to build.
19286 pic_mode=$pic_mode
19287
19288 # Whether or not to optimize for fast installation.
19289 fast_install=$enable_fast_install
19290
19291 # Shared archive member basename,for filename based shared library versioning on AIX.
19292 shared_archive_member_spec=$shared_archive_member_spec
19293
19294 # Shell to use when invoking shell scripts.
19295 SHELL=$lt_SHELL
19296
19297 # An echo program that protects backslashes.
19298 ECHO=$lt_ECHO
19299
19300 # The PATH separator for the build system.
19301 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19302
19303 # The host system.
19304 host_alias=$host_alias
19305 host=$host
19306 host_os=$host_os
19307
19308 # The build system.
19309 build_alias=$build_alias
19310 build=$build
19311 build_os=$build_os
19312
19313 # A sed program that does not truncate output.
19314 SED=$lt_SED
19315
19316 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19317 Xsed="\$SED -e 1s/^X//"
19318
19319 # A grep program that handles long lines.
19320 GREP=$lt_GREP
19321
19322 # An ERE matcher.
19323 EGREP=$lt_EGREP
19324
19325 # A literal string matcher.
19326 FGREP=$lt_FGREP
19327
19328 # A BSD- or MS-compatible name lister.
19329 NM=$lt_NM
19330
19331 # Whether we need soft or hard links.
19332 LN_S=$lt_LN_S
19333
19334 # What is the maximum length of a command?
19335 max_cmd_len=$max_cmd_len
19336
19337 # Object file suffix (normally "o").
19338 objext=$ac_objext
19339
19340 # Executable file suffix (normally "").
19341 exeext=$exeext
19342
19343 # whether the shell understands "unset".
19344 lt_unset=$lt_unset
19345
19346 # turn spaces into newlines.
19347 SP2NL=$lt_lt_SP2NL
19348
19349 # turn newlines into spaces.
19350 NL2SP=$lt_lt_NL2SP
19351
19352 # convert \$build file names to \$host format.
19353 to_host_file_cmd=$lt_cv_to_host_file_cmd
19354
19355 # convert \$build files to toolchain format.
19356 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19357
19358 # Method to check whether dependent libraries are shared objects.
19359 deplibs_check_method=$lt_deplibs_check_method
19360
19361 # Command to use when deplibs_check_method = "file_magic".
19362 file_magic_cmd=$lt_file_magic_cmd
19363
19364 # How to find potential files when deplibs_check_method = "file_magic".
19365 file_magic_glob=$lt_file_magic_glob
19366
19367 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19368 want_nocaseglob=$lt_want_nocaseglob
19369
19370 # Command to associate shared and link libraries.
19371 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19372
19373 # The archiver.
19374 AR=$lt_AR
19375
19376 # Flags to create an archive.
19377 AR_FLAGS=$lt_AR_FLAGS
19378
19379 # How to feed a file listing to the archiver.
19380 archiver_list_spec=$lt_archiver_list_spec
19381
19382 # A symbol stripping program.
19383 STRIP=$lt_STRIP
19384
19385 # Commands used to install an old-style archive.
19386 RANLIB=$lt_RANLIB
19387 old_postinstall_cmds=$lt_old_postinstall_cmds
19388 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19389
19390 # Whether to use a lock for old archive extraction.
19391 lock_old_archive_extraction=$lock_old_archive_extraction
19392
19393 # A C compiler.
19394 LTCC=$lt_CC
19395
19396 # LTCC compiler flags.
19397 LTCFLAGS=$lt_CFLAGS
19398
19399 # Take the output of nm and produce a listing of raw symbols and C names.
19400 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19401
19402 # Transform the output of nm in a proper C declaration.
19403 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19404
19405 # Transform the output of nm into a list of symbols to manually relocate.
19406 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19407
19408 # Transform the output of nm in a C name address pair.
19409 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19410
19411 # Transform the output of nm in a C name address pair when lib prefix is needed.
19412 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19413
19414 # The name lister interface.
19415 nm_interface=$lt_lt_cv_nm_interface
19416
19417 # Specify filename containing input files for \$NM.
19418 nm_file_list_spec=$lt_nm_file_list_spec
19419
19420 # The root where to search for dependent libraries,and where our libraries should be installed.
19421 lt_sysroot=$lt_sysroot
19422
19423 # Command to truncate a binary pipe.
19424 lt_truncate_bin=$lt_lt_cv_truncate_bin
19425
19426 # The name of the directory that contains temporary libtool files.
19427 objdir=$objdir
19428
19429 # Used to examine libraries when file_magic_cmd begins with "file".
19430 MAGIC_CMD=$MAGIC_CMD
19431
19432 # Must we lock files when doing compilation?
19433 need_locks=$lt_need_locks
19434
19435 # Manifest tool.
19436 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19437
19438 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19439 DSYMUTIL=$lt_DSYMUTIL
19440
19441 # Tool to change global to local symbols on Mac OS X.
19442 NMEDIT=$lt_NMEDIT
19443
19444 # Tool to manipulate fat objects and archives on Mac OS X.
19445 LIPO=$lt_LIPO
19446
19447 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19448 OTOOL=$lt_OTOOL
19449
19450 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19451 OTOOL64=$lt_OTOOL64
19452
19453 # Old archive suffix (normally "a").
19454 libext=$libext
19455
19456 # Shared library suffix (normally ".so").
19457 shrext_cmds=$lt_shrext_cmds
19458
19459 # The commands to extract the exported symbol list from a shared archive.
19460 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19461
19462 # Variables whose values should be saved in libtool wrapper scripts and
19463 # restored at link time.
19464 variables_saved_for_relink=$lt_variables_saved_for_relink
19465
19466 # Do we need the "lib" prefix for modules?
19467 need_lib_prefix=$need_lib_prefix
19468
19469 # Do we need a version for libraries?
19470 need_version=$need_version
19471
19472 # Library versioning type.
19473 version_type=$version_type
19474
19475 # Shared library runtime path variable.
19476 runpath_var=$runpath_var
19477
19478 # Shared library path variable.
19479 shlibpath_var=$shlibpath_var
19480
19481 # Is shlibpath searched before the hard-coded library search path?
19482 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19483
19484 # Format of library name prefix.
19485 libname_spec=$lt_libname_spec
19486
19487 # List of archive names.  First name is the real one, the rest are links.
19488 # The last name is the one that the linker finds with -lNAME
19489 library_names_spec=$lt_library_names_spec
19490
19491 # The coded name of the library, if different from the real name.
19492 soname_spec=$lt_soname_spec
19493
19494 # Permission mode override for installation of shared libraries.
19495 install_override_mode=$lt_install_override_mode
19496
19497 # Command to use after installation of a shared archive.
19498 postinstall_cmds=$lt_postinstall_cmds
19499
19500 # Command to use after uninstallation of a shared archive.
19501 postuninstall_cmds=$lt_postuninstall_cmds
19502
19503 # Commands used to finish a libtool library installation in a directory.
19504 finish_cmds=$lt_finish_cmds
19505
19506 # As "finish_cmds", except a single script fragment to be evaled but
19507 # not shown.
19508 finish_eval=$lt_finish_eval
19509
19510 # Whether we should hardcode library paths into libraries.
19511 hardcode_into_libs=$hardcode_into_libs
19512
19513 # Compile-time system search path for libraries.
19514 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19515
19516 # Detected run-time system search path for libraries.
19517 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19518
19519 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19520 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19521
19522 # Whether dlopen is supported.
19523 dlopen_support=$enable_dlopen
19524
19525 # Whether dlopen of programs is supported.
19526 dlopen_self=$enable_dlopen_self
19527
19528 # Whether dlopen of statically linked programs is supported.
19529 dlopen_self_static=$enable_dlopen_self_static
19530
19531 # Commands to strip libraries.
19532 old_striplib=$lt_old_striplib
19533 striplib=$lt_striplib
19534
19535
19536 # The linker used to build libraries.
19537 LD=$lt_LD
19538
19539 # How to create reloadable object files.
19540 reload_flag=$lt_reload_flag
19541 reload_cmds=$lt_reload_cmds
19542
19543 # Commands used to build an old-style archive.
19544 old_archive_cmds=$lt_old_archive_cmds
19545
19546 # A language specific compiler.
19547 CC=$lt_compiler
19548
19549 # Is the compiler the GNU compiler?
19550 with_gcc=$GCC
19551
19552 # Compiler flag to turn off builtin functions.
19553 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19554
19555 # Additional compiler flags for building library objects.
19556 pic_flag=$lt_lt_prog_compiler_pic
19557
19558 # How to pass a linker flag through the compiler.
19559 wl=$lt_lt_prog_compiler_wl
19560
19561 # Compiler flag to prevent dynamic linking.
19562 link_static_flag=$lt_lt_prog_compiler_static
19563
19564 # Does compiler simultaneously support -c and -o options?
19565 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19566
19567 # Whether or not to add -lc for building shared libraries.
19568 build_libtool_need_lc=$archive_cmds_need_lc
19569
19570 # Whether or not to disallow shared libs when runtime libs are static.
19571 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19572
19573 # Compiler flag to allow reflexive dlopens.
19574 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19575
19576 # Compiler flag to generate shared objects directly from archives.
19577 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19578
19579 # Whether the compiler copes with passing no objects directly.
19580 compiler_needs_object=$lt_compiler_needs_object
19581
19582 # Create an old-style archive from a shared archive.
19583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19584
19585 # Create a temporary old-style archive to link instead of a shared archive.
19586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19587
19588 # Commands used to build a shared archive.
19589 archive_cmds=$lt_archive_cmds
19590 archive_expsym_cmds=$lt_archive_expsym_cmds
19591
19592 # Commands used to build a loadable module if different from building
19593 # a shared archive.
19594 module_cmds=$lt_module_cmds
19595 module_expsym_cmds=$lt_module_expsym_cmds
19596
19597 # Whether we are building with GNU ld or not.
19598 with_gnu_ld=$lt_with_gnu_ld
19599
19600 # Flag that allows shared libraries with undefined symbols to be built.
19601 allow_undefined_flag=$lt_allow_undefined_flag
19602
19603 # Flag that enforces no undefined symbols.
19604 no_undefined_flag=$lt_no_undefined_flag
19605
19606 # Flag to hardcode \$libdir into a binary during linking.
19607 # This must work even if \$libdir does not exist
19608 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19609
19610 # Whether we need a single "-rpath" flag with a separated argument.
19611 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19612
19613 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19614 # DIR into the resulting binary.
19615 hardcode_direct=$hardcode_direct
19616
19617 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19618 # DIR into the resulting binary and the resulting library dependency is
19619 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19620 # library is relocated.
19621 hardcode_direct_absolute=$hardcode_direct_absolute
19622
19623 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19624 # into the resulting binary.
19625 hardcode_minus_L=$hardcode_minus_L
19626
19627 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19628 # into the resulting binary.
19629 hardcode_shlibpath_var=$hardcode_shlibpath_var
19630
19631 # Set to "yes" if building a shared library automatically hardcodes DIR
19632 # into the library and all subsequent libraries and executables linked
19633 # against it.
19634 hardcode_automatic=$hardcode_automatic
19635
19636 # Set to yes if linker adds runtime paths of dependent libraries
19637 # to runtime path list.
19638 inherit_rpath=$inherit_rpath
19639
19640 # Whether libtool must link a program against all its dependency libraries.
19641 link_all_deplibs=$link_all_deplibs
19642
19643 # Set to "yes" if exported symbols are required.
19644 always_export_symbols=$always_export_symbols
19645
19646 # The commands to list exported symbols.
19647 export_symbols_cmds=$lt_export_symbols_cmds
19648
19649 # Symbols that should not be listed in the preloaded symbols.
19650 exclude_expsyms=$lt_exclude_expsyms
19651
19652 # Symbols that must always be exported.
19653 include_expsyms=$lt_include_expsyms
19654
19655 # Commands necessary for linking programs (against libraries) with templates.
19656 prelink_cmds=$lt_prelink_cmds
19657
19658 # Commands necessary for finishing linking programs.
19659 postlink_cmds=$lt_postlink_cmds
19660
19661 # Specify filename containing input files.
19662 file_list_spec=$lt_file_list_spec
19663
19664 # How to hardcode a shared library path into an executable.
19665 hardcode_action=$hardcode_action
19666
19667 # ### END LIBTOOL CONFIG
19668
19669 _LT_EOF
19670
19671     cat <<'_LT_EOF' >> "$cfgfile"
19672
19673 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19674
19675 # func_munge_path_list VARIABLE PATH
19676 # -----------------------------------
19677 # VARIABLE is name of variable containing _space_ separated list of
19678 # directories to be munged by the contents of PATH, which is string
19679 # having a format:
19680 # "DIR[:DIR]:"
19681 #       string "DIR[ DIR]" will be prepended to VARIABLE
19682 # ":DIR[:DIR]"
19683 #       string "DIR[ DIR]" will be appended to VARIABLE
19684 # "DIRP[:DIRP]::[DIRA:]DIRA"
19685 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19686 #       "DIRA[ DIRA]" will be appended to VARIABLE
19687 # "DIR[:DIR]"
19688 #       VARIABLE will be replaced by "DIR[ DIR]"
19689 func_munge_path_list ()
19690 {
19691     case x$2 in
19692     x)
19693         ;;
19694     *:)
19695         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19696         ;;
19697     x:*)
19698         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19699         ;;
19700     *::*)
19701         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19702         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19703         ;;
19704     *)
19705         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19706         ;;
19707     esac
19708 }
19709
19710
19711 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19712 func_cc_basename ()
19713 {
19714     for cc_temp in $*""; do
19715       case $cc_temp in
19716         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19717         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19718         \-*) ;;
19719         *) break;;
19720       esac
19721     done
19722     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19723 }
19724
19725
19726 # ### END FUNCTIONS SHARED WITH CONFIGURE
19727
19728 _LT_EOF
19729
19730   case $host_os in
19731   aix3*)
19732     cat <<\_LT_EOF >> "$cfgfile"
19733 # AIX sometimes has problems with the GCC collect2 program.  For some
19734 # reason, if we set the COLLECT_NAMES environment variable, the problems
19735 # vanish in a puff of smoke.
19736 if test set != "${COLLECT_NAMES+set}"; then
19737   COLLECT_NAMES=
19738   export COLLECT_NAMES
19739 fi
19740 _LT_EOF
19741     ;;
19742   esac
19743
19744
19745 ltmain=$ac_aux_dir/ltmain.sh
19746
19747
19748   # We use sed instead of cat because bash on DJGPP gets confused if
19749   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19750   # text mode, it properly converts lines to CR/LF.  This bash problem
19751   # is reportedly fixed, but why not run on old versions too?
19752   sed '$q' "$ltmain" >> "$cfgfile" \
19753      || (rm -f "$cfgfile"; exit 1)
19754
19755    mv -f "$cfgfile" "$ofile" ||
19756     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19757   chmod +x "$ofile"
19758
19759  ;;
19760     "po-directories":C)
19761     for ac_file in $CONFIG_FILES; do
19762       # Support "outfile[:infile[:infile...]]"
19763       case "$ac_file" in
19764         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19765       esac
19766       # PO directories have a Makefile.in generated from Makefile.in.in.
19767       case "$ac_file" in */Makefile.in)
19768         # Adjust a relative srcdir.
19769         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19770         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19771         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19772         # In autoconf-2.13 it is called $ac_given_srcdir.
19773         # In autoconf-2.50 it is called $srcdir.
19774         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19775         case "$ac_given_srcdir" in
19776           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19777           /*) top_srcdir="$ac_given_srcdir" ;;
19778           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
19779         esac
19780         # Treat a directory as a PO directory if and only if it has a
19781         # POTFILES.in file. This allows packages to have multiple PO
19782         # directories under different names or in different locations.
19783         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19784           rm -f "$ac_dir/POTFILES"
19785           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19786           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19787           POMAKEFILEDEPS="POTFILES.in"
19788           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19789           # on $ac_dir but don't depend on user-specified configuration
19790           # parameters.
19791           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19792             # The LINGUAS file contains the set of available languages.
19793             if test -n "$OBSOLETE_ALL_LINGUAS"; then
19794               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19795             fi
19796             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19797             # Hide the ALL_LINGUAS assigment from automake < 1.5.
19798             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19799             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19800           else
19801             # The set of available languages was given in configure.in.
19802             # Hide the ALL_LINGUAS assigment from automake < 1.5.
19803             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19804           fi
19805           # Compute POFILES
19806           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19807           # Compute UPDATEPOFILES
19808           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19809           # Compute DUMMYPOFILES
19810           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19811           # Compute GMOFILES
19812           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19813           case "$ac_given_srcdir" in
19814             .) srcdirpre= ;;
19815             *) srcdirpre='$(srcdir)/' ;;
19816           esac
19817           POFILES=
19818           UPDATEPOFILES=
19819           DUMMYPOFILES=
19820           GMOFILES=
19821           for lang in $ALL_LINGUAS; do
19822             POFILES="$POFILES $srcdirpre$lang.po"
19823             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19824             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19825             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19826           done
19827           # CATALOGS depends on both $ac_dir and the user's LINGUAS
19828           # environment variable.
19829           INST_LINGUAS=
19830           if test -n "$ALL_LINGUAS"; then
19831             for presentlang in $ALL_LINGUAS; do
19832               useit=no
19833               if test "%UNSET%" != "$LINGUAS"; then
19834                 desiredlanguages="$LINGUAS"
19835               else
19836                 desiredlanguages="$ALL_LINGUAS"
19837               fi
19838               for desiredlang in $desiredlanguages; do
19839                 # Use the presentlang catalog if desiredlang is
19840                 #   a. equal to presentlang, or
19841                 #   b. a variant of presentlang (because in this case,
19842                 #      presentlang can be used as a fallback for messages
19843                 #      which are not translated in the desiredlang catalog).
19844                 case "$desiredlang" in
19845                   "$presentlang"*) useit=yes;;
19846                 esac
19847               done
19848               if test $useit = yes; then
19849                 INST_LINGUAS="$INST_LINGUAS $presentlang"
19850               fi
19851             done
19852           fi
19853           CATALOGS=
19854           if test -n "$INST_LINGUAS"; then
19855             for lang in $INST_LINGUAS; do
19856               CATALOGS="$CATALOGS $lang.gmo"
19857             done
19858           fi
19859           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19860           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"
19861           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19862             if test -f "$f"; then
19863               case "$f" in
19864                 *.orig | *.bak | *~) ;;
19865                 *) cat "$f" >> "$ac_dir/Makefile" ;;
19866               esac
19867             fi
19868           done
19869         fi
19870         ;;
19871       esac
19872     done ;;
19873
19874   esac
19875 done # for ac_tag
19876
19877
19878 as_fn_exit 0
19879 _ACEOF
19880 ac_clean_files=$ac_clean_files_save
19881
19882 test $ac_write_fail = 0 ||
19883   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19884
19885
19886 # configure is writing to config.log, and then calls config.status.
19887 # config.status does its own redirection, appending to config.log.
19888 # Unfortunately, on DOS this fails, as config.log is still kept open
19889 # by configure, so config.status won't be able to write to it; its
19890 # output is simply discarded.  So we exec the FD to /dev/null,
19891 # effectively closing config.log, so it can be properly (re)opened and
19892 # appended to by config.status.  When coming back to configure, we
19893 # need to make the FD available again.
19894 if test "$no_create" != yes; then
19895   ac_cs_success=:
19896   ac_config_status_args=
19897   test "$silent" = yes &&
19898     ac_config_status_args="$ac_config_status_args --quiet"
19899   exec 5>/dev/null
19900   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19901   exec 5>>config.log
19902   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19903   # would make configure fail if this is the last instruction.
19904   $ac_cs_success || as_fn_exit 1
19905 fi
19906 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19907   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19908 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19909 fi
19910