Merge remote-tracking branch 'origin/master' into debian
[moonshot-ui.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Moonshot-ui 0.5.
4 #
5 # Report bugs to <moonshot-community@jiscmail.ac.uk>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: moonshot-community@jiscmail.ac.uk about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569 as_awk_strverscmp='
570   # Use only awk features that work with 7th edition Unix awk (1978).
571   # My, what an old awk you have, Mr. Solaris!
572   END {
573     while (length(v1) && length(v2)) {
574       # Set d1 to be the next thing to compare from v1, and likewise for d2.
575       # Normally this is a single character, but if v1 and v2 contain digits,
576       # compare them as integers and fractions as strverscmp does.
577       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
578         # Split v1 and v2 into their leading digit string components d1 and d2,
579         # and advance v1 and v2 past the leading digit strings.
580         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
581         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
582         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
583         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
584         if (d1 ~ /^0/) {
585           if (d2 ~ /^0/) {
586             # Compare two fractions.
587             while (d1 ~ /^0/ && d2 ~ /^0/) {
588               d1 = substr(d1, 2); len1--
589               d2 = substr(d2, 2); len2--
590             }
591             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
592               # The two components differ in length, and the common prefix
593               # contains only leading zeros.  Consider the longer to be less.
594               d1 = -len1
595               d2 = -len2
596             } else {
597               # Otherwise, compare as strings.
598               d1 = "x" d1
599               d2 = "x" d2
600             }
601           } else {
602             # A fraction is less than an integer.
603             exit 1
604           }
605         } else {
606           if (d2 ~ /^0/) {
607             # An integer is greater than a fraction.
608             exit 2
609           } else {
610             # Compare two integers.
611             d1 += 0
612             d2 += 0
613           }
614         }
615       } else {
616         # The normal case, without worrying about digits.
617         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
618         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
619       }
620       if (d1 < d2) exit 1
621       if (d1 > d2) exit 2
622     }
623     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
624     # which mishandles some comparisons of empty strings to integers.
625     if (length(v2)) exit 1
626     if (length(v1)) exit 2
627   }
628 '
629
630 test -n "$DJDIR" || exec 7<&0 </dev/null
631 exec 6>&1
632
633 # Name of the host.
634 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
635 # so uname gets run too.
636 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
637
638 #
639 # Initializations.
640 #
641 ac_default_prefix=/usr/local
642 ac_clean_files=
643 ac_config_libobj_dir=.
644 LIBOBJS=
645 cross_compiling=no
646 subdirs=
647 MFLAGS=
648 MAKEFLAGS=
649
650 # Identity of this package.
651 PACKAGE_NAME='Moonshot-ui'
652 PACKAGE_TARNAME='moonshot-ui'
653 PACKAGE_VERSION='0.5'
654 PACKAGE_STRING='Moonshot-ui 0.5'
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 gt_needs=
696 ac_subst_vars='am__EXEEXT_FALSE
697 am__EXEEXT_TRUE
698 LTLIBOBJS
699 LIBOBJS
700 GETTEXT_PACKAGE
701 POSUB
702 LTLIBINTL
703 LIBINTL
704 INTLLIBS
705 LTLIBICONV
706 LIBICONV
707 INTL_MACOSX_LIBS
708 XGETTEXT_EXTRA_OPTIONS
709 MSGMERGE
710 XGETTEXT_015
711 XGETTEXT
712 GMSGFMT_015
713 MSGFMT_015
714 GMSGFMT
715 MSGFMT
716 GETTEXT_MACRO_VERSION
717 USE_NLS
718 libmoonshot_LIBS
719 libmoonshot_CFLAGS
720 moonshot_LIBS
721 moonshot_CFLAGS
722 MOONSHOT_WEBP
723 MOONSHOT_APP
724 UPDATE_DESKTOP_DATABASE
725 UPDATE_MIME_DATABASE
726 WIX_LIGHT
727 WIX_CANDLE
728 IMAGEMAGICK_CONVERT
729 MSVC_LIB
730 MIDL
731 MIDL_WRAPPER
732 MSRPC_LIBS
733 MSRPC_CFLAGS
734 IPC_GDBUS_FALSE
735 IPC_GDBUS_TRUE
736 IPC_DBUS_GLIB_FALSE
737 IPC_DBUS_GLIB_TRUE
738 IPC_DBUS_FALSE
739 IPC_DBUS_TRUE
740 IPC_MSRPC_FALSE
741 IPC_MSRPC_TRUE
742 OS_MACOS_FALSE
743 OS_MACOS_TRUE
744 OS_WIN32_FALSE
745 OS_WIN32_TRUE
746 OS_LINUX_FALSE
747 OS_LINUX_TRUE
748 GDBUS_LIBS
749 GDBUS_CFLAGS
750 MAC_LIBS
751 MAC_CFLAGS
752 GTK_LIBS
753 GTK_CFLAGS
754 VALAC
755 PKG_CONFIG_LIBDIR
756 PKG_CONFIG_PATH
757 PKG_CONFIG
758 CPP
759 OTOOL64
760 OTOOL
761 LIPO
762 NMEDIT
763 DSYMUTIL
764 MANIFEST_TOOL
765 RANLIB
766 ac_ct_AR
767 AR
768 LN_S
769 NM
770 ac_ct_DUMPBIN
771 DUMPBIN
772 LD
773 FGREP
774 EGREP
775 GREP
776 SED
777 am__fastdepCC_FALSE
778 am__fastdepCC_TRUE
779 CCDEPMODE
780 am__nodep
781 AMDEPBACKSLASH
782 AMDEP_FALSE
783 AMDEP_TRUE
784 am__quote
785 am__include
786 DEPDIR
787 OBJEXT
788 EXEEXT
789 ac_ct_CC
790 CPPFLAGS
791 LDFLAGS
792 CFLAGS
793 CC
794 host_os
795 host_vendor
796 host_cpu
797 host
798 build_os
799 build_vendor
800 build_cpu
801 build
802 LIBTOOL
803 OBJDUMP
804 DLLTOOL
805 AS
806 MAINT
807 MAINTAINER_MODE_FALSE
808 MAINTAINER_MODE_TRUE
809 AM_BACKSLASH
810 AM_DEFAULT_VERBOSITY
811 AM_DEFAULT_V
812 AM_V
813 am__untar
814 am__tar
815 AMTAR
816 am__leading_dot
817 SET_MAKE
818 AWK
819 mkdir_p
820 MKDIR_P
821 INSTALL_STRIP_PROGRAM
822 STRIP
823 install_sh
824 MAKEINFO
825 AUTOHEADER
826 AUTOMAKE
827 AUTOCONF
828 ACLOCAL
829 VERSION
830 PACKAGE
831 CYGPATH_W
832 am__isrc
833 INSTALL_DATA
834 INSTALL_SCRIPT
835 INSTALL_PROGRAM
836 target_alias
837 host_alias
838 build_alias
839 LIBS
840 ECHO_T
841 ECHO_N
842 ECHO_C
843 DEFS
844 mandir
845 localedir
846 libdir
847 psdir
848 pdfdir
849 dvidir
850 htmldir
851 infodir
852 docdir
853 oldincludedir
854 includedir
855 localstatedir
856 sharedstatedir
857 sysconfdir
858 datadir
859 datarootdir
860 libexecdir
861 sbindir
862 bindir
863 program_transform_name
864 prefix
865 exec_prefix
866 PACKAGE_URL
867 PACKAGE_BUGREPORT
868 PACKAGE_STRING
869 PACKAGE_VERSION
870 PACKAGE_TARNAME
871 PACKAGE_NAME
872 PATH_SEPARATOR
873 SHELL'
874 ac_subst_files=''
875 ac_user_opts='
876 enable_option_checking
877 enable_silent_rules
878 enable_maintainer_mode
879 enable_shared
880 enable_static
881 with_pic
882 enable_fast_install
883 enable_dependency_tracking
884 with_gnu_ld
885 with_sysroot
886 enable_libtool_lock
887 enable_nls
888 enable_rpath
889 with_libiconv_prefix
890 with_libintl_prefix
891 '
892       ac_precious_vars='build_alias
893 host_alias
894 target_alias
895 CC
896 CFLAGS
897 LDFLAGS
898 LIBS
899 CPPFLAGS
900 CPP
901 PKG_CONFIG
902 PKG_CONFIG_PATH
903 PKG_CONFIG_LIBDIR
904 GTK_CFLAGS
905 GTK_LIBS
906 MAC_CFLAGS
907 MAC_LIBS
908 GDBUS_CFLAGS
909 GDBUS_LIBS
910 moonshot_CFLAGS
911 moonshot_LIBS
912 libmoonshot_CFLAGS
913 libmoonshot_LIBS'
914
915
916 # Initialize some variables set by options.
917 ac_init_help=
918 ac_init_version=false
919 ac_unrecognized_opts=
920 ac_unrecognized_sep=
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
923 cache_file=/dev/null
924 exec_prefix=NONE
925 no_create=
926 no_recursion=
927 prefix=NONE
928 program_prefix=NONE
929 program_suffix=NONE
930 program_transform_name=s,x,x,
931 silent=
932 site=
933 srcdir=
934 verbose=
935 x_includes=NONE
936 x_libraries=NONE
937
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
955 infodir='${datarootdir}/info'
956 htmldir='${docdir}'
957 dvidir='${docdir}'
958 pdfdir='${docdir}'
959 psdir='${docdir}'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
963
964 ac_prev=
965 ac_dashdash=
966 for ac_option
967 do
968   # If the previous option needs an argument, assign it.
969   if test -n "$ac_prev"; then
970     eval $ac_prev=\$ac_option
971     ac_prev=
972     continue
973   fi
974
975   case $ac_option in
976   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977   *=)   ac_optarg= ;;
978   *)    ac_optarg=yes ;;
979   esac
980
981   # Accept the important Cygnus configure options, so we can diagnose typos.
982
983   case $ac_dashdash$ac_option in
984   --)
985     ac_dashdash=yes ;;
986
987   -bindir | --bindir | --bindi | --bind | --bin | --bi)
988     ac_prev=bindir ;;
989   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990     bindir=$ac_optarg ;;
991
992   -build | --build | --buil | --bui | --bu)
993     ac_prev=build_alias ;;
994   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995     build_alias=$ac_optarg ;;
996
997   -cache-file | --cache-file | --cache-fil | --cache-fi \
998   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999     ac_prev=cache_file ;;
1000   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002     cache_file=$ac_optarg ;;
1003
1004   --config-cache | -C)
1005     cache_file=config.cache ;;
1006
1007   -datadir | --datadir | --datadi | --datad)
1008     ac_prev=datadir ;;
1009   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010     datadir=$ac_optarg ;;
1011
1012   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013   | --dataroo | --dataro | --datar)
1014     ac_prev=datarootdir ;;
1015   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017     datarootdir=$ac_optarg ;;
1018
1019   -disable-* | --disable-*)
1020     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021     # Reject names that are not valid shell variable names.
1022     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023       as_fn_error $? "invalid feature name: $ac_useropt"
1024     ac_useropt_orig=$ac_useropt
1025     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026     case $ac_user_opts in
1027       *"
1028 "enable_$ac_useropt"
1029 "*) ;;
1030       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031          ac_unrecognized_sep=', ';;
1032     esac
1033     eval enable_$ac_useropt=no ;;
1034
1035   -docdir | --docdir | --docdi | --doc | --do)
1036     ac_prev=docdir ;;
1037   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038     docdir=$ac_optarg ;;
1039
1040   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041     ac_prev=dvidir ;;
1042   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043     dvidir=$ac_optarg ;;
1044
1045   -enable-* | --enable-*)
1046     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047     # Reject names that are not valid shell variable names.
1048     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049       as_fn_error $? "invalid feature name: $ac_useropt"
1050     ac_useropt_orig=$ac_useropt
1051     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052     case $ac_user_opts in
1053       *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057          ac_unrecognized_sep=', ';;
1058     esac
1059     eval enable_$ac_useropt=\$ac_optarg ;;
1060
1061   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063   | --exec | --exe | --ex)
1064     ac_prev=exec_prefix ;;
1065   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067   | --exec=* | --exe=* | --ex=*)
1068     exec_prefix=$ac_optarg ;;
1069
1070   -gas | --gas | --ga | --g)
1071     # Obsolete; use --with-gas.
1072     with_gas=yes ;;
1073
1074   -help | --help | --hel | --he | -h)
1075     ac_init_help=long ;;
1076   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077     ac_init_help=recursive ;;
1078   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079     ac_init_help=short ;;
1080
1081   -host | --host | --hos | --ho)
1082     ac_prev=host_alias ;;
1083   -host=* | --host=* | --hos=* | --ho=*)
1084     host_alias=$ac_optarg ;;
1085
1086   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087     ac_prev=htmldir ;;
1088   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089   | --ht=*)
1090     htmldir=$ac_optarg ;;
1091
1092   -includedir | --includedir | --includedi | --included | --include \
1093   | --includ | --inclu | --incl | --inc)
1094     ac_prev=includedir ;;
1095   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096   | --includ=* | --inclu=* | --incl=* | --inc=*)
1097     includedir=$ac_optarg ;;
1098
1099   -infodir | --infodir | --infodi | --infod | --info | --inf)
1100     ac_prev=infodir ;;
1101   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102     infodir=$ac_optarg ;;
1103
1104   -libdir | --libdir | --libdi | --libd)
1105     ac_prev=libdir ;;
1106   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107     libdir=$ac_optarg ;;
1108
1109   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110   | --libexe | --libex | --libe)
1111     ac_prev=libexecdir ;;
1112   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113   | --libexe=* | --libex=* | --libe=*)
1114     libexecdir=$ac_optarg ;;
1115
1116   -localedir | --localedir | --localedi | --localed | --locale)
1117     ac_prev=localedir ;;
1118   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119     localedir=$ac_optarg ;;
1120
1121   -localstatedir | --localstatedir | --localstatedi | --localstated \
1122   | --localstate | --localstat | --localsta | --localst | --locals)
1123     ac_prev=localstatedir ;;
1124   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126     localstatedir=$ac_optarg ;;
1127
1128   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129     ac_prev=mandir ;;
1130   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131     mandir=$ac_optarg ;;
1132
1133   -nfp | --nfp | --nf)
1134     # Obsolete; use --without-fp.
1135     with_fp=no ;;
1136
1137   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138   | --no-cr | --no-c | -n)
1139     no_create=yes ;;
1140
1141   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143     no_recursion=yes ;;
1144
1145   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147   | --oldin | --oldi | --old | --ol | --o)
1148     ac_prev=oldincludedir ;;
1149   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152     oldincludedir=$ac_optarg ;;
1153
1154   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155     ac_prev=prefix ;;
1156   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157     prefix=$ac_optarg ;;
1158
1159   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160   | --program-pre | --program-pr | --program-p)
1161     ac_prev=program_prefix ;;
1162   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164     program_prefix=$ac_optarg ;;
1165
1166   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167   | --program-suf | --program-su | --program-s)
1168     ac_prev=program_suffix ;;
1169   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171     program_suffix=$ac_optarg ;;
1172
1173   -program-transform-name | --program-transform-name \
1174   | --program-transform-nam | --program-transform-na \
1175   | --program-transform-n | --program-transform- \
1176   | --program-transform | --program-transfor \
1177   | --program-transfo | --program-transf \
1178   | --program-trans | --program-tran \
1179   | --progr-tra | --program-tr | --program-t)
1180     ac_prev=program_transform_name ;;
1181   -program-transform-name=* | --program-transform-name=* \
1182   | --program-transform-nam=* | --program-transform-na=* \
1183   | --program-transform-n=* | --program-transform-=* \
1184   | --program-transform=* | --program-transfor=* \
1185   | --program-transfo=* | --program-transf=* \
1186   | --program-trans=* | --program-tran=* \
1187   | --progr-tra=* | --program-tr=* | --program-t=*)
1188     program_transform_name=$ac_optarg ;;
1189
1190   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191     ac_prev=pdfdir ;;
1192   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193     pdfdir=$ac_optarg ;;
1194
1195   -psdir | --psdir | --psdi | --psd | --ps)
1196     ac_prev=psdir ;;
1197   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198     psdir=$ac_optarg ;;
1199
1200   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201   | -silent | --silent | --silen | --sile | --sil)
1202     silent=yes ;;
1203
1204   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205     ac_prev=sbindir ;;
1206   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207   | --sbi=* | --sb=*)
1208     sbindir=$ac_optarg ;;
1209
1210   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212   | --sharedst | --shareds | --shared | --share | --shar \
1213   | --sha | --sh)
1214     ac_prev=sharedstatedir ;;
1215   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218   | --sha=* | --sh=*)
1219     sharedstatedir=$ac_optarg ;;
1220
1221   -site | --site | --sit)
1222     ac_prev=site ;;
1223   -site=* | --site=* | --sit=*)
1224     site=$ac_optarg ;;
1225
1226   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227     ac_prev=srcdir ;;
1228   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229     srcdir=$ac_optarg ;;
1230
1231   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232   | --syscon | --sysco | --sysc | --sys | --sy)
1233     ac_prev=sysconfdir ;;
1234   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236     sysconfdir=$ac_optarg ;;
1237
1238   -target | --target | --targe | --targ | --tar | --ta | --t)
1239     ac_prev=target_alias ;;
1240   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241     target_alias=$ac_optarg ;;
1242
1243   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244     verbose=yes ;;
1245
1246   -version | --version | --versio | --versi | --vers | -V)
1247     ac_init_version=: ;;
1248
1249   -with-* | --with-*)
1250     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251     # Reject names that are not valid shell variable names.
1252     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253       as_fn_error $? "invalid package name: $ac_useropt"
1254     ac_useropt_orig=$ac_useropt
1255     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256     case $ac_user_opts in
1257       *"
1258 "with_$ac_useropt"
1259 "*) ;;
1260       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261          ac_unrecognized_sep=', ';;
1262     esac
1263     eval with_$ac_useropt=\$ac_optarg ;;
1264
1265   -without-* | --without-*)
1266     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267     # Reject names that are not valid shell variable names.
1268     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269       as_fn_error $? "invalid package name: $ac_useropt"
1270     ac_useropt_orig=$ac_useropt
1271     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272     case $ac_user_opts in
1273       *"
1274 "with_$ac_useropt"
1275 "*) ;;
1276       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277          ac_unrecognized_sep=', ';;
1278     esac
1279     eval with_$ac_useropt=no ;;
1280
1281   --x)
1282     # Obsolete; use --with-x.
1283     with_x=yes ;;
1284
1285   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286   | --x-incl | --x-inc | --x-in | --x-i)
1287     ac_prev=x_includes ;;
1288   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290     x_includes=$ac_optarg ;;
1291
1292   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294     ac_prev=x_libraries ;;
1295   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297     x_libraries=$ac_optarg ;;
1298
1299   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1300 Try \`$0 --help' for more information"
1301     ;;
1302
1303   *=*)
1304     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305     # Reject names that are not valid shell variable names.
1306     case $ac_envvar in #(
1307       '' | [0-9]* | *[!_$as_cr_alnum]* )
1308       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1309     esac
1310     eval $ac_envvar=\$ac_optarg
1311     export $ac_envvar ;;
1312
1313   *)
1314     # FIXME: should be removed in autoconf 3.0.
1315     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1319     ;;
1320
1321   esac
1322 done
1323
1324 if test -n "$ac_prev"; then
1325   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326   as_fn_error $? "missing argument to $ac_option"
1327 fi
1328
1329 if test -n "$ac_unrecognized_opts"; then
1330   case $enable_option_checking in
1331     no) ;;
1332     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1333     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334   esac
1335 fi
1336
1337 # Check all directory arguments for consistency.
1338 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339                 datadir sysconfdir sharedstatedir localstatedir includedir \
1340                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341                 libdir localedir mandir
1342 do
1343   eval ac_val=\$$ac_var
1344   # Remove trailing slashes.
1345   case $ac_val in
1346     */ )
1347       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348       eval $ac_var=\$ac_val;;
1349   esac
1350   # Be sure to have absolute directory names.
1351   case $ac_val in
1352     [\\/$]* | ?:[\\/]* )  continue;;
1353     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354   esac
1355   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1356 done
1357
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1361 build=$build_alias
1362 host=$host_alias
1363 target=$target_alias
1364
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x; then
1367   if test "x$build_alias" = x; then
1368     cross_compiling=maybe
1369   elif test "x$build_alias" != "x$host_alias"; then
1370     cross_compiling=yes
1371   fi
1372 fi
1373
1374 ac_tool_prefix=
1375 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1376
1377 test "$silent" = yes && exec 6>/dev/null
1378
1379
1380 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381 ac_ls_di=`ls -di .` &&
1382 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383   as_fn_error $? "working directory cannot be determined"
1384 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385   as_fn_error $? "pwd does not report name of working directory"
1386
1387
1388 # Find the source files, if location was not specified.
1389 if test -z "$srcdir"; then
1390   ac_srcdir_defaulted=yes
1391   # Try the directory containing this script, then the parent directory.
1392   ac_confdir=`$as_dirname -- "$as_myself" ||
1393 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394          X"$as_myself" : 'X\(//\)[^/]' \| \
1395          X"$as_myself" : 'X\(//\)$' \| \
1396          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1397 $as_echo X"$as_myself" |
1398     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399             s//\1/
1400             q
1401           }
1402           /^X\(\/\/\)[^/].*/{
1403             s//\1/
1404             q
1405           }
1406           /^X\(\/\/\)$/{
1407             s//\1/
1408             q
1409           }
1410           /^X\(\/\).*/{
1411             s//\1/
1412             q
1413           }
1414           s/.*/./; q'`
1415   srcdir=$ac_confdir
1416   if test ! -r "$srcdir/$ac_unique_file"; then
1417     srcdir=..
1418   fi
1419 else
1420   ac_srcdir_defaulted=no
1421 fi
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1425 fi
1426 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427 ac_abs_confdir=`(
1428         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1429         pwd)`
1430 # When building in place, set srcdir=.
1431 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432   srcdir=.
1433 fi
1434 # Remove unnecessary trailing slashes from srcdir.
1435 # Double slashes in file names in object file debugging info
1436 # mess up M-x gdb in Emacs.
1437 case $srcdir in
1438 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439 esac
1440 for ac_var in $ac_precious_vars; do
1441   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1442   eval ac_env_${ac_var}_value=\$${ac_var}
1443   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1444   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445 done
1446
1447 #
1448 # Report the --help message.
1449 #
1450 if test "$ac_init_help" = "long"; then
1451   # Omit some internal or obsolete options to make the list less imposing.
1452   # This message is too long to be a string in the A/UX 3.1 sh.
1453   cat <<_ACEOF
1454 \`configure' configures Moonshot-ui 0.5 to adapt to many kinds of systems.
1455
1456 Usage: $0 [OPTION]... [VAR=VALUE]...
1457
1458 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459 VAR=VALUE.  See below for descriptions of some of the useful variables.
1460
1461 Defaults for the options are specified in brackets.
1462
1463 Configuration:
1464   -h, --help              display this help and exit
1465       --help=short        display options specific to this package
1466       --help=recursive    display the short help of all the included packages
1467   -V, --version           display version information and exit
1468   -q, --quiet, --silent   do not print \`checking ...' messages
1469       --cache-file=FILE   cache test results in FILE [disabled]
1470   -C, --config-cache      alias for \`--cache-file=config.cache'
1471   -n, --no-create         do not create output files
1472       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1473
1474 Installation directories:
1475   --prefix=PREFIX         install architecture-independent files in PREFIX
1476                           [$ac_default_prefix]
1477   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1478                           [PREFIX]
1479
1480 By default, \`make install' will install all the files in
1481 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1482 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483 for instance \`--prefix=\$HOME'.
1484
1485 For better control, use the options below.
1486
1487 Fine tuning of the installation directories:
1488   --bindir=DIR            user executables [EPREFIX/bin]
1489   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1490   --libexecdir=DIR        program executables [EPREFIX/libexec]
1491   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1492   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1493   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1494   --libdir=DIR            object code libraries [EPREFIX/lib]
1495   --includedir=DIR        C header files [PREFIX/include]
1496   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1497   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1498   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1499   --infodir=DIR           info documentation [DATAROOTDIR/info]
1500   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1501   --mandir=DIR            man documentation [DATAROOTDIR/man]
1502   --docdir=DIR            documentation root [DATAROOTDIR/doc/moonshot-ui]
1503   --htmldir=DIR           html documentation [DOCDIR]
1504   --dvidir=DIR            dvi documentation [DOCDIR]
1505   --pdfdir=DIR            pdf documentation [DOCDIR]
1506   --psdir=DIR             ps documentation [DOCDIR]
1507 _ACEOF
1508
1509   cat <<\_ACEOF
1510
1511 Program names:
1512   --program-prefix=PREFIX            prepend PREFIX to installed program names
1513   --program-suffix=SUFFIX            append SUFFIX to installed program names
1514   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1515
1516 System types:
1517   --build=BUILD     configure for building on BUILD [guessed]
1518   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1519 _ACEOF
1520 fi
1521
1522 if test -n "$ac_init_help"; then
1523   case $ac_init_help in
1524      short | recursive ) echo "Configuration of Moonshot-ui 0.5:";;
1525    esac
1526   cat <<\_ACEOF
1527
1528 Optional Features:
1529   --disable-option-checking  ignore unrecognized --enable/--with options
1530   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1531   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1532   --enable-silent-rules          less verbose build output (undo: `make V=1')
1533   --disable-silent-rules         verbose build output (undo: `make V=0')
1534   --disable-maintainer-mode  disable make rules and dependencies not useful
1535                           (and sometimes confusing) to the casual installer
1536   --enable-shared[=PKGS]  build shared libraries [default=yes]
1537   --enable-static[=PKGS]  build static libraries [default=yes]
1538   --enable-fast-install[=PKGS]
1539                           optimize for fast installation [default=yes]
1540   --disable-dependency-tracking  speeds up one-time build
1541   --enable-dependency-tracking   do not reject slow dependency extractors
1542   --disable-libtool-lock  avoid locking (might break parallel builds)
1543   --disable-nls           do not use Native Language Support
1544   --disable-rpath         do not hardcode runtime library paths
1545
1546 Optional Packages:
1547   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1548   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1549   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1550                           both]
1551   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1552   --with-sysroot=DIR Search for dependent libraries within DIR
1553                         (or the compiler's sysroot if not specified).
1554   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1555   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1556   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1557   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1558   --without-libintl-prefix     don't search for libintl in includedir and libdir
1559
1560 Some influential environment variables:
1561   CC          C compiler command
1562   CFLAGS      C compiler flags
1563   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1564               nonstandard directory <lib dir>
1565   LIBS        libraries to pass to the linker, e.g. -l<library>
1566   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1567               you have headers in a nonstandard directory <include dir>
1568   CPP         C preprocessor
1569   PKG_CONFIG  path to pkg-config utility
1570   PKG_CONFIG_PATH
1571               directories to add to pkg-config's search path
1572   PKG_CONFIG_LIBDIR
1573               path overriding pkg-config's built-in search path
1574   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1575   GTK_LIBS    linker flags for GTK, overriding pkg-config
1576   MAC_CFLAGS  C compiler flags for MAC, overriding pkg-config
1577   MAC_LIBS    linker flags for MAC, overriding pkg-config
1578   GDBUS_CFLAGS
1579               C compiler flags for GDBUS, overriding pkg-config
1580   GDBUS_LIBS  linker flags for GDBUS, overriding pkg-config
1581   moonshot_CFLAGS
1582               C compiler flags for moonshot, overriding pkg-config
1583   moonshot_LIBS
1584               linker flags for moonshot, overriding pkg-config
1585   libmoonshot_CFLAGS
1586               C compiler flags for libmoonshot, overriding pkg-config
1587   libmoonshot_LIBS
1588               linker flags for libmoonshot, overriding pkg-config
1589
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1592
1593 Report bugs to <moonshot-community@jiscmail.ac.uk>.
1594 Moonshot-ui home page: <http://www.project-moonshot.org/>.
1595 _ACEOF
1596 ac_status=$?
1597 fi
1598
1599 if test "$ac_init_help" = "recursive"; then
1600   # If there are subdirs, report their specific --help.
1601   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602     test -d "$ac_dir" ||
1603       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604       continue
1605     ac_builddir=.
1606
1607 case "$ac_dir" in
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *)
1610   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611   # A ".." for each directory in $ac_dir_suffix.
1612   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613   case $ac_top_builddir_sub in
1614   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616   esac ;;
1617 esac
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1622
1623 case $srcdir in
1624   .)  # We are building in place.
1625     ac_srcdir=.
1626     ac_top_srcdir=$ac_top_builddir_sub
1627     ac_abs_top_srcdir=$ac_pwd ;;
1628   [\\/]* | ?:[\\/]* )  # Absolute name.
1629     ac_srcdir=$srcdir$ac_dir_suffix;
1630     ac_top_srcdir=$srcdir
1631     ac_abs_top_srcdir=$srcdir ;;
1632   *) # Relative name.
1633     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634     ac_top_srcdir=$ac_top_build_prefix$srcdir
1635     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636 esac
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
1639     cd "$ac_dir" || { ac_status=$?; continue; }
1640     # Check for guested configure.
1641     if test -f "$ac_srcdir/configure.gnu"; then
1642       echo &&
1643       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644     elif test -f "$ac_srcdir/configure"; then
1645       echo &&
1646       $SHELL "$ac_srcdir/configure" --help=recursive
1647     else
1648       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649     fi || ac_status=$?
1650     cd "$ac_pwd" || { ac_status=$?; break; }
1651   done
1652 fi
1653
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1656   cat <<\_ACEOF
1657 Moonshot-ui configure 0.5
1658 generated by GNU Autoconf 2.69
1659
1660 Copyright (C) 2012 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1663 _ACEOF
1664   exit
1665 fi
1666
1667 ## ------------------------ ##
1668 ## Autoconf initialization. ##
1669 ## ------------------------ ##
1670
1671 # ac_fn_c_try_compile LINENO
1672 # --------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_compile ()
1675 {
1676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677   rm -f conftest.$ac_objext
1678   if { { ac_try="$ac_compile"
1679 case "(($ac_try" in
1680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681   *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685   (eval "$ac_compile") 2>conftest.err
1686   ac_status=$?
1687   if test -s conftest.err; then
1688     grep -v '^ *+' conftest.err >conftest.er1
1689     cat conftest.er1 >&5
1690     mv -f conftest.er1 conftest.err
1691   fi
1692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693   test $ac_status = 0; } && {
1694          test -z "$ac_c_werror_flag" ||
1695          test ! -s conftest.err
1696        } && test -s conftest.$ac_objext; then :
1697   ac_retval=0
1698 else
1699   $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702         ac_retval=1
1703 fi
1704   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705   as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_compile
1708
1709 # ac_fn_c_try_link LINENO
1710 # -----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_link ()
1713 {
1714   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715   rm -f conftest.$ac_objext conftest$ac_exeext
1716   if { { ac_try="$ac_link"
1717 case "(($ac_try" in
1718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719   *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723   (eval "$ac_link") 2>conftest.err
1724   ac_status=$?
1725   if test -s conftest.err; then
1726     grep -v '^ *+' conftest.err >conftest.er1
1727     cat conftest.er1 >&5
1728     mv -f conftest.er1 conftest.err
1729   fi
1730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731   test $ac_status = 0; } && {
1732          test -z "$ac_c_werror_flag" ||
1733          test ! -s conftest.err
1734        } && test -s conftest$ac_exeext && {
1735          test "$cross_compiling" = yes ||
1736          test -x conftest$ac_exeext
1737        }; then :
1738   ac_retval=0
1739 else
1740   $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743         ac_retval=1
1744 fi
1745   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1746   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1747   # interfere with the next link command; also delete a directory that is
1748   # left behind by Apple's compiler.  We do this before executing the actions.
1749   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751   as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_link
1754
1755 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1756 # -------------------------------------------------------
1757 # Tests whether HEADER exists and can be compiled using the include files in
1758 # INCLUDES, setting the cache variable VAR accordingly.
1759 ac_fn_c_check_header_compile ()
1760 {
1761   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765   $as_echo_n "(cached) " >&6
1766 else
1767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h.  */
1769 $4
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_compile "$LINENO"; then :
1773   eval "$3=yes"
1774 else
1775   eval "$3=no"
1776 fi
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_header_compile
1785
1786 # ac_fn_c_try_cpp LINENO
1787 # ----------------------
1788 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_cpp ()
1790 {
1791   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792   if { { ac_try="$ac_cpp conftest.$ac_ext"
1793 case "(($ac_try" in
1794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795   *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1800   ac_status=$?
1801   if test -s conftest.err; then
1802     grep -v '^ *+' conftest.err >conftest.er1
1803     cat conftest.er1 >&5
1804     mv -f conftest.er1 conftest.err
1805   fi
1806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807   test $ac_status = 0; } > conftest.i && {
1808          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1809          test ! -s conftest.err
1810        }; then :
1811   ac_retval=0
1812 else
1813   $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1815
1816     ac_retval=1
1817 fi
1818   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819   as_fn_set_status $ac_retval
1820
1821 } # ac_fn_c_try_cpp
1822
1823 # ac_fn_c_try_run LINENO
1824 # ----------------------
1825 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1826 # that executables *can* be run.
1827 ac_fn_c_try_run ()
1828 {
1829   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830   if { { ac_try="$ac_link"
1831 case "(($ac_try" in
1832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833   *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837   (eval "$ac_link") 2>&5
1838   ac_status=$?
1839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1841   { { case "(($ac_try" in
1842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843   *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847   (eval "$ac_try") 2>&5
1848   ac_status=$?
1849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850   test $ac_status = 0; }; }; then :
1851   ac_retval=0
1852 else
1853   $as_echo "$as_me: program exited with status $ac_status" >&5
1854        $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1856
1857        ac_retval=$ac_status
1858 fi
1859   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861   as_fn_set_status $ac_retval
1862
1863 } # ac_fn_c_try_run
1864
1865 # ac_fn_c_check_func LINENO FUNC VAR
1866 # ----------------------------------
1867 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1868 ac_fn_c_check_func ()
1869 {
1870   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874   $as_echo_n "(cached) " >&6
1875 else
1876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h.  */
1878 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1880 #define $2 innocuous_$2
1881
1882 /* System header to define __stub macros and hopefully few prototypes,
1883     which can conflict with char $2 (); below.
1884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1885     <limits.h> exists even on freestanding compilers.  */
1886
1887 #ifdef __STDC__
1888 # include <limits.h>
1889 #else
1890 # include <assert.h>
1891 #endif
1892
1893 #undef $2
1894
1895 /* Override any GCC internal prototype to avoid an error.
1896    Use char because int might match the return type of a GCC
1897    builtin and then its argument prototype would still apply.  */
1898 #ifdef __cplusplus
1899 extern "C"
1900 #endif
1901 char $2 ();
1902 /* The GNU C library defines this for functions which it implements
1903     to always fail with ENOSYS.  Some functions are actually named
1904     something starting with __ and the normal name is an alias.  */
1905 #if defined __stub_$2 || defined __stub___$2
1906 choke me
1907 #endif
1908
1909 int
1910 main ()
1911 {
1912 return $2 ();
1913   ;
1914   return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_link "$LINENO"; then :
1918   eval "$3=yes"
1919 else
1920   eval "$3=no"
1921 fi
1922 rm -f core conftest.err conftest.$ac_objext \
1923     conftest$ac_exeext conftest.$ac_ext
1924 fi
1925 eval ac_res=\$$3
1926                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930 } # ac_fn_c_check_func
1931 cat >config.log <<_ACEOF
1932 This file contains any messages produced by compilers while
1933 running configure, to aid debugging if configure makes a mistake.
1934
1935 It was created by Moonshot-ui $as_me 0.5, which was
1936 generated by GNU Autoconf 2.69.  Invocation command line was
1937
1938   $ $0 $@
1939
1940 _ACEOF
1941 exec 5>>config.log
1942 {
1943 cat <<_ASUNAME
1944 ## --------- ##
1945 ## Platform. ##
1946 ## --------- ##
1947
1948 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1949 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1950 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1951 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1952 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1953
1954 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1955 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1956
1957 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1958 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1959 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1960 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1961 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1962 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1963 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1964
1965 _ASUNAME
1966
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 for as_dir in $PATH
1969 do
1970   IFS=$as_save_IFS
1971   test -z "$as_dir" && as_dir=.
1972     $as_echo "PATH: $as_dir"
1973   done
1974 IFS=$as_save_IFS
1975
1976 } >&5
1977
1978 cat >&5 <<_ACEOF
1979
1980
1981 ## ----------- ##
1982 ## Core tests. ##
1983 ## ----------- ##
1984
1985 _ACEOF
1986
1987
1988 # Keep a trace of the command line.
1989 # Strip out --no-create and --no-recursion so they do not pile up.
1990 # Strip out --silent because we don't want to record it for future runs.
1991 # Also quote any args containing shell meta-characters.
1992 # Make two passes to allow for proper duplicate-argument suppression.
1993 ac_configure_args=
1994 ac_configure_args0=
1995 ac_configure_args1=
1996 ac_must_keep_next=false
1997 for ac_pass in 1 2
1998 do
1999   for ac_arg
2000   do
2001     case $ac_arg in
2002     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2003     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2004     | -silent | --silent | --silen | --sile | --sil)
2005       continue ;;
2006     *\'*)
2007       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2008     esac
2009     case $ac_pass in
2010     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2011     2)
2012       as_fn_append ac_configure_args1 " '$ac_arg'"
2013       if test $ac_must_keep_next = true; then
2014         ac_must_keep_next=false # Got value, back to normal.
2015       else
2016         case $ac_arg in
2017           *=* | --config-cache | -C | -disable-* | --disable-* \
2018           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2019           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2020           | -with-* | --with-* | -without-* | --without-* | --x)
2021             case "$ac_configure_args0 " in
2022               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2023             esac
2024             ;;
2025           -* ) ac_must_keep_next=true ;;
2026         esac
2027       fi
2028       as_fn_append ac_configure_args " '$ac_arg'"
2029       ;;
2030     esac
2031   done
2032 done
2033 { ac_configure_args0=; unset ac_configure_args0;}
2034 { ac_configure_args1=; unset ac_configure_args1;}
2035
2036 # When interrupted or exit'd, cleanup temporary files, and complete
2037 # config.log.  We remove comments because anyway the quotes in there
2038 # would cause problems or look ugly.
2039 # WARNING: Use '\'' to represent an apostrophe within the trap.
2040 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2041 trap 'exit_status=$?
2042   # Save into config.log some information that might help in debugging.
2043   {
2044     echo
2045
2046     $as_echo "## ---------------- ##
2047 ## Cache variables. ##
2048 ## ---------------- ##"
2049     echo
2050     # The following way of writing the cache mishandles newlines in values,
2051 (
2052   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2053     eval ac_val=\$$ac_var
2054     case $ac_val in #(
2055     *${as_nl}*)
2056       case $ac_var in #(
2057       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2058 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2059       esac
2060       case $ac_var in #(
2061       _ | IFS | as_nl) ;; #(
2062       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2063       *) { eval $ac_var=; unset $ac_var;} ;;
2064       esac ;;
2065     esac
2066   done
2067   (set) 2>&1 |
2068     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2069     *${as_nl}ac_space=\ *)
2070       sed -n \
2071         "s/'\''/'\''\\\\'\'''\''/g;
2072           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2073       ;; #(
2074     *)
2075       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2076       ;;
2077     esac |
2078     sort
2079 )
2080     echo
2081
2082     $as_echo "## ----------------- ##
2083 ## Output variables. ##
2084 ## ----------------- ##"
2085     echo
2086     for ac_var in $ac_subst_vars
2087     do
2088       eval ac_val=\$$ac_var
2089       case $ac_val in
2090       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2091       esac
2092       $as_echo "$ac_var='\''$ac_val'\''"
2093     done | sort
2094     echo
2095
2096     if test -n "$ac_subst_files"; then
2097       $as_echo "## ------------------- ##
2098 ## File substitutions. ##
2099 ## ------------------- ##"
2100       echo
2101       for ac_var in $ac_subst_files
2102       do
2103         eval ac_val=\$$ac_var
2104         case $ac_val in
2105         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2106         esac
2107         $as_echo "$ac_var='\''$ac_val'\''"
2108       done | sort
2109       echo
2110     fi
2111
2112     if test -s confdefs.h; then
2113       $as_echo "## ----------- ##
2114 ## confdefs.h. ##
2115 ## ----------- ##"
2116       echo
2117       cat confdefs.h
2118       echo
2119     fi
2120     test "$ac_signal" != 0 &&
2121       $as_echo "$as_me: caught signal $ac_signal"
2122     $as_echo "$as_me: exit $exit_status"
2123   } >&5
2124   rm -f core *.core core.conftest.* &&
2125     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2126     exit $exit_status
2127 ' 0
2128 for ac_signal in 1 2 13 15; do
2129   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2130 done
2131 ac_signal=0
2132
2133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2134 rm -f -r conftest* confdefs.h
2135
2136 $as_echo "/* confdefs.h */" > confdefs.h
2137
2138 # Predefined preprocessor variables.
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_NAME "$PACKAGE_NAME"
2142 _ACEOF
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2146 _ACEOF
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2150 _ACEOF
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_STRING "$PACKAGE_STRING"
2154 _ACEOF
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2158 _ACEOF
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_URL "$PACKAGE_URL"
2162 _ACEOF
2163
2164
2165 # Let the site file select an alternate cache file if it wants to.
2166 # Prefer an explicitly selected file to automatically selected ones.
2167 ac_site_file1=NONE
2168 ac_site_file2=NONE
2169 if test -n "$CONFIG_SITE"; then
2170   # We do not want a PATH search for config.site.
2171   case $CONFIG_SITE in #((
2172     -*)  ac_site_file1=./$CONFIG_SITE;;
2173     */*) ac_site_file1=$CONFIG_SITE;;
2174     *)   ac_site_file1=./$CONFIG_SITE;;
2175   esac
2176 elif test "x$prefix" != xNONE; then
2177   ac_site_file1=$prefix/share/config.site
2178   ac_site_file2=$prefix/etc/config.site
2179 else
2180   ac_site_file1=$ac_default_prefix/share/config.site
2181   ac_site_file2=$ac_default_prefix/etc/config.site
2182 fi
2183 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2184 do
2185   test "x$ac_site_file" = xNONE && continue
2186   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2187     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2188 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2189     sed 's/^/| /' "$ac_site_file" >&5
2190     . "$ac_site_file" \
2191       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2193 as_fn_error $? "failed to load site script $ac_site_file
2194 See \`config.log' for more details" "$LINENO" 5; }
2195   fi
2196 done
2197
2198 if test -r "$cache_file"; then
2199   # Some versions of bash will fail to source /dev/null (special files
2200   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2201   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2202     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2203 $as_echo "$as_me: loading cache $cache_file" >&6;}
2204     case $cache_file in
2205       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2206       *)                      . "./$cache_file";;
2207     esac
2208   fi
2209 else
2210   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2211 $as_echo "$as_me: creating cache $cache_file" >&6;}
2212   >$cache_file
2213 fi
2214
2215 gt_needs="$gt_needs "
2216 # Check that the precious variables saved in the cache have kept the same
2217 # value.
2218 ac_cache_corrupted=false
2219 for ac_var in $ac_precious_vars; do
2220   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2221   eval ac_new_set=\$ac_env_${ac_var}_set
2222   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2223   eval ac_new_val=\$ac_env_${ac_var}_value
2224   case $ac_old_set,$ac_new_set in
2225     set,)
2226       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2227 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2228       ac_cache_corrupted=: ;;
2229     ,set)
2230       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2231 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2232       ac_cache_corrupted=: ;;
2233     ,);;
2234     *)
2235       if test "x$ac_old_val" != "x$ac_new_val"; then
2236         # differences in whitespace do not lead to failure.
2237         ac_old_val_w=`echo x $ac_old_val`
2238         ac_new_val_w=`echo x $ac_new_val`
2239         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2240           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2241 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2242           ac_cache_corrupted=:
2243         else
2244           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2245 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2246           eval $ac_var=\$ac_old_val
2247         fi
2248         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2249 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2250         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2251 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2252       fi;;
2253   esac
2254   # Pass precious variables to config.status.
2255   if test "$ac_new_set" = set; then
2256     case $ac_new_val in
2257     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2258     *) ac_arg=$ac_var=$ac_new_val ;;
2259     esac
2260     case " $ac_configure_args " in
2261       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2262       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2263     esac
2264   fi
2265 done
2266 if $ac_cache_corrupted; then
2267   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2270 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2271   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2272 fi
2273 ## -------------------- ##
2274 ## Main body of script. ##
2275 ## -------------------- ##
2276
2277 ac_ext=c
2278 ac_cpp='$CPP $CPPFLAGS'
2279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282
2283
2284
2285 # Remove this when we can depend on autoconf >= 2.64
2286 PACKAGE_URL=http://www.project-moonshot.org/
2287
2288
2289 $as_echo "#define PACKAGE_URL \"http://www.project-moonshot.org\"" >>confdefs.h
2290
2291 ac_config_headers="$ac_config_headers config.h"
2292
2293
2294
2295 ac_aux_dir=
2296 for ac_dir in build-aux "$srcdir"/build-aux; do
2297   if test -f "$ac_dir/install-sh"; then
2298     ac_aux_dir=$ac_dir
2299     ac_install_sh="$ac_aux_dir/install-sh -c"
2300     break
2301   elif test -f "$ac_dir/install.sh"; then
2302     ac_aux_dir=$ac_dir
2303     ac_install_sh="$ac_aux_dir/install.sh -c"
2304     break
2305   elif test -f "$ac_dir/shtool"; then
2306     ac_aux_dir=$ac_dir
2307     ac_install_sh="$ac_aux_dir/shtool install -c"
2308     break
2309   fi
2310 done
2311 if test -z "$ac_aux_dir"; then
2312   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2313 fi
2314
2315 # These three variables are undocumented and unsupported,
2316 # and are intended to be withdrawn in a future Autoconf release.
2317 # They can cause serious problems if a builder's source tree is in a directory
2318 # whose full name contains unusual characters.
2319 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2320 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2321 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2322
2323
2324
2325 am__api_version='1.11'
2326
2327 # Find a good install program.  We prefer a C program (faster),
2328 # so one script is as good as another.  But avoid the broken or
2329 # incompatible versions:
2330 # SysV /etc/install, /usr/sbin/install
2331 # SunOS /usr/etc/install
2332 # IRIX /sbin/install
2333 # AIX /bin/install
2334 # AmigaOS /C/install, which installs bootblocks on floppy discs
2335 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2336 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2337 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2338 # OS/2's system install, which has a completely different semantic
2339 # ./install, which can be erroneously created by make from ./install.sh.
2340 # Reject install programs that cannot install multiple files.
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2342 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2343 if test -z "$INSTALL"; then
2344 if ${ac_cv_path_install+:} false; then :
2345   $as_echo_n "(cached) " >&6
2346 else
2347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350   IFS=$as_save_IFS
2351   test -z "$as_dir" && as_dir=.
2352     # Account for people who put trailing slashes in PATH elements.
2353 case $as_dir/ in #((
2354   ./ | .// | /[cC]/* | \
2355   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2356   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2357   /usr/ucb/* ) ;;
2358   *)
2359     # OSF1 and SCO ODT 3.0 have their own names for install.
2360     # Don't use installbsd from OSF since it installs stuff as root
2361     # by default.
2362     for ac_prog in ginstall scoinst install; do
2363       for ac_exec_ext in '' $ac_executable_extensions; do
2364         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2365           if test $ac_prog = install &&
2366             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2367             # AIX install.  It has an incompatible calling convention.
2368             :
2369           elif test $ac_prog = install &&
2370             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2371             # program-specific install script used by HP pwplus--don't use.
2372             :
2373           else
2374             rm -rf conftest.one conftest.two conftest.dir
2375             echo one > conftest.one
2376             echo two > conftest.two
2377             mkdir conftest.dir
2378             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2379               test -s conftest.one && test -s conftest.two &&
2380               test -s conftest.dir/conftest.one &&
2381               test -s conftest.dir/conftest.two
2382             then
2383               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2384               break 3
2385             fi
2386           fi
2387         fi
2388       done
2389     done
2390     ;;
2391 esac
2392
2393   done
2394 IFS=$as_save_IFS
2395
2396 rm -rf conftest.one conftest.two conftest.dir
2397
2398 fi
2399   if test "${ac_cv_path_install+set}" = set; then
2400     INSTALL=$ac_cv_path_install
2401   else
2402     # As a last resort, use the slow shell script.  Don't cache a
2403     # value for INSTALL within a source directory, because that will
2404     # break other packages using the cache if that directory is
2405     # removed, or if the value is a relative name.
2406     INSTALL=$ac_install_sh
2407   fi
2408 fi
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2410 $as_echo "$INSTALL" >&6; }
2411
2412 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2413 # It thinks the first close brace ends the variable substitution.
2414 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2415
2416 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2417
2418 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2419
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2421 $as_echo_n "checking whether build environment is sane... " >&6; }
2422 # Just in case
2423 sleep 1
2424 echo timestamp > conftest.file
2425 # Reject unsafe characters in $srcdir or the absolute working directory
2426 # name.  Accept space and tab only in the latter.
2427 am_lf='
2428 '
2429 case `pwd` in
2430   *[\\\"\#\$\&\'\`$am_lf]*)
2431     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2432 esac
2433 case $srcdir in
2434   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2435     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2436 esac
2437
2438 # Do `set' in a subshell so we don't clobber the current shell's
2439 # arguments.  Must try -L first in case configure is actually a
2440 # symlink; some systems play weird games with the mod time of symlinks
2441 # (eg FreeBSD returns the mod time of the symlink's containing
2442 # directory).
2443 if (
2444    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2445    if test "$*" = "X"; then
2446       # -L didn't work.
2447       set X `ls -t "$srcdir/configure" conftest.file`
2448    fi
2449    rm -f conftest.file
2450    if test "$*" != "X $srcdir/configure conftest.file" \
2451       && test "$*" != "X conftest.file $srcdir/configure"; then
2452
2453       # If neither matched, then we have a broken ls.  This can happen
2454       # if, for instance, CONFIG_SHELL is bash and it inherits a
2455       # broken ls alias from the environment.  This has actually
2456       # happened.  Such a system could not be considered "sane".
2457       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2458 alias in your environment" "$LINENO" 5
2459    fi
2460
2461    test "$2" = conftest.file
2462    )
2463 then
2464    # Ok.
2465    :
2466 else
2467    as_fn_error $? "newly created file is older than distributed files!
2468 Check your system clock" "$LINENO" 5
2469 fi
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2471 $as_echo "yes" >&6; }
2472 test "$program_prefix" != NONE &&
2473   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2474 # Use a double $ so make ignores it.
2475 test "$program_suffix" != NONE &&
2476   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2477 # Double any \ or $.
2478 # By default was `s,x,x', remove it if useless.
2479 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2480 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2481
2482 # expand $ac_aux_dir to an absolute path
2483 am_aux_dir=`cd $ac_aux_dir && pwd`
2484
2485 if test x"${MISSING+set}" != xset; then
2486   case $am_aux_dir in
2487   *\ * | *\     *)
2488     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2489   *)
2490     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2491   esac
2492 fi
2493 # Use eval to expand $SHELL
2494 if eval "$MISSING --run true"; then
2495   am_missing_run="$MISSING --run "
2496 else
2497   am_missing_run=
2498   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2499 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2500 fi
2501
2502 if test x"${install_sh}" != xset; then
2503   case $am_aux_dir in
2504   *\ * | *\     *)
2505     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2506   *)
2507     install_sh="\${SHELL} $am_aux_dir/install-sh"
2508   esac
2509 fi
2510
2511 # Installed binaries are usually stripped using `strip' when the user
2512 # run `make install-strip'.  However `strip' might not be the right
2513 # tool to use in cross-compilation environments, therefore Automake
2514 # will honor the `STRIP' environment variable to overrule this program.
2515 if test "$cross_compiling" != no; then
2516   if test -n "$ac_tool_prefix"; then
2517   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2518 set dummy ${ac_tool_prefix}strip; ac_word=$2
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520 $as_echo_n "checking for $ac_word... " >&6; }
2521 if ${ac_cv_prog_STRIP+:} false; then :
2522   $as_echo_n "(cached) " >&6
2523 else
2524   if test -n "$STRIP"; then
2525   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530   IFS=$as_save_IFS
2531   test -z "$as_dir" && as_dir=.
2532     for ac_exec_ext in '' $ac_executable_extensions; do
2533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2534     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2536     break 2
2537   fi
2538 done
2539   done
2540 IFS=$as_save_IFS
2541
2542 fi
2543 fi
2544 STRIP=$ac_cv_prog_STRIP
2545 if test -n "$STRIP"; then
2546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2547 $as_echo "$STRIP" >&6; }
2548 else
2549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2550 $as_echo "no" >&6; }
2551 fi
2552
2553
2554 fi
2555 if test -z "$ac_cv_prog_STRIP"; then
2556   ac_ct_STRIP=$STRIP
2557   # Extract the first word of "strip", so it can be a program name with args.
2558 set dummy strip; ac_word=$2
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560 $as_echo_n "checking for $ac_word... " >&6; }
2561 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2562   $as_echo_n "(cached) " >&6
2563 else
2564   if test -n "$ac_ct_STRIP"; then
2565   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2569 do
2570   IFS=$as_save_IFS
2571   test -z "$as_dir" && as_dir=.
2572     for ac_exec_ext in '' $ac_executable_extensions; do
2573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2574     ac_cv_prog_ac_ct_STRIP="strip"
2575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576     break 2
2577   fi
2578 done
2579   done
2580 IFS=$as_save_IFS
2581
2582 fi
2583 fi
2584 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2585 if test -n "$ac_ct_STRIP"; then
2586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2587 $as_echo "$ac_ct_STRIP" >&6; }
2588 else
2589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590 $as_echo "no" >&6; }
2591 fi
2592
2593   if test "x$ac_ct_STRIP" = x; then
2594     STRIP=":"
2595   else
2596     case $cross_compiling:$ac_tool_warned in
2597 yes:)
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2600 ac_tool_warned=yes ;;
2601 esac
2602     STRIP=$ac_ct_STRIP
2603   fi
2604 else
2605   STRIP="$ac_cv_prog_STRIP"
2606 fi
2607
2608 fi
2609 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2610
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2612 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2613 if test -z "$MKDIR_P"; then
2614   if ${ac_cv_path_mkdir+:} false; then :
2615   $as_echo_n "(cached) " >&6
2616 else
2617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2619 do
2620   IFS=$as_save_IFS
2621   test -z "$as_dir" && as_dir=.
2622     for ac_prog in mkdir gmkdir; do
2623          for ac_exec_ext in '' $ac_executable_extensions; do
2624            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2625            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2626              'mkdir (GNU coreutils) '* | \
2627              'mkdir (coreutils) '* | \
2628              'mkdir (fileutils) '4.1*)
2629                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2630                break 3;;
2631            esac
2632          done
2633        done
2634   done
2635 IFS=$as_save_IFS
2636
2637 fi
2638
2639   test -d ./--version && rmdir ./--version
2640   if test "${ac_cv_path_mkdir+set}" = set; then
2641     MKDIR_P="$ac_cv_path_mkdir -p"
2642   else
2643     # As a last resort, use the slow shell script.  Don't cache a
2644     # value for MKDIR_P within a source directory, because that will
2645     # break other packages using the cache if that directory is
2646     # removed, or if the value is a relative name.
2647     MKDIR_P="$ac_install_sh -d"
2648   fi
2649 fi
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2651 $as_echo "$MKDIR_P" >&6; }
2652
2653 mkdir_p="$MKDIR_P"
2654 case $mkdir_p in
2655   [\\/$]* | ?:[\\/]*) ;;
2656   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2657 esac
2658
2659 for ac_prog in gawk mawk nawk awk
2660 do
2661   # Extract the first word of "$ac_prog", so it can be a program name with args.
2662 set dummy $ac_prog; ac_word=$2
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if ${ac_cv_prog_AWK+:} false; then :
2666   $as_echo_n "(cached) " >&6
2667 else
2668   if test -n "$AWK"; then
2669   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674   IFS=$as_save_IFS
2675   test -z "$as_dir" && as_dir=.
2676     for ac_exec_ext in '' $ac_executable_extensions; do
2677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678     ac_cv_prog_AWK="$ac_prog"
2679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680     break 2
2681   fi
2682 done
2683   done
2684 IFS=$as_save_IFS
2685
2686 fi
2687 fi
2688 AWK=$ac_cv_prog_AWK
2689 if test -n "$AWK"; then
2690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2691 $as_echo "$AWK" >&6; }
2692 else
2693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 $as_echo "no" >&6; }
2695 fi
2696
2697
2698   test -n "$AWK" && break
2699 done
2700
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2702 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2703 set x ${MAKE-make}
2704 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2705 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2706   $as_echo_n "(cached) " >&6
2707 else
2708   cat >conftest.make <<\_ACEOF
2709 SHELL = /bin/sh
2710 all:
2711         @echo '@@@%%%=$(MAKE)=@@@%%%'
2712 _ACEOF
2713 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2714 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2715   *@@@%%%=?*=@@@%%%*)
2716     eval ac_cv_prog_make_${ac_make}_set=yes;;
2717   *)
2718     eval ac_cv_prog_make_${ac_make}_set=no;;
2719 esac
2720 rm -f conftest.make
2721 fi
2722 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2724 $as_echo "yes" >&6; }
2725   SET_MAKE=
2726 else
2727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2729   SET_MAKE="MAKE=${MAKE-make}"
2730 fi
2731
2732 rm -rf .tst 2>/dev/null
2733 mkdir .tst 2>/dev/null
2734 if test -d .tst; then
2735   am__leading_dot=.
2736 else
2737   am__leading_dot=_
2738 fi
2739 rmdir .tst 2>/dev/null
2740
2741 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2742   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2743   # is not polluted with repeated "-I."
2744   am__isrc=' -I$(srcdir)'
2745   # test to see if srcdir already configured
2746   if test -f $srcdir/config.status; then
2747     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2748   fi
2749 fi
2750
2751 # test whether we have cygpath
2752 if test -z "$CYGPATH_W"; then
2753   if (cygpath --version) >/dev/null 2>/dev/null; then
2754     CYGPATH_W='cygpath -w'
2755   else
2756     CYGPATH_W=echo
2757   fi
2758 fi
2759
2760
2761 # Define the identity of the package.
2762  PACKAGE='moonshot-ui'
2763  VERSION='0.5'
2764
2765
2766 cat >>confdefs.h <<_ACEOF
2767 #define PACKAGE "$PACKAGE"
2768 _ACEOF
2769
2770
2771 cat >>confdefs.h <<_ACEOF
2772 #define VERSION "$VERSION"
2773 _ACEOF
2774
2775 # Some tools Automake needs.
2776
2777 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2778
2779
2780 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2781
2782
2783 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2784
2785
2786 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2787
2788
2789 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2790
2791 # We need awk for the "check" target.  The system "awk" is bad on
2792 # some platforms.
2793 # Always define AMTAR for backward compatibility.  Yes, it's still used
2794 # in the wild :-(  We should find a proper way to deprecate it ...
2795 AMTAR='$${TAR-tar}'
2796
2797
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2799 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2800 # Loop over all known methods to create a tar archive until one works.
2801 _am_tools='gnutar  pax cpio none'
2802 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2803 # Do not fold the above two line into one, because Tru64 sh and
2804 # Solaris sh will not grok spaces in the rhs of `-'.
2805 for _am_tool in $_am_tools
2806 do
2807   case $_am_tool in
2808   gnutar)
2809     for _am_tar in tar gnutar gtar;
2810     do
2811       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2812    ($_am_tar --version) >&5 2>&5
2813    ac_status=$?
2814    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815    (exit $ac_status); } && break
2816     done
2817     am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2818     am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2819     am__untar="$_am_tar -xf -"
2820     ;;
2821   plaintar)
2822     # Must skip GNU tar: if it does not support --format= it doesn't create
2823     # ustar tarball either.
2824     (tar --version) >/dev/null 2>&1 && continue
2825     am__tar='tar chf - "$$tardir"'
2826     am__tar_='tar chf - "$tardir"'
2827     am__untar='tar xf -'
2828     ;;
2829   pax)
2830     am__tar='pax -L -x pax -w "$$tardir"'
2831     am__tar_='pax -L -x pax -w "$tardir"'
2832     am__untar='pax -r'
2833     ;;
2834   cpio)
2835     am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2836     am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2837     am__untar='cpio -i -H pax -d'
2838     ;;
2839   none)
2840     am__tar=false
2841     am__tar_=false
2842     am__untar=false
2843     ;;
2844   esac
2845
2846   # If the value was cached, stop now.  We just wanted to have am__tar
2847   # and am__untar set.
2848   test -n "${am_cv_prog_tar_pax}" && break
2849
2850   # tar/untar a dummy directory, and stop if the command works
2851   rm -rf conftest.dir
2852   mkdir conftest.dir
2853   echo GrepMe > conftest.dir/file
2854   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2855    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2856    ac_status=$?
2857    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858    (exit $ac_status); }
2859   rm -rf conftest.dir
2860   if test -s conftest.tar; then
2861     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2862    ($am__untar <conftest.tar) >&5 2>&5
2863    ac_status=$?
2864    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865    (exit $ac_status); }
2866     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2867   fi
2868 done
2869 rm -rf conftest.dir
2870
2871 if ${am_cv_prog_tar_pax+:} false; then :
2872   $as_echo_n "(cached) " >&6
2873 else
2874   am_cv_prog_tar_pax=$_am_tool
2875 fi
2876
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2878 $as_echo "$am_cv_prog_tar_pax" >&6; }
2879
2880
2881
2882
2883
2884 # Check whether --enable-silent-rules was given.
2885 if test "${enable_silent_rules+set}" = set; then :
2886   enableval=$enable_silent_rules;
2887 fi
2888
2889 case $enable_silent_rules in
2890 yes) AM_DEFAULT_VERBOSITY=0;;
2891 no)  AM_DEFAULT_VERBOSITY=1;;
2892 *)   AM_DEFAULT_VERBOSITY=0;;
2893 esac
2894 am_make=${MAKE-make}
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2896 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2897 if ${am_cv_make_support_nested_variables+:} false; then :
2898   $as_echo_n "(cached) " >&6
2899 else
2900   if $as_echo 'TRUE=$(BAR$(V))
2901 BAR0=false
2902 BAR1=true
2903 V=1
2904 am__doit:
2905         @$(TRUE)
2906 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2907   am_cv_make_support_nested_variables=yes
2908 else
2909   am_cv_make_support_nested_variables=no
2910 fi
2911 fi
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2913 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2914 if test $am_cv_make_support_nested_variables = yes; then
2915     AM_V='$(V)'
2916   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2917 else
2918   AM_V=$AM_DEFAULT_VERBOSITY
2919   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2920 fi
2921 AM_BACKSLASH='\'
2922
2923
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2925 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2926     # Check whether --enable-maintainer-mode was given.
2927 if test "${enable_maintainer_mode+set}" = set; then :
2928   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2929 else
2930   USE_MAINTAINER_MODE=yes
2931 fi
2932
2933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2934 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2935    if test $USE_MAINTAINER_MODE = yes; then
2936   MAINTAINER_MODE_TRUE=
2937   MAINTAINER_MODE_FALSE='#'
2938 else
2939   MAINTAINER_MODE_TRUE='#'
2940   MAINTAINER_MODE_FALSE=
2941 fi
2942
2943   MAINT=$MAINTAINER_MODE_TRUE
2944
2945
2946
2947
2948 case `pwd` in
2949   *\ * | *\     *)
2950     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2951 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2952 esac
2953
2954
2955
2956 macro_version='2.4.2'
2957 macro_revision='1.3337'
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971 ltmain="$ac_aux_dir/ltmain.sh"
2972
2973 # Make sure we can run config.sub.
2974 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2975   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2976
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2978 $as_echo_n "checking build system type... " >&6; }
2979 if ${ac_cv_build+:} false; then :
2980   $as_echo_n "(cached) " >&6
2981 else
2982   ac_build_alias=$build_alias
2983 test "x$ac_build_alias" = x &&
2984   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2985 test "x$ac_build_alias" = x &&
2986   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2987 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2988   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2989
2990 fi
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2992 $as_echo "$ac_cv_build" >&6; }
2993 case $ac_cv_build in
2994 *-*-*) ;;
2995 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2996 esac
2997 build=$ac_cv_build
2998 ac_save_IFS=$IFS; IFS='-'
2999 set x $ac_cv_build
3000 shift
3001 build_cpu=$1
3002 build_vendor=$2
3003 shift; shift
3004 # Remember, the first character of IFS is used to create $*,
3005 # except with old shells:
3006 build_os=$*
3007 IFS=$ac_save_IFS
3008 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3009
3010
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3012 $as_echo_n "checking host system type... " >&6; }
3013 if ${ac_cv_host+:} false; then :
3014   $as_echo_n "(cached) " >&6
3015 else
3016   if test "x$host_alias" = x; then
3017   ac_cv_host=$ac_cv_build
3018 else
3019   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3020     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3021 fi
3022
3023 fi
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3025 $as_echo "$ac_cv_host" >&6; }
3026 case $ac_cv_host in
3027 *-*-*) ;;
3028 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3029 esac
3030 host=$ac_cv_host
3031 ac_save_IFS=$IFS; IFS='-'
3032 set x $ac_cv_host
3033 shift
3034 host_cpu=$1
3035 host_vendor=$2
3036 shift; shift
3037 # Remember, the first character of IFS is used to create $*,
3038 # except with old shells:
3039 host_os=$*
3040 IFS=$ac_save_IFS
3041 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3042
3043
3044 # Backslashify metacharacters that are still active within
3045 # double-quoted strings.
3046 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3047
3048 # Same as above, but do not quote variable references.
3049 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3050
3051 # Sed substitution to delay expansion of an escaped shell variable in a
3052 # double_quote_subst'ed string.
3053 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3054
3055 # Sed substitution to delay expansion of an escaped single quote.
3056 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3057
3058 # Sed substitution to avoid accidental globbing in evaled expressions
3059 no_glob_subst='s/\*/\\\*/g'
3060
3061 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3062 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3063 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3064
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3066 $as_echo_n "checking how to print strings... " >&6; }
3067 # Test print first, because it will be a builtin if present.
3068 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3069    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3070   ECHO='print -r --'
3071 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3072   ECHO='printf %s\n'
3073 else
3074   # Use this function as a fallback that always works.
3075   func_fallback_echo ()
3076   {
3077     eval 'cat <<_LTECHO_EOF
3078 $1
3079 _LTECHO_EOF'
3080   }
3081   ECHO='func_fallback_echo'
3082 fi
3083
3084 # func_echo_all arg...
3085 # Invoke $ECHO with all args, space-separated.
3086 func_echo_all ()
3087 {
3088     $ECHO ""
3089 }
3090
3091 case "$ECHO" in
3092   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3093 $as_echo "printf" >&6; } ;;
3094   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3095 $as_echo "print -r" >&6; } ;;
3096   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3097 $as_echo "cat" >&6; } ;;
3098 esac
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113 DEPDIR="${am__leading_dot}deps"
3114
3115 ac_config_commands="$ac_config_commands depfiles"
3116
3117
3118 am_make=${MAKE-make}
3119 cat > confinc << 'END'
3120 am__doit:
3121         @echo this is the am__doit target
3122 .PHONY: am__doit
3123 END
3124 # If we don't find an include directive, just comment out the code.
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3126 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3127 am__include="#"
3128 am__quote=
3129 _am_result=none
3130 # First try GNU make style include.
3131 echo "include confinc" > confmf
3132 # Ignore all kinds of additional output from `make'.
3133 case `$am_make -s -f confmf 2> /dev/null` in #(
3134 *the\ am__doit\ target*)
3135   am__include=include
3136   am__quote=
3137   _am_result=GNU
3138   ;;
3139 esac
3140 # Now try BSD make style include.
3141 if test "$am__include" = "#"; then
3142    echo '.include "confinc"' > confmf
3143    case `$am_make -s -f confmf 2> /dev/null` in #(
3144    *the\ am__doit\ target*)
3145      am__include=.include
3146      am__quote="\""
3147      _am_result=BSD
3148      ;;
3149    esac
3150 fi
3151
3152
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3154 $as_echo "$_am_result" >&6; }
3155 rm -f confinc confmf
3156
3157 # Check whether --enable-dependency-tracking was given.
3158 if test "${enable_dependency_tracking+set}" = set; then :
3159   enableval=$enable_dependency_tracking;
3160 fi
3161
3162 if test "x$enable_dependency_tracking" != xno; then
3163   am_depcomp="$ac_aux_dir/depcomp"
3164   AMDEPBACKSLASH='\'
3165   am__nodep='_no'
3166 fi
3167  if test "x$enable_dependency_tracking" != xno; then
3168   AMDEP_TRUE=
3169   AMDEP_FALSE='#'
3170 else
3171   AMDEP_TRUE='#'
3172   AMDEP_FALSE=
3173 fi
3174
3175
3176 ac_ext=c
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181 if test -n "$ac_tool_prefix"; then
3182   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3183 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if ${ac_cv_prog_CC+:} false; then :
3187   $as_echo_n "(cached) " >&6
3188 else
3189   if test -n "$CC"; then
3190   ac_cv_prog_CC="$CC" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195   IFS=$as_save_IFS
3196   test -z "$as_dir" && as_dir=.
3197     for ac_exec_ext in '' $ac_executable_extensions; do
3198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201     break 2
3202   fi
3203 done
3204   done
3205 IFS=$as_save_IFS
3206
3207 fi
3208 fi
3209 CC=$ac_cv_prog_CC
3210 if test -n "$CC"; then
3211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3212 $as_echo "$CC" >&6; }
3213 else
3214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216 fi
3217
3218
3219 fi
3220 if test -z "$ac_cv_prog_CC"; then
3221   ac_ct_CC=$CC
3222   # Extract the first word of "gcc", so it can be a program name with args.
3223 set dummy gcc; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3227   $as_echo_n "(cached) " >&6
3228 else
3229   if test -n "$ac_ct_CC"; then
3230   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235   IFS=$as_save_IFS
3236   test -z "$as_dir" && as_dir=.
3237     for ac_exec_ext in '' $ac_executable_extensions; do
3238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239     ac_cv_prog_ac_ct_CC="gcc"
3240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241     break 2
3242   fi
3243 done
3244   done
3245 IFS=$as_save_IFS
3246
3247 fi
3248 fi
3249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3250 if test -n "$ac_ct_CC"; then
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3252 $as_echo "$ac_ct_CC" >&6; }
3253 else
3254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 fi
3257
3258   if test "x$ac_ct_CC" = x; then
3259     CC=""
3260   else
3261     case $cross_compiling:$ac_tool_warned in
3262 yes:)
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3265 ac_tool_warned=yes ;;
3266 esac
3267     CC=$ac_ct_CC
3268   fi
3269 else
3270   CC="$ac_cv_prog_CC"
3271 fi
3272
3273 if test -z "$CC"; then
3274           if test -n "$ac_tool_prefix"; then
3275     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3276 set dummy ${ac_tool_prefix}cc; ac_word=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if ${ac_cv_prog_CC+:} false; then :
3280   $as_echo_n "(cached) " >&6
3281 else
3282   if test -n "$CC"; then
3283   ac_cv_prog_CC="$CC" # Let the user override the test.
3284 else
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3287 do
3288   IFS=$as_save_IFS
3289   test -z "$as_dir" && as_dir=.
3290     for ac_exec_ext in '' $ac_executable_extensions; do
3291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292     ac_cv_prog_CC="${ac_tool_prefix}cc"
3293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294     break 2
3295   fi
3296 done
3297   done
3298 IFS=$as_save_IFS
3299
3300 fi
3301 fi
3302 CC=$ac_cv_prog_CC
3303 if test -n "$CC"; then
3304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3305 $as_echo "$CC" >&6; }
3306 else
3307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3309 fi
3310
3311
3312   fi
3313 fi
3314 if test -z "$CC"; then
3315   # Extract the first word of "cc", so it can be a program name with args.
3316 set dummy cc; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_CC+:} false; then :
3320   $as_echo_n "(cached) " >&6
3321 else
3322   if test -n "$CC"; then
3323   ac_cv_prog_CC="$CC" # Let the user override the test.
3324 else
3325   ac_prog_rejected=no
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3328 do
3329   IFS=$as_save_IFS
3330   test -z "$as_dir" && as_dir=.
3331     for ac_exec_ext in '' $ac_executable_extensions; do
3332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3334        ac_prog_rejected=yes
3335        continue
3336      fi
3337     ac_cv_prog_CC="cc"
3338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339     break 2
3340   fi
3341 done
3342   done
3343 IFS=$as_save_IFS
3344
3345 if test $ac_prog_rejected = yes; then
3346   # We found a bogon in the path, so make sure we never use it.
3347   set dummy $ac_cv_prog_CC
3348   shift
3349   if test $# != 0; then
3350     # We chose a different compiler from the bogus one.
3351     # However, it has the same basename, so the bogon will be chosen
3352     # first if we set CC to just the basename; use the full file name.
3353     shift
3354     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3355   fi
3356 fi
3357 fi
3358 fi
3359 CC=$ac_cv_prog_CC
3360 if test -n "$CC"; then
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362 $as_echo "$CC" >&6; }
3363 else
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 fi
3367
3368
3369 fi
3370 if test -z "$CC"; then
3371   if test -n "$ac_tool_prefix"; then
3372   for ac_prog in cl.exe
3373   do
3374     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3375 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_CC+:} false; then :
3379   $as_echo_n "(cached) " >&6
3380 else
3381   if test -n "$CC"; then
3382   ac_cv_prog_CC="$CC" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3386 do
3387   IFS=$as_save_IFS
3388   test -z "$as_dir" && as_dir=.
3389     for ac_exec_ext in '' $ac_executable_extensions; do
3390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393     break 2
3394   fi
3395 done
3396   done
3397 IFS=$as_save_IFS
3398
3399 fi
3400 fi
3401 CC=$ac_cv_prog_CC
3402 if test -n "$CC"; then
3403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3404 $as_echo "$CC" >&6; }
3405 else
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 fi
3409
3410
3411     test -n "$CC" && break
3412   done
3413 fi
3414 if test -z "$CC"; then
3415   ac_ct_CC=$CC
3416   for ac_prog in cl.exe
3417 do
3418   # Extract the first word of "$ac_prog", so it can be a program name with args.
3419 set dummy $ac_prog; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3423   $as_echo_n "(cached) " >&6
3424 else
3425   if test -n "$ac_ct_CC"; then
3426   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431   IFS=$as_save_IFS
3432   test -z "$as_dir" && as_dir=.
3433     for ac_exec_ext in '' $ac_executable_extensions; do
3434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435     ac_cv_prog_ac_ct_CC="$ac_prog"
3436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437     break 2
3438   fi
3439 done
3440   done
3441 IFS=$as_save_IFS
3442
3443 fi
3444 fi
3445 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3446 if test -n "$ac_ct_CC"; then
3447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3448 $as_echo "$ac_ct_CC" >&6; }
3449 else
3450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3452 fi
3453
3454
3455   test -n "$ac_ct_CC" && break
3456 done
3457
3458   if test "x$ac_ct_CC" = x; then
3459     CC=""
3460   else
3461     case $cross_compiling:$ac_tool_warned in
3462 yes:)
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3465 ac_tool_warned=yes ;;
3466 esac
3467     CC=$ac_ct_CC
3468   fi
3469 fi
3470
3471 fi
3472
3473
3474 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476 as_fn_error $? "no acceptable C compiler found in \$PATH
3477 See \`config.log' for more details" "$LINENO" 5; }
3478
3479 # Provide some information about the compiler.
3480 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3481 set X $ac_compile
3482 ac_compiler=$2
3483 for ac_option in --version -v -V -qversion; do
3484   { { ac_try="$ac_compiler $ac_option >&5"
3485 case "(($ac_try" in
3486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487   *) ac_try_echo=$ac_try;;
3488 esac
3489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490 $as_echo "$ac_try_echo"; } >&5
3491   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3492   ac_status=$?
3493   if test -s conftest.err; then
3494     sed '10a\
3495 ... rest of stderr output deleted ...
3496          10q' conftest.err >conftest.er1
3497     cat conftest.er1 >&5
3498   fi
3499   rm -f conftest.er1 conftest.err
3500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501   test $ac_status = 0; }
3502 done
3503
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h.  */
3506
3507 int
3508 main ()
3509 {
3510
3511   ;
3512   return 0;
3513 }
3514 _ACEOF
3515 ac_clean_files_save=$ac_clean_files
3516 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3517 # Try to create an executable without -o first, disregard a.out.
3518 # It will help us diagnose broken compilers, and finding out an intuition
3519 # of exeext.
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3521 $as_echo_n "checking whether the C compiler works... " >&6; }
3522 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3523
3524 # The possible output files:
3525 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3526
3527 ac_rmfiles=
3528 for ac_file in $ac_files
3529 do
3530   case $ac_file in
3531     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3532     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3533   esac
3534 done
3535 rm -f $ac_rmfiles
3536
3537 if { { ac_try="$ac_link_default"
3538 case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 $as_echo "$ac_try_echo"; } >&5
3544   (eval "$ac_link_default") 2>&5
3545   ac_status=$?
3546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547   test $ac_status = 0; }; then :
3548   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3549 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3550 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3551 # so that the user can short-circuit this test for compilers unknown to
3552 # Autoconf.
3553 for ac_file in $ac_files ''
3554 do
3555   test -f "$ac_file" || continue
3556   case $ac_file in
3557     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3558         ;;
3559     [ab].out )
3560         # We found the default executable, but exeext='' is most
3561         # certainly right.
3562         break;;
3563     *.* )
3564         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3565         then :; else
3566            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3567         fi
3568         # We set ac_cv_exeext here because the later test for it is not
3569         # safe: cross compilers may not add the suffix if given an `-o'
3570         # argument, so we may need to know it at that point already.
3571         # Even if this section looks crufty: it has the advantage of
3572         # actually working.
3573         break;;
3574     * )
3575         break;;
3576   esac
3577 done
3578 test "$ac_cv_exeext" = no && ac_cv_exeext=
3579
3580 else
3581   ac_file=''
3582 fi
3583 if test -z "$ac_file"; then :
3584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3586 $as_echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3588
3589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591 as_fn_error 77 "C compiler cannot create executables
3592 See \`config.log' for more details" "$LINENO" 5; }
3593 else
3594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3595 $as_echo "yes" >&6; }
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3598 $as_echo_n "checking for C compiler default output file name... " >&6; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3600 $as_echo "$ac_file" >&6; }
3601 ac_exeext=$ac_cv_exeext
3602
3603 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3604 ac_clean_files=$ac_clean_files_save
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3606 $as_echo_n "checking for suffix of executables... " >&6; }
3607 if { { ac_try="$ac_link"
3608 case "(($ac_try" in
3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610   *) ac_try_echo=$ac_try;;
3611 esac
3612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613 $as_echo "$ac_try_echo"; } >&5
3614   (eval "$ac_link") 2>&5
3615   ac_status=$?
3616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617   test $ac_status = 0; }; then :
3618   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3619 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3620 # work properly (i.e., refer to `conftest.exe'), while it won't with
3621 # `rm'.
3622 for ac_file in conftest.exe conftest conftest.*; do
3623   test -f "$ac_file" || continue
3624   case $ac_file in
3625     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3626     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3627           break;;
3628     * ) break;;
3629   esac
3630 done
3631 else
3632   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3635 See \`config.log' for more details" "$LINENO" 5; }
3636 fi
3637 rm -f conftest conftest$ac_cv_exeext
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3639 $as_echo "$ac_cv_exeext" >&6; }
3640
3641 rm -f conftest.$ac_ext
3642 EXEEXT=$ac_cv_exeext
3643 ac_exeext=$EXEEXT
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h.  */
3646 #include <stdio.h>
3647 int
3648 main ()
3649 {
3650 FILE *f = fopen ("conftest.out", "w");
3651  return ferror (f) || fclose (f) != 0;
3652
3653   ;
3654   return 0;
3655 }
3656 _ACEOF
3657 ac_clean_files="$ac_clean_files conftest.out"
3658 # Check that the compiler produces executables we can run.  If not, either
3659 # the compiler is broken, or we cross compile.
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3661 $as_echo_n "checking whether we are cross compiling... " >&6; }
3662 if test "$cross_compiling" != yes; then
3663   { { ac_try="$ac_link"
3664 case "(($ac_try" in
3665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666   *) ac_try_echo=$ac_try;;
3667 esac
3668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 $as_echo "$ac_try_echo"; } >&5
3670   (eval "$ac_link") 2>&5
3671   ac_status=$?
3672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673   test $ac_status = 0; }
3674   if { ac_try='./conftest$ac_cv_exeext'
3675   { { case "(($ac_try" in
3676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677   *) ac_try_echo=$ac_try;;
3678 esac
3679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3680 $as_echo "$ac_try_echo"; } >&5
3681   (eval "$ac_try") 2>&5
3682   ac_status=$?
3683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3684   test $ac_status = 0; }; }; then
3685     cross_compiling=no
3686   else
3687     if test "$cross_compiling" = maybe; then
3688         cross_compiling=yes
3689     else
3690         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692 as_fn_error $? "cannot run C compiled programs.
3693 If you meant to cross compile, use \`--host'.
3694 See \`config.log' for more details" "$LINENO" 5; }
3695     fi
3696   fi
3697 fi
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3699 $as_echo "$cross_compiling" >&6; }
3700
3701 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3702 ac_clean_files=$ac_clean_files_save
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3704 $as_echo_n "checking for suffix of object files... " >&6; }
3705 if ${ac_cv_objext+:} false; then :
3706   $as_echo_n "(cached) " >&6
3707 else
3708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h.  */
3710
3711 int
3712 main ()
3713 {
3714
3715   ;
3716   return 0;
3717 }
3718 _ACEOF
3719 rm -f conftest.o conftest.obj
3720 if { { ac_try="$ac_compile"
3721 case "(($ac_try" in
3722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723   *) ac_try_echo=$ac_try;;
3724 esac
3725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3726 $as_echo "$ac_try_echo"; } >&5
3727   (eval "$ac_compile") 2>&5
3728   ac_status=$?
3729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730   test $ac_status = 0; }; then :
3731   for ac_file in conftest.o conftest.obj conftest.*; do
3732   test -f "$ac_file" || continue;
3733   case $ac_file in
3734     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3735     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3736        break;;
3737   esac
3738 done
3739 else
3740   $as_echo "$as_me: failed program was:" >&5
3741 sed 's/^/| /' conftest.$ac_ext >&5
3742
3743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745 as_fn_error $? "cannot compute suffix of object files: cannot compile
3746 See \`config.log' for more details" "$LINENO" 5; }
3747 fi
3748 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3751 $as_echo "$ac_cv_objext" >&6; }
3752 OBJEXT=$ac_cv_objext
3753 ac_objext=$OBJEXT
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3755 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3756 if ${ac_cv_c_compiler_gnu+:} false; then :
3757   $as_echo_n "(cached) " >&6
3758 else
3759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h.  */
3761
3762 int
3763 main ()
3764 {
3765 #ifndef __GNUC__
3766        choke me
3767 #endif
3768
3769   ;
3770   return 0;
3771 }
3772 _ACEOF
3773 if ac_fn_c_try_compile "$LINENO"; then :
3774   ac_compiler_gnu=yes
3775 else
3776   ac_compiler_gnu=no
3777 fi
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3780
3781 fi
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3783 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3784 if test $ac_compiler_gnu = yes; then
3785   GCC=yes
3786 else
3787   GCC=
3788 fi
3789 ac_test_CFLAGS=${CFLAGS+set}
3790 ac_save_CFLAGS=$CFLAGS
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3792 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3793 if ${ac_cv_prog_cc_g+:} false; then :
3794   $as_echo_n "(cached) " >&6
3795 else
3796   ac_save_c_werror_flag=$ac_c_werror_flag
3797    ac_c_werror_flag=yes
3798    ac_cv_prog_cc_g=no
3799    CFLAGS="-g"
3800    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h.  */
3802
3803 int
3804 main ()
3805 {
3806
3807   ;
3808   return 0;
3809 }
3810 _ACEOF
3811 if ac_fn_c_try_compile "$LINENO"; then :
3812   ac_cv_prog_cc_g=yes
3813 else
3814   CFLAGS=""
3815       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h.  */
3817
3818 int
3819 main ()
3820 {
3821
3822   ;
3823   return 0;
3824 }
3825 _ACEOF
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827
3828 else
3829   ac_c_werror_flag=$ac_save_c_werror_flag
3830          CFLAGS="-g"
3831          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h.  */
3833
3834 int
3835 main ()
3836 {
3837
3838   ;
3839   return 0;
3840 }
3841 _ACEOF
3842 if ac_fn_c_try_compile "$LINENO"; then :
3843   ac_cv_prog_cc_g=yes
3844 fi
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 fi
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850    ac_c_werror_flag=$ac_save_c_werror_flag
3851 fi
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3853 $as_echo "$ac_cv_prog_cc_g" >&6; }
3854 if test "$ac_test_CFLAGS" = set; then
3855   CFLAGS=$ac_save_CFLAGS
3856 elif test $ac_cv_prog_cc_g = yes; then
3857   if test "$GCC" = yes; then
3858     CFLAGS="-g -O2"
3859   else
3860     CFLAGS="-g"
3861   fi
3862 else
3863   if test "$GCC" = yes; then
3864     CFLAGS="-O2"
3865   else
3866     CFLAGS=
3867   fi
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3870 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3871 if ${ac_cv_prog_cc_c89+:} false; then :
3872   $as_echo_n "(cached) " >&6
3873 else
3874   ac_cv_prog_cc_c89=no
3875 ac_save_CC=$CC
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h.  */
3878 #include <stdarg.h>
3879 #include <stdio.h>
3880 struct stat;
3881 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3882 struct buf { int x; };
3883 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3884 static char *e (p, i)
3885      char **p;
3886      int i;
3887 {
3888   return p[i];
3889 }
3890 static char *f (char * (*g) (char **, int), char **p, ...)
3891 {
3892   char *s;
3893   va_list v;
3894   va_start (v,p);
3895   s = g (p, va_arg (v,int));
3896   va_end (v);
3897   return s;
3898 }
3899
3900 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3901    function prototypes and stuff, but not '\xHH' hex character constants.
3902    These don't provoke an error unfortunately, instead are silently treated
3903    as 'x'.  The following induces an error, until -std is added to get
3904    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3905    array size at least.  It's necessary to write '\x00'==0 to get something
3906    that's true only with -std.  */
3907 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3908
3909 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3910    inside strings and character constants.  */
3911 #define FOO(x) 'x'
3912 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3913
3914 int test (int i, double x);
3915 struct s1 {int (*f) (int a);};
3916 struct s2 {int (*f) (double a);};
3917 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3918 int argc;
3919 char **argv;
3920 int
3921 main ()
3922 {
3923 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3929         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3930 do
3931   CC="$ac_save_CC $ac_arg"
3932   if ac_fn_c_try_compile "$LINENO"; then :
3933   ac_cv_prog_cc_c89=$ac_arg
3934 fi
3935 rm -f core conftest.err conftest.$ac_objext
3936   test "x$ac_cv_prog_cc_c89" != "xno" && break
3937 done
3938 rm -f conftest.$ac_ext
3939 CC=$ac_save_CC
3940
3941 fi
3942 # AC_CACHE_VAL
3943 case "x$ac_cv_prog_cc_c89" in
3944   x)
3945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3946 $as_echo "none needed" >&6; } ;;
3947   xno)
3948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3949 $as_echo "unsupported" >&6; } ;;
3950   *)
3951     CC="$CC $ac_cv_prog_cc_c89"
3952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3953 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3954 esac
3955 if test "x$ac_cv_prog_cc_c89" != xno; then :
3956
3957 fi
3958
3959 ac_ext=c
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964
3965 depcc="$CC"   am_compiler_list=
3966
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3968 $as_echo_n "checking dependency style of $depcc... " >&6; }
3969 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3970   $as_echo_n "(cached) " >&6
3971 else
3972   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3973   # We make a subdir and do the tests there.  Otherwise we can end up
3974   # making bogus files that we don't know about and never remove.  For
3975   # instance it was reported that on HP-UX the gcc test will end up
3976   # making a dummy file named `D' -- because `-MD' means `put the output
3977   # in D'.
3978   rm -rf conftest.dir
3979   mkdir conftest.dir
3980   # Copy depcomp to subdir because otherwise we won't find it if we're
3981   # using a relative directory.
3982   cp "$am_depcomp" conftest.dir
3983   cd conftest.dir
3984   # We will build objects and dependencies in a subdirectory because
3985   # it helps to detect inapplicable dependency modes.  For instance
3986   # both Tru64's cc and ICC support -MD to output dependencies as a
3987   # side effect of compilation, but ICC will put the dependencies in
3988   # the current directory while Tru64 will put them in the object
3989   # directory.
3990   mkdir sub
3991
3992   am_cv_CC_dependencies_compiler_type=none
3993   if test "$am_compiler_list" = ""; then
3994      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3995   fi
3996   am__universal=false
3997   case " $depcc " in #(
3998      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3999      esac
4000
4001   for depmode in $am_compiler_list; do
4002     # Setup a source with many dependencies, because some compilers
4003     # like to wrap large dependency lists on column 80 (with \), and
4004     # we should not choose a depcomp mode which is confused by this.
4005     #
4006     # We need to recreate these files for each test, as the compiler may
4007     # overwrite some of them when testing with obscure command lines.
4008     # This happens at least with the AIX C compiler.
4009     : > sub/conftest.c
4010     for i in 1 2 3 4 5 6; do
4011       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4012       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4013       # Solaris 8's {/usr,}/bin/sh.
4014       touch sub/conftst$i.h
4015     done
4016     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4017
4018     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4019     # mode.  It turns out that the SunPro C++ compiler does not properly
4020     # handle `-M -o', and we need to detect this.  Also, some Intel
4021     # versions had trouble with output in subdirs
4022     am__obj=sub/conftest.${OBJEXT-o}
4023     am__minus_obj="-o $am__obj"
4024     case $depmode in
4025     gcc)
4026       # This depmode causes a compiler race in universal mode.
4027       test "$am__universal" = false || continue
4028       ;;
4029     nosideeffect)
4030       # after this tag, mechanisms are not by side-effect, so they'll
4031       # only be used when explicitly requested
4032       if test "x$enable_dependency_tracking" = xyes; then
4033         continue
4034       else
4035         break
4036       fi
4037       ;;
4038     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4039       # This compiler won't grok `-c -o', but also, the minuso test has
4040       # not run yet.  These depmodes are late enough in the game, and
4041       # so weak that their functioning should not be impacted.
4042       am__obj=conftest.${OBJEXT-o}
4043       am__minus_obj=
4044       ;;
4045     none) break ;;
4046     esac
4047     if depmode=$depmode \
4048        source=sub/conftest.c object=$am__obj \
4049        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4050        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4051          >/dev/null 2>conftest.err &&
4052        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4053        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4054        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4055        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4056       # icc doesn't choke on unknown options, it will just issue warnings
4057       # or remarks (even with -Werror).  So we grep stderr for any message
4058       # that says an option was ignored or not supported.
4059       # When given -MP, icc 7.0 and 7.1 complain thusly:
4060       #   icc: Command line warning: ignoring option '-M'; no argument required
4061       # The diagnosis changed in icc 8.0:
4062       #   icc: Command line remark: option '-MP' not supported
4063       if (grep 'ignoring option' conftest.err ||
4064           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4065         am_cv_CC_dependencies_compiler_type=$depmode
4066         break
4067       fi
4068     fi
4069   done
4070
4071   cd ..
4072   rm -rf conftest.dir
4073 else
4074   am_cv_CC_dependencies_compiler_type=none
4075 fi
4076
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4079 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4080 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4081
4082  if
4083   test "x$enable_dependency_tracking" != xno \
4084   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4085   am__fastdepCC_TRUE=
4086   am__fastdepCC_FALSE='#'
4087 else
4088   am__fastdepCC_TRUE='#'
4089   am__fastdepCC_FALSE=
4090 fi
4091
4092
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4094 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4095 if ${ac_cv_path_SED+:} false; then :
4096   $as_echo_n "(cached) " >&6
4097 else
4098             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4099      for ac_i in 1 2 3 4 5 6 7; do
4100        ac_script="$ac_script$as_nl$ac_script"
4101      done
4102      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4103      { ac_script=; unset ac_script;}
4104      if test -z "$SED"; then
4105   ac_path_SED_found=false
4106   # Loop through the user's path and test for each of PROGNAME-LIST
4107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110   IFS=$as_save_IFS
4111   test -z "$as_dir" && as_dir=.
4112     for ac_prog in sed gsed; do
4113     for ac_exec_ext in '' $ac_executable_extensions; do
4114       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4115       as_fn_executable_p "$ac_path_SED" || continue
4116 # Check for GNU ac_path_SED and select it if it is found.
4117   # Check for GNU $ac_path_SED
4118 case `"$ac_path_SED" --version 2>&1` in
4119 *GNU*)
4120   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4121 *)
4122   ac_count=0
4123   $as_echo_n 0123456789 >"conftest.in"
4124   while :
4125   do
4126     cat "conftest.in" "conftest.in" >"conftest.tmp"
4127     mv "conftest.tmp" "conftest.in"
4128     cp "conftest.in" "conftest.nl"
4129     $as_echo '' >> "conftest.nl"
4130     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4131     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4132     as_fn_arith $ac_count + 1 && ac_count=$as_val
4133     if test $ac_count -gt ${ac_path_SED_max-0}; then
4134       # Best one so far, save it but keep looking for a better one
4135       ac_cv_path_SED="$ac_path_SED"
4136       ac_path_SED_max=$ac_count
4137     fi
4138     # 10*(2^10) chars as input seems more than enough
4139     test $ac_count -gt 10 && break
4140   done
4141   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4142 esac
4143
4144       $ac_path_SED_found && break 3
4145     done
4146   done
4147   done
4148 IFS=$as_save_IFS
4149   if test -z "$ac_cv_path_SED"; then
4150     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4151   fi
4152 else
4153   ac_cv_path_SED=$SED
4154 fi
4155
4156 fi
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4158 $as_echo "$ac_cv_path_SED" >&6; }
4159  SED="$ac_cv_path_SED"
4160   rm -f conftest.sed
4161
4162 test -z "$SED" && SED=sed
4163 Xsed="$SED -e 1s/^X//"
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4176 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4177 if ${ac_cv_path_GREP+:} false; then :
4178   $as_echo_n "(cached) " >&6
4179 else
4180   if test -z "$GREP"; then
4181   ac_path_GREP_found=false
4182   # Loop through the user's path and test for each of PROGNAME-LIST
4183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4185 do
4186   IFS=$as_save_IFS
4187   test -z "$as_dir" && as_dir=.
4188     for ac_prog in grep ggrep; do
4189     for ac_exec_ext in '' $ac_executable_extensions; do
4190       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4191       as_fn_executable_p "$ac_path_GREP" || continue
4192 # Check for GNU ac_path_GREP and select it if it is found.
4193   # Check for GNU $ac_path_GREP
4194 case `"$ac_path_GREP" --version 2>&1` in
4195 *GNU*)
4196   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4197 *)
4198   ac_count=0
4199   $as_echo_n 0123456789 >"conftest.in"
4200   while :
4201   do
4202     cat "conftest.in" "conftest.in" >"conftest.tmp"
4203     mv "conftest.tmp" "conftest.in"
4204     cp "conftest.in" "conftest.nl"
4205     $as_echo 'GREP' >> "conftest.nl"
4206     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208     as_fn_arith $ac_count + 1 && ac_count=$as_val
4209     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4210       # Best one so far, save it but keep looking for a better one
4211       ac_cv_path_GREP="$ac_path_GREP"
4212       ac_path_GREP_max=$ac_count
4213     fi
4214     # 10*(2^10) chars as input seems more than enough
4215     test $ac_count -gt 10 && break
4216   done
4217   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218 esac
4219
4220       $ac_path_GREP_found && break 3
4221     done
4222   done
4223   done
4224 IFS=$as_save_IFS
4225   if test -z "$ac_cv_path_GREP"; then
4226     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4227   fi
4228 else
4229   ac_cv_path_GREP=$GREP
4230 fi
4231
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4234 $as_echo "$ac_cv_path_GREP" >&6; }
4235  GREP="$ac_cv_path_GREP"
4236
4237
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4239 $as_echo_n "checking for egrep... " >&6; }
4240 if ${ac_cv_path_EGREP+:} false; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4244    then ac_cv_path_EGREP="$GREP -E"
4245    else
4246      if test -z "$EGREP"; then
4247   ac_path_EGREP_found=false
4248   # Loop through the user's path and test for each of PROGNAME-LIST
4249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4251 do
4252   IFS=$as_save_IFS
4253   test -z "$as_dir" && as_dir=.
4254     for ac_prog in egrep; do
4255     for ac_exec_ext in '' $ac_executable_extensions; do
4256       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4257       as_fn_executable_p "$ac_path_EGREP" || continue
4258 # Check for GNU ac_path_EGREP and select it if it is found.
4259   # Check for GNU $ac_path_EGREP
4260 case `"$ac_path_EGREP" --version 2>&1` in
4261 *GNU*)
4262   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4263 *)
4264   ac_count=0
4265   $as_echo_n 0123456789 >"conftest.in"
4266   while :
4267   do
4268     cat "conftest.in" "conftest.in" >"conftest.tmp"
4269     mv "conftest.tmp" "conftest.in"
4270     cp "conftest.in" "conftest.nl"
4271     $as_echo 'EGREP' >> "conftest.nl"
4272     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4273     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4274     as_fn_arith $ac_count + 1 && ac_count=$as_val
4275     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4276       # Best one so far, save it but keep looking for a better one
4277       ac_cv_path_EGREP="$ac_path_EGREP"
4278       ac_path_EGREP_max=$ac_count
4279     fi
4280     # 10*(2^10) chars as input seems more than enough
4281     test $ac_count -gt 10 && break
4282   done
4283   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4284 esac
4285
4286       $ac_path_EGREP_found && break 3
4287     done
4288   done
4289   done
4290 IFS=$as_save_IFS
4291   if test -z "$ac_cv_path_EGREP"; then
4292     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4293   fi
4294 else
4295   ac_cv_path_EGREP=$EGREP
4296 fi
4297
4298    fi
4299 fi
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4301 $as_echo "$ac_cv_path_EGREP" >&6; }
4302  EGREP="$ac_cv_path_EGREP"
4303
4304
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4306 $as_echo_n "checking for fgrep... " >&6; }
4307 if ${ac_cv_path_FGREP+:} false; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4311    then ac_cv_path_FGREP="$GREP -F"
4312    else
4313      if test -z "$FGREP"; then
4314   ac_path_FGREP_found=false
4315   # Loop through the user's path and test for each of PROGNAME-LIST
4316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4318 do
4319   IFS=$as_save_IFS
4320   test -z "$as_dir" && as_dir=.
4321     for ac_prog in fgrep; do
4322     for ac_exec_ext in '' $ac_executable_extensions; do
4323       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4324       as_fn_executable_p "$ac_path_FGREP" || continue
4325 # Check for GNU ac_path_FGREP and select it if it is found.
4326   # Check for GNU $ac_path_FGREP
4327 case `"$ac_path_FGREP" --version 2>&1` in
4328 *GNU*)
4329   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4330 *)
4331   ac_count=0
4332   $as_echo_n 0123456789 >"conftest.in"
4333   while :
4334   do
4335     cat "conftest.in" "conftest.in" >"conftest.tmp"
4336     mv "conftest.tmp" "conftest.in"
4337     cp "conftest.in" "conftest.nl"
4338     $as_echo 'FGREP' >> "conftest.nl"
4339     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4340     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4341     as_fn_arith $ac_count + 1 && ac_count=$as_val
4342     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4343       # Best one so far, save it but keep looking for a better one
4344       ac_cv_path_FGREP="$ac_path_FGREP"
4345       ac_path_FGREP_max=$ac_count
4346     fi
4347     # 10*(2^10) chars as input seems more than enough
4348     test $ac_count -gt 10 && break
4349   done
4350   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4351 esac
4352
4353       $ac_path_FGREP_found && break 3
4354     done
4355   done
4356   done
4357 IFS=$as_save_IFS
4358   if test -z "$ac_cv_path_FGREP"; then
4359     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4360   fi
4361 else
4362   ac_cv_path_FGREP=$FGREP
4363 fi
4364
4365    fi
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4368 $as_echo "$ac_cv_path_FGREP" >&6; }
4369  FGREP="$ac_cv_path_FGREP"
4370
4371
4372 test -z "$GREP" && GREP=grep
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392 # Check whether --with-gnu-ld was given.
4393 if test "${with_gnu_ld+set}" = set; then :
4394   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4395 else
4396   with_gnu_ld=no
4397 fi
4398
4399 ac_prog=ld
4400 if test "$GCC" = yes; then
4401   # Check if gcc -print-prog-name=ld gives a path.
4402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4403 $as_echo_n "checking for ld used by $CC... " >&6; }
4404   case $host in
4405   *-*-mingw*)
4406     # gcc leaves a trailing carriage return which upsets mingw
4407     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4408   *)
4409     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4410   esac
4411   case $ac_prog in
4412     # Accept absolute paths.
4413     [\\/]* | ?:[\\/]*)
4414       re_direlt='/[^/][^/]*/\.\./'
4415       # Canonicalize the pathname of ld
4416       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4417       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4418         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4419       done
4420       test -z "$LD" && LD="$ac_prog"
4421       ;;
4422   "")
4423     # If it fails, then pretend we aren't using GCC.
4424     ac_prog=ld
4425     ;;
4426   *)
4427     # If it is relative, then search for the first ld in PATH.
4428     with_gnu_ld=unknown
4429     ;;
4430   esac
4431 elif test "$with_gnu_ld" = yes; then
4432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4433 $as_echo_n "checking for GNU ld... " >&6; }
4434 else
4435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4436 $as_echo_n "checking for non-GNU ld... " >&6; }
4437 fi
4438 if ${lt_cv_path_LD+:} false; then :
4439   $as_echo_n "(cached) " >&6
4440 else
4441   if test -z "$LD"; then
4442   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4443   for ac_dir in $PATH; do
4444     IFS="$lt_save_ifs"
4445     test -z "$ac_dir" && ac_dir=.
4446     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4447       lt_cv_path_LD="$ac_dir/$ac_prog"
4448       # Check to see if the program is GNU ld.  I'd rather use --version,
4449       # but apparently some variants of GNU ld only accept -v.
4450       # Break only if it was the GNU/non-GNU ld that we prefer.
4451       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4452       *GNU* | *'with BFD'*)
4453         test "$with_gnu_ld" != no && break
4454         ;;
4455       *)
4456         test "$with_gnu_ld" != yes && break
4457         ;;
4458       esac
4459     fi
4460   done
4461   IFS="$lt_save_ifs"
4462 else
4463   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4464 fi
4465 fi
4466
4467 LD="$lt_cv_path_LD"
4468 if test -n "$LD"; then
4469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4470 $as_echo "$LD" >&6; }
4471 else
4472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4474 fi
4475 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4477 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4478 if ${lt_cv_prog_gnu_ld+:} false; then :
4479   $as_echo_n "(cached) " >&6
4480 else
4481   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4482 case `$LD -v 2>&1 </dev/null` in
4483 *GNU* | *'with BFD'*)
4484   lt_cv_prog_gnu_ld=yes
4485   ;;
4486 *)
4487   lt_cv_prog_gnu_ld=no
4488   ;;
4489 esac
4490 fi
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4492 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4493 with_gnu_ld=$lt_cv_prog_gnu_ld
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4504 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4505 if ${lt_cv_path_NM+:} false; then :
4506   $as_echo_n "(cached) " >&6
4507 else
4508   if test -n "$NM"; then
4509   # Let the user override the test.
4510   lt_cv_path_NM="$NM"
4511 else
4512   lt_nm_to_check="${ac_tool_prefix}nm"
4513   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4514     lt_nm_to_check="$lt_nm_to_check nm"
4515   fi
4516   for lt_tmp_nm in $lt_nm_to_check; do
4517     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4518     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4519       IFS="$lt_save_ifs"
4520       test -z "$ac_dir" && ac_dir=.
4521       tmp_nm="$ac_dir/$lt_tmp_nm"
4522       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4523         # Check to see if the nm accepts a BSD-compat flag.
4524         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4525         #   nm: unknown option "B" ignored
4526         # Tru64's nm complains that /dev/null is an invalid object file
4527         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4528         */dev/null* | *'Invalid file or object type'*)
4529           lt_cv_path_NM="$tmp_nm -B"
4530           break
4531           ;;
4532         *)
4533           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4534           */dev/null*)
4535             lt_cv_path_NM="$tmp_nm -p"
4536             break
4537             ;;
4538           *)
4539             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4540             continue # so that we can try to find one that supports BSD flags
4541             ;;
4542           esac
4543           ;;
4544         esac
4545       fi
4546     done
4547     IFS="$lt_save_ifs"
4548   done
4549   : ${lt_cv_path_NM=no}
4550 fi
4551 fi
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4553 $as_echo "$lt_cv_path_NM" >&6; }
4554 if test "$lt_cv_path_NM" != "no"; then
4555   NM="$lt_cv_path_NM"
4556 else
4557   # Didn't find any BSD compatible name lister, look for dumpbin.
4558   if test -n "$DUMPBIN"; then :
4559     # Let the user override the test.
4560   else
4561     if test -n "$ac_tool_prefix"; then
4562   for ac_prog in dumpbin "link -dump"
4563   do
4564     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 $as_echo_n "checking for $ac_word... " >&6; }
4568 if ${ac_cv_prog_DUMPBIN+:} false; then :
4569   $as_echo_n "(cached) " >&6
4570 else
4571   if test -n "$DUMPBIN"; then
4572   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4576 do
4577   IFS=$as_save_IFS
4578   test -z "$as_dir" && as_dir=.
4579     for ac_exec_ext in '' $ac_executable_extensions; do
4580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583     break 2
4584   fi
4585 done
4586   done
4587 IFS=$as_save_IFS
4588
4589 fi
4590 fi
4591 DUMPBIN=$ac_cv_prog_DUMPBIN
4592 if test -n "$DUMPBIN"; then
4593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4594 $as_echo "$DUMPBIN" >&6; }
4595 else
4596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4598 fi
4599
4600
4601     test -n "$DUMPBIN" && break
4602   done
4603 fi
4604 if test -z "$DUMPBIN"; then
4605   ac_ct_DUMPBIN=$DUMPBIN
4606   for ac_prog in dumpbin "link -dump"
4607 do
4608   # Extract the first word of "$ac_prog", so it can be a program name with args.
4609 set dummy $ac_prog; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4613   $as_echo_n "(cached) " >&6
4614 else
4615   if test -n "$ac_ct_DUMPBIN"; then
4616   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4620 do
4621   IFS=$as_save_IFS
4622   test -z "$as_dir" && as_dir=.
4623     for ac_exec_ext in '' $ac_executable_extensions; do
4624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4625     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627     break 2
4628   fi
4629 done
4630   done
4631 IFS=$as_save_IFS
4632
4633 fi
4634 fi
4635 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4636 if test -n "$ac_ct_DUMPBIN"; then
4637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4638 $as_echo "$ac_ct_DUMPBIN" >&6; }
4639 else
4640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4642 fi
4643
4644
4645   test -n "$ac_ct_DUMPBIN" && break
4646 done
4647
4648   if test "x$ac_ct_DUMPBIN" = x; then
4649     DUMPBIN=":"
4650   else
4651     case $cross_compiling:$ac_tool_warned in
4652 yes:)
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4655 ac_tool_warned=yes ;;
4656 esac
4657     DUMPBIN=$ac_ct_DUMPBIN
4658   fi
4659 fi
4660
4661     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4662     *COFF*)
4663       DUMPBIN="$DUMPBIN -symbols"
4664       ;;
4665     *)
4666       DUMPBIN=:
4667       ;;
4668     esac
4669   fi
4670
4671   if test "$DUMPBIN" != ":"; then
4672     NM="$DUMPBIN"
4673   fi
4674 fi
4675 test -z "$NM" && NM=nm
4676
4677
4678
4679
4680
4681
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4683 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4684 if ${lt_cv_nm_interface+:} false; then :
4685   $as_echo_n "(cached) " >&6
4686 else
4687   lt_cv_nm_interface="BSD nm"
4688   echo "int some_variable = 0;" > conftest.$ac_ext
4689   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4690   (eval "$ac_compile" 2>conftest.err)
4691   cat conftest.err >&5
4692   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4693   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4694   cat conftest.err >&5
4695   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4696   cat conftest.out >&5
4697   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4698     lt_cv_nm_interface="MS dumpbin"
4699   fi
4700   rm -f conftest*
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4703 $as_echo "$lt_cv_nm_interface" >&6; }
4704
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4706 $as_echo_n "checking whether ln -s works... " >&6; }
4707 LN_S=$as_ln_s
4708 if test "$LN_S" = "ln -s"; then
4709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4710 $as_echo "yes" >&6; }
4711 else
4712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4713 $as_echo "no, using $LN_S" >&6; }
4714 fi
4715
4716 # find the maximum length of command line arguments
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4718 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4719 if ${lt_cv_sys_max_cmd_len+:} false; then :
4720   $as_echo_n "(cached) " >&6
4721 else
4722     i=0
4723   teststring="ABCD"
4724
4725   case $build_os in
4726   msdosdjgpp*)
4727     # On DJGPP, this test can blow up pretty badly due to problems in libc
4728     # (any single argument exceeding 2000 bytes causes a buffer overrun
4729     # during glob expansion).  Even if it were fixed, the result of this
4730     # check would be larger than it should be.
4731     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4732     ;;
4733
4734   gnu*)
4735     # Under GNU Hurd, this test is not required because there is
4736     # no limit to the length of command line arguments.
4737     # Libtool will interpret -1 as no limit whatsoever
4738     lt_cv_sys_max_cmd_len=-1;
4739     ;;
4740
4741   cygwin* | mingw* | cegcc*)
4742     # On Win9x/ME, this test blows up -- it succeeds, but takes
4743     # about 5 minutes as the teststring grows exponentially.
4744     # Worse, since 9x/ME are not pre-emptively multitasking,
4745     # you end up with a "frozen" computer, even though with patience
4746     # the test eventually succeeds (with a max line length of 256k).
4747     # Instead, let's just punt: use the minimum linelength reported by
4748     # all of the supported platforms: 8192 (on NT/2K/XP).
4749     lt_cv_sys_max_cmd_len=8192;
4750     ;;
4751
4752   mint*)
4753     # On MiNT this can take a long time and run out of memory.
4754     lt_cv_sys_max_cmd_len=8192;
4755     ;;
4756
4757   amigaos*)
4758     # On AmigaOS with pdksh, this test takes hours, literally.
4759     # So we just punt and use a minimum line length of 8192.
4760     lt_cv_sys_max_cmd_len=8192;
4761     ;;
4762
4763   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4764     # This has been around since 386BSD, at least.  Likely further.
4765     if test -x /sbin/sysctl; then
4766       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4767     elif test -x /usr/sbin/sysctl; then
4768       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4769     else
4770       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4771     fi
4772     # And add a safety zone
4773     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4774     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4775     ;;
4776
4777   interix*)
4778     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4779     lt_cv_sys_max_cmd_len=196608
4780     ;;
4781
4782   os2*)
4783     # The test takes a long time on OS/2.
4784     lt_cv_sys_max_cmd_len=8192
4785     ;;
4786
4787   osf*)
4788     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4789     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4790     # nice to cause kernel panics so lets avoid the loop below.
4791     # First set a reasonable default.
4792     lt_cv_sys_max_cmd_len=16384
4793     #
4794     if test -x /sbin/sysconfig; then
4795       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4796         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4797       esac
4798     fi
4799     ;;
4800   sco3.2v5*)
4801     lt_cv_sys_max_cmd_len=102400
4802     ;;
4803   sysv5* | sco5v6* | sysv4.2uw2*)
4804     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4805     if test -n "$kargmax"; then
4806       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4807     else
4808       lt_cv_sys_max_cmd_len=32768
4809     fi
4810     ;;
4811   *)
4812     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4813     if test -n "$lt_cv_sys_max_cmd_len"; then
4814       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4815       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4816     else
4817       # Make teststring a little bigger before we do anything with it.
4818       # a 1K string should be a reasonable start.
4819       for i in 1 2 3 4 5 6 7 8 ; do
4820         teststring=$teststring$teststring
4821       done
4822       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4823       # If test is not a shell built-in, we'll probably end up computing a
4824       # maximum length that is only half of the actual maximum length, but
4825       # we can't tell.
4826       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4827                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4828               test $i != 17 # 1/2 MB should be enough
4829       do
4830         i=`expr $i + 1`
4831         teststring=$teststring$teststring
4832       done
4833       # Only check the string length outside the loop.
4834       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4835       teststring=
4836       # Add a significant safety factor because C++ compilers can tack on
4837       # massive amounts of additional arguments before passing them to the
4838       # linker.  It appears as though 1/2 is a usable value.
4839       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4840     fi
4841     ;;
4842   esac
4843
4844 fi
4845
4846 if test -n $lt_cv_sys_max_cmd_len ; then
4847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4848 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4849 else
4850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4851 $as_echo "none" >&6; }
4852 fi
4853 max_cmd_len=$lt_cv_sys_max_cmd_len
4854
4855
4856
4857
4858
4859
4860 : ${CP="cp -f"}
4861 : ${MV="mv -f"}
4862 : ${RM="rm -f"}
4863
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4865 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4866 # Try some XSI features
4867 xsi_shell=no
4868 ( _lt_dummy="a/b/c"
4869   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4870       = c,a/b,b/c, \
4871     && eval 'test $(( 1 + 1 )) -eq 2 \
4872     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4873   && xsi_shell=yes
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4875 $as_echo "$xsi_shell" >&6; }
4876
4877
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4879 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4880 lt_shell_append=no
4881 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4882     >/dev/null 2>&1 \
4883   && lt_shell_append=yes
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4885 $as_echo "$lt_shell_append" >&6; }
4886
4887
4888 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4889   lt_unset=unset
4890 else
4891   lt_unset=false
4892 fi
4893
4894
4895
4896
4897
4898 # test EBCDIC or ASCII
4899 case `echo X|tr X '\101'` in
4900  A) # ASCII based system
4901     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4902   lt_SP2NL='tr \040 \012'
4903   lt_NL2SP='tr \015\012 \040\040'
4904   ;;
4905  *) # EBCDIC based system
4906   lt_SP2NL='tr \100 \n'
4907   lt_NL2SP='tr \r\n \100\100'
4908   ;;
4909 esac
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4920 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4921 if ${lt_cv_to_host_file_cmd+:} false; then :
4922   $as_echo_n "(cached) " >&6
4923 else
4924   case $host in
4925   *-*-mingw* )
4926     case $build in
4927       *-*-mingw* ) # actually msys
4928         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4929         ;;
4930       *-*-cygwin* )
4931         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4932         ;;
4933       * ) # otherwise, assume *nix
4934         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4935         ;;
4936     esac
4937     ;;
4938   *-*-cygwin* )
4939     case $build in
4940       *-*-mingw* ) # actually msys
4941         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4942         ;;
4943       *-*-cygwin* )
4944         lt_cv_to_host_file_cmd=func_convert_file_noop
4945         ;;
4946       * ) # otherwise, assume *nix
4947         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4948         ;;
4949     esac
4950     ;;
4951   * ) # unhandled hosts (and "normal" native builds)
4952     lt_cv_to_host_file_cmd=func_convert_file_noop
4953     ;;
4954 esac
4955
4956 fi
4957
4958 to_host_file_cmd=$lt_cv_to_host_file_cmd
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4960 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4961
4962
4963
4964
4965
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4967 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4968 if ${lt_cv_to_tool_file_cmd+:} false; then :
4969   $as_echo_n "(cached) " >&6
4970 else
4971   #assume ordinary cross tools, or native build.
4972 lt_cv_to_tool_file_cmd=func_convert_file_noop
4973 case $host in
4974   *-*-mingw* )
4975     case $build in
4976       *-*-mingw* ) # actually msys
4977         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4978         ;;
4979     esac
4980     ;;
4981 esac
4982
4983 fi
4984
4985 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4987 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4988
4989
4990
4991
4992
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4994 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4995 if ${lt_cv_ld_reload_flag+:} false; then :
4996   $as_echo_n "(cached) " >&6
4997 else
4998   lt_cv_ld_reload_flag='-r'
4999 fi
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5001 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5002 reload_flag=$lt_cv_ld_reload_flag
5003 case $reload_flag in
5004 "" | " "*) ;;
5005 *) reload_flag=" $reload_flag" ;;
5006 esac
5007 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5008 case $host_os in
5009   cygwin* | mingw* | pw32* | cegcc*)
5010     if test "$GCC" != yes; then
5011       reload_cmds=false
5012     fi
5013     ;;
5014   darwin*)
5015     if test "$GCC" = yes; then
5016       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5017     else
5018       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5019     fi
5020     ;;
5021 esac
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031 if test -n "$ac_tool_prefix"; then
5032   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5033 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if ${ac_cv_prog_OBJDUMP+:} false; then :
5037   $as_echo_n "(cached) " >&6
5038 else
5039   if test -n "$OBJDUMP"; then
5040   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5041 else
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047     for ac_exec_ext in '' $ac_executable_extensions; do
5048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051     break 2
5052   fi
5053 done
5054   done
5055 IFS=$as_save_IFS
5056
5057 fi
5058 fi
5059 OBJDUMP=$ac_cv_prog_OBJDUMP
5060 if test -n "$OBJDUMP"; then
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5062 $as_echo "$OBJDUMP" >&6; }
5063 else
5064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 $as_echo "no" >&6; }
5066 fi
5067
5068
5069 fi
5070 if test -z "$ac_cv_prog_OBJDUMP"; then
5071   ac_ct_OBJDUMP=$OBJDUMP
5072   # Extract the first word of "objdump", so it can be a program name with args.
5073 set dummy objdump; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079   if test -n "$ac_ct_OBJDUMP"; then
5080   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087     for ac_exec_ext in '' $ac_executable_extensions; do
5088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094   done
5095 IFS=$as_save_IFS
5096
5097 fi
5098 fi
5099 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5100 if test -n "$ac_ct_OBJDUMP"; then
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5102 $as_echo "$ac_ct_OBJDUMP" >&6; }
5103 else
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5106 fi
5107
5108   if test "x$ac_ct_OBJDUMP" = x; then
5109     OBJDUMP="false"
5110   else
5111     case $cross_compiling:$ac_tool_warned in
5112 yes:)
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5115 ac_tool_warned=yes ;;
5116 esac
5117     OBJDUMP=$ac_ct_OBJDUMP
5118   fi
5119 else
5120   OBJDUMP="$ac_cv_prog_OBJDUMP"
5121 fi
5122
5123 test -z "$OBJDUMP" && OBJDUMP=objdump
5124
5125
5126
5127
5128
5129
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5131 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5132 if ${lt_cv_deplibs_check_method+:} false; then :
5133   $as_echo_n "(cached) " >&6
5134 else
5135   lt_cv_file_magic_cmd='$MAGIC_CMD'
5136 lt_cv_file_magic_test_file=
5137 lt_cv_deplibs_check_method='unknown'
5138 # Need to set the preceding variable on all platforms that support
5139 # interlibrary dependencies.
5140 # 'none' -- dependencies not supported.
5141 # `unknown' -- same as none, but documents that we really don't know.
5142 # 'pass_all' -- all dependencies passed with no checks.
5143 # 'test_compile' -- check by making test program.
5144 # 'file_magic [[regex]]' -- check by looking for files in library path
5145 # which responds to the $file_magic_cmd with a given extended regex.
5146 # If you have `file' or equivalent on your system and you're not sure
5147 # whether `pass_all' will *always* work, you probably want this one.
5148
5149 case $host_os in
5150 aix[4-9]*)
5151   lt_cv_deplibs_check_method=pass_all
5152   ;;
5153
5154 beos*)
5155   lt_cv_deplibs_check_method=pass_all
5156   ;;
5157
5158 bsdi[45]*)
5159   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5160   lt_cv_file_magic_cmd='/usr/bin/file -L'
5161   lt_cv_file_magic_test_file=/shlib/libc.so
5162   ;;
5163
5164 cygwin*)
5165   # func_win32_libid is a shell function defined in ltmain.sh
5166   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5167   lt_cv_file_magic_cmd='func_win32_libid'
5168   ;;
5169
5170 mingw* | pw32*)
5171   # Base MSYS/MinGW do not provide the 'file' command needed by
5172   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5173   # unless we find 'file', for example because we are cross-compiling.
5174   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5175   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5176     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5177     lt_cv_file_magic_cmd='func_win32_libid'
5178   else
5179     # Keep this pattern in sync with the one in func_win32_libid.
5180     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5181     lt_cv_file_magic_cmd='$OBJDUMP -f'
5182   fi
5183   ;;
5184
5185 cegcc*)
5186   # use the weaker test based on 'objdump'. See mingw*.
5187   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5188   lt_cv_file_magic_cmd='$OBJDUMP -f'
5189   ;;
5190
5191 darwin* | rhapsody*)
5192   lt_cv_deplibs_check_method=pass_all
5193   ;;
5194
5195 freebsd* | dragonfly*)
5196   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5197     case $host_cpu in
5198     i*86 )
5199       # Not sure whether the presence of OpenBSD here was a mistake.
5200       # Let's accept both of them until this is cleared up.
5201       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5202       lt_cv_file_magic_cmd=/usr/bin/file
5203       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5204       ;;
5205     esac
5206   else
5207     lt_cv_deplibs_check_method=pass_all
5208   fi
5209   ;;
5210
5211 gnu*)
5212   lt_cv_deplibs_check_method=pass_all
5213   ;;
5214
5215 haiku*)
5216   lt_cv_deplibs_check_method=pass_all
5217   ;;
5218
5219 hpux10.20* | hpux11*)
5220   lt_cv_file_magic_cmd=/usr/bin/file
5221   case $host_cpu in
5222   ia64*)
5223     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5224     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5225     ;;
5226   hppa*64*)
5227     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]'
5228     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5229     ;;
5230   *)
5231     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5232     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5233     ;;
5234   esac
5235   ;;
5236
5237 interix[3-9]*)
5238   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5239   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5240   ;;
5241
5242 irix5* | irix6* | nonstopux*)
5243   case $LD in
5244   *-32|*"-32 ") libmagic=32-bit;;
5245   *-n32|*"-n32 ") libmagic=N32;;
5246   *-64|*"-64 ") libmagic=64-bit;;
5247   *) libmagic=never-match;;
5248   esac
5249   lt_cv_deplibs_check_method=pass_all
5250   ;;
5251
5252 # This must be glibc/ELF.
5253 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5254   lt_cv_deplibs_check_method=pass_all
5255   ;;
5256
5257 netbsd* | netbsdelf*-gnu)
5258   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5259     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5260   else
5261     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5262   fi
5263   ;;
5264
5265 newos6*)
5266   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5267   lt_cv_file_magic_cmd=/usr/bin/file
5268   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5269   ;;
5270
5271 *nto* | *qnx*)
5272   lt_cv_deplibs_check_method=pass_all
5273   ;;
5274
5275 openbsd*)
5276   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5277     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5278   else
5279     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5280   fi
5281   ;;
5282
5283 osf3* | osf4* | osf5*)
5284   lt_cv_deplibs_check_method=pass_all
5285   ;;
5286
5287 rdos*)
5288   lt_cv_deplibs_check_method=pass_all
5289   ;;
5290
5291 solaris*)
5292   lt_cv_deplibs_check_method=pass_all
5293   ;;
5294
5295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5296   lt_cv_deplibs_check_method=pass_all
5297   ;;
5298
5299 sysv4 | sysv4.3*)
5300   case $host_vendor in
5301   motorola)
5302     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]'
5303     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5304     ;;
5305   ncr)
5306     lt_cv_deplibs_check_method=pass_all
5307     ;;
5308   sequent)
5309     lt_cv_file_magic_cmd='/bin/file'
5310     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5311     ;;
5312   sni)
5313     lt_cv_file_magic_cmd='/bin/file'
5314     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5315     lt_cv_file_magic_test_file=/lib/libc.so
5316     ;;
5317   siemens)
5318     lt_cv_deplibs_check_method=pass_all
5319     ;;
5320   pc)
5321     lt_cv_deplibs_check_method=pass_all
5322     ;;
5323   esac
5324   ;;
5325
5326 tpf*)
5327   lt_cv_deplibs_check_method=pass_all
5328   ;;
5329 esac
5330
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5333 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5334
5335 file_magic_glob=
5336 want_nocaseglob=no
5337 if test "$build" = "$host"; then
5338   case $host_os in
5339   mingw* | pw32*)
5340     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5341       want_nocaseglob=yes
5342     else
5343       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5344     fi
5345     ;;
5346   esac
5347 fi
5348
5349 file_magic_cmd=$lt_cv_file_magic_cmd
5350 deplibs_check_method=$lt_cv_deplibs_check_method
5351 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374 if test -n "$ac_tool_prefix"; then
5375   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5376 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_DLLTOOL+:} false; then :
5380   $as_echo_n "(cached) " >&6
5381 else
5382   if test -n "$DLLTOOL"; then
5383   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5387 do
5388   IFS=$as_save_IFS
5389   test -z "$as_dir" && as_dir=.
5390     for ac_exec_ext in '' $ac_executable_extensions; do
5391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394     break 2
5395   fi
5396 done
5397   done
5398 IFS=$as_save_IFS
5399
5400 fi
5401 fi
5402 DLLTOOL=$ac_cv_prog_DLLTOOL
5403 if test -n "$DLLTOOL"; then
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5405 $as_echo "$DLLTOOL" >&6; }
5406 else
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409 fi
5410
5411
5412 fi
5413 if test -z "$ac_cv_prog_DLLTOOL"; then
5414   ac_ct_DLLTOOL=$DLLTOOL
5415   # Extract the first word of "dlltool", so it can be a program name with args.
5416 set dummy dlltool; ac_word=$2
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 $as_echo_n "checking for $ac_word... " >&6; }
5419 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5420   $as_echo_n "(cached) " >&6
5421 else
5422   if test -n "$ac_ct_DLLTOOL"; then
5423   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5424 else
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5427 do
5428   IFS=$as_save_IFS
5429   test -z "$as_dir" && as_dir=.
5430     for ac_exec_ext in '' $ac_executable_extensions; do
5431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434     break 2
5435   fi
5436 done
5437   done
5438 IFS=$as_save_IFS
5439
5440 fi
5441 fi
5442 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5443 if test -n "$ac_ct_DLLTOOL"; then
5444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5445 $as_echo "$ac_ct_DLLTOOL" >&6; }
5446 else
5447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5449 fi
5450
5451   if test "x$ac_ct_DLLTOOL" = x; then
5452     DLLTOOL="false"
5453   else
5454     case $cross_compiling:$ac_tool_warned in
5455 yes:)
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5458 ac_tool_warned=yes ;;
5459 esac
5460     DLLTOOL=$ac_ct_DLLTOOL
5461   fi
5462 else
5463   DLLTOOL="$ac_cv_prog_DLLTOOL"
5464 fi
5465
5466 test -z "$DLLTOOL" && DLLTOOL=dlltool
5467
5468
5469
5470
5471
5472
5473
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5475 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5476 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5477   $as_echo_n "(cached) " >&6
5478 else
5479   lt_cv_sharedlib_from_linklib_cmd='unknown'
5480
5481 case $host_os in
5482 cygwin* | mingw* | pw32* | cegcc*)
5483   # two different shell functions defined in ltmain.sh
5484   # decide which to use based on capabilities of $DLLTOOL
5485   case `$DLLTOOL --help 2>&1` in
5486   *--identify-strict*)
5487     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5488     ;;
5489   *)
5490     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5491     ;;
5492   esac
5493   ;;
5494 *)
5495   # fallback: assume linklib IS sharedlib
5496   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5497   ;;
5498 esac
5499
5500 fi
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5502 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5503 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5504 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5505
5506
5507
5508
5509
5510
5511
5512
5513 if test -n "$ac_tool_prefix"; then
5514   for ac_prog in ar
5515   do
5516     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if ${ac_cv_prog_AR+:} false; then :
5521   $as_echo_n "(cached) " >&6
5522 else
5523   if test -n "$AR"; then
5524   ac_cv_prog_AR="$AR" # Let the user override the test.
5525 else
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5528 do
5529   IFS=$as_save_IFS
5530   test -z "$as_dir" && as_dir=.
5531     for ac_exec_ext in '' $ac_executable_extensions; do
5532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5533     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535     break 2
5536   fi
5537 done
5538   done
5539 IFS=$as_save_IFS
5540
5541 fi
5542 fi
5543 AR=$ac_cv_prog_AR
5544 if test -n "$AR"; then
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5546 $as_echo "$AR" >&6; }
5547 else
5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5550 fi
5551
5552
5553     test -n "$AR" && break
5554   done
5555 fi
5556 if test -z "$AR"; then
5557   ac_ct_AR=$AR
5558   for ac_prog in ar
5559 do
5560   # Extract the first word of "$ac_prog", so it can be a program name with args.
5561 set dummy $ac_prog; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5565   $as_echo_n "(cached) " >&6
5566 else
5567   if test -n "$ac_ct_AR"; then
5568   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5569 else
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5572 do
5573   IFS=$as_save_IFS
5574   test -z "$as_dir" && as_dir=.
5575     for ac_exec_ext in '' $ac_executable_extensions; do
5576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577     ac_cv_prog_ac_ct_AR="$ac_prog"
5578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579     break 2
5580   fi
5581 done
5582   done
5583 IFS=$as_save_IFS
5584
5585 fi
5586 fi
5587 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5588 if test -n "$ac_ct_AR"; then
5589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5590 $as_echo "$ac_ct_AR" >&6; }
5591 else
5592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5594 fi
5595
5596
5597   test -n "$ac_ct_AR" && break
5598 done
5599
5600   if test "x$ac_ct_AR" = x; then
5601     AR="false"
5602   else
5603     case $cross_compiling:$ac_tool_warned in
5604 yes:)
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5607 ac_tool_warned=yes ;;
5608 esac
5609     AR=$ac_ct_AR
5610   fi
5611 fi
5612
5613 : ${AR=ar}
5614 : ${AR_FLAGS=cru}
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5627 $as_echo_n "checking for archiver @FILE support... " >&6; }
5628 if ${lt_cv_ar_at_file+:} false; then :
5629   $as_echo_n "(cached) " >&6
5630 else
5631   lt_cv_ar_at_file=no
5632    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h.  */
5634
5635 int
5636 main ()
5637 {
5638
5639   ;
5640   return 0;
5641 }
5642 _ACEOF
5643 if ac_fn_c_try_compile "$LINENO"; then :
5644   echo conftest.$ac_objext > conftest.lst
5645       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5646       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5647   (eval $lt_ar_try) 2>&5
5648   ac_status=$?
5649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5650   test $ac_status = 0; }
5651       if test "$ac_status" -eq 0; then
5652         # Ensure the archiver fails upon bogus file names.
5653         rm -f conftest.$ac_objext libconftest.a
5654         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5655   (eval $lt_ar_try) 2>&5
5656   ac_status=$?
5657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5658   test $ac_status = 0; }
5659         if test "$ac_status" -ne 0; then
5660           lt_cv_ar_at_file=@
5661         fi
5662       fi
5663       rm -f conftest.* libconftest.a
5664
5665 fi
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667
5668 fi
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5670 $as_echo "$lt_cv_ar_at_file" >&6; }
5671
5672 if test "x$lt_cv_ar_at_file" = xno; then
5673   archiver_list_spec=
5674 else
5675   archiver_list_spec=$lt_cv_ar_at_file
5676 fi
5677
5678
5679
5680
5681
5682
5683
5684 if test -n "$ac_tool_prefix"; then
5685   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5686 set dummy ${ac_tool_prefix}strip; ac_word=$2
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if ${ac_cv_prog_STRIP+:} false; then :
5690   $as_echo_n "(cached) " >&6
5691 else
5692   if test -n "$STRIP"; then
5693   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698   IFS=$as_save_IFS
5699   test -z "$as_dir" && as_dir=.
5700     for ac_exec_ext in '' $ac_executable_extensions; do
5701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704     break 2
5705   fi
5706 done
5707   done
5708 IFS=$as_save_IFS
5709
5710 fi
5711 fi
5712 STRIP=$ac_cv_prog_STRIP
5713 if test -n "$STRIP"; then
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5715 $as_echo "$STRIP" >&6; }
5716 else
5717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5719 fi
5720
5721
5722 fi
5723 if test -z "$ac_cv_prog_STRIP"; then
5724   ac_ct_STRIP=$STRIP
5725   # Extract the first word of "strip", so it can be a program name with args.
5726 set dummy strip; ac_word=$2
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728 $as_echo_n "checking for $ac_word... " >&6; }
5729 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5730   $as_echo_n "(cached) " >&6
5731 else
5732   if test -n "$ac_ct_STRIP"; then
5733   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5734 else
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738   IFS=$as_save_IFS
5739   test -z "$as_dir" && as_dir=.
5740     for ac_exec_ext in '' $ac_executable_extensions; do
5741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742     ac_cv_prog_ac_ct_STRIP="strip"
5743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744     break 2
5745   fi
5746 done
5747   done
5748 IFS=$as_save_IFS
5749
5750 fi
5751 fi
5752 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5753 if test -n "$ac_ct_STRIP"; then
5754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5755 $as_echo "$ac_ct_STRIP" >&6; }
5756 else
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 $as_echo "no" >&6; }
5759 fi
5760
5761   if test "x$ac_ct_STRIP" = x; then
5762     STRIP=":"
5763   else
5764     case $cross_compiling:$ac_tool_warned in
5765 yes:)
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5768 ac_tool_warned=yes ;;
5769 esac
5770     STRIP=$ac_ct_STRIP
5771   fi
5772 else
5773   STRIP="$ac_cv_prog_STRIP"
5774 fi
5775
5776 test -z "$STRIP" && STRIP=:
5777
5778
5779
5780
5781
5782
5783 if test -n "$ac_tool_prefix"; then
5784   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5785 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787 $as_echo_n "checking for $ac_word... " >&6; }
5788 if ${ac_cv_prog_RANLIB+:} false; then :
5789   $as_echo_n "(cached) " >&6
5790 else
5791   if test -n "$RANLIB"; then
5792   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5793 else
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5796 do
5797   IFS=$as_save_IFS
5798   test -z "$as_dir" && as_dir=.
5799     for ac_exec_ext in '' $ac_executable_extensions; do
5800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803     break 2
5804   fi
5805 done
5806   done
5807 IFS=$as_save_IFS
5808
5809 fi
5810 fi
5811 RANLIB=$ac_cv_prog_RANLIB
5812 if test -n "$RANLIB"; then
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5814 $as_echo "$RANLIB" >&6; }
5815 else
5816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5818 fi
5819
5820
5821 fi
5822 if test -z "$ac_cv_prog_RANLIB"; then
5823   ac_ct_RANLIB=$RANLIB
5824   # Extract the first word of "ranlib", so it can be a program name with args.
5825 set dummy ranlib; ac_word=$2
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827 $as_echo_n "checking for $ac_word... " >&6; }
5828 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5829   $as_echo_n "(cached) " >&6
5830 else
5831   if test -n "$ac_ct_RANLIB"; then
5832   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5833 else
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5836 do
5837   IFS=$as_save_IFS
5838   test -z "$as_dir" && as_dir=.
5839     for ac_exec_ext in '' $ac_executable_extensions; do
5840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5841     ac_cv_prog_ac_ct_RANLIB="ranlib"
5842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843     break 2
5844   fi
5845 done
5846   done
5847 IFS=$as_save_IFS
5848
5849 fi
5850 fi
5851 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5852 if test -n "$ac_ct_RANLIB"; then
5853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5854 $as_echo "$ac_ct_RANLIB" >&6; }
5855 else
5856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 $as_echo "no" >&6; }
5858 fi
5859
5860   if test "x$ac_ct_RANLIB" = x; then
5861     RANLIB=":"
5862   else
5863     case $cross_compiling:$ac_tool_warned in
5864 yes:)
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5867 ac_tool_warned=yes ;;
5868 esac
5869     RANLIB=$ac_ct_RANLIB
5870   fi
5871 else
5872   RANLIB="$ac_cv_prog_RANLIB"
5873 fi
5874
5875 test -z "$RANLIB" && RANLIB=:
5876
5877
5878
5879
5880
5881
5882 # Determine commands to create old-style static archives.
5883 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5884 old_postinstall_cmds='chmod 644 $oldlib'
5885 old_postuninstall_cmds=
5886
5887 if test -n "$RANLIB"; then
5888   case $host_os in
5889   openbsd*)
5890     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5891     ;;
5892   *)
5893     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5894     ;;
5895   esac
5896   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5897 fi
5898
5899 case $host_os in
5900   darwin*)
5901     lock_old_archive_extraction=yes ;;
5902   *)
5903     lock_old_archive_extraction=no ;;
5904 esac
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944 # If no C compiler was specified, use CC.
5945 LTCC=${LTCC-"$CC"}
5946
5947 # If no C compiler flags were specified, use CFLAGS.
5948 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5949
5950 # Allow CC to be a program name with arguments.
5951 compiler=$CC
5952
5953
5954 # Check for command to grab the raw symbol name followed by C symbol from nm.
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5956 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5957 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5958   $as_echo_n "(cached) " >&6
5959 else
5960
5961 # These are sane defaults that work on at least a few old systems.
5962 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5963
5964 # Character class describing NM global symbol codes.
5965 symcode='[BCDEGRST]'
5966
5967 # Regexp to match symbols that can be accessed directly from C.
5968 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5969
5970 # Define system-specific variables.
5971 case $host_os in
5972 aix*)
5973   symcode='[BCDT]'
5974   ;;
5975 cygwin* | mingw* | pw32* | cegcc*)
5976   symcode='[ABCDGISTW]'
5977   ;;
5978 hpux*)
5979   if test "$host_cpu" = ia64; then
5980     symcode='[ABCDEGRST]'
5981   fi
5982   ;;
5983 irix* | nonstopux*)
5984   symcode='[BCDEGRST]'
5985   ;;
5986 osf*)
5987   symcode='[BCDEGQRST]'
5988   ;;
5989 solaris*)
5990   symcode='[BDRT]'
5991   ;;
5992 sco3.2v5*)
5993   symcode='[DT]'
5994   ;;
5995 sysv4.2uw2*)
5996   symcode='[DT]'
5997   ;;
5998 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5999   symcode='[ABDT]'
6000   ;;
6001 sysv4)
6002   symcode='[DFNSTU]'
6003   ;;
6004 esac
6005
6006 # If we're using GNU nm, then use its standard symbol codes.
6007 case `$NM -V 2>&1` in
6008 *GNU* | *'with BFD'*)
6009   symcode='[ABCDGIRSTW]' ;;
6010 esac
6011
6012 # Transform an extracted symbol line into a proper C declaration.
6013 # Some systems (esp. on ia64) link data and code symbols differently,
6014 # so use this general approach.
6015 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6016
6017 # Transform an extracted symbol line into symbol name and symbol address
6018 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6019 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6020
6021 # Handle CRLF in mingw tool chain
6022 opt_cr=
6023 case $build_os in
6024 mingw*)
6025   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6026   ;;
6027 esac
6028
6029 # Try without a prefix underscore, then with it.
6030 for ac_symprfx in "" "_"; do
6031
6032   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6033   symxfrm="\\1 $ac_symprfx\\2 \\2"
6034
6035   # Write the raw and C identifiers.
6036   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6037     # Fake it for dumpbin and say T for any non-static function
6038     # and D for any global variable.
6039     # Also find C++ and __fastcall symbols from MSVC++,
6040     # which start with @ or ?.
6041     lt_cv_sys_global_symbol_pipe="$AWK '"\
6042 "     {last_section=section; section=\$ 3};"\
6043 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6044 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6045 "     \$ 0!~/External *\|/{next};"\
6046 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6047 "     {if(hide[section]) next};"\
6048 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6049 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6050 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6051 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6052 "     ' prfx=^$ac_symprfx"
6053   else
6054     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6055   fi
6056   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6057
6058   # Check to see that the pipe works correctly.
6059   pipe_works=no
6060
6061   rm -f conftest*
6062   cat > conftest.$ac_ext <<_LT_EOF
6063 #ifdef __cplusplus
6064 extern "C" {
6065 #endif
6066 char nm_test_var;
6067 void nm_test_func(void);
6068 void nm_test_func(void){}
6069 #ifdef __cplusplus
6070 }
6071 #endif
6072 int main(){nm_test_var='a';nm_test_func();return(0);}
6073 _LT_EOF
6074
6075   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6076   (eval $ac_compile) 2>&5
6077   ac_status=$?
6078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6079   test $ac_status = 0; }; then
6080     # Now try to grab the symbols.
6081     nlist=conftest.nm
6082     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6083   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6084   ac_status=$?
6085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6086   test $ac_status = 0; } && test -s "$nlist"; then
6087       # Try sorting and uniquifying the output.
6088       if sort "$nlist" | uniq > "$nlist"T; then
6089         mv -f "$nlist"T "$nlist"
6090       else
6091         rm -f "$nlist"T
6092       fi
6093
6094       # Make sure that we snagged all the symbols we need.
6095       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6096         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6097           cat <<_LT_EOF > conftest.$ac_ext
6098 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6099 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6100 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6101    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6102 # define LT_DLSYM_CONST
6103 #elif defined(__osf__)
6104 /* This system does not cope well with relocations in const data.  */
6105 # define LT_DLSYM_CONST
6106 #else
6107 # define LT_DLSYM_CONST const
6108 #endif
6109
6110 #ifdef __cplusplus
6111 extern "C" {
6112 #endif
6113
6114 _LT_EOF
6115           # Now generate the symbol file.
6116           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6117
6118           cat <<_LT_EOF >> conftest.$ac_ext
6119
6120 /* The mapping between symbol names and symbols.  */
6121 LT_DLSYM_CONST struct {
6122   const char *name;
6123   void       *address;
6124 }
6125 lt__PROGRAM__LTX_preloaded_symbols[] =
6126 {
6127   { "@PROGRAM@", (void *) 0 },
6128 _LT_EOF
6129           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6130           cat <<\_LT_EOF >> conftest.$ac_ext
6131   {0, (void *) 0}
6132 };
6133
6134 /* This works around a problem in FreeBSD linker */
6135 #ifdef FREEBSD_WORKAROUND
6136 static const void *lt_preloaded_setup() {
6137   return lt__PROGRAM__LTX_preloaded_symbols;
6138 }
6139 #endif
6140
6141 #ifdef __cplusplus
6142 }
6143 #endif
6144 _LT_EOF
6145           # Now try linking the two files.
6146           mv conftest.$ac_objext conftstm.$ac_objext
6147           lt_globsym_save_LIBS=$LIBS
6148           lt_globsym_save_CFLAGS=$CFLAGS
6149           LIBS="conftstm.$ac_objext"
6150           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6151           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6152   (eval $ac_link) 2>&5
6153   ac_status=$?
6154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6155   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6156             pipe_works=yes
6157           fi
6158           LIBS=$lt_globsym_save_LIBS
6159           CFLAGS=$lt_globsym_save_CFLAGS
6160         else
6161           echo "cannot find nm_test_func in $nlist" >&5
6162         fi
6163       else
6164         echo "cannot find nm_test_var in $nlist" >&5
6165       fi
6166     else
6167       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6168     fi
6169   else
6170     echo "$progname: failed program was:" >&5
6171     cat conftest.$ac_ext >&5
6172   fi
6173   rm -rf conftest* conftst*
6174
6175   # Do not use the global_symbol_pipe unless it works.
6176   if test "$pipe_works" = yes; then
6177     break
6178   else
6179     lt_cv_sys_global_symbol_pipe=
6180   fi
6181 done
6182
6183 fi
6184
6185 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6186   lt_cv_sys_global_symbol_to_cdecl=
6187 fi
6188 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6190 $as_echo "failed" >&6; }
6191 else
6192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6193 $as_echo "ok" >&6; }
6194 fi
6195
6196 # Response file support.
6197 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6198   nm_file_list_spec='@'
6199 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6200   nm_file_list_spec='@'
6201 fi
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6230 $as_echo_n "checking for sysroot... " >&6; }
6231
6232 # Check whether --with-sysroot was given.
6233 if test "${with_sysroot+set}" = set; then :
6234   withval=$with_sysroot;
6235 else
6236   with_sysroot=no
6237 fi
6238
6239
6240 lt_sysroot=
6241 case ${with_sysroot} in #(
6242  yes)
6243    if test "$GCC" = yes; then
6244      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6245    fi
6246    ;; #(
6247  /*)
6248    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6249    ;; #(
6250  no|'')
6251    ;; #(
6252  *)
6253    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6254 $as_echo "${with_sysroot}" >&6; }
6255    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6256    ;;
6257 esac
6258
6259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6260 $as_echo "${lt_sysroot:-no}" >&6; }
6261
6262
6263
6264
6265
6266 # Check whether --enable-libtool-lock was given.
6267 if test "${enable_libtool_lock+set}" = set; then :
6268   enableval=$enable_libtool_lock;
6269 fi
6270
6271 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6272
6273 # Some flags need to be propagated to the compiler or linker for good
6274 # libtool support.
6275 case $host in
6276 ia64-*-hpux*)
6277   # Find out which ABI we are using.
6278   echo 'int i;' > conftest.$ac_ext
6279   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6280   (eval $ac_compile) 2>&5
6281   ac_status=$?
6282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6283   test $ac_status = 0; }; then
6284     case `/usr/bin/file conftest.$ac_objext` in
6285       *ELF-32*)
6286         HPUX_IA64_MODE="32"
6287         ;;
6288       *ELF-64*)
6289         HPUX_IA64_MODE="64"
6290         ;;
6291     esac
6292   fi
6293   rm -rf conftest*
6294   ;;
6295 *-*-irix6*)
6296   # Find out which ABI we are using.
6297   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6298   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6299   (eval $ac_compile) 2>&5
6300   ac_status=$?
6301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6302   test $ac_status = 0; }; then
6303     if test "$lt_cv_prog_gnu_ld" = yes; then
6304       case `/usr/bin/file conftest.$ac_objext` in
6305         *32-bit*)
6306           LD="${LD-ld} -melf32bsmip"
6307           ;;
6308         *N32*)
6309           LD="${LD-ld} -melf32bmipn32"
6310           ;;
6311         *64-bit*)
6312           LD="${LD-ld} -melf64bmip"
6313         ;;
6314       esac
6315     else
6316       case `/usr/bin/file conftest.$ac_objext` in
6317         *32-bit*)
6318           LD="${LD-ld} -32"
6319           ;;
6320         *N32*)
6321           LD="${LD-ld} -n32"
6322           ;;
6323         *64-bit*)
6324           LD="${LD-ld} -64"
6325           ;;
6326       esac
6327     fi
6328   fi
6329   rm -rf conftest*
6330   ;;
6331
6332 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6333 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6334   # Find out which ABI we are using.
6335   echo 'int i;' > conftest.$ac_ext
6336   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6337   (eval $ac_compile) 2>&5
6338   ac_status=$?
6339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6340   test $ac_status = 0; }; then
6341     case `/usr/bin/file conftest.o` in
6342       *32-bit*)
6343         case $host in
6344           x86_64-*kfreebsd*-gnu)
6345             LD="${LD-ld} -m elf_i386_fbsd"
6346             ;;
6347           x86_64-*linux*)
6348             LD="${LD-ld} -m elf_i386"
6349             ;;
6350           ppc64-*linux*|powerpc64-*linux*)
6351             LD="${LD-ld} -m elf32ppclinux"
6352             ;;
6353           s390x-*linux*)
6354             LD="${LD-ld} -m elf_s390"
6355             ;;
6356           sparc64-*linux*)
6357             LD="${LD-ld} -m elf32_sparc"
6358             ;;
6359         esac
6360         ;;
6361       *64-bit*)
6362         case $host in
6363           x86_64-*kfreebsd*-gnu)
6364             LD="${LD-ld} -m elf_x86_64_fbsd"
6365             ;;
6366           x86_64-*linux*)
6367             LD="${LD-ld} -m elf_x86_64"
6368             ;;
6369           ppc*-*linux*|powerpc*-*linux*)
6370             LD="${LD-ld} -m elf64ppc"
6371             ;;
6372           s390*-*linux*|s390*-*tpf*)
6373             LD="${LD-ld} -m elf64_s390"
6374             ;;
6375           sparc*-*linux*)
6376             LD="${LD-ld} -m elf64_sparc"
6377             ;;
6378         esac
6379         ;;
6380     esac
6381   fi
6382   rm -rf conftest*
6383   ;;
6384
6385 *-*-sco3.2v5*)
6386   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6387   SAVE_CFLAGS="$CFLAGS"
6388   CFLAGS="$CFLAGS -belf"
6389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6390 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6391 if ${lt_cv_cc_needs_belf+:} false; then :
6392   $as_echo_n "(cached) " >&6
6393 else
6394   ac_ext=c
6395 ac_cpp='$CPP $CPPFLAGS'
6396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6399
6400      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h.  */
6402
6403 int
6404 main ()
6405 {
6406
6407   ;
6408   return 0;
6409 }
6410 _ACEOF
6411 if ac_fn_c_try_link "$LINENO"; then :
6412   lt_cv_cc_needs_belf=yes
6413 else
6414   lt_cv_cc_needs_belf=no
6415 fi
6416 rm -f core conftest.err conftest.$ac_objext \
6417     conftest$ac_exeext conftest.$ac_ext
6418      ac_ext=c
6419 ac_cpp='$CPP $CPPFLAGS'
6420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6423
6424 fi
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6426 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6427   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6428     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6429     CFLAGS="$SAVE_CFLAGS"
6430   fi
6431   ;;
6432 *-*solaris*)
6433   # Find out which ABI we are using.
6434   echo 'int i;' > conftest.$ac_ext
6435   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6436   (eval $ac_compile) 2>&5
6437   ac_status=$?
6438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439   test $ac_status = 0; }; then
6440     case `/usr/bin/file conftest.o` in
6441     *64-bit*)
6442       case $lt_cv_prog_gnu_ld in
6443       yes*)
6444         case $host in
6445         i?86-*-solaris*)
6446           LD="${LD-ld} -m elf_x86_64"
6447           ;;
6448         sparc*-*-solaris*)
6449           LD="${LD-ld} -m elf64_sparc"
6450           ;;
6451         esac
6452         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6453         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6454           LD="${LD-ld}_sol2"
6455         fi
6456         ;;
6457       *)
6458         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6459           LD="${LD-ld} -64"
6460         fi
6461         ;;
6462       esac
6463       ;;
6464     esac
6465   fi
6466   rm -rf conftest*
6467   ;;
6468 esac
6469
6470 need_locks="$enable_libtool_lock"
6471
6472 if test -n "$ac_tool_prefix"; then
6473   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6474 set dummy ${ac_tool_prefix}mt; ac_word=$2
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476 $as_echo_n "checking for $ac_word... " >&6; }
6477 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6478   $as_echo_n "(cached) " >&6
6479 else
6480   if test -n "$MANIFEST_TOOL"; then
6481   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6482 else
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486   IFS=$as_save_IFS
6487   test -z "$as_dir" && as_dir=.
6488     for ac_exec_ext in '' $ac_executable_extensions; do
6489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6490     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6492     break 2
6493   fi
6494 done
6495   done
6496 IFS=$as_save_IFS
6497
6498 fi
6499 fi
6500 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6501 if test -n "$MANIFEST_TOOL"; then
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6503 $as_echo "$MANIFEST_TOOL" >&6; }
6504 else
6505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506 $as_echo "no" >&6; }
6507 fi
6508
6509
6510 fi
6511 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6512   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6513   # Extract the first word of "mt", so it can be a program name with args.
6514 set dummy mt; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6518   $as_echo_n "(cached) " >&6
6519 else
6520   if test -n "$ac_ct_MANIFEST_TOOL"; then
6521   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6522 else
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 for as_dir in $PATH
6525 do
6526   IFS=$as_save_IFS
6527   test -z "$as_dir" && as_dir=.
6528     for ac_exec_ext in '' $ac_executable_extensions; do
6529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532     break 2
6533   fi
6534 done
6535   done
6536 IFS=$as_save_IFS
6537
6538 fi
6539 fi
6540 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6541 if test -n "$ac_ct_MANIFEST_TOOL"; then
6542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6543 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6544 else
6545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6547 fi
6548
6549   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6550     MANIFEST_TOOL=":"
6551   else
6552     case $cross_compiling:$ac_tool_warned in
6553 yes:)
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6556 ac_tool_warned=yes ;;
6557 esac
6558     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6559   fi
6560 else
6561   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6562 fi
6563
6564 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6566 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6567 if ${lt_cv_path_mainfest_tool+:} false; then :
6568   $as_echo_n "(cached) " >&6
6569 else
6570   lt_cv_path_mainfest_tool=no
6571   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6572   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6573   cat conftest.err >&5
6574   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6575     lt_cv_path_mainfest_tool=yes
6576   fi
6577   rm -f conftest*
6578 fi
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6580 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6581 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6582   MANIFEST_TOOL=:
6583 fi
6584
6585
6586
6587
6588
6589
6590   case $host_os in
6591     rhapsody* | darwin*)
6592     if test -n "$ac_tool_prefix"; then
6593   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6594 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6598   $as_echo_n "(cached) " >&6
6599 else
6600   if test -n "$DSYMUTIL"; then
6601   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606   IFS=$as_save_IFS
6607   test -z "$as_dir" && as_dir=.
6608     for ac_exec_ext in '' $ac_executable_extensions; do
6609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612     break 2
6613   fi
6614 done
6615   done
6616 IFS=$as_save_IFS
6617
6618 fi
6619 fi
6620 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6621 if test -n "$DSYMUTIL"; then
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6623 $as_echo "$DSYMUTIL" >&6; }
6624 else
6625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6627 fi
6628
6629
6630 fi
6631 if test -z "$ac_cv_prog_DSYMUTIL"; then
6632   ac_ct_DSYMUTIL=$DSYMUTIL
6633   # Extract the first word of "dsymutil", so it can be a program name with args.
6634 set dummy dsymutil; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6638   $as_echo_n "(cached) " >&6
6639 else
6640   if test -n "$ac_ct_DSYMUTIL"; then
6641   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646   IFS=$as_save_IFS
6647   test -z "$as_dir" && as_dir=.
6648     for ac_exec_ext in '' $ac_executable_extensions; do
6649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652     break 2
6653   fi
6654 done
6655   done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6661 if test -n "$ac_ct_DSYMUTIL"; then
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6663 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6664 else
6665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669   if test "x$ac_ct_DSYMUTIL" = x; then
6670     DSYMUTIL=":"
6671   else
6672     case $cross_compiling:$ac_tool_warned in
6673 yes:)
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6676 ac_tool_warned=yes ;;
6677 esac
6678     DSYMUTIL=$ac_ct_DSYMUTIL
6679   fi
6680 else
6681   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6682 fi
6683
6684     if test -n "$ac_tool_prefix"; then
6685   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6686 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if ${ac_cv_prog_NMEDIT+:} false; then :
6690   $as_echo_n "(cached) " >&6
6691 else
6692   if test -n "$NMEDIT"; then
6693   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6694 else
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6697 do
6698   IFS=$as_save_IFS
6699   test -z "$as_dir" && as_dir=.
6700     for ac_exec_ext in '' $ac_executable_extensions; do
6701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704     break 2
6705   fi
6706 done
6707   done
6708 IFS=$as_save_IFS
6709
6710 fi
6711 fi
6712 NMEDIT=$ac_cv_prog_NMEDIT
6713 if test -n "$NMEDIT"; then
6714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6715 $as_echo "$NMEDIT" >&6; }
6716 else
6717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6719 fi
6720
6721
6722 fi
6723 if test -z "$ac_cv_prog_NMEDIT"; then
6724   ac_ct_NMEDIT=$NMEDIT
6725   # Extract the first word of "nmedit", so it can be a program name with args.
6726 set dummy nmedit; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6730   $as_echo_n "(cached) " >&6
6731 else
6732   if test -n "$ac_ct_NMEDIT"; then
6733   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738   IFS=$as_save_IFS
6739   test -z "$as_dir" && as_dir=.
6740     for ac_exec_ext in '' $ac_executable_extensions; do
6741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744     break 2
6745   fi
6746 done
6747   done
6748 IFS=$as_save_IFS
6749
6750 fi
6751 fi
6752 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6753 if test -n "$ac_ct_NMEDIT"; then
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6755 $as_echo "$ac_ct_NMEDIT" >&6; }
6756 else
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 fi
6760
6761   if test "x$ac_ct_NMEDIT" = x; then
6762     NMEDIT=":"
6763   else
6764     case $cross_compiling:$ac_tool_warned in
6765 yes:)
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768 ac_tool_warned=yes ;;
6769 esac
6770     NMEDIT=$ac_ct_NMEDIT
6771   fi
6772 else
6773   NMEDIT="$ac_cv_prog_NMEDIT"
6774 fi
6775
6776     if test -n "$ac_tool_prefix"; then
6777   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if ${ac_cv_prog_LIPO+:} false; then :
6782   $as_echo_n "(cached) " >&6
6783 else
6784   if test -n "$LIPO"; then
6785   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790   IFS=$as_save_IFS
6791   test -z "$as_dir" && as_dir=.
6792     for ac_exec_ext in '' $ac_executable_extensions; do
6793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6794     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796     break 2
6797   fi
6798 done
6799   done
6800 IFS=$as_save_IFS
6801
6802 fi
6803 fi
6804 LIPO=$ac_cv_prog_LIPO
6805 if test -n "$LIPO"; then
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6807 $as_echo "$LIPO" >&6; }
6808 else
6809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6811 fi
6812
6813
6814 fi
6815 if test -z "$ac_cv_prog_LIPO"; then
6816   ac_ct_LIPO=$LIPO
6817   # Extract the first word of "lipo", so it can be a program name with args.
6818 set dummy lipo; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6822   $as_echo_n "(cached) " >&6
6823 else
6824   if test -n "$ac_ct_LIPO"; then
6825   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830   IFS=$as_save_IFS
6831   test -z "$as_dir" && as_dir=.
6832     for ac_exec_ext in '' $ac_executable_extensions; do
6833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6834     ac_cv_prog_ac_ct_LIPO="lipo"
6835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836     break 2
6837   fi
6838 done
6839   done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6845 if test -n "$ac_ct_LIPO"; then
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6847 $as_echo "$ac_ct_LIPO" >&6; }
6848 else
6849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6851 fi
6852
6853   if test "x$ac_ct_LIPO" = x; then
6854     LIPO=":"
6855   else
6856     case $cross_compiling:$ac_tool_warned in
6857 yes:)
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6860 ac_tool_warned=yes ;;
6861 esac
6862     LIPO=$ac_ct_LIPO
6863   fi
6864 else
6865   LIPO="$ac_cv_prog_LIPO"
6866 fi
6867
6868     if test -n "$ac_tool_prefix"; then
6869   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}otool; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if ${ac_cv_prog_OTOOL+:} false; then :
6874   $as_echo_n "(cached) " >&6
6875 else
6876   if test -n "$OTOOL"; then
6877   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6881 do
6882   IFS=$as_save_IFS
6883   test -z "$as_dir" && as_dir=.
6884     for ac_exec_ext in '' $ac_executable_extensions; do
6885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6886     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888     break 2
6889   fi
6890 done
6891   done
6892 IFS=$as_save_IFS
6893
6894 fi
6895 fi
6896 OTOOL=$ac_cv_prog_OTOOL
6897 if test -n "$OTOOL"; then
6898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6899 $as_echo "$OTOOL" >&6; }
6900 else
6901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6903 fi
6904
6905
6906 fi
6907 if test -z "$ac_cv_prog_OTOOL"; then
6908   ac_ct_OTOOL=$OTOOL
6909   # Extract the first word of "otool", so it can be a program name with args.
6910 set dummy otool; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6914   $as_echo_n "(cached) " >&6
6915 else
6916   if test -n "$ac_ct_OTOOL"; then
6917   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922   IFS=$as_save_IFS
6923   test -z "$as_dir" && as_dir=.
6924     for ac_exec_ext in '' $ac_executable_extensions; do
6925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926     ac_cv_prog_ac_ct_OTOOL="otool"
6927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928     break 2
6929   fi
6930 done
6931   done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6937 if test -n "$ac_ct_OTOOL"; then
6938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6939 $as_echo "$ac_ct_OTOOL" >&6; }
6940 else
6941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945   if test "x$ac_ct_OTOOL" = x; then
6946     OTOOL=":"
6947   else
6948     case $cross_compiling:$ac_tool_warned in
6949 yes:)
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952 ac_tool_warned=yes ;;
6953 esac
6954     OTOOL=$ac_ct_OTOOL
6955   fi
6956 else
6957   OTOOL="$ac_cv_prog_OTOOL"
6958 fi
6959
6960     if test -n "$ac_tool_prefix"; then
6961   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6962 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if ${ac_cv_prog_OTOOL64+:} false; then :
6966   $as_echo_n "(cached) " >&6
6967 else
6968   if test -n "$OTOOL64"; then
6969   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6970 else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6973 do
6974   IFS=$as_save_IFS
6975   test -z "$as_dir" && as_dir=.
6976     for ac_exec_ext in '' $ac_executable_extensions; do
6977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6978     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980     break 2
6981   fi
6982 done
6983   done
6984 IFS=$as_save_IFS
6985
6986 fi
6987 fi
6988 OTOOL64=$ac_cv_prog_OTOOL64
6989 if test -n "$OTOOL64"; then
6990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6991 $as_echo "$OTOOL64" >&6; }
6992 else
6993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6995 fi
6996
6997
6998 fi
6999 if test -z "$ac_cv_prog_OTOOL64"; then
7000   ac_ct_OTOOL64=$OTOOL64
7001   # Extract the first word of "otool64", so it can be a program name with args.
7002 set dummy otool64; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7006   $as_echo_n "(cached) " >&6
7007 else
7008   if test -n "$ac_ct_OTOOL64"; then
7009   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014   IFS=$as_save_IFS
7015   test -z "$as_dir" && as_dir=.
7016     for ac_exec_ext in '' $ac_executable_extensions; do
7017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018     ac_cv_prog_ac_ct_OTOOL64="otool64"
7019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020     break 2
7021   fi
7022 done
7023   done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7029 if test -n "$ac_ct_OTOOL64"; then
7030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7031 $as_echo "$ac_ct_OTOOL64" >&6; }
7032 else
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7035 fi
7036
7037   if test "x$ac_ct_OTOOL64" = x; then
7038     OTOOL64=":"
7039   else
7040     case $cross_compiling:$ac_tool_warned in
7041 yes:)
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7044 ac_tool_warned=yes ;;
7045 esac
7046     OTOOL64=$ac_ct_OTOOL64
7047   fi
7048 else
7049   OTOOL64="$ac_cv_prog_OTOOL64"
7050 fi
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7079 $as_echo_n "checking for -single_module linker flag... " >&6; }
7080 if ${lt_cv_apple_cc_single_mod+:} false; then :
7081   $as_echo_n "(cached) " >&6
7082 else
7083   lt_cv_apple_cc_single_mod=no
7084       if test -z "${LT_MULTI_MODULE}"; then
7085         # By default we will add the -single_module flag. You can override
7086         # by either setting the environment variable LT_MULTI_MODULE
7087         # non-empty at configure time, or by adding -multi_module to the
7088         # link flags.
7089         rm -rf libconftest.dylib*
7090         echo "int foo(void){return 1;}" > conftest.c
7091         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7092 -dynamiclib -Wl,-single_module conftest.c" >&5
7093         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7094           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7095         _lt_result=$?
7096         # If there is a non-empty error log, and "single_module"
7097         # appears in it, assume the flag caused a linker warning
7098         if test -s conftest.err && $GREP single_module conftest.err; then
7099           cat conftest.err >&5
7100         # Otherwise, if the output was created with a 0 exit code from
7101         # the compiler, it worked.
7102         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7103           lt_cv_apple_cc_single_mod=yes
7104         else
7105           cat conftest.err >&5
7106         fi
7107         rm -rf libconftest.dylib*
7108         rm -f conftest.*
7109       fi
7110 fi
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7112 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7113
7114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7115 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7116 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   lt_cv_ld_exported_symbols_list=no
7120       save_LDFLAGS=$LDFLAGS
7121       echo "_main" > conftest.sym
7122       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7123       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h.  */
7125
7126 int
7127 main ()
7128 {
7129
7130   ;
7131   return 0;
7132 }
7133 _ACEOF
7134 if ac_fn_c_try_link "$LINENO"; then :
7135   lt_cv_ld_exported_symbols_list=yes
7136 else
7137   lt_cv_ld_exported_symbols_list=no
7138 fi
7139 rm -f core conftest.err conftest.$ac_objext \
7140     conftest$ac_exeext conftest.$ac_ext
7141         LDFLAGS="$save_LDFLAGS"
7142
7143 fi
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7145 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7146
7147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7148 $as_echo_n "checking for -force_load linker flag... " >&6; }
7149 if ${lt_cv_ld_force_load+:} false; then :
7150   $as_echo_n "(cached) " >&6
7151 else
7152   lt_cv_ld_force_load=no
7153       cat > conftest.c << _LT_EOF
7154 int forced_loaded() { return 2;}
7155 _LT_EOF
7156       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7157       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7158       echo "$AR cru libconftest.a conftest.o" >&5
7159       $AR cru libconftest.a conftest.o 2>&5
7160       echo "$RANLIB libconftest.a" >&5
7161       $RANLIB libconftest.a 2>&5
7162       cat > conftest.c << _LT_EOF
7163 int main() { return 0;}
7164 _LT_EOF
7165       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7166       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7167       _lt_result=$?
7168       if test -s conftest.err && $GREP force_load conftest.err; then
7169         cat conftest.err >&5
7170       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7171         lt_cv_ld_force_load=yes
7172       else
7173         cat conftest.err >&5
7174       fi
7175         rm -f conftest.err libconftest.a conftest conftest.c
7176         rm -rf conftest.dSYM
7177
7178 fi
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7180 $as_echo "$lt_cv_ld_force_load" >&6; }
7181     case $host_os in
7182     rhapsody* | darwin1.[012])
7183       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7184     darwin1.*)
7185       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7186     darwin*) # darwin 5.x on
7187       # if running on 10.5 or later, the deployment target defaults
7188       # to the OS version, if on x86, and 10.4, the deployment
7189       # target defaults to 10.4. Don't you love it?
7190       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7191         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7192           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7193         10.[012]*)
7194           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7195         10.*)
7196           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7197       esac
7198     ;;
7199   esac
7200     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7201       _lt_dar_single_mod='$single_module'
7202     fi
7203     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7204       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7205     else
7206       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7207     fi
7208     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7209       _lt_dsymutil='~$DSYMUTIL $lib || :'
7210     else
7211       _lt_dsymutil=
7212     fi
7213     ;;
7214   esac
7215
7216 ac_ext=c
7217 ac_cpp='$CPP $CPPFLAGS'
7218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7222 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7223 # On Suns, sometimes $CPP names a directory.
7224 if test -n "$CPP" && test -d "$CPP"; then
7225   CPP=
7226 fi
7227 if test -z "$CPP"; then
7228   if ${ac_cv_prog_CPP+:} false; then :
7229   $as_echo_n "(cached) " >&6
7230 else
7231       # Double quotes because CPP needs to be expanded
7232     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7233     do
7234       ac_preproc_ok=false
7235 for ac_c_preproc_warn_flag in '' yes
7236 do
7237   # Use a header file that comes with gcc, so configuring glibc
7238   # with a fresh cross-compiler works.
7239   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7240   # <limits.h> exists even on freestanding compilers.
7241   # On the NeXT, cc -E runs the code through the compiler's parser,
7242   # not just through cpp. "Syntax error" is here to catch this case.
7243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h.  */
7245 #ifdef __STDC__
7246 # include <limits.h>
7247 #else
7248 # include <assert.h>
7249 #endif
7250                      Syntax error
7251 _ACEOF
7252 if ac_fn_c_try_cpp "$LINENO"; then :
7253
7254 else
7255   # Broken: fails on valid input.
7256 continue
7257 fi
7258 rm -f conftest.err conftest.i conftest.$ac_ext
7259
7260   # OK, works on sane cases.  Now check whether nonexistent headers
7261   # can be detected and how.
7262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h.  */
7264 #include <ac_nonexistent.h>
7265 _ACEOF
7266 if ac_fn_c_try_cpp "$LINENO"; then :
7267   # Broken: success on invalid input.
7268 continue
7269 else
7270   # Passes both tests.
7271 ac_preproc_ok=:
7272 break
7273 fi
7274 rm -f conftest.err conftest.i conftest.$ac_ext
7275
7276 done
7277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7278 rm -f conftest.i conftest.err conftest.$ac_ext
7279 if $ac_preproc_ok; then :
7280   break
7281 fi
7282
7283     done
7284     ac_cv_prog_CPP=$CPP
7285
7286 fi
7287   CPP=$ac_cv_prog_CPP
7288 else
7289   ac_cv_prog_CPP=$CPP
7290 fi
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7292 $as_echo "$CPP" >&6; }
7293 ac_preproc_ok=false
7294 for ac_c_preproc_warn_flag in '' yes
7295 do
7296   # Use a header file that comes with gcc, so configuring glibc
7297   # with a fresh cross-compiler works.
7298   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7299   # <limits.h> exists even on freestanding compilers.
7300   # On the NeXT, cc -E runs the code through the compiler's parser,
7301   # not just through cpp. "Syntax error" is here to catch this case.
7302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h.  */
7304 #ifdef __STDC__
7305 # include <limits.h>
7306 #else
7307 # include <assert.h>
7308 #endif
7309                      Syntax error
7310 _ACEOF
7311 if ac_fn_c_try_cpp "$LINENO"; then :
7312
7313 else
7314   # Broken: fails on valid input.
7315 continue
7316 fi
7317 rm -f conftest.err conftest.i conftest.$ac_ext
7318
7319   # OK, works on sane cases.  Now check whether nonexistent headers
7320   # can be detected and how.
7321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h.  */
7323 #include <ac_nonexistent.h>
7324 _ACEOF
7325 if ac_fn_c_try_cpp "$LINENO"; then :
7326   # Broken: success on invalid input.
7327 continue
7328 else
7329   # Passes both tests.
7330 ac_preproc_ok=:
7331 break
7332 fi
7333 rm -f conftest.err conftest.i conftest.$ac_ext
7334
7335 done
7336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7337 rm -f conftest.i conftest.err conftest.$ac_ext
7338 if $ac_preproc_ok; then :
7339
7340 else
7341   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7343 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7344 See \`config.log' for more details" "$LINENO" 5; }
7345 fi
7346
7347 ac_ext=c
7348 ac_cpp='$CPP $CPPFLAGS'
7349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7352
7353
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7355 $as_echo_n "checking for ANSI C header files... " >&6; }
7356 if ${ac_cv_header_stdc+:} false; then :
7357   $as_echo_n "(cached) " >&6
7358 else
7359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h.  */
7361 #include <stdlib.h>
7362 #include <stdarg.h>
7363 #include <string.h>
7364 #include <float.h>
7365
7366 int
7367 main ()
7368 {
7369
7370   ;
7371   return 0;
7372 }
7373 _ACEOF
7374 if ac_fn_c_try_compile "$LINENO"; then :
7375   ac_cv_header_stdc=yes
7376 else
7377   ac_cv_header_stdc=no
7378 fi
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380
7381 if test $ac_cv_header_stdc = yes; then
7382   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h.  */
7385 #include <string.h>
7386
7387 _ACEOF
7388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7389   $EGREP "memchr" >/dev/null 2>&1; then :
7390
7391 else
7392   ac_cv_header_stdc=no
7393 fi
7394 rm -f conftest*
7395
7396 fi
7397
7398 if test $ac_cv_header_stdc = yes; then
7399   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h.  */
7402 #include <stdlib.h>
7403
7404 _ACEOF
7405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7406   $EGREP "free" >/dev/null 2>&1; then :
7407
7408 else
7409   ac_cv_header_stdc=no
7410 fi
7411 rm -f conftest*
7412
7413 fi
7414
7415 if test $ac_cv_header_stdc = yes; then
7416   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7417   if test "$cross_compiling" = yes; then :
7418   :
7419 else
7420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h.  */
7422 #include <ctype.h>
7423 #include <stdlib.h>
7424 #if ((' ' & 0x0FF) == 0x020)
7425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7427 #else
7428 # define ISLOWER(c) \
7429                    (('a' <= (c) && (c) <= 'i') \
7430                      || ('j' <= (c) && (c) <= 'r') \
7431                      || ('s' <= (c) && (c) <= 'z'))
7432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7433 #endif
7434
7435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7436 int
7437 main ()
7438 {
7439   int i;
7440   for (i = 0; i < 256; i++)
7441     if (XOR (islower (i), ISLOWER (i))
7442         || toupper (i) != TOUPPER (i))
7443       return 2;
7444   return 0;
7445 }
7446 _ACEOF
7447 if ac_fn_c_try_run "$LINENO"; then :
7448
7449 else
7450   ac_cv_header_stdc=no
7451 fi
7452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7453   conftest.$ac_objext conftest.beam conftest.$ac_ext
7454 fi
7455
7456 fi
7457 fi
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7459 $as_echo "$ac_cv_header_stdc" >&6; }
7460 if test $ac_cv_header_stdc = yes; then
7461
7462 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7463
7464 fi
7465
7466 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7467 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7468                   inttypes.h stdint.h unistd.h
7469 do :
7470   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7471 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7472 "
7473 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7474   cat >>confdefs.h <<_ACEOF
7475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7476 _ACEOF
7477
7478 fi
7479
7480 done
7481
7482
7483 for ac_header in dlfcn.h
7484 do :
7485   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7486 "
7487 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7488   cat >>confdefs.h <<_ACEOF
7489 #define HAVE_DLFCN_H 1
7490 _ACEOF
7491
7492 fi
7493
7494 done
7495
7496
7497
7498
7499
7500 # Set options
7501 enable_win32_dll=yes
7502
7503 case $host in
7504 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7505   if test -n "$ac_tool_prefix"; then
7506   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7507 set dummy ${ac_tool_prefix}as; ac_word=$2
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if ${ac_cv_prog_AS+:} false; then :
7511   $as_echo_n "(cached) " >&6
7512 else
7513   if test -n "$AS"; then
7514   ac_cv_prog_AS="$AS" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7518 do
7519   IFS=$as_save_IFS
7520   test -z "$as_dir" && as_dir=.
7521     for ac_exec_ext in '' $ac_executable_extensions; do
7522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7523     ac_cv_prog_AS="${ac_tool_prefix}as"
7524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525     break 2
7526   fi
7527 done
7528   done
7529 IFS=$as_save_IFS
7530
7531 fi
7532 fi
7533 AS=$ac_cv_prog_AS
7534 if test -n "$AS"; then
7535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7536 $as_echo "$AS" >&6; }
7537 else
7538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7540 fi
7541
7542
7543 fi
7544 if test -z "$ac_cv_prog_AS"; then
7545   ac_ct_AS=$AS
7546   # Extract the first word of "as", so it can be a program name with args.
7547 set dummy as; ac_word=$2
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 $as_echo_n "checking for $ac_word... " >&6; }
7550 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7551   $as_echo_n "(cached) " >&6
7552 else
7553   if test -n "$ac_ct_AS"; then
7554   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559   IFS=$as_save_IFS
7560   test -z "$as_dir" && as_dir=.
7561     for ac_exec_ext in '' $ac_executable_extensions; do
7562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7563     ac_cv_prog_ac_ct_AS="as"
7564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565     break 2
7566   fi
7567 done
7568   done
7569 IFS=$as_save_IFS
7570
7571 fi
7572 fi
7573 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7574 if test -n "$ac_ct_AS"; then
7575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7576 $as_echo "$ac_ct_AS" >&6; }
7577 else
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581
7582   if test "x$ac_ct_AS" = x; then
7583     AS="false"
7584   else
7585     case $cross_compiling:$ac_tool_warned in
7586 yes:)
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7589 ac_tool_warned=yes ;;
7590 esac
7591     AS=$ac_ct_AS
7592   fi
7593 else
7594   AS="$ac_cv_prog_AS"
7595 fi
7596
7597   if test -n "$ac_tool_prefix"; then
7598   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7599 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if ${ac_cv_prog_DLLTOOL+:} false; then :
7603   $as_echo_n "(cached) " >&6
7604 else
7605   if test -n "$DLLTOOL"; then
7606   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7607 else
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7610 do
7611   IFS=$as_save_IFS
7612   test -z "$as_dir" && as_dir=.
7613     for ac_exec_ext in '' $ac_executable_extensions; do
7614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7615     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617     break 2
7618   fi
7619 done
7620   done
7621 IFS=$as_save_IFS
7622
7623 fi
7624 fi
7625 DLLTOOL=$ac_cv_prog_DLLTOOL
7626 if test -n "$DLLTOOL"; then
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7628 $as_echo "$DLLTOOL" >&6; }
7629 else
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7632 fi
7633
7634
7635 fi
7636 if test -z "$ac_cv_prog_DLLTOOL"; then
7637   ac_ct_DLLTOOL=$DLLTOOL
7638   # Extract the first word of "dlltool", so it can be a program name with args.
7639 set dummy dlltool; ac_word=$2
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 $as_echo_n "checking for $ac_word... " >&6; }
7642 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7643   $as_echo_n "(cached) " >&6
7644 else
7645   if test -n "$ac_ct_DLLTOOL"; then
7646   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7647 else
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 for as_dir in $PATH
7650 do
7651   IFS=$as_save_IFS
7652   test -z "$as_dir" && as_dir=.
7653     for ac_exec_ext in '' $ac_executable_extensions; do
7654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7655     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657     break 2
7658   fi
7659 done
7660   done
7661 IFS=$as_save_IFS
7662
7663 fi
7664 fi
7665 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7666 if test -n "$ac_ct_DLLTOOL"; then
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7668 $as_echo "$ac_ct_DLLTOOL" >&6; }
7669 else
7670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7672 fi
7673
7674   if test "x$ac_ct_DLLTOOL" = x; then
7675     DLLTOOL="false"
7676   else
7677     case $cross_compiling:$ac_tool_warned in
7678 yes:)
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7681 ac_tool_warned=yes ;;
7682 esac
7683     DLLTOOL=$ac_ct_DLLTOOL
7684   fi
7685 else
7686   DLLTOOL="$ac_cv_prog_DLLTOOL"
7687 fi
7688
7689   if test -n "$ac_tool_prefix"; then
7690   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7691 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if ${ac_cv_prog_OBJDUMP+:} false; then :
7695   $as_echo_n "(cached) " >&6
7696 else
7697   if test -n "$OBJDUMP"; then
7698   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7699 else
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7702 do
7703   IFS=$as_save_IFS
7704   test -z "$as_dir" && as_dir=.
7705     for ac_exec_ext in '' $ac_executable_extensions; do
7706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7707     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709     break 2
7710   fi
7711 done
7712   done
7713 IFS=$as_save_IFS
7714
7715 fi
7716 fi
7717 OBJDUMP=$ac_cv_prog_OBJDUMP
7718 if test -n "$OBJDUMP"; then
7719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7720 $as_echo "$OBJDUMP" >&6; }
7721 else
7722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7724 fi
7725
7726
7727 fi
7728 if test -z "$ac_cv_prog_OBJDUMP"; then
7729   ac_ct_OBJDUMP=$OBJDUMP
7730   # Extract the first word of "objdump", so it can be a program name with args.
7731 set dummy objdump; ac_word=$2
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7735   $as_echo_n "(cached) " >&6
7736 else
7737   if test -n "$ac_ct_OBJDUMP"; then
7738   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743   IFS=$as_save_IFS
7744   test -z "$as_dir" && as_dir=.
7745     for ac_exec_ext in '' $ac_executable_extensions; do
7746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7747     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749     break 2
7750   fi
7751 done
7752   done
7753 IFS=$as_save_IFS
7754
7755 fi
7756 fi
7757 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7758 if test -n "$ac_ct_OBJDUMP"; then
7759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7760 $as_echo "$ac_ct_OBJDUMP" >&6; }
7761 else
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7764 fi
7765
7766   if test "x$ac_ct_OBJDUMP" = x; then
7767     OBJDUMP="false"
7768   else
7769     case $cross_compiling:$ac_tool_warned in
7770 yes:)
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7773 ac_tool_warned=yes ;;
7774 esac
7775     OBJDUMP=$ac_ct_OBJDUMP
7776   fi
7777 else
7778   OBJDUMP="$ac_cv_prog_OBJDUMP"
7779 fi
7780
7781   ;;
7782 esac
7783
7784 test -z "$AS" && AS=as
7785
7786
7787
7788
7789
7790 test -z "$DLLTOOL" && DLLTOOL=dlltool
7791
7792
7793
7794
7795
7796 test -z "$OBJDUMP" && OBJDUMP=objdump
7797
7798
7799
7800
7801
7802
7803
7804         enable_dlopen=no
7805
7806
7807
7808             # Check whether --enable-shared was given.
7809 if test "${enable_shared+set}" = set; then :
7810   enableval=$enable_shared; p=${PACKAGE-default}
7811     case $enableval in
7812     yes) enable_shared=yes ;;
7813     no) enable_shared=no ;;
7814     *)
7815       enable_shared=no
7816       # Look at the argument we got.  We use all the common list separators.
7817       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7818       for pkg in $enableval; do
7819         IFS="$lt_save_ifs"
7820         if test "X$pkg" = "X$p"; then
7821           enable_shared=yes
7822         fi
7823       done
7824       IFS="$lt_save_ifs"
7825       ;;
7826     esac
7827 else
7828   enable_shared=yes
7829 fi
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839   # Check whether --enable-static was given.
7840 if test "${enable_static+set}" = set; then :
7841   enableval=$enable_static; p=${PACKAGE-default}
7842     case $enableval in
7843     yes) enable_static=yes ;;
7844     no) enable_static=no ;;
7845     *)
7846      enable_static=no
7847       # Look at the argument we got.  We use all the common list separators.
7848       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7849       for pkg in $enableval; do
7850         IFS="$lt_save_ifs"
7851         if test "X$pkg" = "X$p"; then
7852           enable_static=yes
7853         fi
7854       done
7855       IFS="$lt_save_ifs"
7856       ;;
7857     esac
7858 else
7859   enable_static=yes
7860 fi
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871 # Check whether --with-pic was given.
7872 if test "${with_pic+set}" = set; then :
7873   withval=$with_pic; lt_p=${PACKAGE-default}
7874     case $withval in
7875     yes|no) pic_mode=$withval ;;
7876     *)
7877       pic_mode=default
7878       # Look at the argument we got.  We use all the common list separators.
7879       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7880       for lt_pkg in $withval; do
7881         IFS="$lt_save_ifs"
7882         if test "X$lt_pkg" = "X$lt_p"; then
7883           pic_mode=yes
7884         fi
7885       done
7886       IFS="$lt_save_ifs"
7887       ;;
7888     esac
7889 else
7890   pic_mode=default
7891 fi
7892
7893
7894 test -z "$pic_mode" && pic_mode=default
7895
7896
7897
7898
7899
7900
7901
7902   # Check whether --enable-fast-install was given.
7903 if test "${enable_fast_install+set}" = set; then :
7904   enableval=$enable_fast_install; p=${PACKAGE-default}
7905     case $enableval in
7906     yes) enable_fast_install=yes ;;
7907     no) enable_fast_install=no ;;
7908     *)
7909       enable_fast_install=no
7910       # Look at the argument we got.  We use all the common list separators.
7911       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7912       for pkg in $enableval; do
7913         IFS="$lt_save_ifs"
7914         if test "X$pkg" = "X$p"; then
7915           enable_fast_install=yes
7916         fi
7917       done
7918       IFS="$lt_save_ifs"
7919       ;;
7920     esac
7921 else
7922   enable_fast_install=yes
7923 fi
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935 # This can be used to rebuild libtool when needed
7936 LIBTOOL_DEPS="$ltmain"
7937
7938 # Always use our own libtool.
7939 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970 test -z "$LN_S" && LN_S="ln -s"
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985 if test -n "${ZSH_VERSION+set}" ; then
7986    setopt NO_GLOB_SUBST
7987 fi
7988
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7990 $as_echo_n "checking for objdir... " >&6; }
7991 if ${lt_cv_objdir+:} false; then :
7992   $as_echo_n "(cached) " >&6
7993 else
7994   rm -f .libs 2>/dev/null
7995 mkdir .libs 2>/dev/null
7996 if test -d .libs; then
7997   lt_cv_objdir=.libs
7998 else
7999   # MS-DOS does not allow filenames that begin with a dot.
8000   lt_cv_objdir=_libs
8001 fi
8002 rmdir .libs 2>/dev/null
8003 fi
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8005 $as_echo "$lt_cv_objdir" >&6; }
8006 objdir=$lt_cv_objdir
8007
8008
8009
8010
8011
8012 cat >>confdefs.h <<_ACEOF
8013 #define LT_OBJDIR "$lt_cv_objdir/"
8014 _ACEOF
8015
8016
8017
8018
8019 case $host_os in
8020 aix3*)
8021   # AIX sometimes has problems with the GCC collect2 program.  For some
8022   # reason, if we set the COLLECT_NAMES environment variable, the problems
8023   # vanish in a puff of smoke.
8024   if test "X${COLLECT_NAMES+set}" != Xset; then
8025     COLLECT_NAMES=
8026     export COLLECT_NAMES
8027   fi
8028   ;;
8029 esac
8030
8031 # Global variables:
8032 ofile=libtool
8033 can_build_shared=yes
8034
8035 # All known linkers require a `.a' archive for static linking (except MSVC,
8036 # which needs '.lib').
8037 libext=a
8038
8039 with_gnu_ld="$lt_cv_prog_gnu_ld"
8040
8041 old_CC="$CC"
8042 old_CFLAGS="$CFLAGS"
8043
8044 # Set sane defaults for various variables
8045 test -z "$CC" && CC=cc
8046 test -z "$LTCC" && LTCC=$CC
8047 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8048 test -z "$LD" && LD=ld
8049 test -z "$ac_objext" && ac_objext=o
8050
8051 for cc_temp in $compiler""; do
8052   case $cc_temp in
8053     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8054     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8055     \-*) ;;
8056     *) break;;
8057   esac
8058 done
8059 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8060
8061
8062 # Only perform the check for file, if the check method requires it
8063 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8064 case $deplibs_check_method in
8065 file_magic*)
8066   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8068 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8069 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8070   $as_echo_n "(cached) " >&6
8071 else
8072   case $MAGIC_CMD in
8073 [\\/*] |  ?:[\\/]*)
8074   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8075   ;;
8076 *)
8077   lt_save_MAGIC_CMD="$MAGIC_CMD"
8078   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8079   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8080   for ac_dir in $ac_dummy; do
8081     IFS="$lt_save_ifs"
8082     test -z "$ac_dir" && ac_dir=.
8083     if test -f $ac_dir/${ac_tool_prefix}file; then
8084       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8085       if test -n "$file_magic_test_file"; then
8086         case $deplibs_check_method in
8087         "file_magic "*)
8088           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8089           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8090           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8091             $EGREP "$file_magic_regex" > /dev/null; then
8092             :
8093           else
8094             cat <<_LT_EOF 1>&2
8095
8096 *** Warning: the command libtool uses to detect shared libraries,
8097 *** $file_magic_cmd, produces output that libtool cannot recognize.
8098 *** The result is that libtool may fail to recognize shared libraries
8099 *** as such.  This will affect the creation of libtool libraries that
8100 *** depend on shared libraries, but programs linked with such libtool
8101 *** libraries will work regardless of this problem.  Nevertheless, you
8102 *** may want to report the problem to your system manager and/or to
8103 *** bug-libtool@gnu.org
8104
8105 _LT_EOF
8106           fi ;;
8107         esac
8108       fi
8109       break
8110     fi
8111   done
8112   IFS="$lt_save_ifs"
8113   MAGIC_CMD="$lt_save_MAGIC_CMD"
8114   ;;
8115 esac
8116 fi
8117
8118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8119 if test -n "$MAGIC_CMD"; then
8120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8121 $as_echo "$MAGIC_CMD" >&6; }
8122 else
8123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8125 fi
8126
8127
8128
8129
8130
8131 if test -z "$lt_cv_path_MAGIC_CMD"; then
8132   if test -n "$ac_tool_prefix"; then
8133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8134 $as_echo_n "checking for file... " >&6; }
8135 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8136   $as_echo_n "(cached) " >&6
8137 else
8138   case $MAGIC_CMD in
8139 [\\/*] |  ?:[\\/]*)
8140   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8141   ;;
8142 *)
8143   lt_save_MAGIC_CMD="$MAGIC_CMD"
8144   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8145   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8146   for ac_dir in $ac_dummy; do
8147     IFS="$lt_save_ifs"
8148     test -z "$ac_dir" && ac_dir=.
8149     if test -f $ac_dir/file; then
8150       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8151       if test -n "$file_magic_test_file"; then
8152         case $deplibs_check_method in
8153         "file_magic "*)
8154           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8155           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8156           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8157             $EGREP "$file_magic_regex" > /dev/null; then
8158             :
8159           else
8160             cat <<_LT_EOF 1>&2
8161
8162 *** Warning: the command libtool uses to detect shared libraries,
8163 *** $file_magic_cmd, produces output that libtool cannot recognize.
8164 *** The result is that libtool may fail to recognize shared libraries
8165 *** as such.  This will affect the creation of libtool libraries that
8166 *** depend on shared libraries, but programs linked with such libtool
8167 *** libraries will work regardless of this problem.  Nevertheless, you
8168 *** may want to report the problem to your system manager and/or to
8169 *** bug-libtool@gnu.org
8170
8171 _LT_EOF
8172           fi ;;
8173         esac
8174       fi
8175       break
8176     fi
8177   done
8178   IFS="$lt_save_ifs"
8179   MAGIC_CMD="$lt_save_MAGIC_CMD"
8180   ;;
8181 esac
8182 fi
8183
8184 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8185 if test -n "$MAGIC_CMD"; then
8186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8187 $as_echo "$MAGIC_CMD" >&6; }
8188 else
8189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8191 fi
8192
8193
8194   else
8195     MAGIC_CMD=:
8196   fi
8197 fi
8198
8199   fi
8200   ;;
8201 esac
8202
8203 # Use C for the default configuration in the libtool script
8204
8205 lt_save_CC="$CC"
8206 ac_ext=c
8207 ac_cpp='$CPP $CPPFLAGS'
8208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8211
8212
8213 # Source file extension for C test sources.
8214 ac_ext=c
8215
8216 # Object file extension for compiled C test sources.
8217 objext=o
8218 objext=$objext
8219
8220 # Code to be used in simple compile tests
8221 lt_simple_compile_test_code="int some_variable = 0;"
8222
8223 # Code to be used in simple link tests
8224 lt_simple_link_test_code='int main(){return(0);}'
8225
8226
8227
8228
8229
8230
8231
8232 # If no C compiler was specified, use CC.
8233 LTCC=${LTCC-"$CC"}
8234
8235 # If no C compiler flags were specified, use CFLAGS.
8236 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8237
8238 # Allow CC to be a program name with arguments.
8239 compiler=$CC
8240
8241 # Save the default compiler, since it gets overwritten when the other
8242 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8243 compiler_DEFAULT=$CC
8244
8245 # save warnings/boilerplate of simple test code
8246 ac_outfile=conftest.$ac_objext
8247 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8248 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8249 _lt_compiler_boilerplate=`cat conftest.err`
8250 $RM conftest*
8251
8252 ac_outfile=conftest.$ac_objext
8253 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8254 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8255 _lt_linker_boilerplate=`cat conftest.err`
8256 $RM -r conftest*
8257
8258
8259 ## CAVEAT EMPTOR:
8260 ## There is no encapsulation within the following macros, do not change
8261 ## the running order or otherwise move them around unless you know exactly
8262 ## what you are doing...
8263 if test -n "$compiler"; then
8264
8265 lt_prog_compiler_no_builtin_flag=
8266
8267 if test "$GCC" = yes; then
8268   case $cc_basename in
8269   nvcc*)
8270     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8271   *)
8272     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8273   esac
8274
8275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8276 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8277 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8278   $as_echo_n "(cached) " >&6
8279 else
8280   lt_cv_prog_compiler_rtti_exceptions=no
8281    ac_outfile=conftest.$ac_objext
8282    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8283    lt_compiler_flag="-fno-rtti -fno-exceptions"
8284    # Insert the option either (1) after the last *FLAGS variable, or
8285    # (2) before a word containing "conftest.", or (3) at the end.
8286    # Note that $ac_compile itself does not contain backslashes and begins
8287    # with a dollar sign (not a hyphen), so the echo should work correctly.
8288    # The option is referenced via a variable to avoid confusing sed.
8289    lt_compile=`echo "$ac_compile" | $SED \
8290    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8291    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8292    -e 's:$: $lt_compiler_flag:'`
8293    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8294    (eval "$lt_compile" 2>conftest.err)
8295    ac_status=$?
8296    cat conftest.err >&5
8297    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298    if (exit $ac_status) && test -s "$ac_outfile"; then
8299      # The compiler can only warn and ignore the option if not recognized
8300      # So say no if there are warnings other than the usual output.
8301      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8302      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8303      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8304        lt_cv_prog_compiler_rtti_exceptions=yes
8305      fi
8306    fi
8307    $RM conftest*
8308
8309 fi
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8311 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8312
8313 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8314     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8315 else
8316     :
8317 fi
8318
8319 fi
8320
8321
8322
8323
8324
8325
8326   lt_prog_compiler_wl=
8327 lt_prog_compiler_pic=
8328 lt_prog_compiler_static=
8329
8330
8331   if test "$GCC" = yes; then
8332     lt_prog_compiler_wl='-Wl,'
8333     lt_prog_compiler_static='-static'
8334
8335     case $host_os in
8336       aix*)
8337       # All AIX code is PIC.
8338       if test "$host_cpu" = ia64; then
8339         # AIX 5 now supports IA64 processor
8340         lt_prog_compiler_static='-Bstatic'
8341       fi
8342       ;;
8343
8344     amigaos*)
8345       case $host_cpu in
8346       powerpc)
8347             # see comment about AmigaOS4 .so support
8348             lt_prog_compiler_pic='-fPIC'
8349         ;;
8350       m68k)
8351             # FIXME: we need at least 68020 code to build shared libraries, but
8352             # adding the `-m68020' flag to GCC prevents building anything better,
8353             # like `-m68040'.
8354             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8355         ;;
8356       esac
8357       ;;
8358
8359     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8360       # PIC is the default for these OSes.
8361       ;;
8362
8363     mingw* | cygwin* | pw32* | os2* | cegcc*)
8364       # This hack is so that the source file can tell whether it is being
8365       # built for inclusion in a dll (and should export symbols for example).
8366       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8367       # (--disable-auto-import) libraries
8368       lt_prog_compiler_pic='-DDLL_EXPORT'
8369       ;;
8370
8371     darwin* | rhapsody*)
8372       # PIC is the default on this platform
8373       # Common symbols not allowed in MH_DYLIB files
8374       lt_prog_compiler_pic='-fno-common'
8375       ;;
8376
8377     haiku*)
8378       # PIC is the default for Haiku.
8379       # The "-static" flag exists, but is broken.
8380       lt_prog_compiler_static=
8381       ;;
8382
8383     hpux*)
8384       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8385       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8386       # sets the default TLS model and affects inlining.
8387       case $host_cpu in
8388       hppa*64*)
8389         # +Z the default
8390         ;;
8391       *)
8392         lt_prog_compiler_pic='-fPIC'
8393         ;;
8394       esac
8395       ;;
8396
8397     interix[3-9]*)
8398       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8399       # Instead, we relocate shared libraries at runtime.
8400       ;;
8401
8402     msdosdjgpp*)
8403       # Just because we use GCC doesn't mean we suddenly get shared libraries
8404       # on systems that don't support them.
8405       lt_prog_compiler_can_build_shared=no
8406       enable_shared=no
8407       ;;
8408
8409     *nto* | *qnx*)
8410       # QNX uses GNU C++, but need to define -shared option too, otherwise
8411       # it will coredump.
8412       lt_prog_compiler_pic='-fPIC -shared'
8413       ;;
8414
8415     sysv4*MP*)
8416       if test -d /usr/nec; then
8417         lt_prog_compiler_pic=-Kconform_pic
8418       fi
8419       ;;
8420
8421     *)
8422       lt_prog_compiler_pic='-fPIC'
8423       ;;
8424     esac
8425
8426     case $cc_basename in
8427     nvcc*) # Cuda Compiler Driver 2.2
8428       lt_prog_compiler_wl='-Xlinker '
8429       if test -n "$lt_prog_compiler_pic"; then
8430         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8431       fi
8432       ;;
8433     esac
8434   else
8435     # PORTME Check for flag to pass linker flags through the system compiler.
8436     case $host_os in
8437     aix*)
8438       lt_prog_compiler_wl='-Wl,'
8439       if test "$host_cpu" = ia64; then
8440         # AIX 5 now supports IA64 processor
8441         lt_prog_compiler_static='-Bstatic'
8442       else
8443         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8444       fi
8445       ;;
8446
8447     mingw* | cygwin* | pw32* | os2* | cegcc*)
8448       # This hack is so that the source file can tell whether it is being
8449       # built for inclusion in a dll (and should export symbols for example).
8450       lt_prog_compiler_pic='-DDLL_EXPORT'
8451       ;;
8452
8453     hpux9* | hpux10* | hpux11*)
8454       lt_prog_compiler_wl='-Wl,'
8455       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8456       # not for PA HP-UX.
8457       case $host_cpu in
8458       hppa*64*|ia64*)
8459         # +Z the default
8460         ;;
8461       *)
8462         lt_prog_compiler_pic='+Z'
8463         ;;
8464       esac
8465       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8466       lt_prog_compiler_static='${wl}-a ${wl}archive'
8467       ;;
8468
8469     irix5* | irix6* | nonstopux*)
8470       lt_prog_compiler_wl='-Wl,'
8471       # PIC (with -KPIC) is the default.
8472       lt_prog_compiler_static='-non_shared'
8473       ;;
8474
8475     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8476       case $cc_basename in
8477       # old Intel for x86_64 which still supported -KPIC.
8478       ecc*)
8479         lt_prog_compiler_wl='-Wl,'
8480         lt_prog_compiler_pic='-KPIC'
8481         lt_prog_compiler_static='-static'
8482         ;;
8483       # icc used to be incompatible with GCC.
8484       # ICC 10 doesn't accept -KPIC any more.
8485       icc* | ifort*)
8486         lt_prog_compiler_wl='-Wl,'
8487         lt_prog_compiler_pic='-fPIC'
8488         lt_prog_compiler_static='-static'
8489         ;;
8490       # Lahey Fortran 8.1.
8491       lf95*)
8492         lt_prog_compiler_wl='-Wl,'
8493         lt_prog_compiler_pic='--shared'
8494         lt_prog_compiler_static='--static'
8495         ;;
8496       nagfor*)
8497         # NAG Fortran compiler
8498         lt_prog_compiler_wl='-Wl,-Wl,,'
8499         lt_prog_compiler_pic='-PIC'
8500         lt_prog_compiler_static='-Bstatic'
8501         ;;
8502       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8503         # Portland Group compilers (*not* the Pentium gcc compiler,
8504         # which looks to be a dead project)
8505         lt_prog_compiler_wl='-Wl,'
8506         lt_prog_compiler_pic='-fpic'
8507         lt_prog_compiler_static='-Bstatic'
8508         ;;
8509       ccc*)
8510         lt_prog_compiler_wl='-Wl,'
8511         # All Alpha code is PIC.
8512         lt_prog_compiler_static='-non_shared'
8513         ;;
8514       xl* | bgxl* | bgf* | mpixl*)
8515         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8516         lt_prog_compiler_wl='-Wl,'
8517         lt_prog_compiler_pic='-qpic'
8518         lt_prog_compiler_static='-qstaticlink'
8519         ;;
8520       *)
8521         case `$CC -V 2>&1 | sed 5q` in
8522         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8523           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8524           lt_prog_compiler_pic='-KPIC'
8525           lt_prog_compiler_static='-Bstatic'
8526           lt_prog_compiler_wl=''
8527           ;;
8528         *Sun\ F* | *Sun*Fortran*)
8529           lt_prog_compiler_pic='-KPIC'
8530           lt_prog_compiler_static='-Bstatic'
8531           lt_prog_compiler_wl='-Qoption ld '
8532           ;;
8533         *Sun\ C*)
8534           # Sun C 5.9
8535           lt_prog_compiler_pic='-KPIC'
8536           lt_prog_compiler_static='-Bstatic'
8537           lt_prog_compiler_wl='-Wl,'
8538           ;;
8539         *Intel*\ [CF]*Compiler*)
8540           lt_prog_compiler_wl='-Wl,'
8541           lt_prog_compiler_pic='-fPIC'
8542           lt_prog_compiler_static='-static'
8543           ;;
8544         *Portland\ Group*)
8545           lt_prog_compiler_wl='-Wl,'
8546           lt_prog_compiler_pic='-fpic'
8547           lt_prog_compiler_static='-Bstatic'
8548           ;;
8549         esac
8550         ;;
8551       esac
8552       ;;
8553
8554     newsos6)
8555       lt_prog_compiler_pic='-KPIC'
8556       lt_prog_compiler_static='-Bstatic'
8557       ;;
8558
8559     *nto* | *qnx*)
8560       # QNX uses GNU C++, but need to define -shared option too, otherwise
8561       # it will coredump.
8562       lt_prog_compiler_pic='-fPIC -shared'
8563       ;;
8564
8565     osf3* | osf4* | osf5*)
8566       lt_prog_compiler_wl='-Wl,'
8567       # All OSF/1 code is PIC.
8568       lt_prog_compiler_static='-non_shared'
8569       ;;
8570
8571     rdos*)
8572       lt_prog_compiler_static='-non_shared'
8573       ;;
8574
8575     solaris*)
8576       lt_prog_compiler_pic='-KPIC'
8577       lt_prog_compiler_static='-Bstatic'
8578       case $cc_basename in
8579       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8580         lt_prog_compiler_wl='-Qoption ld ';;
8581       *)
8582         lt_prog_compiler_wl='-Wl,';;
8583       esac
8584       ;;
8585
8586     sunos4*)
8587       lt_prog_compiler_wl='-Qoption ld '
8588       lt_prog_compiler_pic='-PIC'
8589       lt_prog_compiler_static='-Bstatic'
8590       ;;
8591
8592     sysv4 | sysv4.2uw2* | sysv4.3*)
8593       lt_prog_compiler_wl='-Wl,'
8594       lt_prog_compiler_pic='-KPIC'
8595       lt_prog_compiler_static='-Bstatic'
8596       ;;
8597
8598     sysv4*MP*)
8599       if test -d /usr/nec ;then
8600         lt_prog_compiler_pic='-Kconform_pic'
8601         lt_prog_compiler_static='-Bstatic'
8602       fi
8603       ;;
8604
8605     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8606       lt_prog_compiler_wl='-Wl,'
8607       lt_prog_compiler_pic='-KPIC'
8608       lt_prog_compiler_static='-Bstatic'
8609       ;;
8610
8611     unicos*)
8612       lt_prog_compiler_wl='-Wl,'
8613       lt_prog_compiler_can_build_shared=no
8614       ;;
8615
8616     uts4*)
8617       lt_prog_compiler_pic='-pic'
8618       lt_prog_compiler_static='-Bstatic'
8619       ;;
8620
8621     *)
8622       lt_prog_compiler_can_build_shared=no
8623       ;;
8624     esac
8625   fi
8626
8627 case $host_os in
8628   # For platforms which do not support PIC, -DPIC is meaningless:
8629   *djgpp*)
8630     lt_prog_compiler_pic=
8631     ;;
8632   *)
8633     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8634     ;;
8635 esac
8636
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8638 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8639 if ${lt_cv_prog_compiler_pic+:} false; then :
8640   $as_echo_n "(cached) " >&6
8641 else
8642   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8643 fi
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8645 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8646 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8647
8648 #
8649 # Check to make sure the PIC flag actually works.
8650 #
8651 if test -n "$lt_prog_compiler_pic"; then
8652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8653 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8654 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8655   $as_echo_n "(cached) " >&6
8656 else
8657   lt_cv_prog_compiler_pic_works=no
8658    ac_outfile=conftest.$ac_objext
8659    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8660    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8661    # Insert the option either (1) after the last *FLAGS variable, or
8662    # (2) before a word containing "conftest.", or (3) at the end.
8663    # Note that $ac_compile itself does not contain backslashes and begins
8664    # with a dollar sign (not a hyphen), so the echo should work correctly.
8665    # The option is referenced via a variable to avoid confusing sed.
8666    lt_compile=`echo "$ac_compile" | $SED \
8667    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8668    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8669    -e 's:$: $lt_compiler_flag:'`
8670    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8671    (eval "$lt_compile" 2>conftest.err)
8672    ac_status=$?
8673    cat conftest.err >&5
8674    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675    if (exit $ac_status) && test -s "$ac_outfile"; then
8676      # The compiler can only warn and ignore the option if not recognized
8677      # So say no if there are warnings other than the usual output.
8678      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8679      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8680      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8681        lt_cv_prog_compiler_pic_works=yes
8682      fi
8683    fi
8684    $RM conftest*
8685
8686 fi
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8688 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8689
8690 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8691     case $lt_prog_compiler_pic in
8692      "" | " "*) ;;
8693      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8694      esac
8695 else
8696     lt_prog_compiler_pic=
8697      lt_prog_compiler_can_build_shared=no
8698 fi
8699
8700 fi
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712 #
8713 # Check to make sure the static flag actually works.
8714 #
8715 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8717 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8718 if ${lt_cv_prog_compiler_static_works+:} false; then :
8719   $as_echo_n "(cached) " >&6
8720 else
8721   lt_cv_prog_compiler_static_works=no
8722    save_LDFLAGS="$LDFLAGS"
8723    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8724    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8725    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8726      # The linker can only warn and ignore the option if not recognized
8727      # So say no if there are warnings
8728      if test -s conftest.err; then
8729        # Append any errors to the config.log.
8730        cat conftest.err 1>&5
8731        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8732        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8733        if diff conftest.exp conftest.er2 >/dev/null; then
8734          lt_cv_prog_compiler_static_works=yes
8735        fi
8736      else
8737        lt_cv_prog_compiler_static_works=yes
8738      fi
8739    fi
8740    $RM -r conftest*
8741    LDFLAGS="$save_LDFLAGS"
8742
8743 fi
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8745 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8746
8747 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8748     :
8749 else
8750     lt_prog_compiler_static=
8751 fi
8752
8753
8754
8755
8756
8757
8758
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8760 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8761 if ${lt_cv_prog_compiler_c_o+:} false; then :
8762   $as_echo_n "(cached) " >&6
8763 else
8764   lt_cv_prog_compiler_c_o=no
8765    $RM -r conftest 2>/dev/null
8766    mkdir conftest
8767    cd conftest
8768    mkdir out
8769    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8770
8771    lt_compiler_flag="-o out/conftest2.$ac_objext"
8772    # Insert the option either (1) after the last *FLAGS variable, or
8773    # (2) before a word containing "conftest.", or (3) at the end.
8774    # Note that $ac_compile itself does not contain backslashes and begins
8775    # with a dollar sign (not a hyphen), so the echo should work correctly.
8776    lt_compile=`echo "$ac_compile" | $SED \
8777    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8778    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8779    -e 's:$: $lt_compiler_flag:'`
8780    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8781    (eval "$lt_compile" 2>out/conftest.err)
8782    ac_status=$?
8783    cat out/conftest.err >&5
8784    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8786    then
8787      # The compiler can only warn and ignore the option if not recognized
8788      # So say no if there are warnings
8789      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8790      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8791      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8792        lt_cv_prog_compiler_c_o=yes
8793      fi
8794    fi
8795    chmod u+w . 2>&5
8796    $RM conftest*
8797    # SGI C++ compiler will create directory out/ii_files/ for
8798    # template instantiation
8799    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8800    $RM out/* && rmdir out
8801    cd ..
8802    $RM -r conftest
8803    $RM conftest*
8804
8805 fi
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8807 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8808
8809
8810
8811
8812
8813
8814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8815 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8816 if ${lt_cv_prog_compiler_c_o+:} false; then :
8817   $as_echo_n "(cached) " >&6
8818 else
8819   lt_cv_prog_compiler_c_o=no
8820    $RM -r conftest 2>/dev/null
8821    mkdir conftest
8822    cd conftest
8823    mkdir out
8824    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8825
8826    lt_compiler_flag="-o out/conftest2.$ac_objext"
8827    # Insert the option either (1) after the last *FLAGS variable, or
8828    # (2) before a word containing "conftest.", or (3) at the end.
8829    # Note that $ac_compile itself does not contain backslashes and begins
8830    # with a dollar sign (not a hyphen), so the echo should work correctly.
8831    lt_compile=`echo "$ac_compile" | $SED \
8832    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8833    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8834    -e 's:$: $lt_compiler_flag:'`
8835    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8836    (eval "$lt_compile" 2>out/conftest.err)
8837    ac_status=$?
8838    cat out/conftest.err >&5
8839    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8841    then
8842      # The compiler can only warn and ignore the option if not recognized
8843      # So say no if there are warnings
8844      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8845      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8846      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8847        lt_cv_prog_compiler_c_o=yes
8848      fi
8849    fi
8850    chmod u+w . 2>&5
8851    $RM conftest*
8852    # SGI C++ compiler will create directory out/ii_files/ for
8853    # template instantiation
8854    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8855    $RM out/* && rmdir out
8856    cd ..
8857    $RM -r conftest
8858    $RM conftest*
8859
8860 fi
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8862 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8863
8864
8865
8866
8867 hard_links="nottested"
8868 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8869   # do not overwrite the value of need_locks provided by the user
8870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8871 $as_echo_n "checking if we can lock with hard links... " >&6; }
8872   hard_links=yes
8873   $RM conftest*
8874   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8875   touch conftest.a
8876   ln conftest.a conftest.b 2>&5 || hard_links=no
8877   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8879 $as_echo "$hard_links" >&6; }
8880   if test "$hard_links" = no; then
8881     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8882 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8883     need_locks=warn
8884   fi
8885 else
8886   need_locks=no
8887 fi
8888
8889
8890
8891
8892
8893
8894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8895 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8896
8897   runpath_var=
8898   allow_undefined_flag=
8899   always_export_symbols=no
8900   archive_cmds=
8901   archive_expsym_cmds=
8902   compiler_needs_object=no
8903   enable_shared_with_static_runtimes=no
8904   export_dynamic_flag_spec=
8905   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8906   hardcode_automatic=no
8907   hardcode_direct=no
8908   hardcode_direct_absolute=no
8909   hardcode_libdir_flag_spec=
8910   hardcode_libdir_separator=
8911   hardcode_minus_L=no
8912   hardcode_shlibpath_var=unsupported
8913   inherit_rpath=no
8914   link_all_deplibs=unknown
8915   module_cmds=
8916   module_expsym_cmds=
8917   old_archive_from_new_cmds=
8918   old_archive_from_expsyms_cmds=
8919   thread_safe_flag_spec=
8920   whole_archive_flag_spec=
8921   # include_expsyms should be a list of space-separated symbols to be *always*
8922   # included in the symbol list
8923   include_expsyms=
8924   # exclude_expsyms can be an extended regexp of symbols to exclude
8925   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8926   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8927   # as well as any symbol that contains `d'.
8928   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8929   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8930   # platforms (ab)use it in PIC code, but their linkers get confused if
8931   # the symbol is explicitly referenced.  Since portable code cannot
8932   # rely on this symbol name, it's probably fine to never include it in
8933   # preloaded symbol tables.
8934   # Exclude shared library initialization/finalization symbols.
8935   extract_expsyms_cmds=
8936
8937   case $host_os in
8938   cygwin* | mingw* | pw32* | cegcc*)
8939     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8940     # When not using gcc, we currently assume that we are using
8941     # Microsoft Visual C++.
8942     if test "$GCC" != yes; then
8943       with_gnu_ld=no
8944     fi
8945     ;;
8946   interix*)
8947     # we just hope/assume this is gcc and not c89 (= MSVC++)
8948     with_gnu_ld=yes
8949     ;;
8950   openbsd*)
8951     with_gnu_ld=no
8952     ;;
8953   linux* | k*bsd*-gnu | gnu*)
8954     link_all_deplibs=no
8955     ;;
8956   esac
8957
8958   ld_shlibs=yes
8959
8960   # On some targets, GNU ld is compatible enough with the native linker
8961   # that we're better off using the native interface for both.
8962   lt_use_gnu_ld_interface=no
8963   if test "$with_gnu_ld" = yes; then
8964     case $host_os in
8965       aix*)
8966         # The AIX port of GNU ld has always aspired to compatibility
8967         # with the native linker.  However, as the warning in the GNU ld
8968         # block says, versions before 2.19.5* couldn't really create working
8969         # shared libraries, regardless of the interface used.
8970         case `$LD -v 2>&1` in
8971           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8972           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8973           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8974           *)
8975             lt_use_gnu_ld_interface=yes
8976             ;;
8977         esac
8978         ;;
8979       *)
8980         lt_use_gnu_ld_interface=yes
8981         ;;
8982     esac
8983   fi
8984
8985   if test "$lt_use_gnu_ld_interface" = yes; then
8986     # If archive_cmds runs LD, not CC, wlarc should be empty
8987     wlarc='${wl}'
8988
8989     # Set some defaults for GNU ld with shared library support. These
8990     # are reset later if shared libraries are not supported. Putting them
8991     # here allows them to be overridden if necessary.
8992     runpath_var=LD_RUN_PATH
8993     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8994     export_dynamic_flag_spec='${wl}--export-dynamic'
8995     # ancient GNU ld didn't support --whole-archive et. al.
8996     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8997       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8998     else
8999       whole_archive_flag_spec=
9000     fi
9001     supports_anon_versioning=no
9002     case `$LD -v 2>&1` in
9003       *GNU\ gold*) supports_anon_versioning=yes ;;
9004       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9005       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9006       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9007       *\ 2.11.*) ;; # other 2.11 versions
9008       *) supports_anon_versioning=yes ;;
9009     esac
9010
9011     # See if GNU ld supports shared libraries.
9012     case $host_os in
9013     aix[3-9]*)
9014       # On AIX/PPC, the GNU linker is very broken
9015       if test "$host_cpu" != ia64; then
9016         ld_shlibs=no
9017         cat <<_LT_EOF 1>&2
9018
9019 *** Warning: the GNU linker, at least up to release 2.19, is reported
9020 *** to be unable to reliably create shared libraries on AIX.
9021 *** Therefore, libtool is disabling shared libraries support.  If you
9022 *** really care for shared libraries, you may want to install binutils
9023 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9024 *** You will then need to restart the configuration process.
9025
9026 _LT_EOF
9027       fi
9028       ;;
9029
9030     amigaos*)
9031       case $host_cpu in
9032       powerpc)
9033             # see comment about AmigaOS4 .so support
9034             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9035             archive_expsym_cmds=''
9036         ;;
9037       m68k)
9038             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)'
9039             hardcode_libdir_flag_spec='-L$libdir'
9040             hardcode_minus_L=yes
9041         ;;
9042       esac
9043       ;;
9044
9045     beos*)
9046       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9047         allow_undefined_flag=unsupported
9048         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9049         # support --undefined.  This deserves some investigation.  FIXME
9050         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9051       else
9052         ld_shlibs=no
9053       fi
9054       ;;
9055
9056     cygwin* | mingw* | pw32* | cegcc*)
9057       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9058       # as there is no search path for DLLs.
9059       hardcode_libdir_flag_spec='-L$libdir'
9060       export_dynamic_flag_spec='${wl}--export-all-symbols'
9061       allow_undefined_flag=unsupported
9062       always_export_symbols=no
9063       enable_shared_with_static_runtimes=yes
9064       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'
9065       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9066
9067       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9068         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9069         # If the export-symbols file already is a .def file (1st line
9070         # is EXPORTS), use it as is; otherwise, prepend...
9071         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9072           cp $export_symbols $output_objdir/$soname.def;
9073         else
9074           echo EXPORTS > $output_objdir/$soname.def;
9075           cat $export_symbols >> $output_objdir/$soname.def;
9076         fi~
9077         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9078       else
9079         ld_shlibs=no
9080       fi
9081       ;;
9082
9083     haiku*)
9084       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9085       link_all_deplibs=yes
9086       ;;
9087
9088     interix[3-9]*)
9089       hardcode_direct=no
9090       hardcode_shlibpath_var=no
9091       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9092       export_dynamic_flag_spec='${wl}-E'
9093       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9094       # Instead, shared libraries are loaded at an image base (0x10000000 by
9095       # default) and relocated if they conflict, which is a slow very memory
9096       # consuming and fragmenting process.  To avoid this, we pick a random,
9097       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9098       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9099       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9100       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'
9101       ;;
9102
9103     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9104       tmp_diet=no
9105       if test "$host_os" = linux-dietlibc; then
9106         case $cc_basename in
9107           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9108         esac
9109       fi
9110       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9111          && test "$tmp_diet" = no
9112       then
9113         tmp_addflag=' $pic_flag'
9114         tmp_sharedflag='-shared'
9115         case $cc_basename,$host_cpu in
9116         pgcc*)                          # Portland Group C compiler
9117           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'
9118           tmp_addflag=' $pic_flag'
9119           ;;
9120         pgf77* | pgf90* | pgf95* | pgfortran*)
9121                                         # Portland Group f77 and f90 compilers
9122           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'
9123           tmp_addflag=' $pic_flag -Mnomain' ;;
9124         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9125           tmp_addflag=' -i_dynamic' ;;
9126         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9127           tmp_addflag=' -i_dynamic -nofor_main' ;;
9128         ifc* | ifort*)                  # Intel Fortran compiler
9129           tmp_addflag=' -nofor_main' ;;
9130         lf95*)                          # Lahey Fortran 8.1
9131           whole_archive_flag_spec=
9132           tmp_sharedflag='--shared' ;;
9133         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9134           tmp_sharedflag='-qmkshrobj'
9135           tmp_addflag= ;;
9136         nvcc*)  # Cuda Compiler Driver 2.2
9137           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'
9138           compiler_needs_object=yes
9139           ;;
9140         esac
9141         case `$CC -V 2>&1 | sed 5q` in
9142         *Sun\ C*)                       # Sun C 5.9
9143           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'
9144           compiler_needs_object=yes
9145           tmp_sharedflag='-G' ;;
9146         *Sun\ F*)                       # Sun Fortran 8.3
9147           tmp_sharedflag='-G' ;;
9148         esac
9149         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9150
9151         if test "x$supports_anon_versioning" = xyes; then
9152           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9153             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9154             echo "local: *; };" >> $output_objdir/$libname.ver~
9155             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9156         fi
9157
9158         case $cc_basename in
9159         xlf* | bgf* | bgxlf* | mpixlf*)
9160           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9161           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9162           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9163           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9164           if test "x$supports_anon_versioning" = xyes; then
9165             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9166               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9167               echo "local: *; };" >> $output_objdir/$libname.ver~
9168               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9169           fi
9170           ;;
9171         esac
9172       else
9173         ld_shlibs=no
9174       fi
9175       ;;
9176
9177     netbsd* | netbsdelf*-gnu)
9178       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9179         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9180         wlarc=
9181       else
9182         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9183         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9184       fi
9185       ;;
9186
9187     solaris*)
9188       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9189         ld_shlibs=no
9190         cat <<_LT_EOF 1>&2
9191
9192 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9193 *** create shared libraries on Solaris systems.  Therefore, libtool
9194 *** is disabling shared libraries support.  We urge you to upgrade GNU
9195 *** binutils to release 2.9.1 or newer.  Another option is to modify
9196 *** your PATH or compiler configuration so that the native linker is
9197 *** used, and then restart.
9198
9199 _LT_EOF
9200       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9201         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9203       else
9204         ld_shlibs=no
9205       fi
9206       ;;
9207
9208     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9209       case `$LD -v 2>&1` in
9210         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9211         ld_shlibs=no
9212         cat <<_LT_EOF 1>&2
9213
9214 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9215 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9216 *** is disabling shared libraries support.  We urge you to upgrade GNU
9217 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9218 *** your PATH or compiler configuration so that the native linker is
9219 *** used, and then restart.
9220
9221 _LT_EOF
9222         ;;
9223         *)
9224           # For security reasons, it is highly recommended that you always
9225           # use absolute paths for naming shared libraries, and exclude the
9226           # DT_RUNPATH tag from executables and libraries.  But doing so
9227           # requires that you compile everything twice, which is a pain.
9228           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9229             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9230             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9231             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9232           else
9233             ld_shlibs=no
9234           fi
9235         ;;
9236       esac
9237       ;;
9238
9239     sunos4*)
9240       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9241       wlarc=
9242       hardcode_direct=yes
9243       hardcode_shlibpath_var=no
9244       ;;
9245
9246     *)
9247       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9248         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9249         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9250       else
9251         ld_shlibs=no
9252       fi
9253       ;;
9254     esac
9255
9256     if test "$ld_shlibs" = no; then
9257       runpath_var=
9258       hardcode_libdir_flag_spec=
9259       export_dynamic_flag_spec=
9260       whole_archive_flag_spec=
9261     fi
9262   else
9263     # PORTME fill in a description of your system's linker (not GNU ld)
9264     case $host_os in
9265     aix3*)
9266       allow_undefined_flag=unsupported
9267       always_export_symbols=yes
9268       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'
9269       # Note: this linker hardcodes the directories in LIBPATH if there
9270       # are no directories specified by -L.
9271       hardcode_minus_L=yes
9272       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9273         # Neither direct hardcoding nor static linking is supported with a
9274         # broken collect2.
9275         hardcode_direct=unsupported
9276       fi
9277       ;;
9278
9279     aix[4-9]*)
9280       if test "$host_cpu" = ia64; then
9281         # On IA64, the linker does run time linking by default, so we don't
9282         # have to do anything special.
9283         aix_use_runtimelinking=no
9284         exp_sym_flag='-Bexport'
9285         no_entry_flag=""
9286       else
9287         # If we're using GNU nm, then we don't want the "-C" option.
9288         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9289         # Also, AIX nm treats weak defined symbols like other global
9290         # defined symbols, whereas GNU nm marks them as "W".
9291         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9292           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9293         else
9294           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9295         fi
9296         aix_use_runtimelinking=no
9297
9298         # Test if we are trying to use run time linking or normal
9299         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9300         # need to do runtime linking.
9301         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9302           for ld_flag in $LDFLAGS; do
9303           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9304             aix_use_runtimelinking=yes
9305             break
9306           fi
9307           done
9308           ;;
9309         esac
9310
9311         exp_sym_flag='-bexport'
9312         no_entry_flag='-bnoentry'
9313       fi
9314
9315       # When large executables or shared objects are built, AIX ld can
9316       # have problems creating the table of contents.  If linking a library
9317       # or program results in "error TOC overflow" add -mminimal-toc to
9318       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9319       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9320
9321       archive_cmds=''
9322       hardcode_direct=yes
9323       hardcode_direct_absolute=yes
9324       hardcode_libdir_separator=':'
9325       link_all_deplibs=yes
9326       file_list_spec='${wl}-f,'
9327
9328       if test "$GCC" = yes; then
9329         case $host_os in aix4.[012]|aix4.[012].*)
9330         # We only want to do this on AIX 4.2 and lower, the check
9331         # below for broken collect2 doesn't work under 4.3+
9332           collect2name=`${CC} -print-prog-name=collect2`
9333           if test -f "$collect2name" &&
9334            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9335           then
9336           # We have reworked collect2
9337           :
9338           else
9339           # We have old collect2
9340           hardcode_direct=unsupported
9341           # It fails to find uninstalled libraries when the uninstalled
9342           # path is not listed in the libpath.  Setting hardcode_minus_L
9343           # to unsupported forces relinking
9344           hardcode_minus_L=yes
9345           hardcode_libdir_flag_spec='-L$libdir'
9346           hardcode_libdir_separator=
9347           fi
9348           ;;
9349         esac
9350         shared_flag='-shared'
9351         if test "$aix_use_runtimelinking" = yes; then
9352           shared_flag="$shared_flag "'${wl}-G'
9353         fi
9354         link_all_deplibs=no
9355       else
9356         # not using gcc
9357         if test "$host_cpu" = ia64; then
9358         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9359         # chokes on -Wl,-G. The following line is correct:
9360           shared_flag='-G'
9361         else
9362           if test "$aix_use_runtimelinking" = yes; then
9363             shared_flag='${wl}-G'
9364           else
9365             shared_flag='${wl}-bM:SRE'
9366           fi
9367         fi
9368       fi
9369
9370       export_dynamic_flag_spec='${wl}-bexpall'
9371       # It seems that -bexpall does not export symbols beginning with
9372       # underscore (_), so it is better to generate a list of symbols to export.
9373       always_export_symbols=yes
9374       if test "$aix_use_runtimelinking" = yes; then
9375         # Warning - without using the other runtime loading flags (-brtl),
9376         # -berok will link without error, but may produce a broken library.
9377         allow_undefined_flag='-berok'
9378         # Determine the default libpath from the value encoded in an
9379         # empty executable.
9380         if test "${lt_cv_aix_libpath+set}" = set; then
9381   aix_libpath=$lt_cv_aix_libpath
9382 else
9383   if ${lt_cv_aix_libpath_+:} false; then :
9384   $as_echo_n "(cached) " >&6
9385 else
9386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h.  */
9388
9389 int
9390 main ()
9391 {
9392
9393   ;
9394   return 0;
9395 }
9396 _ACEOF
9397 if ac_fn_c_try_link "$LINENO"; then :
9398
9399   lt_aix_libpath_sed='
9400       /Import File Strings/,/^$/ {
9401           /^0/ {
9402               s/^0  *\([^ ]*\) *$/\1/
9403               p
9404           }
9405       }'
9406   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9407   # Check for a 64-bit object if we didn't find anything.
9408   if test -z "$lt_cv_aix_libpath_"; then
9409     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9410   fi
9411 fi
9412 rm -f core conftest.err conftest.$ac_objext \
9413     conftest$ac_exeext conftest.$ac_ext
9414   if test -z "$lt_cv_aix_libpath_"; then
9415     lt_cv_aix_libpath_="/usr/lib:/lib"
9416   fi
9417
9418 fi
9419
9420   aix_libpath=$lt_cv_aix_libpath_
9421 fi
9422
9423         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9424         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9425       else
9426         if test "$host_cpu" = ia64; then
9427           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9428           allow_undefined_flag="-z nodefs"
9429           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"
9430         else
9431          # Determine the default libpath from the value encoded in an
9432          # empty executable.
9433          if test "${lt_cv_aix_libpath+set}" = set; then
9434   aix_libpath=$lt_cv_aix_libpath
9435 else
9436   if ${lt_cv_aix_libpath_+:} false; then :
9437   $as_echo_n "(cached) " >&6
9438 else
9439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h.  */
9441
9442 int
9443 main ()
9444 {
9445
9446   ;
9447   return 0;
9448 }
9449 _ACEOF
9450 if ac_fn_c_try_link "$LINENO"; then :
9451
9452   lt_aix_libpath_sed='
9453       /Import File Strings/,/^$/ {
9454           /^0/ {
9455               s/^0  *\([^ ]*\) *$/\1/
9456               p
9457           }
9458       }'
9459   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9460   # Check for a 64-bit object if we didn't find anything.
9461   if test -z "$lt_cv_aix_libpath_"; then
9462     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9463   fi
9464 fi
9465 rm -f core conftest.err conftest.$ac_objext \
9466     conftest$ac_exeext conftest.$ac_ext
9467   if test -z "$lt_cv_aix_libpath_"; then
9468     lt_cv_aix_libpath_="/usr/lib:/lib"
9469   fi
9470
9471 fi
9472
9473   aix_libpath=$lt_cv_aix_libpath_
9474 fi
9475
9476          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9477           # Warning - without using the other run time loading flags,
9478           # -berok will link without error, but may produce a broken library.
9479           no_undefined_flag=' ${wl}-bernotok'
9480           allow_undefined_flag=' ${wl}-berok'
9481           if test "$with_gnu_ld" = yes; then
9482             # We only use this code for GNU lds that support --whole-archive.
9483             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9484           else
9485             # Exported symbols can be pulled into shared objects from archives
9486             whole_archive_flag_spec='$convenience'
9487           fi
9488           archive_cmds_need_lc=yes
9489           # This is similar to how AIX traditionally builds its shared libraries.
9490           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9491         fi
9492       fi
9493       ;;
9494
9495     amigaos*)
9496       case $host_cpu in
9497       powerpc)
9498             # see comment about AmigaOS4 .so support
9499             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9500             archive_expsym_cmds=''
9501         ;;
9502       m68k)
9503             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)'
9504             hardcode_libdir_flag_spec='-L$libdir'
9505             hardcode_minus_L=yes
9506         ;;
9507       esac
9508       ;;
9509
9510     bsdi[45]*)
9511       export_dynamic_flag_spec=-rdynamic
9512       ;;
9513
9514     cygwin* | mingw* | pw32* | cegcc*)
9515       # When not using gcc, we currently assume that we are using
9516       # Microsoft Visual C++.
9517       # hardcode_libdir_flag_spec is actually meaningless, as there is
9518       # no search path for DLLs.
9519       case $cc_basename in
9520       cl*)
9521         # Native MSVC
9522         hardcode_libdir_flag_spec=' '
9523         allow_undefined_flag=unsupported
9524         always_export_symbols=yes
9525         file_list_spec='@'
9526         # Tell ltmain to make .lib files, not .a files.
9527         libext=lib
9528         # Tell ltmain to make .dll files, not .so files.
9529         shrext_cmds=".dll"
9530         # FIXME: Setting linknames here is a bad hack.
9531         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9532         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9533             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9534           else
9535             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9536           fi~
9537           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9538           linknames='
9539         # The linker will not automatically build a static lib if we build a DLL.
9540         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9541         enable_shared_with_static_runtimes=yes
9542         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9543         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9544         # Don't use ranlib
9545         old_postinstall_cmds='chmod 644 $oldlib'
9546         postlink_cmds='lt_outputfile="@OUTPUT@"~
9547           lt_tool_outputfile="@TOOL_OUTPUT@"~
9548           case $lt_outputfile in
9549             *.exe|*.EXE) ;;
9550             *)
9551               lt_outputfile="$lt_outputfile.exe"
9552               lt_tool_outputfile="$lt_tool_outputfile.exe"
9553               ;;
9554           esac~
9555           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9556             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9557             $RM "$lt_outputfile.manifest";
9558           fi'
9559         ;;
9560       *)
9561         # Assume MSVC wrapper
9562         hardcode_libdir_flag_spec=' '
9563         allow_undefined_flag=unsupported
9564         # Tell ltmain to make .lib files, not .a files.
9565         libext=lib
9566         # Tell ltmain to make .dll files, not .so files.
9567         shrext_cmds=".dll"
9568         # FIXME: Setting linknames here is a bad hack.
9569         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9570         # The linker will automatically build a .lib file if we build a DLL.
9571         old_archive_from_new_cmds='true'
9572         # FIXME: Should let the user specify the lib program.
9573         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9574         enable_shared_with_static_runtimes=yes
9575         ;;
9576       esac
9577       ;;
9578
9579     darwin* | rhapsody*)
9580
9581
9582   archive_cmds_need_lc=no
9583   hardcode_direct=no
9584   hardcode_automatic=yes
9585   hardcode_shlibpath_var=unsupported
9586   if test "$lt_cv_ld_force_load" = "yes"; then
9587     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\"`'
9588
9589   else
9590     whole_archive_flag_spec=''
9591   fi
9592   link_all_deplibs=yes
9593   allow_undefined_flag="$_lt_dar_allow_undefined"
9594   case $cc_basename in
9595      ifort*) _lt_dar_can_shared=yes ;;
9596      *) _lt_dar_can_shared=$GCC ;;
9597   esac
9598   if test "$_lt_dar_can_shared" = "yes"; then
9599     output_verbose_link_cmd=func_echo_all
9600     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9601     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9602     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}"
9603     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}"
9604
9605   else
9606   ld_shlibs=no
9607   fi
9608
9609       ;;
9610
9611     dgux*)
9612       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9613       hardcode_libdir_flag_spec='-L$libdir'
9614       hardcode_shlibpath_var=no
9615       ;;
9616
9617     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9618     # support.  Future versions do this automatically, but an explicit c++rt0.o
9619     # does not break anything, and helps significantly (at the cost of a little
9620     # extra space).
9621     freebsd2.2*)
9622       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9623       hardcode_libdir_flag_spec='-R$libdir'
9624       hardcode_direct=yes
9625       hardcode_shlibpath_var=no
9626       ;;
9627
9628     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9629     freebsd2.*)
9630       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9631       hardcode_direct=yes
9632       hardcode_minus_L=yes
9633       hardcode_shlibpath_var=no
9634       ;;
9635
9636     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9637     freebsd* | dragonfly*)
9638       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9639       hardcode_libdir_flag_spec='-R$libdir'
9640       hardcode_direct=yes
9641       hardcode_shlibpath_var=no
9642       ;;
9643
9644     hpux9*)
9645       if test "$GCC" = yes; then
9646         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9647       else
9648         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9649       fi
9650       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9651       hardcode_libdir_separator=:
9652       hardcode_direct=yes
9653
9654       # hardcode_minus_L: Not really in the search PATH,
9655       # but as the default location of the library.
9656       hardcode_minus_L=yes
9657       export_dynamic_flag_spec='${wl}-E'
9658       ;;
9659
9660     hpux10*)
9661       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9662         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9663       else
9664         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9665       fi
9666       if test "$with_gnu_ld" = no; then
9667         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9668         hardcode_libdir_separator=:
9669         hardcode_direct=yes
9670         hardcode_direct_absolute=yes
9671         export_dynamic_flag_spec='${wl}-E'
9672         # hardcode_minus_L: Not really in the search PATH,
9673         # but as the default location of the library.
9674         hardcode_minus_L=yes
9675       fi
9676       ;;
9677
9678     hpux11*)
9679       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9680         case $host_cpu in
9681         hppa*64*)
9682           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9683           ;;
9684         ia64*)
9685           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9686           ;;
9687         *)
9688           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9689           ;;
9690         esac
9691       else
9692         case $host_cpu in
9693         hppa*64*)
9694           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9695           ;;
9696         ia64*)
9697           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9698           ;;
9699         *)
9700
9701           # Older versions of the 11.00 compiler do not understand -b yet
9702           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9703           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9704 $as_echo_n "checking if $CC understands -b... " >&6; }
9705 if ${lt_cv_prog_compiler__b+:} false; then :
9706   $as_echo_n "(cached) " >&6
9707 else
9708   lt_cv_prog_compiler__b=no
9709    save_LDFLAGS="$LDFLAGS"
9710    LDFLAGS="$LDFLAGS -b"
9711    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9712    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9713      # The linker can only warn and ignore the option if not recognized
9714      # So say no if there are warnings
9715      if test -s conftest.err; then
9716        # Append any errors to the config.log.
9717        cat conftest.err 1>&5
9718        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9719        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9720        if diff conftest.exp conftest.er2 >/dev/null; then
9721          lt_cv_prog_compiler__b=yes
9722        fi
9723      else
9724        lt_cv_prog_compiler__b=yes
9725      fi
9726    fi
9727    $RM -r conftest*
9728    LDFLAGS="$save_LDFLAGS"
9729
9730 fi
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9732 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9733
9734 if test x"$lt_cv_prog_compiler__b" = xyes; then
9735     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9736 else
9737     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9738 fi
9739
9740           ;;
9741         esac
9742       fi
9743       if test "$with_gnu_ld" = no; then
9744         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9745         hardcode_libdir_separator=:
9746
9747         case $host_cpu in
9748         hppa*64*|ia64*)
9749           hardcode_direct=no
9750           hardcode_shlibpath_var=no
9751           ;;
9752         *)
9753           hardcode_direct=yes
9754           hardcode_direct_absolute=yes
9755           export_dynamic_flag_spec='${wl}-E'
9756
9757           # hardcode_minus_L: Not really in the search PATH,
9758           # but as the default location of the library.
9759           hardcode_minus_L=yes
9760           ;;
9761         esac
9762       fi
9763       ;;
9764
9765     irix5* | irix6* | nonstopux*)
9766       if test "$GCC" = yes; then
9767         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'
9768         # Try to use the -exported_symbol ld option, if it does not
9769         # work, assume that -exports_file does not work either and
9770         # implicitly export all symbols.
9771         # This should be the same for all languages, so no per-tag cache variable.
9772         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9773 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9774 if ${lt_cv_irix_exported_symbol+:} false; then :
9775   $as_echo_n "(cached) " >&6
9776 else
9777   save_LDFLAGS="$LDFLAGS"
9778            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9779            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h.  */
9781 int foo (void) { return 0; }
9782 _ACEOF
9783 if ac_fn_c_try_link "$LINENO"; then :
9784   lt_cv_irix_exported_symbol=yes
9785 else
9786   lt_cv_irix_exported_symbol=no
9787 fi
9788 rm -f core conftest.err conftest.$ac_objext \
9789     conftest$ac_exeext conftest.$ac_ext
9790            LDFLAGS="$save_LDFLAGS"
9791 fi
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9793 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9794         if test "$lt_cv_irix_exported_symbol" = yes; then
9795           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'
9796         fi
9797       else
9798         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'
9799         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'
9800       fi
9801       archive_cmds_need_lc='no'
9802       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9803       hardcode_libdir_separator=:
9804       inherit_rpath=yes
9805       link_all_deplibs=yes
9806       ;;
9807
9808     netbsd* | netbsdelf*-gnu)
9809       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9810         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9811       else
9812         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9813       fi
9814       hardcode_libdir_flag_spec='-R$libdir'
9815       hardcode_direct=yes
9816       hardcode_shlibpath_var=no
9817       ;;
9818
9819     newsos6)
9820       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9821       hardcode_direct=yes
9822       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9823       hardcode_libdir_separator=:
9824       hardcode_shlibpath_var=no
9825       ;;
9826
9827     *nto* | *qnx*)
9828       ;;
9829
9830     openbsd*)
9831       if test -f /usr/libexec/ld.so; then
9832         hardcode_direct=yes
9833         hardcode_shlibpath_var=no
9834         hardcode_direct_absolute=yes
9835         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9836           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9837           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9838           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9839           export_dynamic_flag_spec='${wl}-E'
9840         else
9841           case $host_os in
9842            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9843              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9844              hardcode_libdir_flag_spec='-R$libdir'
9845              ;;
9846            *)
9847              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9848              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9849              ;;
9850           esac
9851         fi
9852       else
9853         ld_shlibs=no
9854       fi
9855       ;;
9856
9857     os2*)
9858       hardcode_libdir_flag_spec='-L$libdir'
9859       hardcode_minus_L=yes
9860       allow_undefined_flag=unsupported
9861       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9862       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9863       ;;
9864
9865     osf3*)
9866       if test "$GCC" = yes; then
9867         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9868         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'
9869       else
9870         allow_undefined_flag=' -expect_unresolved \*'
9871         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'
9872       fi
9873       archive_cmds_need_lc='no'
9874       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9875       hardcode_libdir_separator=:
9876       ;;
9877
9878     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9879       if test "$GCC" = yes; then
9880         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9881         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'
9882         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9883       else
9884         allow_undefined_flag=' -expect_unresolved \*'
9885         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'
9886         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~
9887         $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'
9888
9889         # Both c and cxx compiler support -rpath directly
9890         hardcode_libdir_flag_spec='-rpath $libdir'
9891       fi
9892       archive_cmds_need_lc='no'
9893       hardcode_libdir_separator=:
9894       ;;
9895
9896     solaris*)
9897       no_undefined_flag=' -z defs'
9898       if test "$GCC" = yes; then
9899         wlarc='${wl}'
9900         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9901         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9902           $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'
9903       else
9904         case `$CC -V 2>&1` in
9905         *"Compilers 5.0"*)
9906           wlarc=''
9907           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9908           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9909           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9910           ;;
9911         *)
9912           wlarc='${wl}'
9913           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9914           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9915           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9916           ;;
9917         esac
9918       fi
9919       hardcode_libdir_flag_spec='-R$libdir'
9920       hardcode_shlibpath_var=no
9921       case $host_os in
9922       solaris2.[0-5] | solaris2.[0-5].*) ;;
9923       *)
9924         # The compiler driver will combine and reorder linker options,
9925         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9926         # but is careful enough not to reorder.
9927         # Supported since Solaris 2.6 (maybe 2.5.1?)
9928         if test "$GCC" = yes; then
9929           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9930         else
9931           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9932         fi
9933         ;;
9934       esac
9935       link_all_deplibs=yes
9936       ;;
9937
9938     sunos4*)
9939       if test "x$host_vendor" = xsequent; then
9940         # Use $CC to link under sequent, because it throws in some extra .o
9941         # files that make .init and .fini sections work.
9942         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9943       else
9944         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9945       fi
9946       hardcode_libdir_flag_spec='-L$libdir'
9947       hardcode_direct=yes
9948       hardcode_minus_L=yes
9949       hardcode_shlibpath_var=no
9950       ;;
9951
9952     sysv4)
9953       case $host_vendor in
9954         sni)
9955           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9956           hardcode_direct=yes # is this really true???
9957         ;;
9958         siemens)
9959           ## LD is ld it makes a PLAMLIB
9960           ## CC just makes a GrossModule.
9961           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9962           reload_cmds='$CC -r -o $output$reload_objs'
9963           hardcode_direct=no
9964         ;;
9965         motorola)
9966           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9967           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9968         ;;
9969       esac
9970       runpath_var='LD_RUN_PATH'
9971       hardcode_shlibpath_var=no
9972       ;;
9973
9974     sysv4.3*)
9975       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9976       hardcode_shlibpath_var=no
9977       export_dynamic_flag_spec='-Bexport'
9978       ;;
9979
9980     sysv4*MP*)
9981       if test -d /usr/nec; then
9982         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9983         hardcode_shlibpath_var=no
9984         runpath_var=LD_RUN_PATH
9985         hardcode_runpath_var=yes
9986         ld_shlibs=yes
9987       fi
9988       ;;
9989
9990     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9991       no_undefined_flag='${wl}-z,text'
9992       archive_cmds_need_lc=no
9993       hardcode_shlibpath_var=no
9994       runpath_var='LD_RUN_PATH'
9995
9996       if test "$GCC" = yes; then
9997         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9998         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9999       else
10000         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10001         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10002       fi
10003       ;;
10004
10005     sysv5* | sco3.2v5* | sco5v6*)
10006       # Note: We can NOT use -z defs as we might desire, because we do not
10007       # link with -lc, and that would cause any symbols used from libc to
10008       # always be unresolved, which means just about no library would
10009       # ever link correctly.  If we're not using GNU ld we use -z text
10010       # though, which does catch some bad symbols but isn't as heavy-handed
10011       # as -z defs.
10012       no_undefined_flag='${wl}-z,text'
10013       allow_undefined_flag='${wl}-z,nodefs'
10014       archive_cmds_need_lc=no
10015       hardcode_shlibpath_var=no
10016       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10017       hardcode_libdir_separator=':'
10018       link_all_deplibs=yes
10019       export_dynamic_flag_spec='${wl}-Bexport'
10020       runpath_var='LD_RUN_PATH'
10021
10022       if test "$GCC" = yes; then
10023         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10024         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025       else
10026         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10027         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10028       fi
10029       ;;
10030
10031     uts4*)
10032       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10033       hardcode_libdir_flag_spec='-L$libdir'
10034       hardcode_shlibpath_var=no
10035       ;;
10036
10037     *)
10038       ld_shlibs=no
10039       ;;
10040     esac
10041
10042     if test x$host_vendor = xsni; then
10043       case $host in
10044       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10045         export_dynamic_flag_spec='${wl}-Blargedynsym'
10046         ;;
10047       esac
10048     fi
10049   fi
10050
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10052 $as_echo "$ld_shlibs" >&6; }
10053 test "$ld_shlibs" = no && can_build_shared=no
10054
10055 with_gnu_ld=$with_gnu_ld
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071 #
10072 # Do we need to explicitly link libc?
10073 #
10074 case "x$archive_cmds_need_lc" in
10075 x|xyes)
10076   # Assume -lc should be added
10077   archive_cmds_need_lc=yes
10078
10079   if test "$enable_shared" = yes && test "$GCC" = yes; then
10080     case $archive_cmds in
10081     *'~'*)
10082       # FIXME: we may have to deal with multi-command sequences.
10083       ;;
10084     '$CC '*)
10085       # Test whether the compiler implicitly links with -lc since on some
10086       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10087       # to ld, don't add -lc before -lgcc.
10088       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10089 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10090 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10091   $as_echo_n "(cached) " >&6
10092 else
10093   $RM conftest*
10094         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10095
10096         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10097   (eval $ac_compile) 2>&5
10098   ac_status=$?
10099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10100   test $ac_status = 0; } 2>conftest.err; then
10101           soname=conftest
10102           lib=conftest
10103           libobjs=conftest.$ac_objext
10104           deplibs=
10105           wl=$lt_prog_compiler_wl
10106           pic_flag=$lt_prog_compiler_pic
10107           compiler_flags=-v
10108           linker_flags=-v
10109           verstring=
10110           output_objdir=.
10111           libname=conftest
10112           lt_save_allow_undefined_flag=$allow_undefined_flag
10113           allow_undefined_flag=
10114           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10115   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10116   ac_status=$?
10117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10118   test $ac_status = 0; }
10119           then
10120             lt_cv_archive_cmds_need_lc=no
10121           else
10122             lt_cv_archive_cmds_need_lc=yes
10123           fi
10124           allow_undefined_flag=$lt_save_allow_undefined_flag
10125         else
10126           cat conftest.err 1>&5
10127         fi
10128         $RM conftest*
10129
10130 fi
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10132 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10133       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10134       ;;
10135     esac
10136   fi
10137   ;;
10138 esac
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10292 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10293
10294 if test "$GCC" = yes; then
10295   case $host_os in
10296     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10297     *) lt_awk_arg="/^libraries:/" ;;
10298   esac
10299   case $host_os in
10300     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10301     *) lt_sed_strip_eq="s,=/,/,g" ;;
10302   esac
10303   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10304   case $lt_search_path_spec in
10305   *\;*)
10306     # if the path contains ";" then we assume it to be the separator
10307     # otherwise default to the standard path separator (i.e. ":") - it is
10308     # assumed that no part of a normal pathname contains ";" but that should
10309     # okay in the real world where ";" in dirpaths is itself problematic.
10310     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10311     ;;
10312   *)
10313     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10314     ;;
10315   esac
10316   # Ok, now we have the path, separated by spaces, we can step through it
10317   # and add multilib dir if necessary.
10318   lt_tmp_lt_search_path_spec=
10319   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10320   for lt_sys_path in $lt_search_path_spec; do
10321     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10322       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10323     else
10324       test -d "$lt_sys_path" && \
10325         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10326     fi
10327   done
10328   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10329 BEGIN {RS=" "; FS="/|\n";} {
10330   lt_foo="";
10331   lt_count=0;
10332   for (lt_i = NF; lt_i > 0; lt_i--) {
10333     if ($lt_i != "" && $lt_i != ".") {
10334       if ($lt_i == "..") {
10335         lt_count++;
10336       } else {
10337         if (lt_count == 0) {
10338           lt_foo="/" $lt_i lt_foo;
10339         } else {
10340           lt_count--;
10341         }
10342       }
10343     }
10344   }
10345   if (lt_foo != "") { lt_freq[lt_foo]++; }
10346   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10347 }'`
10348   # AWK program above erroneously prepends '/' to C:/dos/paths
10349   # for these hosts.
10350   case $host_os in
10351     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10352       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10353   esac
10354   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10355 else
10356   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10357 fi
10358 library_names_spec=
10359 libname_spec='lib$name'
10360 soname_spec=
10361 shrext_cmds=".so"
10362 postinstall_cmds=
10363 postuninstall_cmds=
10364 finish_cmds=
10365 finish_eval=
10366 shlibpath_var=
10367 shlibpath_overrides_runpath=unknown
10368 version_type=none
10369 dynamic_linker="$host_os ld.so"
10370 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10371 need_lib_prefix=unknown
10372 hardcode_into_libs=no
10373
10374 # when you set need_version to no, make sure it does not cause -set_version
10375 # flags to be left without arguments
10376 need_version=unknown
10377
10378 case $host_os in
10379 aix3*)
10380   version_type=linux # correct to gnu/linux during the next big refactor
10381   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10382   shlibpath_var=LIBPATH
10383
10384   # AIX 3 has no versioning support, so we append a major version to the name.
10385   soname_spec='${libname}${release}${shared_ext}$major'
10386   ;;
10387
10388 aix[4-9]*)
10389   version_type=linux # correct to gnu/linux during the next big refactor
10390   need_lib_prefix=no
10391   need_version=no
10392   hardcode_into_libs=yes
10393   if test "$host_cpu" = ia64; then
10394     # AIX 5 supports IA64
10395     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10396     shlibpath_var=LD_LIBRARY_PATH
10397   else
10398     # With GCC up to 2.95.x, collect2 would create an import file
10399     # for dependence libraries.  The import file would start with
10400     # the line `#! .'.  This would cause the generated library to
10401     # depend on `.', always an invalid library.  This was fixed in
10402     # development snapshots of GCC prior to 3.0.
10403     case $host_os in
10404       aix4 | aix4.[01] | aix4.[01].*)
10405       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10406            echo ' yes '
10407            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10408         :
10409       else
10410         can_build_shared=no
10411       fi
10412       ;;
10413     esac
10414     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10415     # soname into executable. Probably we can add versioning support to
10416     # collect2, so additional links can be useful in future.
10417     if test "$aix_use_runtimelinking" = yes; then
10418       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10419       # instead of lib<name>.a to let people know that these are not
10420       # typical AIX shared libraries.
10421       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10422     else
10423       # We preserve .a as extension for shared libraries through AIX4.2
10424       # and later when we are not doing run time linking.
10425       library_names_spec='${libname}${release}.a $libname.a'
10426       soname_spec='${libname}${release}${shared_ext}$major'
10427     fi
10428     shlibpath_var=LIBPATH
10429   fi
10430   ;;
10431
10432 amigaos*)
10433   case $host_cpu in
10434   powerpc)
10435     # Since July 2007 AmigaOS4 officially supports .so libraries.
10436     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438     ;;
10439   m68k)
10440     library_names_spec='$libname.ixlibrary $libname.a'
10441     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10442     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10443     ;;
10444   esac
10445   ;;
10446
10447 beos*)
10448   library_names_spec='${libname}${shared_ext}'
10449   dynamic_linker="$host_os ld.so"
10450   shlibpath_var=LIBRARY_PATH
10451   ;;
10452
10453 bsdi[45]*)
10454   version_type=linux # correct to gnu/linux during the next big refactor
10455   need_version=no
10456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457   soname_spec='${libname}${release}${shared_ext}$major'
10458   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10459   shlibpath_var=LD_LIBRARY_PATH
10460   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10461   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10462   # the default ld.so.conf also contains /usr/contrib/lib and
10463   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10464   # libtool to hard-code these into programs
10465   ;;
10466
10467 cygwin* | mingw* | pw32* | cegcc*)
10468   version_type=windows
10469   shrext_cmds=".dll"
10470   need_version=no
10471   need_lib_prefix=no
10472
10473   case $GCC,$cc_basename in
10474   yes,*)
10475     # gcc
10476     library_names_spec='$libname.dll.a'
10477     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10478     postinstall_cmds='base_file=`basename \${file}`~
10479       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10480       dldir=$destdir/`dirname \$dlpath`~
10481       test -d \$dldir || mkdir -p \$dldir~
10482       $install_prog $dir/$dlname \$dldir/$dlname~
10483       chmod a+x \$dldir/$dlname~
10484       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10485         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10486       fi'
10487     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10488       dlpath=$dir/\$dldll~
10489        $RM \$dlpath'
10490     shlibpath_overrides_runpath=yes
10491
10492     case $host_os in
10493     cygwin*)
10494       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10495       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10496
10497       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10498       ;;
10499     mingw* | cegcc*)
10500       # MinGW DLLs use traditional 'lib' prefix
10501       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10502       ;;
10503     pw32*)
10504       # pw32 DLLs use 'pw' prefix rather than 'lib'
10505       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10506       ;;
10507     esac
10508     dynamic_linker='Win32 ld.exe'
10509     ;;
10510
10511   *,cl*)
10512     # Native MSVC
10513     libname_spec='$name'
10514     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10515     library_names_spec='${libname}.dll.lib'
10516
10517     case $build_os in
10518     mingw*)
10519       sys_lib_search_path_spec=
10520       lt_save_ifs=$IFS
10521       IFS=';'
10522       for lt_path in $LIB
10523       do
10524         IFS=$lt_save_ifs
10525         # Let DOS variable expansion print the short 8.3 style file name.
10526         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10527         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10528       done
10529       IFS=$lt_save_ifs
10530       # Convert to MSYS style.
10531       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10532       ;;
10533     cygwin*)
10534       # Convert to unix form, then to dos form, then back to unix form
10535       # but this time dos style (no spaces!) so that the unix form looks
10536       # like /cygdrive/c/PROGRA~1:/cygdr...
10537       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10538       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10539       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10540       ;;
10541     *)
10542       sys_lib_search_path_spec="$LIB"
10543       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10544         # It is most probably a Windows format PATH.
10545         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10546       else
10547         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10548       fi
10549       # FIXME: find the short name or the path components, as spaces are
10550       # common. (e.g. "Program Files" -> "PROGRA~1")
10551       ;;
10552     esac
10553
10554     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10555     postinstall_cmds='base_file=`basename \${file}`~
10556       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10557       dldir=$destdir/`dirname \$dlpath`~
10558       test -d \$dldir || mkdir -p \$dldir~
10559       $install_prog $dir/$dlname \$dldir/$dlname'
10560     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10561       dlpath=$dir/\$dldll~
10562        $RM \$dlpath'
10563     shlibpath_overrides_runpath=yes
10564     dynamic_linker='Win32 link.exe'
10565     ;;
10566
10567   *)
10568     # Assume MSVC wrapper
10569     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10570     dynamic_linker='Win32 ld.exe'
10571     ;;
10572   esac
10573   # FIXME: first we should search . and the directory the executable is in
10574   shlibpath_var=PATH
10575   ;;
10576
10577 darwin* | rhapsody*)
10578   dynamic_linker="$host_os dyld"
10579   version_type=darwin
10580   need_lib_prefix=no
10581   need_version=no
10582   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10583   soname_spec='${libname}${release}${major}$shared_ext'
10584   shlibpath_overrides_runpath=yes
10585   shlibpath_var=DYLD_LIBRARY_PATH
10586   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10587
10588   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10589   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10590   ;;
10591
10592 dgux*)
10593   version_type=linux # correct to gnu/linux during the next big refactor
10594   need_lib_prefix=no
10595   need_version=no
10596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10597   soname_spec='${libname}${release}${shared_ext}$major'
10598   shlibpath_var=LD_LIBRARY_PATH
10599   ;;
10600
10601 freebsd* | dragonfly*)
10602   # DragonFly does not have aout.  When/if they implement a new
10603   # versioning mechanism, adjust this.
10604   if test -x /usr/bin/objformat; then
10605     objformat=`/usr/bin/objformat`
10606   else
10607     case $host_os in
10608     freebsd[23].*) objformat=aout ;;
10609     *) objformat=elf ;;
10610     esac
10611   fi
10612   version_type=freebsd-$objformat
10613   case $version_type in
10614     freebsd-elf*)
10615       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10616       need_version=no
10617       need_lib_prefix=no
10618       ;;
10619     freebsd-*)
10620       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10621       need_version=yes
10622       ;;
10623   esac
10624   shlibpath_var=LD_LIBRARY_PATH
10625   case $host_os in
10626   freebsd2.*)
10627     shlibpath_overrides_runpath=yes
10628     ;;
10629   freebsd3.[01]* | freebsdelf3.[01]*)
10630     shlibpath_overrides_runpath=yes
10631     hardcode_into_libs=yes
10632     ;;
10633   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10634   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10635     shlibpath_overrides_runpath=no
10636     hardcode_into_libs=yes
10637     ;;
10638   *) # from 4.6 on, and DragonFly
10639     shlibpath_overrides_runpath=yes
10640     hardcode_into_libs=yes
10641     ;;
10642   esac
10643   ;;
10644
10645 gnu*)
10646   version_type=linux # correct to gnu/linux during the next big refactor
10647   need_lib_prefix=no
10648   need_version=no
10649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10650   soname_spec='${libname}${release}${shared_ext}$major'
10651   shlibpath_var=LD_LIBRARY_PATH
10652   shlibpath_overrides_runpath=no
10653   hardcode_into_libs=yes
10654   ;;
10655
10656 haiku*)
10657   version_type=linux # correct to gnu/linux during the next big refactor
10658   need_lib_prefix=no
10659   need_version=no
10660   dynamic_linker="$host_os runtime_loader"
10661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10662   soname_spec='${libname}${release}${shared_ext}$major'
10663   shlibpath_var=LIBRARY_PATH
10664   shlibpath_overrides_runpath=yes
10665   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10666   hardcode_into_libs=yes
10667   ;;
10668
10669 hpux9* | hpux10* | hpux11*)
10670   # Give a soname corresponding to the major version so that dld.sl refuses to
10671   # link against other versions.
10672   version_type=sunos
10673   need_lib_prefix=no
10674   need_version=no
10675   case $host_cpu in
10676   ia64*)
10677     shrext_cmds='.so'
10678     hardcode_into_libs=yes
10679     dynamic_linker="$host_os dld.so"
10680     shlibpath_var=LD_LIBRARY_PATH
10681     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10682     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10683     soname_spec='${libname}${release}${shared_ext}$major'
10684     if test "X$HPUX_IA64_MODE" = X32; then
10685       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10686     else
10687       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10688     fi
10689     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10690     ;;
10691   hppa*64*)
10692     shrext_cmds='.sl'
10693     hardcode_into_libs=yes
10694     dynamic_linker="$host_os dld.sl"
10695     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10696     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10697     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698     soname_spec='${libname}${release}${shared_ext}$major'
10699     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10700     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10701     ;;
10702   *)
10703     shrext_cmds='.sl'
10704     dynamic_linker="$host_os dld.sl"
10705     shlibpath_var=SHLIB_PATH
10706     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10707     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10708     soname_spec='${libname}${release}${shared_ext}$major'
10709     ;;
10710   esac
10711   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10712   postinstall_cmds='chmod 555 $lib'
10713   # or fails outright, so override atomically:
10714   install_override_mode=555
10715   ;;
10716
10717 interix[3-9]*)
10718   version_type=linux # correct to gnu/linux during the next big refactor
10719   need_lib_prefix=no
10720   need_version=no
10721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10722   soname_spec='${libname}${release}${shared_ext}$major'
10723   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10724   shlibpath_var=LD_LIBRARY_PATH
10725   shlibpath_overrides_runpath=no
10726   hardcode_into_libs=yes
10727   ;;
10728
10729 irix5* | irix6* | nonstopux*)
10730   case $host_os in
10731     nonstopux*) version_type=nonstopux ;;
10732     *)
10733         if test "$lt_cv_prog_gnu_ld" = yes; then
10734                 version_type=linux # correct to gnu/linux during the next big refactor
10735         else
10736                 version_type=irix
10737         fi ;;
10738   esac
10739   need_lib_prefix=no
10740   need_version=no
10741   soname_spec='${libname}${release}${shared_ext}$major'
10742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10743   case $host_os in
10744   irix5* | nonstopux*)
10745     libsuff= shlibsuff=
10746     ;;
10747   *)
10748     case $LD in # libtool.m4 will add one of these switches to LD
10749     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10750       libsuff= shlibsuff= libmagic=32-bit;;
10751     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10752       libsuff=32 shlibsuff=N32 libmagic=N32;;
10753     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10754       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10755     *) libsuff= shlibsuff= libmagic=never-match;;
10756     esac
10757     ;;
10758   esac
10759   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10760   shlibpath_overrides_runpath=no
10761   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10762   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10763   hardcode_into_libs=yes
10764   ;;
10765
10766 # No shared lib support for Linux oldld, aout, or coff.
10767 linux*oldld* | linux*aout* | linux*coff*)
10768   dynamic_linker=no
10769   ;;
10770
10771 # This must be glibc/ELF.
10772 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10773   version_type=linux # correct to gnu/linux during the next big refactor
10774   need_lib_prefix=no
10775   need_version=no
10776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777   soname_spec='${libname}${release}${shared_ext}$major'
10778   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10779   shlibpath_var=LD_LIBRARY_PATH
10780   shlibpath_overrides_runpath=no
10781
10782   # Some binutils ld are patched to set DT_RUNPATH
10783   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10784   $as_echo_n "(cached) " >&6
10785 else
10786   lt_cv_shlibpath_overrides_runpath=no
10787     save_LDFLAGS=$LDFLAGS
10788     save_libdir=$libdir
10789     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10790          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10791     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h.  */
10793
10794 int
10795 main ()
10796 {
10797
10798   ;
10799   return 0;
10800 }
10801 _ACEOF
10802 if ac_fn_c_try_link "$LINENO"; then :
10803   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10804   lt_cv_shlibpath_overrides_runpath=yes
10805 fi
10806 fi
10807 rm -f core conftest.err conftest.$ac_objext \
10808     conftest$ac_exeext conftest.$ac_ext
10809     LDFLAGS=$save_LDFLAGS
10810     libdir=$save_libdir
10811
10812 fi
10813
10814   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10815
10816   # This implies no fast_install, which is unacceptable.
10817   # Some rework will be needed to allow for fast_install
10818   # before this can be enabled.
10819   hardcode_into_libs=yes
10820
10821   # Append ld.so.conf contents to the search path
10822   if test -f /etc/ld.so.conf; then
10823     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' ' '`
10824     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10825   fi
10826
10827   # We used to test for /lib/ld.so.1 and disable shared libraries on
10828   # powerpc, because MkLinux only supported shared libraries with the
10829   # GNU dynamic linker.  Since this was broken with cross compilers,
10830   # most powerpc-linux boxes support dynamic linking these days and
10831   # people can always --disable-shared, the test was removed, and we
10832   # assume the GNU/Linux dynamic linker is in use.
10833   dynamic_linker='GNU/Linux ld.so'
10834   ;;
10835
10836 netbsdelf*-gnu)
10837   version_type=linux
10838   need_lib_prefix=no
10839   need_version=no
10840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10841   soname_spec='${libname}${release}${shared_ext}$major'
10842   shlibpath_var=LD_LIBRARY_PATH
10843   shlibpath_overrides_runpath=no
10844   hardcode_into_libs=yes
10845   dynamic_linker='NetBSD ld.elf_so'
10846   ;;
10847
10848 netbsd*)
10849   version_type=sunos
10850   need_lib_prefix=no
10851   need_version=no
10852   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10853     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10854     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10855     dynamic_linker='NetBSD (a.out) ld.so'
10856   else
10857     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10858     soname_spec='${libname}${release}${shared_ext}$major'
10859     dynamic_linker='NetBSD ld.elf_so'
10860   fi
10861   shlibpath_var=LD_LIBRARY_PATH
10862   shlibpath_overrides_runpath=yes
10863   hardcode_into_libs=yes
10864   ;;
10865
10866 newsos6)
10867   version_type=linux # correct to gnu/linux during the next big refactor
10868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869   shlibpath_var=LD_LIBRARY_PATH
10870   shlibpath_overrides_runpath=yes
10871   ;;
10872
10873 *nto* | *qnx*)
10874   version_type=qnx
10875   need_lib_prefix=no
10876   need_version=no
10877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10878   soname_spec='${libname}${release}${shared_ext}$major'
10879   shlibpath_var=LD_LIBRARY_PATH
10880   shlibpath_overrides_runpath=no
10881   hardcode_into_libs=yes
10882   dynamic_linker='ldqnx.so'
10883   ;;
10884
10885 openbsd*)
10886   version_type=sunos
10887   sys_lib_dlsearch_path_spec="/usr/lib"
10888   need_lib_prefix=no
10889   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10890   case $host_os in
10891     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10892     *)                          need_version=no  ;;
10893   esac
10894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10895   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10896   shlibpath_var=LD_LIBRARY_PATH
10897   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10898     case $host_os in
10899       openbsd2.[89] | openbsd2.[89].*)
10900         shlibpath_overrides_runpath=no
10901         ;;
10902       *)
10903         shlibpath_overrides_runpath=yes
10904         ;;
10905       esac
10906   else
10907     shlibpath_overrides_runpath=yes
10908   fi
10909   ;;
10910
10911 os2*)
10912   libname_spec='$name'
10913   shrext_cmds=".dll"
10914   need_lib_prefix=no
10915   library_names_spec='$libname${shared_ext} $libname.a'
10916   dynamic_linker='OS/2 ld.exe'
10917   shlibpath_var=LIBPATH
10918   ;;
10919
10920 osf3* | osf4* | osf5*)
10921   version_type=osf
10922   need_lib_prefix=no
10923   need_version=no
10924   soname_spec='${libname}${release}${shared_ext}$major'
10925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926   shlibpath_var=LD_LIBRARY_PATH
10927   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10928   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10929   ;;
10930
10931 rdos*)
10932   dynamic_linker=no
10933   ;;
10934
10935 solaris*)
10936   version_type=linux # correct to gnu/linux during the next big refactor
10937   need_lib_prefix=no
10938   need_version=no
10939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940   soname_spec='${libname}${release}${shared_ext}$major'
10941   shlibpath_var=LD_LIBRARY_PATH
10942   shlibpath_overrides_runpath=yes
10943   hardcode_into_libs=yes
10944   # ldd complains unless libraries are executable
10945   postinstall_cmds='chmod +x $lib'
10946   ;;
10947
10948 sunos4*)
10949   version_type=sunos
10950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10951   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10952   shlibpath_var=LD_LIBRARY_PATH
10953   shlibpath_overrides_runpath=yes
10954   if test "$with_gnu_ld" = yes; then
10955     need_lib_prefix=no
10956   fi
10957   need_version=yes
10958   ;;
10959
10960 sysv4 | sysv4.3*)
10961   version_type=linux # correct to gnu/linux during the next big refactor
10962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963   soname_spec='${libname}${release}${shared_ext}$major'
10964   shlibpath_var=LD_LIBRARY_PATH
10965   case $host_vendor in
10966     sni)
10967       shlibpath_overrides_runpath=no
10968       need_lib_prefix=no
10969       runpath_var=LD_RUN_PATH
10970       ;;
10971     siemens)
10972       need_lib_prefix=no
10973       ;;
10974     motorola)
10975       need_lib_prefix=no
10976       need_version=no
10977       shlibpath_overrides_runpath=no
10978       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10979       ;;
10980   esac
10981   ;;
10982
10983 sysv4*MP*)
10984   if test -d /usr/nec ;then
10985     version_type=linux # correct to gnu/linux during the next big refactor
10986     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10987     soname_spec='$libname${shared_ext}.$major'
10988     shlibpath_var=LD_LIBRARY_PATH
10989   fi
10990   ;;
10991
10992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10993   version_type=freebsd-elf
10994   need_lib_prefix=no
10995   need_version=no
10996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10997   soname_spec='${libname}${release}${shared_ext}$major'
10998   shlibpath_var=LD_LIBRARY_PATH
10999   shlibpath_overrides_runpath=yes
11000   hardcode_into_libs=yes
11001   if test "$with_gnu_ld" = yes; then
11002     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11003   else
11004     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11005     case $host_os in
11006       sco3.2v5*)
11007         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11008         ;;
11009     esac
11010   fi
11011   sys_lib_dlsearch_path_spec='/usr/lib'
11012   ;;
11013
11014 tpf*)
11015   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11016   version_type=linux # correct to gnu/linux during the next big refactor
11017   need_lib_prefix=no
11018   need_version=no
11019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11020   shlibpath_var=LD_LIBRARY_PATH
11021   shlibpath_overrides_runpath=no
11022   hardcode_into_libs=yes
11023   ;;
11024
11025 uts4*)
11026   version_type=linux # correct to gnu/linux during the next big refactor
11027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028   soname_spec='${libname}${release}${shared_ext}$major'
11029   shlibpath_var=LD_LIBRARY_PATH
11030   ;;
11031
11032 *)
11033   dynamic_linker=no
11034   ;;
11035 esac
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11037 $as_echo "$dynamic_linker" >&6; }
11038 test "$dynamic_linker" = no && can_build_shared=no
11039
11040 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11041 if test "$GCC" = yes; then
11042   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11043 fi
11044
11045 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11046   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11047 fi
11048 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11049   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11050 fi
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11144 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11145 hardcode_action=
11146 if test -n "$hardcode_libdir_flag_spec" ||
11147    test -n "$runpath_var" ||
11148    test "X$hardcode_automatic" = "Xyes" ; then
11149
11150   # We can hardcode non-existent directories.
11151   if test "$hardcode_direct" != no &&
11152      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11153      # have to relink, otherwise we might link with an installed library
11154      # when we should be linking with a yet-to-be-installed one
11155      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11156      test "$hardcode_minus_L" != no; then
11157     # Linking always hardcodes the temporary library directory.
11158     hardcode_action=relink
11159   else
11160     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11161     hardcode_action=immediate
11162   fi
11163 else
11164   # We cannot hardcode anything, or else we can only hardcode existing
11165   # directories.
11166   hardcode_action=unsupported
11167 fi
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11169 $as_echo "$hardcode_action" >&6; }
11170
11171 if test "$hardcode_action" = relink ||
11172    test "$inherit_rpath" = yes; then
11173   # Fast installation is not supported
11174   enable_fast_install=no
11175 elif test "$shlibpath_overrides_runpath" = yes ||
11176      test "$enable_shared" = no; then
11177   # Fast installation is not necessary
11178   enable_fast_install=needless
11179 fi
11180
11181
11182
11183
11184
11185
11186   if test "x$enable_dlopen" != xyes; then
11187   enable_dlopen=unknown
11188   enable_dlopen_self=unknown
11189   enable_dlopen_self_static=unknown
11190 else
11191   lt_cv_dlopen=no
11192   lt_cv_dlopen_libs=
11193
11194   case $host_os in
11195   beos*)
11196     lt_cv_dlopen="load_add_on"
11197     lt_cv_dlopen_libs=
11198     lt_cv_dlopen_self=yes
11199     ;;
11200
11201   mingw* | pw32* | cegcc*)
11202     lt_cv_dlopen="LoadLibrary"
11203     lt_cv_dlopen_libs=
11204     ;;
11205
11206   cygwin*)
11207     lt_cv_dlopen="dlopen"
11208     lt_cv_dlopen_libs=
11209     ;;
11210
11211   darwin*)
11212   # if libdl is installed we need to link against it
11213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11214 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11215 if ${ac_cv_lib_dl_dlopen+:} false; then :
11216   $as_echo_n "(cached) " >&6
11217 else
11218   ac_check_lib_save_LIBS=$LIBS
11219 LIBS="-ldl  $LIBS"
11220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h.  */
11222
11223 /* Override any GCC internal prototype to avoid an error.
11224    Use char because int might match the return type of a GCC
11225    builtin and then its argument prototype would still apply.  */
11226 #ifdef __cplusplus
11227 extern "C"
11228 #endif
11229 char dlopen ();
11230 int
11231 main ()
11232 {
11233 return dlopen ();
11234   ;
11235   return 0;
11236 }
11237 _ACEOF
11238 if ac_fn_c_try_link "$LINENO"; then :
11239   ac_cv_lib_dl_dlopen=yes
11240 else
11241   ac_cv_lib_dl_dlopen=no
11242 fi
11243 rm -f core conftest.err conftest.$ac_objext \
11244     conftest$ac_exeext conftest.$ac_ext
11245 LIBS=$ac_check_lib_save_LIBS
11246 fi
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11248 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11249 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11250   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11251 else
11252
11253     lt_cv_dlopen="dyld"
11254     lt_cv_dlopen_libs=
11255     lt_cv_dlopen_self=yes
11256
11257 fi
11258
11259     ;;
11260
11261   *)
11262     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11263 if test "x$ac_cv_func_shl_load" = xyes; then :
11264   lt_cv_dlopen="shl_load"
11265 else
11266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11267 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11268 if ${ac_cv_lib_dld_shl_load+:} false; then :
11269   $as_echo_n "(cached) " >&6
11270 else
11271   ac_check_lib_save_LIBS=$LIBS
11272 LIBS="-ldld  $LIBS"
11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h.  */
11275
11276 /* Override any GCC internal prototype to avoid an error.
11277    Use char because int might match the return type of a GCC
11278    builtin and then its argument prototype would still apply.  */
11279 #ifdef __cplusplus
11280 extern "C"
11281 #endif
11282 char shl_load ();
11283 int
11284 main ()
11285 {
11286 return shl_load ();
11287   ;
11288   return 0;
11289 }
11290 _ACEOF
11291 if ac_fn_c_try_link "$LINENO"; then :
11292   ac_cv_lib_dld_shl_load=yes
11293 else
11294   ac_cv_lib_dld_shl_load=no
11295 fi
11296 rm -f core conftest.err conftest.$ac_objext \
11297     conftest$ac_exeext conftest.$ac_ext
11298 LIBS=$ac_check_lib_save_LIBS
11299 fi
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11301 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11302 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11303   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11304 else
11305   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11306 if test "x$ac_cv_func_dlopen" = xyes; then :
11307   lt_cv_dlopen="dlopen"
11308 else
11309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11310 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11311 if ${ac_cv_lib_dl_dlopen+:} false; then :
11312   $as_echo_n "(cached) " >&6
11313 else
11314   ac_check_lib_save_LIBS=$LIBS
11315 LIBS="-ldl  $LIBS"
11316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h.  */
11318
11319 /* Override any GCC internal prototype to avoid an error.
11320    Use char because int might match the return type of a GCC
11321    builtin and then its argument prototype would still apply.  */
11322 #ifdef __cplusplus
11323 extern "C"
11324 #endif
11325 char dlopen ();
11326 int
11327 main ()
11328 {
11329 return dlopen ();
11330   ;
11331   return 0;
11332 }
11333 _ACEOF
11334 if ac_fn_c_try_link "$LINENO"; then :
11335   ac_cv_lib_dl_dlopen=yes
11336 else
11337   ac_cv_lib_dl_dlopen=no
11338 fi
11339 rm -f core conftest.err conftest.$ac_objext \
11340     conftest$ac_exeext conftest.$ac_ext
11341 LIBS=$ac_check_lib_save_LIBS
11342 fi
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11344 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11345 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11346   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11347 else
11348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11349 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11350 if ${ac_cv_lib_svld_dlopen+:} false; then :
11351   $as_echo_n "(cached) " >&6
11352 else
11353   ac_check_lib_save_LIBS=$LIBS
11354 LIBS="-lsvld  $LIBS"
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h.  */
11357
11358 /* Override any GCC internal prototype to avoid an error.
11359    Use char because int might match the return type of a GCC
11360    builtin and then its argument prototype would still apply.  */
11361 #ifdef __cplusplus
11362 extern "C"
11363 #endif
11364 char dlopen ();
11365 int
11366 main ()
11367 {
11368 return dlopen ();
11369   ;
11370   return 0;
11371 }
11372 _ACEOF
11373 if ac_fn_c_try_link "$LINENO"; then :
11374   ac_cv_lib_svld_dlopen=yes
11375 else
11376   ac_cv_lib_svld_dlopen=no
11377 fi
11378 rm -f core conftest.err conftest.$ac_objext \
11379     conftest$ac_exeext conftest.$ac_ext
11380 LIBS=$ac_check_lib_save_LIBS
11381 fi
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11383 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11384 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11385   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11386 else
11387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11388 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11389 if ${ac_cv_lib_dld_dld_link+:} false; then :
11390   $as_echo_n "(cached) " >&6
11391 else
11392   ac_check_lib_save_LIBS=$LIBS
11393 LIBS="-ldld  $LIBS"
11394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h.  */
11396
11397 /* Override any GCC internal prototype to avoid an error.
11398    Use char because int might match the return type of a GCC
11399    builtin and then its argument prototype would still apply.  */
11400 #ifdef __cplusplus
11401 extern "C"
11402 #endif
11403 char dld_link ();
11404 int
11405 main ()
11406 {
11407 return dld_link ();
11408   ;
11409   return 0;
11410 }
11411 _ACEOF
11412 if ac_fn_c_try_link "$LINENO"; then :
11413   ac_cv_lib_dld_dld_link=yes
11414 else
11415   ac_cv_lib_dld_dld_link=no
11416 fi
11417 rm -f core conftest.err conftest.$ac_objext \
11418     conftest$ac_exeext conftest.$ac_ext
11419 LIBS=$ac_check_lib_save_LIBS
11420 fi
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11422 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11423 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11424   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11425 fi
11426
11427
11428 fi
11429
11430
11431 fi
11432
11433
11434 fi
11435
11436
11437 fi
11438
11439
11440 fi
11441
11442     ;;
11443   esac
11444
11445   if test "x$lt_cv_dlopen" != xno; then
11446     enable_dlopen=yes
11447   else
11448     enable_dlopen=no
11449   fi
11450
11451   case $lt_cv_dlopen in
11452   dlopen)
11453     save_CPPFLAGS="$CPPFLAGS"
11454     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11455
11456     save_LDFLAGS="$LDFLAGS"
11457     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11458
11459     save_LIBS="$LIBS"
11460     LIBS="$lt_cv_dlopen_libs $LIBS"
11461
11462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11463 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11464 if ${lt_cv_dlopen_self+:} false; then :
11465   $as_echo_n "(cached) " >&6
11466 else
11467           if test "$cross_compiling" = yes; then :
11468   lt_cv_dlopen_self=cross
11469 else
11470   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11471   lt_status=$lt_dlunknown
11472   cat > conftest.$ac_ext <<_LT_EOF
11473 #line $LINENO "configure"
11474 #include "confdefs.h"
11475
11476 #if HAVE_DLFCN_H
11477 #include <dlfcn.h>
11478 #endif
11479
11480 #include <stdio.h>
11481
11482 #ifdef RTLD_GLOBAL
11483 #  define LT_DLGLOBAL           RTLD_GLOBAL
11484 #else
11485 #  ifdef DL_GLOBAL
11486 #    define LT_DLGLOBAL         DL_GLOBAL
11487 #  else
11488 #    define LT_DLGLOBAL         0
11489 #  endif
11490 #endif
11491
11492 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11493    find out it does not work in some platform. */
11494 #ifndef LT_DLLAZY_OR_NOW
11495 #  ifdef RTLD_LAZY
11496 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11497 #  else
11498 #    ifdef DL_LAZY
11499 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11500 #    else
11501 #      ifdef RTLD_NOW
11502 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11503 #      else
11504 #        ifdef DL_NOW
11505 #          define LT_DLLAZY_OR_NOW      DL_NOW
11506 #        else
11507 #          define LT_DLLAZY_OR_NOW      0
11508 #        endif
11509 #      endif
11510 #    endif
11511 #  endif
11512 #endif
11513
11514 /* When -fvisbility=hidden is used, assume the code has been annotated
11515    correspondingly for the symbols needed.  */
11516 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11517 int fnord () __attribute__((visibility("default")));
11518 #endif
11519
11520 int fnord () { return 42; }
11521 int main ()
11522 {
11523   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11524   int status = $lt_dlunknown;
11525
11526   if (self)
11527     {
11528       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11529       else
11530         {
11531           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11532           else puts (dlerror ());
11533         }
11534       /* dlclose (self); */
11535     }
11536   else
11537     puts (dlerror ());
11538
11539   return status;
11540 }
11541 _LT_EOF
11542   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11543   (eval $ac_link) 2>&5
11544   ac_status=$?
11545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11546   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11547     (./conftest; exit; ) >&5 2>/dev/null
11548     lt_status=$?
11549     case x$lt_status in
11550       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11551       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11552       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11553     esac
11554   else :
11555     # compilation failed
11556     lt_cv_dlopen_self=no
11557   fi
11558 fi
11559 rm -fr conftest*
11560
11561
11562 fi
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11564 $as_echo "$lt_cv_dlopen_self" >&6; }
11565
11566     if test "x$lt_cv_dlopen_self" = xyes; then
11567       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11568       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11569 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11570 if ${lt_cv_dlopen_self_static+:} false; then :
11571   $as_echo_n "(cached) " >&6
11572 else
11573           if test "$cross_compiling" = yes; then :
11574   lt_cv_dlopen_self_static=cross
11575 else
11576   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11577   lt_status=$lt_dlunknown
11578   cat > conftest.$ac_ext <<_LT_EOF
11579 #line $LINENO "configure"
11580 #include "confdefs.h"
11581
11582 #if HAVE_DLFCN_H
11583 #include <dlfcn.h>
11584 #endif
11585
11586 #include <stdio.h>
11587
11588 #ifdef RTLD_GLOBAL
11589 #  define LT_DLGLOBAL           RTLD_GLOBAL
11590 #else
11591 #  ifdef DL_GLOBAL
11592 #    define LT_DLGLOBAL         DL_GLOBAL
11593 #  else
11594 #    define LT_DLGLOBAL         0
11595 #  endif
11596 #endif
11597
11598 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11599    find out it does not work in some platform. */
11600 #ifndef LT_DLLAZY_OR_NOW
11601 #  ifdef RTLD_LAZY
11602 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11603 #  else
11604 #    ifdef DL_LAZY
11605 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11606 #    else
11607 #      ifdef RTLD_NOW
11608 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11609 #      else
11610 #        ifdef DL_NOW
11611 #          define LT_DLLAZY_OR_NOW      DL_NOW
11612 #        else
11613 #          define LT_DLLAZY_OR_NOW      0
11614 #        endif
11615 #      endif
11616 #    endif
11617 #  endif
11618 #endif
11619
11620 /* When -fvisbility=hidden is used, assume the code has been annotated
11621    correspondingly for the symbols needed.  */
11622 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11623 int fnord () __attribute__((visibility("default")));
11624 #endif
11625
11626 int fnord () { return 42; }
11627 int main ()
11628 {
11629   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11630   int status = $lt_dlunknown;
11631
11632   if (self)
11633     {
11634       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11635       else
11636         {
11637           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11638           else puts (dlerror ());
11639         }
11640       /* dlclose (self); */
11641     }
11642   else
11643     puts (dlerror ());
11644
11645   return status;
11646 }
11647 _LT_EOF
11648   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11649   (eval $ac_link) 2>&5
11650   ac_status=$?
11651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11652   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11653     (./conftest; exit; ) >&5 2>/dev/null
11654     lt_status=$?
11655     case x$lt_status in
11656       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11657       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11658       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11659     esac
11660   else :
11661     # compilation failed
11662     lt_cv_dlopen_self_static=no
11663   fi
11664 fi
11665 rm -fr conftest*
11666
11667
11668 fi
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11670 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11671     fi
11672
11673     CPPFLAGS="$save_CPPFLAGS"
11674     LDFLAGS="$save_LDFLAGS"
11675     LIBS="$save_LIBS"
11676     ;;
11677   esac
11678
11679   case $lt_cv_dlopen_self in
11680   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11681   *) enable_dlopen_self=unknown ;;
11682   esac
11683
11684   case $lt_cv_dlopen_self_static in
11685   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11686   *) enable_dlopen_self_static=unknown ;;
11687   esac
11688 fi
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706 striplib=
11707 old_striplib=
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11709 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11710 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11711   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11712   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11714 $as_echo "yes" >&6; }
11715 else
11716 # FIXME - insert some real tests, host_os isn't really good enough
11717   case $host_os in
11718   darwin*)
11719     if test -n "$STRIP" ; then
11720       striplib="$STRIP -x"
11721       old_striplib="$STRIP -S"
11722       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11723 $as_echo "yes" >&6; }
11724     else
11725       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11727     fi
11728     ;;
11729   *)
11730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11732     ;;
11733   esac
11734 fi
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747   # Report which library types will actually be built
11748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11749 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11751 $as_echo "$can_build_shared" >&6; }
11752
11753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11754 $as_echo_n "checking whether to build shared libraries... " >&6; }
11755   test "$can_build_shared" = "no" && enable_shared=no
11756
11757   # On AIX, shared libraries and static libraries use the same namespace, and
11758   # are all built from PIC.
11759   case $host_os in
11760   aix3*)
11761     test "$enable_shared" = yes && enable_static=no
11762     if test -n "$RANLIB"; then
11763       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11764       postinstall_cmds='$RANLIB $lib'
11765     fi
11766     ;;
11767
11768   aix[4-9]*)
11769     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11770       test "$enable_shared" = yes && enable_static=no
11771     fi
11772     ;;
11773   esac
11774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11775 $as_echo "$enable_shared" >&6; }
11776
11777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11778 $as_echo_n "checking whether to build static libraries... " >&6; }
11779   # Make sure either enable_shared or enable_static is yes.
11780   test "$enable_shared" = yes || enable_static=yes
11781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11782 $as_echo "$enable_static" >&6; }
11783
11784
11785
11786
11787 fi
11788 ac_ext=c
11789 ac_cpp='$CPP $CPPFLAGS'
11790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11793
11794 CC="$lt_save_CC"
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810         ac_config_commands="$ac_config_commands libtool"
11811
11812
11813
11814
11815 # Only expand once:
11816
11817
11818
11819 # Checks for programs.
11820
11821
11822
11823
11824
11825
11826
11827 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11828         if test -n "$ac_tool_prefix"; then
11829   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11830 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11832 $as_echo_n "checking for $ac_word... " >&6; }
11833 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11834   $as_echo_n "(cached) " >&6
11835 else
11836   case $PKG_CONFIG in
11837   [\\/]* | ?:[\\/]*)
11838   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11839   ;;
11840   *)
11841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842 for as_dir in $PATH
11843 do
11844   IFS=$as_save_IFS
11845   test -z "$as_dir" && as_dir=.
11846     for ac_exec_ext in '' $ac_executable_extensions; do
11847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11848     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11850     break 2
11851   fi
11852 done
11853   done
11854 IFS=$as_save_IFS
11855
11856   ;;
11857 esac
11858 fi
11859 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11860 if test -n "$PKG_CONFIG"; then
11861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11862 $as_echo "$PKG_CONFIG" >&6; }
11863 else
11864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11866 fi
11867
11868
11869 fi
11870 if test -z "$ac_cv_path_PKG_CONFIG"; then
11871   ac_pt_PKG_CONFIG=$PKG_CONFIG
11872   # Extract the first word of "pkg-config", so it can be a program name with args.
11873 set dummy pkg-config; ac_word=$2
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11875 $as_echo_n "checking for $ac_word... " >&6; }
11876 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11877   $as_echo_n "(cached) " >&6
11878 else
11879   case $ac_pt_PKG_CONFIG in
11880   [\\/]* | ?:[\\/]*)
11881   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11882   ;;
11883   *)
11884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11885 for as_dir in $PATH
11886 do
11887   IFS=$as_save_IFS
11888   test -z "$as_dir" && as_dir=.
11889     for ac_exec_ext in '' $ac_executable_extensions; do
11890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11891     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11893     break 2
11894   fi
11895 done
11896   done
11897 IFS=$as_save_IFS
11898
11899   ;;
11900 esac
11901 fi
11902 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11903 if test -n "$ac_pt_PKG_CONFIG"; then
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11905 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11906 else
11907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11909 fi
11910
11911   if test "x$ac_pt_PKG_CONFIG" = x; then
11912     PKG_CONFIG=""
11913   else
11914     case $cross_compiling:$ac_tool_warned in
11915 yes:)
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11918 ac_tool_warned=yes ;;
11919 esac
11920     PKG_CONFIG=$ac_pt_PKG_CONFIG
11921   fi
11922 else
11923   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11924 fi
11925
11926 fi
11927 if test -n "$PKG_CONFIG"; then
11928         _pkg_min_version=0.23
11929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11930 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11931         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11932                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11933 $as_echo "yes" >&6; }
11934         else
11935                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936 $as_echo "no" >&6; }
11937                 PKG_CONFIG=""
11938         fi
11939 fi
11940 ac_ext=c
11941 ac_cpp='$CPP $CPPFLAGS'
11942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11945 if test -n "$ac_tool_prefix"; then
11946   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11947 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_prog_CC+:} false; then :
11951   $as_echo_n "(cached) " >&6
11952 else
11953   if test -n "$CC"; then
11954   ac_cv_prog_CC="$CC" # Let the user override the test.
11955 else
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH
11958 do
11959   IFS=$as_save_IFS
11960   test -z "$as_dir" && as_dir=.
11961     for ac_exec_ext in '' $ac_executable_extensions; do
11962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965     break 2
11966   fi
11967 done
11968   done
11969 IFS=$as_save_IFS
11970
11971 fi
11972 fi
11973 CC=$ac_cv_prog_CC
11974 if test -n "$CC"; then
11975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11976 $as_echo "$CC" >&6; }
11977 else
11978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11980 fi
11981
11982
11983 fi
11984 if test -z "$ac_cv_prog_CC"; then
11985   ac_ct_CC=$CC
11986   # Extract the first word of "gcc", so it can be a program name with args.
11987 set dummy gcc; ac_word=$2
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11989 $as_echo_n "checking for $ac_word... " >&6; }
11990 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11991   $as_echo_n "(cached) " >&6
11992 else
11993   if test -n "$ac_ct_CC"; then
11994   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11995 else
11996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997 for as_dir in $PATH
11998 do
11999   IFS=$as_save_IFS
12000   test -z "$as_dir" && as_dir=.
12001     for ac_exec_ext in '' $ac_executable_extensions; do
12002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12003     ac_cv_prog_ac_ct_CC="gcc"
12004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005     break 2
12006   fi
12007 done
12008   done
12009 IFS=$as_save_IFS
12010
12011 fi
12012 fi
12013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12014 if test -n "$ac_ct_CC"; then
12015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12016 $as_echo "$ac_ct_CC" >&6; }
12017 else
12018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019 $as_echo "no" >&6; }
12020 fi
12021
12022   if test "x$ac_ct_CC" = x; then
12023     CC=""
12024   else
12025     case $cross_compiling:$ac_tool_warned in
12026 yes:)
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12029 ac_tool_warned=yes ;;
12030 esac
12031     CC=$ac_ct_CC
12032   fi
12033 else
12034   CC="$ac_cv_prog_CC"
12035 fi
12036
12037 if test -z "$CC"; then
12038           if test -n "$ac_tool_prefix"; then
12039     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12040 set dummy ${ac_tool_prefix}cc; ac_word=$2
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12042 $as_echo_n "checking for $ac_word... " >&6; }
12043 if ${ac_cv_prog_CC+:} false; then :
12044   $as_echo_n "(cached) " >&6
12045 else
12046   if test -n "$CC"; then
12047   ac_cv_prog_CC="$CC" # Let the user override the test.
12048 else
12049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12050 for as_dir in $PATH
12051 do
12052   IFS=$as_save_IFS
12053   test -z "$as_dir" && as_dir=.
12054     for ac_exec_ext in '' $ac_executable_extensions; do
12055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12056     ac_cv_prog_CC="${ac_tool_prefix}cc"
12057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12058     break 2
12059   fi
12060 done
12061   done
12062 IFS=$as_save_IFS
12063
12064 fi
12065 fi
12066 CC=$ac_cv_prog_CC
12067 if test -n "$CC"; then
12068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12069 $as_echo "$CC" >&6; }
12070 else
12071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072 $as_echo "no" >&6; }
12073 fi
12074
12075
12076   fi
12077 fi
12078 if test -z "$CC"; then
12079   # Extract the first word of "cc", so it can be a program name with args.
12080 set dummy cc; ac_word=$2
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12082 $as_echo_n "checking for $ac_word... " >&6; }
12083 if ${ac_cv_prog_CC+:} false; then :
12084   $as_echo_n "(cached) " >&6
12085 else
12086   if test -n "$CC"; then
12087   ac_cv_prog_CC="$CC" # Let the user override the test.
12088 else
12089   ac_prog_rejected=no
12090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12091 for as_dir in $PATH
12092 do
12093   IFS=$as_save_IFS
12094   test -z "$as_dir" && as_dir=.
12095     for ac_exec_ext in '' $ac_executable_extensions; do
12096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12097     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12098        ac_prog_rejected=yes
12099        continue
12100      fi
12101     ac_cv_prog_CC="cc"
12102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12103     break 2
12104   fi
12105 done
12106   done
12107 IFS=$as_save_IFS
12108
12109 if test $ac_prog_rejected = yes; then
12110   # We found a bogon in the path, so make sure we never use it.
12111   set dummy $ac_cv_prog_CC
12112   shift
12113   if test $# != 0; then
12114     # We chose a different compiler from the bogus one.
12115     # However, it has the same basename, so the bogon will be chosen
12116     # first if we set CC to just the basename; use the full file name.
12117     shift
12118     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12119   fi
12120 fi
12121 fi
12122 fi
12123 CC=$ac_cv_prog_CC
12124 if test -n "$CC"; then
12125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12126 $as_echo "$CC" >&6; }
12127 else
12128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12129 $as_echo "no" >&6; }
12130 fi
12131
12132
12133 fi
12134 if test -z "$CC"; then
12135   if test -n "$ac_tool_prefix"; then
12136   for ac_prog in cl.exe
12137   do
12138     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12141 $as_echo_n "checking for $ac_word... " >&6; }
12142 if ${ac_cv_prog_CC+:} false; then :
12143   $as_echo_n "(cached) " >&6
12144 else
12145   if test -n "$CC"; then
12146   ac_cv_prog_CC="$CC" # Let the user override the test.
12147 else
12148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12150 do
12151   IFS=$as_save_IFS
12152   test -z "$as_dir" && as_dir=.
12153     for ac_exec_ext in '' $ac_executable_extensions; do
12154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12155     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12157     break 2
12158   fi
12159 done
12160   done
12161 IFS=$as_save_IFS
12162
12163 fi
12164 fi
12165 CC=$ac_cv_prog_CC
12166 if test -n "$CC"; then
12167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12168 $as_echo "$CC" >&6; }
12169 else
12170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171 $as_echo "no" >&6; }
12172 fi
12173
12174
12175     test -n "$CC" && break
12176   done
12177 fi
12178 if test -z "$CC"; then
12179   ac_ct_CC=$CC
12180   for ac_prog in cl.exe
12181 do
12182   # Extract the first word of "$ac_prog", so it can be a program name with args.
12183 set dummy $ac_prog; ac_word=$2
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185 $as_echo_n "checking for $ac_word... " >&6; }
12186 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12187   $as_echo_n "(cached) " >&6
12188 else
12189   if test -n "$ac_ct_CC"; then
12190   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12191 else
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12194 do
12195   IFS=$as_save_IFS
12196   test -z "$as_dir" && as_dir=.
12197     for ac_exec_ext in '' $ac_executable_extensions; do
12198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12199     ac_cv_prog_ac_ct_CC="$ac_prog"
12200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12201     break 2
12202   fi
12203 done
12204   done
12205 IFS=$as_save_IFS
12206
12207 fi
12208 fi
12209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12210 if test -n "$ac_ct_CC"; then
12211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12212 $as_echo "$ac_ct_CC" >&6; }
12213 else
12214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12216 fi
12217
12218
12219   test -n "$ac_ct_CC" && break
12220 done
12221
12222   if test "x$ac_ct_CC" = x; then
12223     CC=""
12224   else
12225     case $cross_compiling:$ac_tool_warned in
12226 yes:)
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12229 ac_tool_warned=yes ;;
12230 esac
12231     CC=$ac_ct_CC
12232   fi
12233 fi
12234
12235 fi
12236
12237
12238 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12240 as_fn_error $? "no acceptable C compiler found in \$PATH
12241 See \`config.log' for more details" "$LINENO" 5; }
12242
12243 # Provide some information about the compiler.
12244 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12245 set X $ac_compile
12246 ac_compiler=$2
12247 for ac_option in --version -v -V -qversion; do
12248   { { ac_try="$ac_compiler $ac_option >&5"
12249 case "(($ac_try" in
12250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251   *) ac_try_echo=$ac_try;;
12252 esac
12253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12254 $as_echo "$ac_try_echo"; } >&5
12255   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12256   ac_status=$?
12257   if test -s conftest.err; then
12258     sed '10a\
12259 ... rest of stderr output deleted ...
12260          10q' conftest.err >conftest.er1
12261     cat conftest.er1 >&5
12262   fi
12263   rm -f conftest.er1 conftest.err
12264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12265   test $ac_status = 0; }
12266 done
12267
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12269 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12270 if ${ac_cv_c_compiler_gnu+:} false; then :
12271   $as_echo_n "(cached) " >&6
12272 else
12273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h.  */
12275
12276 int
12277 main ()
12278 {
12279 #ifndef __GNUC__
12280        choke me
12281 #endif
12282
12283   ;
12284   return 0;
12285 }
12286 _ACEOF
12287 if ac_fn_c_try_compile "$LINENO"; then :
12288   ac_compiler_gnu=yes
12289 else
12290   ac_compiler_gnu=no
12291 fi
12292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12293 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12294
12295 fi
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12297 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12298 if test $ac_compiler_gnu = yes; then
12299   GCC=yes
12300 else
12301   GCC=
12302 fi
12303 ac_test_CFLAGS=${CFLAGS+set}
12304 ac_save_CFLAGS=$CFLAGS
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12306 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12307 if ${ac_cv_prog_cc_g+:} false; then :
12308   $as_echo_n "(cached) " >&6
12309 else
12310   ac_save_c_werror_flag=$ac_c_werror_flag
12311    ac_c_werror_flag=yes
12312    ac_cv_prog_cc_g=no
12313    CFLAGS="-g"
12314    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h.  */
12316
12317 int
12318 main ()
12319 {
12320
12321   ;
12322   return 0;
12323 }
12324 _ACEOF
12325 if ac_fn_c_try_compile "$LINENO"; then :
12326   ac_cv_prog_cc_g=yes
12327 else
12328   CFLAGS=""
12329       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h.  */
12331
12332 int
12333 main ()
12334 {
12335
12336   ;
12337   return 0;
12338 }
12339 _ACEOF
12340 if ac_fn_c_try_compile "$LINENO"; then :
12341
12342 else
12343   ac_c_werror_flag=$ac_save_c_werror_flag
12344          CFLAGS="-g"
12345          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h.  */
12347
12348 int
12349 main ()
12350 {
12351
12352   ;
12353   return 0;
12354 }
12355 _ACEOF
12356 if ac_fn_c_try_compile "$LINENO"; then :
12357   ac_cv_prog_cc_g=yes
12358 fi
12359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12360 fi
12361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362 fi
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12364    ac_c_werror_flag=$ac_save_c_werror_flag
12365 fi
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12367 $as_echo "$ac_cv_prog_cc_g" >&6; }
12368 if test "$ac_test_CFLAGS" = set; then
12369   CFLAGS=$ac_save_CFLAGS
12370 elif test $ac_cv_prog_cc_g = yes; then
12371   if test "$GCC" = yes; then
12372     CFLAGS="-g -O2"
12373   else
12374     CFLAGS="-g"
12375   fi
12376 else
12377   if test "$GCC" = yes; then
12378     CFLAGS="-O2"
12379   else
12380     CFLAGS=
12381   fi
12382 fi
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12384 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12385 if ${ac_cv_prog_cc_c89+:} false; then :
12386   $as_echo_n "(cached) " >&6
12387 else
12388   ac_cv_prog_cc_c89=no
12389 ac_save_CC=$CC
12390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h.  */
12392 #include <stdarg.h>
12393 #include <stdio.h>
12394 struct stat;
12395 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12396 struct buf { int x; };
12397 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12398 static char *e (p, i)
12399      char **p;
12400      int i;
12401 {
12402   return p[i];
12403 }
12404 static char *f (char * (*g) (char **, int), char **p, ...)
12405 {
12406   char *s;
12407   va_list v;
12408   va_start (v,p);
12409   s = g (p, va_arg (v,int));
12410   va_end (v);
12411   return s;
12412 }
12413
12414 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12415    function prototypes and stuff, but not '\xHH' hex character constants.
12416    These don't provoke an error unfortunately, instead are silently treated
12417    as 'x'.  The following induces an error, until -std is added to get
12418    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12419    array size at least.  It's necessary to write '\x00'==0 to get something
12420    that's true only with -std.  */
12421 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12422
12423 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12424    inside strings and character constants.  */
12425 #define FOO(x) 'x'
12426 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12427
12428 int test (int i, double x);
12429 struct s1 {int (*f) (int a);};
12430 struct s2 {int (*f) (double a);};
12431 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12432 int argc;
12433 char **argv;
12434 int
12435 main ()
12436 {
12437 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12438   ;
12439   return 0;
12440 }
12441 _ACEOF
12442 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12443         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12444 do
12445   CC="$ac_save_CC $ac_arg"
12446   if ac_fn_c_try_compile "$LINENO"; then :
12447   ac_cv_prog_cc_c89=$ac_arg
12448 fi
12449 rm -f core conftest.err conftest.$ac_objext
12450   test "x$ac_cv_prog_cc_c89" != "xno" && break
12451 done
12452 rm -f conftest.$ac_ext
12453 CC=$ac_save_CC
12454
12455 fi
12456 # AC_CACHE_VAL
12457 case "x$ac_cv_prog_cc_c89" in
12458   x)
12459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12460 $as_echo "none needed" >&6; } ;;
12461   xno)
12462     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12463 $as_echo "unsupported" >&6; } ;;
12464   *)
12465     CC="$CC $ac_cv_prog_cc_c89"
12466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12467 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12468 esac
12469 if test "x$ac_cv_prog_cc_c89" != xno; then :
12470
12471 fi
12472
12473 ac_ext=c
12474 ac_cpp='$CPP $CPPFLAGS'
12475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12478
12479 depcc="$CC"   am_compiler_list=
12480
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12482 $as_echo_n "checking dependency style of $depcc... " >&6; }
12483 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12484   $as_echo_n "(cached) " >&6
12485 else
12486   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12487   # We make a subdir and do the tests there.  Otherwise we can end up
12488   # making bogus files that we don't know about and never remove.  For
12489   # instance it was reported that on HP-UX the gcc test will end up
12490   # making a dummy file named `D' -- because `-MD' means `put the output
12491   # in D'.
12492   rm -rf conftest.dir
12493   mkdir conftest.dir
12494   # Copy depcomp to subdir because otherwise we won't find it if we're
12495   # using a relative directory.
12496   cp "$am_depcomp" conftest.dir
12497   cd conftest.dir
12498   # We will build objects and dependencies in a subdirectory because
12499   # it helps to detect inapplicable dependency modes.  For instance
12500   # both Tru64's cc and ICC support -MD to output dependencies as a
12501   # side effect of compilation, but ICC will put the dependencies in
12502   # the current directory while Tru64 will put them in the object
12503   # directory.
12504   mkdir sub
12505
12506   am_cv_CC_dependencies_compiler_type=none
12507   if test "$am_compiler_list" = ""; then
12508      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12509   fi
12510   am__universal=false
12511   case " $depcc " in #(
12512      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12513      esac
12514
12515   for depmode in $am_compiler_list; do
12516     # Setup a source with many dependencies, because some compilers
12517     # like to wrap large dependency lists on column 80 (with \), and
12518     # we should not choose a depcomp mode which is confused by this.
12519     #
12520     # We need to recreate these files for each test, as the compiler may
12521     # overwrite some of them when testing with obscure command lines.
12522     # This happens at least with the AIX C compiler.
12523     : > sub/conftest.c
12524     for i in 1 2 3 4 5 6; do
12525       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12526       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12527       # Solaris 8's {/usr,}/bin/sh.
12528       touch sub/conftst$i.h
12529     done
12530     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12531
12532     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12533     # mode.  It turns out that the SunPro C++ compiler does not properly
12534     # handle `-M -o', and we need to detect this.  Also, some Intel
12535     # versions had trouble with output in subdirs
12536     am__obj=sub/conftest.${OBJEXT-o}
12537     am__minus_obj="-o $am__obj"
12538     case $depmode in
12539     gcc)
12540       # This depmode causes a compiler race in universal mode.
12541       test "$am__universal" = false || continue
12542       ;;
12543     nosideeffect)
12544       # after this tag, mechanisms are not by side-effect, so they'll
12545       # only be used when explicitly requested
12546       if test "x$enable_dependency_tracking" = xyes; then
12547         continue
12548       else
12549         break
12550       fi
12551       ;;
12552     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12553       # This compiler won't grok `-c -o', but also, the minuso test has
12554       # not run yet.  These depmodes are late enough in the game, and
12555       # so weak that their functioning should not be impacted.
12556       am__obj=conftest.${OBJEXT-o}
12557       am__minus_obj=
12558       ;;
12559     none) break ;;
12560     esac
12561     if depmode=$depmode \
12562        source=sub/conftest.c object=$am__obj \
12563        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12564        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12565          >/dev/null 2>conftest.err &&
12566        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12567        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12568        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12569        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12570       # icc doesn't choke on unknown options, it will just issue warnings
12571       # or remarks (even with -Werror).  So we grep stderr for any message
12572       # that says an option was ignored or not supported.
12573       # When given -MP, icc 7.0 and 7.1 complain thusly:
12574       #   icc: Command line warning: ignoring option '-M'; no argument required
12575       # The diagnosis changed in icc 8.0:
12576       #   icc: Command line remark: option '-MP' not supported
12577       if (grep 'ignoring option' conftest.err ||
12578           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12579         am_cv_CC_dependencies_compiler_type=$depmode
12580         break
12581       fi
12582     fi
12583   done
12584
12585   cd ..
12586   rm -rf conftest.dir
12587 else
12588   am_cv_CC_dependencies_compiler_type=none
12589 fi
12590
12591 fi
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12593 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12594 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12595
12596  if
12597   test "x$enable_dependency_tracking" != xno \
12598   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12599   am__fastdepCC_TRUE=
12600   am__fastdepCC_FALSE='#'
12601 else
12602   am__fastdepCC_TRUE='#'
12603   am__fastdepCC_FALSE=
12604 fi
12605
12606
12607 if test "x$CC" != xcc; then
12608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12609 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12610 else
12611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12612 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12613 fi
12614 set dummy $CC; ac_cc=`$as_echo "$2" |
12615                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12616 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12617   $as_echo_n "(cached) " >&6
12618 else
12619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h.  */
12621
12622 int
12623 main ()
12624 {
12625
12626   ;
12627   return 0;
12628 }
12629 _ACEOF
12630 # Make sure it works both with $CC and with simple cc.
12631 # We do the test twice because some compilers refuse to overwrite an
12632 # existing .o file with -o, though they will create one.
12633 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12634 rm -f conftest2.*
12635 if { { case "(($ac_try" in
12636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637   *) ac_try_echo=$ac_try;;
12638 esac
12639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12640 $as_echo "$ac_try_echo"; } >&5
12641   (eval "$ac_try") 2>&5
12642   ac_status=$?
12643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12644   test $ac_status = 0; } &&
12645    test -f conftest2.$ac_objext && { { case "(($ac_try" in
12646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647   *) ac_try_echo=$ac_try;;
12648 esac
12649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12650 $as_echo "$ac_try_echo"; } >&5
12651   (eval "$ac_try") 2>&5
12652   ac_status=$?
12653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12654   test $ac_status = 0; };
12655 then
12656   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12657   if test "x$CC" != xcc; then
12658     # Test first that cc exists at all.
12659     if { ac_try='cc -c conftest.$ac_ext >&5'
12660   { { case "(($ac_try" in
12661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662   *) ac_try_echo=$ac_try;;
12663 esac
12664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12665 $as_echo "$ac_try_echo"; } >&5
12666   (eval "$ac_try") 2>&5
12667   ac_status=$?
12668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12669   test $ac_status = 0; }; }; then
12670       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12671       rm -f conftest2.*
12672       if { { case "(($ac_try" in
12673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674   *) ac_try_echo=$ac_try;;
12675 esac
12676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12677 $as_echo "$ac_try_echo"; } >&5
12678   (eval "$ac_try") 2>&5
12679   ac_status=$?
12680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12681   test $ac_status = 0; } &&
12682          test -f conftest2.$ac_objext && { { case "(($ac_try" in
12683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684   *) ac_try_echo=$ac_try;;
12685 esac
12686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12687 $as_echo "$ac_try_echo"; } >&5
12688   (eval "$ac_try") 2>&5
12689   ac_status=$?
12690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12691   test $ac_status = 0; };
12692       then
12693         # cc works too.
12694         :
12695       else
12696         # cc exists but doesn't like -o.
12697         eval ac_cv_prog_cc_${ac_cc}_c_o=no
12698       fi
12699     fi
12700   fi
12701 else
12702   eval ac_cv_prog_cc_${ac_cc}_c_o=no
12703 fi
12704 rm -f core conftest*
12705
12706 fi
12707 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12709 $as_echo "yes" >&6; }
12710 else
12711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712 $as_echo "no" >&6; }
12713
12714 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12715
12716 fi
12717
12718 # FIXME: we rely on the cache variable name because
12719 # there is no other way.
12720 set dummy $CC
12721 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12722 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12723 if test "$am_t" != yes; then
12724    # Losing compiler, so override with the script.
12725    # FIXME: It is wrong to rewrite CC.
12726    # But if we don't then we get into trouble of one sort or another.
12727    # A longer-term fix would be to have automake use am__CC in this case,
12728    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12729    CC="$am_aux_dir/compile $CC"
12730 fi
12731
12732
12733 # Extract the first word of "valac", so it can be a program name with args.
12734 set dummy valac; ac_word=$2
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736 $as_echo_n "checking for $ac_word... " >&6; }
12737 if ${ac_cv_path_VALAC+:} false; then :
12738   $as_echo_n "(cached) " >&6
12739 else
12740   case $VALAC in
12741   [\\/]* | ?:[\\/]*)
12742   ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
12743   ;;
12744   *)
12745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12746 for as_dir in $PATH
12747 do
12748   IFS=$as_save_IFS
12749   test -z "$as_dir" && as_dir=.
12750     for ac_exec_ext in '' $ac_executable_extensions; do
12751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12752     ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
12753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12754     break 2
12755   fi
12756 done
12757   done
12758 IFS=$as_save_IFS
12759
12760   ;;
12761 esac
12762 fi
12763 VALAC=$ac_cv_path_VALAC
12764 if test -n "$VALAC"; then
12765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
12766 $as_echo "$VALAC" >&6; }
12767 else
12768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769 $as_echo "no" >&6; }
12770 fi
12771
12772
12773  if test -z "$VALAC"; then :
12774   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&5
12775 $as_echo "$as_me: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&2;}
12776 else
12777   if test -n "0.9"; then :
12778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is at least version 0.9" >&5
12779 $as_echo_n "checking $VALAC is at least version 0.9... " >&6; }
12780        am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
12781        as_arg_v1=0.9
12782 as_arg_v2="$am__vala_version"
12783 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12784 case $? in #(
12785   1) :
12786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12787 $as_echo "yes" >&6; } ;; #(
12788   0) :
12789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12790 $as_echo "yes" >&6; } ;; #(
12791   2) :
12792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12794           as_fn_error $? "Vala 0.9 not found." "$LINENO" 5 ;; #(
12795   *) :
12796      ;;
12797 esac
12798 fi
12799 fi
12800
12801
12802 # Platform checks
12803
12804
12805 case "$host" in
12806   *-*-mingw*)
12807     win32=yes
12808     macos=no
12809     linux=no
12810     SERVER_IPC_MODULE="msrpc-glib2-1.0"
12811     CLIENT_IPC_MODULE="msrpc-mingw-1.0"
12812
12813 pkg_failed=no
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12815 $as_echo_n "checking for GTK... " >&6; }
12816
12817 if test -n "$GTK_CFLAGS"; then
12818     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12819  elif test -n "$PKG_CONFIG"; then
12820     if test -n "$PKG_CONFIG" && \
12821     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12822   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12823   ac_status=$?
12824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12825   test $ac_status = 0; }; then
12826   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
12827                       test "x$?" != "x0" && pkg_failed=yes
12828 else
12829   pkg_failed=yes
12830 fi
12831  else
12832     pkg_failed=untried
12833 fi
12834 if test -n "$GTK_LIBS"; then
12835     pkg_cv_GTK_LIBS="$GTK_LIBS"
12836  elif test -n "$PKG_CONFIG"; then
12837     if test -n "$PKG_CONFIG" && \
12838     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12839   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12840   ac_status=$?
12841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12842   test $ac_status = 0; }; then
12843   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
12844                       test "x$?" != "x0" && pkg_failed=yes
12845 else
12846   pkg_failed=yes
12847 fi
12848  else
12849     pkg_failed=untried
12850 fi
12851
12852
12853
12854 if test $pkg_failed = yes; then
12855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 $as_echo "no" >&6; }
12857
12858 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12859         _pkg_short_errors_supported=yes
12860 else
12861         _pkg_short_errors_supported=no
12862 fi
12863         if test $_pkg_short_errors_supported = yes; then
12864                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12865         else
12866                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12867         fi
12868         # Put the nasty error message in config.log where it belongs
12869         echo "$GTK_PKG_ERRORS" >&5
12870
12871         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
12872
12873 $GTK_PKG_ERRORS
12874
12875 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12876 installed software in a non-standard prefix.
12877
12878 Alternatively, you may set the environment variables GTK_CFLAGS
12879 and GTK_LIBS to avoid the need to call pkg-config.
12880 See the pkg-config man page for more details." "$LINENO" 5
12881 elif test $pkg_failed = untried; then
12882         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12884         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12886 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12887 is in your PATH or set the PKG_CONFIG environment variable to the full
12888 path to pkg-config.
12889
12890 Alternatively, you may set the environment variables GTK_CFLAGS
12891 and GTK_LIBS to avoid the need to call pkg-config.
12892 See the pkg-config man page for more details.
12893
12894 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12895 See \`config.log' for more details" "$LINENO" 5; }
12896 else
12897         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
12898         GTK_LIBS=$pkg_cv_GTK_LIBS
12899         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12900 $as_echo "yes" >&6; }
12901         GTK_VERSION="gtk+-2.0"
12902
12903 fi
12904     ;;
12905
12906   *darwin*)
12907     win32=no
12908     macos=yes
12909     linux=no
12910
12911     # We require dbus-glib for the client library even if we are using GDBus
12912     # in the server. The reason we can't always use dbus-glib in the server is
12913     # because Vala drops support for it, but as it ships with DBus there is very
12914     # little danger of it being dropped by distros any time soon.
12915     CLIENT_IPC_MODULE="dbus-glib-1"
12916         SERVER_IPC_MODULE="dbus-glib-1"
12917
12918
12919 pkg_failed=no
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAC" >&5
12921 $as_echo_n "checking for MAC... " >&6; }
12922
12923 if test -n "$MAC_CFLAGS"; then
12924     pkg_cv_MAC_CFLAGS="$MAC_CFLAGS"
12925  elif test -n "$PKG_CONFIG"; then
12926     if test -n "$PKG_CONFIG" && \
12927     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
12928         \""; } >&5
12929   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
12930         ") 2>&5
12931   ac_status=$?
12932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12933   test $ac_status = 0; }; then
12934   pkg_cv_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration >= 1.0.1
12935         " 2>/dev/null`
12936                       test "x$?" != "x0" && pkg_failed=yes
12937 else
12938   pkg_failed=yes
12939 fi
12940  else
12941     pkg_failed=untried
12942 fi
12943 if test -n "$MAC_LIBS"; then
12944     pkg_cv_MAC_LIBS="$MAC_LIBS"
12945  elif test -n "$PKG_CONFIG"; then
12946     if test -n "$PKG_CONFIG" && \
12947     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
12948         \""; } >&5
12949   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
12950         ") 2>&5
12951   ac_status=$?
12952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12953   test $ac_status = 0; }; then
12954   pkg_cv_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration >= 1.0.1
12955         " 2>/dev/null`
12956                       test "x$?" != "x0" && pkg_failed=yes
12957 else
12958   pkg_failed=yes
12959 fi
12960  else
12961     pkg_failed=untried
12962 fi
12963
12964
12965
12966 if test $pkg_failed = yes; then
12967         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 $as_echo "no" >&6; }
12969
12970 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12971         _pkg_short_errors_supported=yes
12972 else
12973         _pkg_short_errors_supported=no
12974 fi
12975         if test $_pkg_short_errors_supported = yes; then
12976                 MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
12977         " 2>&1`
12978         else
12979                 MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
12980         " 2>&1`
12981         fi
12982         # Put the nasty error message in config.log where it belongs
12983         echo "$MAC_PKG_ERRORS" >&5
12984
12985         as_fn_error $? "Package requirements (gtk-mac-integration >= 1.0.1
12986         ) were not met:
12987
12988 $MAC_PKG_ERRORS
12989
12990 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12991 installed software in a non-standard prefix.
12992
12993 Alternatively, you may set the environment variables MAC_CFLAGS
12994 and MAC_LIBS to avoid the need to call pkg-config.
12995 See the pkg-config man page for more details." "$LINENO" 5
12996 elif test $pkg_failed = untried; then
12997         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12998 $as_echo "no" >&6; }
12999         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13001 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13002 is in your PATH or set the PKG_CONFIG environment variable to the full
13003 path to pkg-config.
13004
13005 Alternatively, you may set the environment variables MAC_CFLAGS
13006 and MAC_LIBS to avoid the need to call pkg-config.
13007 See the pkg-config man page for more details.
13008
13009 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13010 See \`config.log' for more details" "$LINENO" 5; }
13011 else
13012         MAC_CFLAGS=$pkg_cv_MAC_CFLAGS
13013         MAC_LIBS=$pkg_cv_MAC_LIBS
13014         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13015 $as_echo "yes" >&6; }
13016
13017 fi
13018
13019 # TODO: Move to GTK+-3
13020 #            [gtk+-3.0 >= 2.0],
13021 #            [GTK_VERSION="gtk+-3.0"]
13022
13023 pkg_failed=no
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
13025 $as_echo_n "checking for GTK... " >&6; }
13026
13027 if test -n "$GTK_CFLAGS"; then
13028     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13029  elif test -n "$PKG_CONFIG"; then
13030     if test -n "$PKG_CONFIG" && \
13031     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13032   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13033   ac_status=$?
13034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13035   test $ac_status = 0; }; then
13036   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
13037                       test "x$?" != "x0" && pkg_failed=yes
13038 else
13039   pkg_failed=yes
13040 fi
13041  else
13042     pkg_failed=untried
13043 fi
13044 if test -n "$GTK_LIBS"; then
13045     pkg_cv_GTK_LIBS="$GTK_LIBS"
13046  elif test -n "$PKG_CONFIG"; then
13047     if test -n "$PKG_CONFIG" && \
13048     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13049   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13050   ac_status=$?
13051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13052   test $ac_status = 0; }; then
13053   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
13054                       test "x$?" != "x0" && pkg_failed=yes
13055 else
13056   pkg_failed=yes
13057 fi
13058  else
13059     pkg_failed=untried
13060 fi
13061
13062
13063
13064 if test $pkg_failed = yes; then
13065         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066 $as_echo "no" >&6; }
13067
13068 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13069         _pkg_short_errors_supported=yes
13070 else
13071         _pkg_short_errors_supported=no
13072 fi
13073         if test $_pkg_short_errors_supported = yes; then
13074                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13075         else
13076                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13077         fi
13078         # Put the nasty error message in config.log where it belongs
13079         echo "$GTK_PKG_ERRORS" >&5
13080
13081         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13082
13083 $GTK_PKG_ERRORS
13084
13085 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13086 installed software in a non-standard prefix.
13087
13088 Alternatively, you may set the environment variables GTK_CFLAGS
13089 and GTK_LIBS to avoid the need to call pkg-config.
13090 See the pkg-config man page for more details." "$LINENO" 5
13091 elif test $pkg_failed = untried; then
13092         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093 $as_echo "no" >&6; }
13094         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13096 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13097 is in your PATH or set the PKG_CONFIG environment variable to the full
13098 path to pkg-config.
13099
13100 Alternatively, you may set the environment variables GTK_CFLAGS
13101 and GTK_LIBS to avoid the need to call pkg-config.
13102 See the pkg-config man page for more details.
13103
13104 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13105 See \`config.log' for more details" "$LINENO" 5; }
13106 else
13107         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13108         GTK_LIBS=$pkg_cv_GTK_LIBS
13109         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13110 $as_echo "yes" >&6; }
13111         GTK_VERSION="gtk+-2.0"
13112
13113 fi
13114
13115     ;;
13116   *)
13117     macos=no
13118     win32=no
13119     linux=yes
13120
13121     # We require dbus-glib for the client library even if we are using GDBus
13122     # in the server. The reason we can't always use dbus-glib in the server is
13123     # because Vala drops support for it, but as it ships with DBus there is very
13124     # little danger of it being dropped by distros any time soon.
13125     CLIENT_IPC_MODULE="dbus-glib-1"
13126
13127 pkg_failed=no
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDBUS" >&5
13129 $as_echo_n "checking for GDBUS... " >&6; }
13130
13131 if test -n "$GDBUS_CFLAGS"; then
13132     pkg_cv_GDBUS_CFLAGS="$GDBUS_CFLAGS"
13133  elif test -n "$PKG_CONFIG"; then
13134     if test -n "$PKG_CONFIG" && \
13135     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
13136   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
13137   ac_status=$?
13138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13139   test $ac_status = 0; }; then
13140   pkg_cv_GDBUS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
13141                       test "x$?" != "x0" && pkg_failed=yes
13142 else
13143   pkg_failed=yes
13144 fi
13145  else
13146     pkg_failed=untried
13147 fi
13148 if test -n "$GDBUS_LIBS"; then
13149     pkg_cv_GDBUS_LIBS="$GDBUS_LIBS"
13150  elif test -n "$PKG_CONFIG"; then
13151     if test -n "$PKG_CONFIG" && \
13152     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
13153   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
13154   ac_status=$?
13155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13156   test $ac_status = 0; }; then
13157   pkg_cv_GDBUS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
13158                       test "x$?" != "x0" && pkg_failed=yes
13159 else
13160   pkg_failed=yes
13161 fi
13162  else
13163     pkg_failed=untried
13164 fi
13165
13166
13167
13168 if test $pkg_failed = yes; then
13169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170 $as_echo "no" >&6; }
13171
13172 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13173         _pkg_short_errors_supported=yes
13174 else
13175         _pkg_short_errors_supported=no
13176 fi
13177         if test $_pkg_short_errors_supported = yes; then
13178                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
13179         else
13180                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
13181         fi
13182         # Put the nasty error message in config.log where it belongs
13183         echo "$GDBUS_PKG_ERRORS" >&5
13184
13185         SERVER_IPC_MODULE="dbus-glib-1"
13186
13187 elif test $pkg_failed = untried; then
13188         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 $as_echo "no" >&6; }
13190         SERVER_IPC_MODULE="dbus-glib-1"
13191
13192 else
13193         GDBUS_CFLAGS=$pkg_cv_GDBUS_CFLAGS
13194         GDBUS_LIBS=$pkg_cv_GDBUS_LIBS
13195         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13196 $as_echo "yes" >&6; }
13197         SERVER_IPC_MODULE="gio-2.0"
13198 fi
13199 # TODO: Move to GTK+-3
13200 #            [gtk+-3.0 >= 2.0],
13201 #            [GTK_VERSION="gtk+-3.0"]
13202
13203 pkg_failed=no
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
13205 $as_echo_n "checking for GTK... " >&6; }
13206
13207 if test -n "$GTK_CFLAGS"; then
13208     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13209  elif test -n "$PKG_CONFIG"; then
13210     if test -n "$PKG_CONFIG" && \
13211     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13212   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13213   ac_status=$?
13214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13215   test $ac_status = 0; }; then
13216   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
13217                       test "x$?" != "x0" && pkg_failed=yes
13218 else
13219   pkg_failed=yes
13220 fi
13221  else
13222     pkg_failed=untried
13223 fi
13224 if test -n "$GTK_LIBS"; then
13225     pkg_cv_GTK_LIBS="$GTK_LIBS"
13226  elif test -n "$PKG_CONFIG"; then
13227     if test -n "$PKG_CONFIG" && \
13228     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13229   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13230   ac_status=$?
13231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13232   test $ac_status = 0; }; then
13233   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
13234                       test "x$?" != "x0" && pkg_failed=yes
13235 else
13236   pkg_failed=yes
13237 fi
13238  else
13239     pkg_failed=untried
13240 fi
13241
13242
13243
13244 if test $pkg_failed = yes; then
13245         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246 $as_echo "no" >&6; }
13247
13248 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13249         _pkg_short_errors_supported=yes
13250 else
13251         _pkg_short_errors_supported=no
13252 fi
13253         if test $_pkg_short_errors_supported = yes; then
13254                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13255         else
13256                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13257         fi
13258         # Put the nasty error message in config.log where it belongs
13259         echo "$GTK_PKG_ERRORS" >&5
13260
13261         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13262
13263 $GTK_PKG_ERRORS
13264
13265 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13266 installed software in a non-standard prefix.
13267
13268 Alternatively, you may set the environment variables GTK_CFLAGS
13269 and GTK_LIBS to avoid the need to call pkg-config.
13270 See the pkg-config man page for more details." "$LINENO" 5
13271 elif test $pkg_failed = untried; then
13272         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273 $as_echo "no" >&6; }
13274         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13276 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13277 is in your PATH or set the PKG_CONFIG environment variable to the full
13278 path to pkg-config.
13279
13280 Alternatively, you may set the environment variables GTK_CFLAGS
13281 and GTK_LIBS to avoid the need to call pkg-config.
13282 See the pkg-config man page for more details.
13283
13284 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13285 See \`config.log' for more details" "$LINENO" 5; }
13286 else
13287         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13288         GTK_LIBS=$pkg_cv_GTK_LIBS
13289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13290 $as_echo "yes" >&6; }
13291         GTK_VERSION="gtk+-2.0"
13292
13293 fi
13294
13295     ;;
13296 esac
13297
13298  if test "$linux" = "yes"; then
13299   OS_LINUX_TRUE=
13300   OS_LINUX_FALSE='#'
13301 else
13302   OS_LINUX_TRUE='#'
13303   OS_LINUX_FALSE=
13304 fi
13305
13306  if test "$win32" = "yes"; then
13307   OS_WIN32_TRUE=
13308   OS_WIN32_FALSE='#'
13309 else
13310   OS_WIN32_TRUE='#'
13311   OS_WIN32_FALSE=
13312 fi
13313
13314  if test "$macos" = "yes"; then
13315   OS_MACOS_TRUE=
13316   OS_MACOS_FALSE='#'
13317 else
13318   OS_MACOS_TRUE='#'
13319   OS_MACOS_FALSE=
13320 fi
13321
13322
13323  if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
13324   IPC_MSRPC_TRUE=
13325   IPC_MSRPC_FALSE='#'
13326 else
13327   IPC_MSRPC_TRUE='#'
13328   IPC_MSRPC_FALSE=
13329 fi
13330
13331  if test "$SERVER_IPC_MODULE" != "msrpc-glib2-1.0"; then
13332   IPC_DBUS_TRUE=
13333   IPC_DBUS_FALSE='#'
13334 else
13335   IPC_DBUS_TRUE='#'
13336   IPC_DBUS_FALSE=
13337 fi
13338
13339  if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
13340   IPC_DBUS_GLIB_TRUE=
13341   IPC_DBUS_GLIB_FALSE='#'
13342 else
13343   IPC_DBUS_GLIB_TRUE='#'
13344   IPC_DBUS_GLIB_FALSE=
13345 fi
13346
13347  if test "$SERVER_IPC_MODULE" = "gio-2.0"; then
13348   IPC_GDBUS_TRUE=
13349   IPC_GDBUS_FALSE='#'
13350 else
13351   IPC_GDBUS_TRUE='#'
13352   IPC_GDBUS_FALSE=
13353 fi
13354
13355
13356 if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
13357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is no greater than 0.12.1" >&5
13358 $as_echo_n "checking $VALAC is no greater than 0.12.1... " >&6; }
13359   vala_version=`$VALAC --version | sed 's/Vala  *//'`
13360   as_arg_v1=0.12.2
13361 as_arg_v2="$vala_version"
13362 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13363 case $? in #(
13364   1) :
13365     vala_supports_dbus_glib="no" ;; #(
13366   0) :
13367     vala_supports_dbus_glib="no" ;; #(
13368   2) :
13369     vala_supports_dbus_glib="yes" ;; #(
13370   *) :
13371      ;;
13372 esac
13373
13374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vala_supports_dbus_glib" >&5
13375 $as_echo "$vala_supports_dbus_glib" >&6; }
13376   if test "$vala_supports_dbus_glib" = "no"; then
13377     as_fn_error $? "
13378 *** Vala 0.12.1 or earlier is required for dbus-glib support. Newer versions
13379 *** require that you have GLib 2.26 or newer (for GDBus support)." "$LINENO" 5
13380   fi
13381 fi
13382
13383 if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
13384   # MS RPC utilities
13385
13386   pkg_config_args="msrpc-mingw-1.0"
13387
13388
13389
13390
13391
13392
13393
13394
13395 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13396         if test -n "$ac_tool_prefix"; then
13397   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13398 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13400 $as_echo_n "checking for $ac_word... " >&6; }
13401 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13402   $as_echo_n "(cached) " >&6
13403 else
13404   case $PKG_CONFIG in
13405   [\\/]* | ?:[\\/]*)
13406   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13407   ;;
13408   *)
13409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13410 for as_dir in $PATH
13411 do
13412   IFS=$as_save_IFS
13413   test -z "$as_dir" && as_dir=.
13414     for ac_exec_ext in '' $ac_executable_extensions; do
13415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13416     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13418     break 2
13419   fi
13420 done
13421   done
13422 IFS=$as_save_IFS
13423
13424   ;;
13425 esac
13426 fi
13427 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13428 if test -n "$PKG_CONFIG"; then
13429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13430 $as_echo "$PKG_CONFIG" >&6; }
13431 else
13432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433 $as_echo "no" >&6; }
13434 fi
13435
13436
13437 fi
13438 if test -z "$ac_cv_path_PKG_CONFIG"; then
13439   ac_pt_PKG_CONFIG=$PKG_CONFIG
13440   # Extract the first word of "pkg-config", so it can be a program name with args.
13441 set dummy pkg-config; ac_word=$2
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13443 $as_echo_n "checking for $ac_word... " >&6; }
13444 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13445   $as_echo_n "(cached) " >&6
13446 else
13447   case $ac_pt_PKG_CONFIG in
13448   [\\/]* | ?:[\\/]*)
13449   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13450   ;;
13451   *)
13452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13453 for as_dir in $PATH
13454 do
13455   IFS=$as_save_IFS
13456   test -z "$as_dir" && as_dir=.
13457     for ac_exec_ext in '' $ac_executable_extensions; do
13458   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13459     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13461     break 2
13462   fi
13463 done
13464   done
13465 IFS=$as_save_IFS
13466
13467   ;;
13468 esac
13469 fi
13470 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13471 if test -n "$ac_pt_PKG_CONFIG"; then
13472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13473 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13474 else
13475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13476 $as_echo "no" >&6; }
13477 fi
13478
13479   if test "x$ac_pt_PKG_CONFIG" = x; then
13480     PKG_CONFIG=""
13481   else
13482     case $cross_compiling:$ac_tool_warned in
13483 yes:)
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13486 ac_tool_warned=yes ;;
13487 esac
13488     PKG_CONFIG=$ac_pt_PKG_CONFIG
13489   fi
13490 else
13491   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13492 fi
13493
13494 fi
13495 if test -n "$PKG_CONFIG"; then
13496         _pkg_min_version=0.16
13497         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13498 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13499         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13500                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13501 $as_echo "yes" >&6; }
13502         else
13503                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504 $as_echo "no" >&6; }
13505                 PKG_CONFIG=""
13506         fi
13507 fi
13508
13509   no_msrpc=""
13510
13511   if test "x$PKG_CONFIG" = x ; then
13512     no_msrpc=yes
13513     PKG_CONFIG=no
13514   fi
13515
13516   min_msrpc_mingw_version=0.1.0
13517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msrpc-mingw - version >= $min_msrpc_version" >&5
13518 $as_echo_n "checking for msrpc-mingw - version >= $min_msrpc_version... " >&6; }
13519
13520   if test x$PKG_CONFIG != xno ; then
13521     if $PKG_CONFIG --uninstalled $pkg_config_args; then
13522       echo "Will use uninstalled version of msrpc-mingw found in PKG_CONFIG_PATH"
13523     fi
13524
13525     if $PKG_CONFIG --atleast-version $min_msrpc_mingw_version $pkg_config_args; then
13526       :
13527     else
13528       no_msrpc=yes
13529     fi
13530   fi
13531
13532   if test x"$no_msrpc" = x ; then
13533     MIDL_WRAPPER=`$PKG_CONFIG --variable=midl_wrapper msrpc-mingw-1.0`
13534     MSRPC_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13535     MSRPC_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13536   fi
13537
13538   if test "x$no_msrpc" = x ; then
13539      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13540 $as_echo "yes" >&6; }
13541      :
13542   else
13543      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13544 $as_echo "no" >&6; }
13545      if test "$PKG_CONFIG" = "no" ; then
13546        echo "*** A new enough version of pkg-config was not found."
13547        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13548      else
13549        echo "not found"
13550      fi
13551      MSRPC_CFLAGS=""
13552      MSRPC_LIBS=""
13553      MIDL_WRAPPER=""
13554      as_fn_error $? "
13555 *** msrpc-mingw 0.1.0 or better is required." "$LINENO" 5
13556   fi
13557
13558
13559
13560
13561
13562   # Extract the first word of "midl", so it can be a program name with args.
13563 set dummy midl; ac_word=$2
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13565 $as_echo_n "checking for $ac_word... " >&6; }
13566 if ${ac_cv_path_MIDL+:} false; then :
13567   $as_echo_n "(cached) " >&6
13568 else
13569   case $MIDL in
13570   [\\/]* | ?:[\\/]*)
13571   ac_cv_path_MIDL="$MIDL" # Let the user override the test with a path.
13572   ;;
13573   *)
13574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13575 for as_dir in /c/Program\ Files/Microsoft\ SDKs/Windows/v7.0/Bin$PATH_SEPARATOR$PATH
13576 do
13577   IFS=$as_save_IFS
13578   test -z "$as_dir" && as_dir=.
13579     for ac_exec_ext in '' $ac_executable_extensions; do
13580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13581     ac_cv_path_MIDL="$as_dir/$ac_word$ac_exec_ext"
13582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13583     break 2
13584   fi
13585 done
13586   done
13587 IFS=$as_save_IFS
13588
13589   test -z "$ac_cv_path_MIDL" && ac_cv_path_MIDL="no"
13590   ;;
13591 esac
13592 fi
13593 MIDL=$ac_cv_path_MIDL
13594 if test -n "$MIDL"; then
13595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIDL" >&5
13596 $as_echo "$MIDL" >&6; }
13597 else
13598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599 $as_echo "no" >&6; }
13600 fi
13601
13602
13603   if test "$MIDL" = "no"; then
13604      as_fn_error $? "
13605 *** Could not find the Microsoft interface compiler MIDL.EXE.
13606 *** This program is available as part of the MS Windows SDK, in
13607 *** the Win32 Development Tools package. If it is not in the PATH
13608 *** or its default location you may set the 'MIDL' environment
13609 *** variable to point to its location and rerun configure." "$LINENO" 5
13610   fi
13611 fi
13612
13613 if test "$win32" = "yes"; then
13614   # Other Windows-specific tools
13615
13616   # LIB.EXE from MSVC to build an MSVC-compatible import library.
13617   # Extract the first word of "lib", so it can be a program name with args.
13618 set dummy lib; ac_word=$2
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620 $as_echo_n "checking for $ac_word... " >&6; }
13621 if ${ac_cv_path_MSVC_LIB+:} false; then :
13622   $as_echo_n "(cached) " >&6
13623 else
13624   case $MSVC_LIB in
13625   [\\/]* | ?:[\\/]*)
13626   ac_cv_path_MSVC_LIB="$MSVC_LIB" # Let the user override the test with a path.
13627   ;;
13628   *)
13629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630 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
13631 do
13632   IFS=$as_save_IFS
13633   test -z "$as_dir" && as_dir=.
13634     for ac_exec_ext in '' $ac_executable_extensions; do
13635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13636     ac_cv_path_MSVC_LIB="$as_dir/$ac_word$ac_exec_ext"
13637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13638     break 2
13639   fi
13640 done
13641   done
13642 IFS=$as_save_IFS
13643
13644   test -z "$ac_cv_path_MSVC_LIB" && ac_cv_path_MSVC_LIB="no"
13645   ;;
13646 esac
13647 fi
13648 MSVC_LIB=$ac_cv_path_MSVC_LIB
13649 if test -n "$MSVC_LIB"; then
13650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_LIB" >&5
13651 $as_echo "$MSVC_LIB" >&6; }
13652 else
13653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13654 $as_echo "no" >&6; }
13655 fi
13656
13657
13658
13659   if test "$MSVC_LIB" = "no"; then
13660      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13661 *** Could not find the Microsoft 'LIB.EXE' program. This is required
13662 *** to build the Visual C import library for libmoonshot. Use the
13663 *** MSVC_LIB environment variable to pass its location if this is
13664 *** outside the PATH." >&5
13665 $as_echo "$as_me: WARNING:
13666 *** Could not find the Microsoft 'LIB.EXE' program. This is required
13667 *** to build the Visual C import library for libmoonshot. Use the
13668 *** MSVC_LIB environment variable to pass its location if this is
13669 *** outside the PATH." >&2;}
13670   fi
13671
13672
13673   # ImageMagick for the 'make icons' target. Note that
13674   # c:/windows/system32/convert.exe is nothing to do with ImageMagick.
13675   # Extract the first word of "convert", so it can be a program name with args.
13676 set dummy convert; ac_word=$2
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13678 $as_echo_n "checking for $ac_word... " >&6; }
13679 if ${ac_cv_path_IMAGEMAGICK_CONVERT+:} false; then :
13680   $as_echo_n "(cached) " >&6
13681 else
13682   case $IMAGEMAGICK_CONVERT in
13683   [\\/]* | ?:[\\/]*)
13684   ac_cv_path_IMAGEMAGICK_CONVERT="$IMAGEMAGICK_CONVERT" # Let the user override the test with a path.
13685   ;;
13686   *)
13687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13688 for as_dir in /c/Program\ Files/ImageMagick$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/ImageMagick$PATH_SEPARATOR$PATH
13689 do
13690   IFS=$as_save_IFS
13691   test -z "$as_dir" && as_dir=.
13692     for ac_exec_ext in '' $ac_executable_extensions; do
13693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13694     ac_cv_path_IMAGEMAGICK_CONVERT="$as_dir/$ac_word$ac_exec_ext"
13695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13696     break 2
13697   fi
13698 done
13699   done
13700 IFS=$as_save_IFS
13701
13702   test -z "$ac_cv_path_IMAGEMAGICK_CONVERT" && ac_cv_path_IMAGEMAGICK_CONVERT="no"
13703   ;;
13704 esac
13705 fi
13706 IMAGEMAGICK_CONVERT=$ac_cv_path_IMAGEMAGICK_CONVERT
13707 if test -n "$IMAGEMAGICK_CONVERT"; then
13708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CONVERT" >&5
13709 $as_echo "$IMAGEMAGICK_CONVERT" >&6; }
13710 else
13711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13712 $as_echo "no" >&6; }
13713 fi
13714
13715
13716
13717   if test "$IMAGEMAGICK_CONVERT" = "no" || test "$IMAGEMAGICK_CONVERT" = "/c/windows/system32/convert"; then
13718      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13719 *** Could not find ImageMagick convert.exe. This is required for the
13720 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
13721 *** variable to pass its location if this is outside the PATH." >&5
13722 $as_echo "$as_me: WARNING:
13723 *** Could not find ImageMagick convert.exe. This is required for the
13724 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
13725 *** variable to pass its location if this is outside the PATH." >&2;}
13726   fi
13727
13728
13729   # Windows Installer XML tools
13730   # Extract the first word of "candle", so it can be a program name with args.
13731 set dummy candle; ac_word=$2
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13733 $as_echo_n "checking for $ac_word... " >&6; }
13734 if ${ac_cv_path_WIX_CANDLE+:} false; then :
13735   $as_echo_n "(cached) " >&6
13736 else
13737   case $WIX_CANDLE in
13738   [\\/]* | ?:[\\/]*)
13739   ac_cv_path_WIX_CANDLE="$WIX_CANDLE" # Let the user override the test with a path.
13740   ;;
13741   *)
13742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13743 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
13744 do
13745   IFS=$as_save_IFS
13746   test -z "$as_dir" && as_dir=.
13747     for ac_exec_ext in '' $ac_executable_extensions; do
13748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13749     ac_cv_path_WIX_CANDLE="$as_dir/$ac_word$ac_exec_ext"
13750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13751     break 2
13752   fi
13753 done
13754   done
13755 IFS=$as_save_IFS
13756
13757   test -z "$ac_cv_path_WIX_CANDLE" && ac_cv_path_WIX_CANDLE="no"
13758   ;;
13759 esac
13760 fi
13761 WIX_CANDLE=$ac_cv_path_WIX_CANDLE
13762 if test -n "$WIX_CANDLE"; then
13763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_CANDLE" >&5
13764 $as_echo "$WIX_CANDLE" >&6; }
13765 else
13766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767 $as_echo "no" >&6; }
13768 fi
13769
13770
13771   # Extract the first word of "light", so it can be a program name with args.
13772 set dummy light; ac_word=$2
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13774 $as_echo_n "checking for $ac_word... " >&6; }
13775 if ${ac_cv_path_WIX_LIGHT+:} false; then :
13776   $as_echo_n "(cached) " >&6
13777 else
13778   case $WIX_LIGHT in
13779   [\\/]* | ?:[\\/]*)
13780   ac_cv_path_WIX_LIGHT="$WIX_LIGHT" # Let the user override the test with a path.
13781   ;;
13782   *)
13783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784 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
13785 do
13786   IFS=$as_save_IFS
13787   test -z "$as_dir" && as_dir=.
13788     for ac_exec_ext in '' $ac_executable_extensions; do
13789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13790     ac_cv_path_WIX_LIGHT="$as_dir/$ac_word$ac_exec_ext"
13791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13792     break 2
13793   fi
13794 done
13795   done
13796 IFS=$as_save_IFS
13797
13798   test -z "$ac_cv_path_WIX_LIGHT" && ac_cv_path_WIX_LIGHT="no"
13799   ;;
13800 esac
13801 fi
13802 WIX_LIGHT=$ac_cv_path_WIX_LIGHT
13803 if test -n "$WIX_LIGHT"; then
13804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_LIGHT" >&5
13805 $as_echo "$WIX_LIGHT" >&6; }
13806 else
13807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 $as_echo "no" >&6; }
13809 fi
13810
13811
13812
13813   if test "$WIX_CANDLE" = "no" || test "$WIX_LIGHT" = "no"; then
13814      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13815 *** Could not find the Windows Installer XML tools. These are required
13816 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
13817 *** environment variables to pass their locations if they are outside
13818 *** the PATH." >&5
13819 $as_echo "$as_me: WARNING:
13820 *** Could not find the Windows Installer XML tools. These are required
13821 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
13822 *** environment variables to pass their locations if they are outside
13823 *** the PATH." >&2;}
13824   fi
13825 fi
13826
13827 if test "$linux" = "yes"; then
13828   # Extract the first word of "update-mime-database", so it can be a program name with args.
13829 set dummy update-mime-database; ac_word=$2
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13831 $as_echo_n "checking for $ac_word... " >&6; }
13832 if ${ac_cv_path_UPDATE_MIME_DATABASE+:} false; then :
13833   $as_echo_n "(cached) " >&6
13834 else
13835   case $UPDATE_MIME_DATABASE in
13836   [\\/]* | ?:[\\/]*)
13837   ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
13838   ;;
13839   *)
13840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841 for as_dir in $PATH
13842 do
13843   IFS=$as_save_IFS
13844   test -z "$as_dir" && as_dir=.
13845     for ac_exec_ext in '' $ac_executable_extensions; do
13846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13847     ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
13848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13849     break 2
13850   fi
13851 done
13852   done
13853 IFS=$as_save_IFS
13854
13855   test -z "$ac_cv_path_UPDATE_MIME_DATABASE" && ac_cv_path_UPDATE_MIME_DATABASE="no"
13856   ;;
13857 esac
13858 fi
13859 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
13860 if test -n "$UPDATE_MIME_DATABASE"; then
13861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
13862 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
13863 else
13864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13865 $as_echo "no" >&6; }
13866 fi
13867
13868
13869   if test "$UPDATE_MIME_DATABASE" = "no"; then
13870     as_fn_error $? "
13871 *** Could not find the Freedesktop.org  mime database update tool.
13872 *** Web provisioning files could not be automatically installed." "$LINENO" 5
13873   fi
13874   # Extract the first word of "update-desktop-database", so it can be a program name with args.
13875 set dummy update-desktop-database; ac_word=$2
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13877 $as_echo_n "checking for $ac_word... " >&6; }
13878 if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
13879   $as_echo_n "(cached) " >&6
13880 else
13881   case $UPDATE_DESKTOP_DATABASE in
13882   [\\/]* | ?:[\\/]*)
13883   ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
13884   ;;
13885   *)
13886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13887 for as_dir in $PATH
13888 do
13889   IFS=$as_save_IFS
13890   test -z "$as_dir" && as_dir=.
13891     for ac_exec_ext in '' $ac_executable_extensions; do
13892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13893     ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
13894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13895     break 2
13896   fi
13897 done
13898   done
13899 IFS=$as_save_IFS
13900
13901   test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
13902   ;;
13903 esac
13904 fi
13905 UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
13906 if test -n "$UPDATE_DESKTOP_DATABASE"; then
13907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
13908 $as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
13909 else
13910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13911 $as_echo "no" >&6; }
13912 fi
13913
13914
13915   if test "$UPDATE_DESKTOP_DATABASE" = "no"; then
13916     as_fn_error $? "
13917 *** Could not find the Freedesktop.org desktop entry database update
13918 *** tool. Web provisioning files could not be automatically installed." "$LINENO" 5
13919   fi
13920 fi
13921
13922 MOONSHOT_APP="$bindir/moonshot"
13923 MOONSHOT_WEBP="$bindir/moonshot-webp"
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935 # Dependencies
13936
13937 pkg_failed=no
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot" >&5
13939 $as_echo_n "checking for moonshot... " >&6; }
13940
13941 if test -n "$moonshot_CFLAGS"; then
13942     pkg_cv_moonshot_CFLAGS="$moonshot_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 \"
13946         atk >= 1.20
13947         glib-2.0 >= 2.22
13948         gobject-2.0 >= 2.22
13949         \$GTK_VERSION
13950         gee-1.0 >= 0.5
13951         \$SERVER_IPC_MODULE
13952                 \$MAC
13953 \""; } >&5
13954   ($PKG_CONFIG --exists --print-errors "
13955         atk >= 1.20
13956         glib-2.0 >= 2.22
13957         gobject-2.0 >= 2.22
13958         $GTK_VERSION
13959         gee-1.0 >= 0.5
13960         $SERVER_IPC_MODULE
13961                 $MAC
13962 ") 2>&5
13963   ac_status=$?
13964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13965   test $ac_status = 0; }; then
13966   pkg_cv_moonshot_CFLAGS=`$PKG_CONFIG --cflags "
13967         atk >= 1.20
13968         glib-2.0 >= 2.22
13969         gobject-2.0 >= 2.22
13970         $GTK_VERSION
13971         gee-1.0 >= 0.5
13972         $SERVER_IPC_MODULE
13973                 $MAC
13974 " 2>/dev/null`
13975                       test "x$?" != "x0" && pkg_failed=yes
13976 else
13977   pkg_failed=yes
13978 fi
13979  else
13980     pkg_failed=untried
13981 fi
13982 if test -n "$moonshot_LIBS"; then
13983     pkg_cv_moonshot_LIBS="$moonshot_LIBS"
13984  elif test -n "$PKG_CONFIG"; then
13985     if test -n "$PKG_CONFIG" && \
13986     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13987         atk >= 1.20
13988         glib-2.0 >= 2.22
13989         gobject-2.0 >= 2.22
13990         \$GTK_VERSION
13991         gee-1.0 >= 0.5
13992         \$SERVER_IPC_MODULE
13993                 \$MAC
13994 \""; } >&5
13995   ($PKG_CONFIG --exists --print-errors "
13996         atk >= 1.20
13997         glib-2.0 >= 2.22
13998         gobject-2.0 >= 2.22
13999         $GTK_VERSION
14000         gee-1.0 >= 0.5
14001         $SERVER_IPC_MODULE
14002                 $MAC
14003 ") 2>&5
14004   ac_status=$?
14005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14006   test $ac_status = 0; }; then
14007   pkg_cv_moonshot_LIBS=`$PKG_CONFIG --libs "
14008         atk >= 1.20
14009         glib-2.0 >= 2.22
14010         gobject-2.0 >= 2.22
14011         $GTK_VERSION
14012         gee-1.0 >= 0.5
14013         $SERVER_IPC_MODULE
14014                 $MAC
14015 " 2>/dev/null`
14016                       test "x$?" != "x0" && pkg_failed=yes
14017 else
14018   pkg_failed=yes
14019 fi
14020  else
14021     pkg_failed=untried
14022 fi
14023
14024
14025
14026 if test $pkg_failed = yes; then
14027         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14028 $as_echo "no" >&6; }
14029
14030 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14031         _pkg_short_errors_supported=yes
14032 else
14033         _pkg_short_errors_supported=no
14034 fi
14035         if test $_pkg_short_errors_supported = yes; then
14036                 moonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
14037         atk >= 1.20
14038         glib-2.0 >= 2.22
14039         gobject-2.0 >= 2.22
14040         $GTK_VERSION
14041         gee-1.0 >= 0.5
14042         $SERVER_IPC_MODULE
14043                 $MAC
14044 " 2>&1`
14045         else
14046                 moonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
14047         atk >= 1.20
14048         glib-2.0 >= 2.22
14049         gobject-2.0 >= 2.22
14050         $GTK_VERSION
14051         gee-1.0 >= 0.5
14052         $SERVER_IPC_MODULE
14053                 $MAC
14054 " 2>&1`
14055         fi
14056         # Put the nasty error message in config.log where it belongs
14057         echo "$moonshot_PKG_ERRORS" >&5
14058
14059         as_fn_error $? "Package requirements (
14060         atk >= 1.20
14061         glib-2.0 >= 2.22
14062         gobject-2.0 >= 2.22
14063         $GTK_VERSION
14064         gee-1.0 >= 0.5
14065         $SERVER_IPC_MODULE
14066                 $MAC
14067 ) were not met:
14068
14069 $moonshot_PKG_ERRORS
14070
14071 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14072 installed software in a non-standard prefix.
14073
14074 Alternatively, you may set the environment variables moonshot_CFLAGS
14075 and moonshot_LIBS to avoid the need to call pkg-config.
14076 See the pkg-config man page for more details." "$LINENO" 5
14077 elif test $pkg_failed = untried; then
14078         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079 $as_echo "no" >&6; }
14080         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14082 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14083 is in your PATH or set the PKG_CONFIG environment variable to the full
14084 path to pkg-config.
14085
14086 Alternatively, you may set the environment variables moonshot_CFLAGS
14087 and moonshot_LIBS to avoid the need to call pkg-config.
14088 See the pkg-config man page for more details.
14089
14090 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14091 See \`config.log' for more details" "$LINENO" 5; }
14092 else
14093         moonshot_CFLAGS=$pkg_cv_moonshot_CFLAGS
14094         moonshot_LIBS=$pkg_cv_moonshot_LIBS
14095         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14096 $as_echo "yes" >&6; }
14097
14098 fi
14099
14100
14101 pkg_failed=no
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmoonshot" >&5
14103 $as_echo_n "checking for libmoonshot... " >&6; }
14104
14105 if test -n "$libmoonshot_CFLAGS"; then
14106     pkg_cv_libmoonshot_CFLAGS="$libmoonshot_CFLAGS"
14107  elif test -n "$PKG_CONFIG"; then
14108     if test -n "$PKG_CONFIG" && \
14109     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14110         \$CLIENT_IPC_MODULE
14111 \""; } >&5
14112   ($PKG_CONFIG --exists --print-errors "
14113         $CLIENT_IPC_MODULE
14114 ") 2>&5
14115   ac_status=$?
14116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14117   test $ac_status = 0; }; then
14118   pkg_cv_libmoonshot_CFLAGS=`$PKG_CONFIG --cflags "
14119         $CLIENT_IPC_MODULE
14120 " 2>/dev/null`
14121                       test "x$?" != "x0" && pkg_failed=yes
14122 else
14123   pkg_failed=yes
14124 fi
14125  else
14126     pkg_failed=untried
14127 fi
14128 if test -n "$libmoonshot_LIBS"; then
14129     pkg_cv_libmoonshot_LIBS="$libmoonshot_LIBS"
14130  elif test -n "$PKG_CONFIG"; then
14131     if test -n "$PKG_CONFIG" && \
14132     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14133         \$CLIENT_IPC_MODULE
14134 \""; } >&5
14135   ($PKG_CONFIG --exists --print-errors "
14136         $CLIENT_IPC_MODULE
14137 ") 2>&5
14138   ac_status=$?
14139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14140   test $ac_status = 0; }; then
14141   pkg_cv_libmoonshot_LIBS=`$PKG_CONFIG --libs "
14142         $CLIENT_IPC_MODULE
14143 " 2>/dev/null`
14144                       test "x$?" != "x0" && pkg_failed=yes
14145 else
14146   pkg_failed=yes
14147 fi
14148  else
14149     pkg_failed=untried
14150 fi
14151
14152
14153
14154 if test $pkg_failed = yes; then
14155         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14156 $as_echo "no" >&6; }
14157
14158 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14159         _pkg_short_errors_supported=yes
14160 else
14161         _pkg_short_errors_supported=no
14162 fi
14163         if test $_pkg_short_errors_supported = yes; then
14164                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
14165         $CLIENT_IPC_MODULE
14166 " 2>&1`
14167         else
14168                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
14169         $CLIENT_IPC_MODULE
14170 " 2>&1`
14171         fi
14172         # Put the nasty error message in config.log where it belongs
14173         echo "$libmoonshot_PKG_ERRORS" >&5
14174
14175         as_fn_error $? "Package requirements (
14176         $CLIENT_IPC_MODULE
14177 ) were not met:
14178
14179 $libmoonshot_PKG_ERRORS
14180
14181 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14182 installed software in a non-standard prefix.
14183
14184 Alternatively, you may set the environment variables libmoonshot_CFLAGS
14185 and libmoonshot_LIBS to avoid the need to call pkg-config.
14186 See the pkg-config man page for more details." "$LINENO" 5
14187 elif test $pkg_failed = untried; then
14188         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14189 $as_echo "no" >&6; }
14190         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14192 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14193 is in your PATH or set the PKG_CONFIG environment variable to the full
14194 path to pkg-config.
14195
14196 Alternatively, you may set the environment variables libmoonshot_CFLAGS
14197 and libmoonshot_LIBS to avoid the need to call pkg-config.
14198 See the pkg-config man page for more details.
14199
14200 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14201 See \`config.log' for more details" "$LINENO" 5; }
14202 else
14203         libmoonshot_CFLAGS=$pkg_cv_libmoonshot_CFLAGS
14204         libmoonshot_LIBS=$pkg_cv_libmoonshot_LIBS
14205         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14206 $as_echo "yes" >&6; }
14207
14208 fi
14209
14210 # i18n stuff
14211
14212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14213 $as_echo_n "checking whether NLS is requested... " >&6; }
14214     # Check whether --enable-nls was given.
14215 if test "${enable_nls+set}" = set; then :
14216   enableval=$enable_nls; USE_NLS=$enableval
14217 else
14218   USE_NLS=yes
14219 fi
14220
14221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14222 $as_echo "$USE_NLS" >&6; }
14223
14224
14225
14226
14227       GETTEXT_MACRO_VERSION=0.18
14228
14229
14230
14231
14232 # Prepare PATH_SEPARATOR.
14233 # The user is always right.
14234 if test "${PATH_SEPARATOR+set}" != set; then
14235   echo "#! /bin/sh" >conf$$.sh
14236   echo  "exit 0"   >>conf$$.sh
14237   chmod +x conf$$.sh
14238   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14239     PATH_SEPARATOR=';'
14240   else
14241     PATH_SEPARATOR=:
14242   fi
14243   rm -f conf$$.sh
14244 fi
14245
14246 # Find out how to test for executable files. Don't use a zero-byte file,
14247 # as systems may use methods other than mode bits to determine executability.
14248 cat >conf$$.file <<_ASEOF
14249 #! /bin/sh
14250 exit 0
14251 _ASEOF
14252 chmod +x conf$$.file
14253 if test -x conf$$.file >/dev/null 2>&1; then
14254   ac_executable_p="test -x"
14255 else
14256   ac_executable_p="test -f"
14257 fi
14258 rm -f conf$$.file
14259
14260 # Extract the first word of "msgfmt", so it can be a program name with args.
14261 set dummy msgfmt; ac_word=$2
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14263 $as_echo_n "checking for $ac_word... " >&6; }
14264 if ${ac_cv_path_MSGFMT+:} false; then :
14265   $as_echo_n "(cached) " >&6
14266 else
14267   case "$MSGFMT" in
14268   [\\/]* | ?:[\\/]*)
14269     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14270     ;;
14271   *)
14272     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14273     for ac_dir in $PATH; do
14274       IFS="$ac_save_IFS"
14275       test -z "$ac_dir" && ac_dir=.
14276       for ac_exec_ext in '' $ac_executable_extensions; do
14277         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14278           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14279           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14280      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14281             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14282             break 2
14283           fi
14284         fi
14285       done
14286     done
14287     IFS="$ac_save_IFS"
14288   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14289     ;;
14290 esac
14291 fi
14292 MSGFMT="$ac_cv_path_MSGFMT"
14293 if test "$MSGFMT" != ":"; then
14294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14295 $as_echo "$MSGFMT" >&6; }
14296 else
14297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298 $as_echo "no" >&6; }
14299 fi
14300
14301   # Extract the first word of "gmsgfmt", so it can be a program name with args.
14302 set dummy gmsgfmt; ac_word=$2
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14304 $as_echo_n "checking for $ac_word... " >&6; }
14305 if ${ac_cv_path_GMSGFMT+:} false; then :
14306   $as_echo_n "(cached) " >&6
14307 else
14308   case $GMSGFMT in
14309   [\\/]* | ?:[\\/]*)
14310   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14311   ;;
14312   *)
14313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14314 for as_dir in $PATH
14315 do
14316   IFS=$as_save_IFS
14317   test -z "$as_dir" && as_dir=.
14318     for ac_exec_ext in '' $ac_executable_extensions; do
14319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14320     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14322     break 2
14323   fi
14324 done
14325   done
14326 IFS=$as_save_IFS
14327
14328   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14329   ;;
14330 esac
14331 fi
14332 GMSGFMT=$ac_cv_path_GMSGFMT
14333 if test -n "$GMSGFMT"; then
14334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14335 $as_echo "$GMSGFMT" >&6; }
14336 else
14337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14338 $as_echo "no" >&6; }
14339 fi
14340
14341
14342
14343     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14344     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14345     *) MSGFMT_015=$MSGFMT ;;
14346   esac
14347
14348   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14349     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14350     *) GMSGFMT_015=$GMSGFMT ;;
14351   esac
14352
14353
14354
14355 # Prepare PATH_SEPARATOR.
14356 # The user is always right.
14357 if test "${PATH_SEPARATOR+set}" != set; then
14358   echo "#! /bin/sh" >conf$$.sh
14359   echo  "exit 0"   >>conf$$.sh
14360   chmod +x conf$$.sh
14361   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14362     PATH_SEPARATOR=';'
14363   else
14364     PATH_SEPARATOR=:
14365   fi
14366   rm -f conf$$.sh
14367 fi
14368
14369 # Find out how to test for executable files. Don't use a zero-byte file,
14370 # as systems may use methods other than mode bits to determine executability.
14371 cat >conf$$.file <<_ASEOF
14372 #! /bin/sh
14373 exit 0
14374 _ASEOF
14375 chmod +x conf$$.file
14376 if test -x conf$$.file >/dev/null 2>&1; then
14377   ac_executable_p="test -x"
14378 else
14379   ac_executable_p="test -f"
14380 fi
14381 rm -f conf$$.file
14382
14383 # Extract the first word of "xgettext", so it can be a program name with args.
14384 set dummy xgettext; ac_word=$2
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14386 $as_echo_n "checking for $ac_word... " >&6; }
14387 if ${ac_cv_path_XGETTEXT+:} false; then :
14388   $as_echo_n "(cached) " >&6
14389 else
14390   case "$XGETTEXT" in
14391   [\\/]* | ?:[\\/]*)
14392     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14393     ;;
14394   *)
14395     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14396     for ac_dir in $PATH; do
14397       IFS="$ac_save_IFS"
14398       test -z "$ac_dir" && ac_dir=.
14399       for ac_exec_ext in '' $ac_executable_extensions; do
14400         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14401           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14402           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14403      (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
14404             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14405             break 2
14406           fi
14407         fi
14408       done
14409     done
14410     IFS="$ac_save_IFS"
14411   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14412     ;;
14413 esac
14414 fi
14415 XGETTEXT="$ac_cv_path_XGETTEXT"
14416 if test "$XGETTEXT" != ":"; then
14417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14418 $as_echo "$XGETTEXT" >&6; }
14419 else
14420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14421 $as_echo "no" >&6; }
14422 fi
14423
14424     rm -f messages.po
14425
14426     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14427     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14428     *) XGETTEXT_015=$XGETTEXT ;;
14429   esac
14430
14431
14432
14433 # Prepare PATH_SEPARATOR.
14434 # The user is always right.
14435 if test "${PATH_SEPARATOR+set}" != set; then
14436   echo "#! /bin/sh" >conf$$.sh
14437   echo  "exit 0"   >>conf$$.sh
14438   chmod +x conf$$.sh
14439   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14440     PATH_SEPARATOR=';'
14441   else
14442     PATH_SEPARATOR=:
14443   fi
14444   rm -f conf$$.sh
14445 fi
14446
14447 # Find out how to test for executable files. Don't use a zero-byte file,
14448 # as systems may use methods other than mode bits to determine executability.
14449 cat >conf$$.file <<_ASEOF
14450 #! /bin/sh
14451 exit 0
14452 _ASEOF
14453 chmod +x conf$$.file
14454 if test -x conf$$.file >/dev/null 2>&1; then
14455   ac_executable_p="test -x"
14456 else
14457   ac_executable_p="test -f"
14458 fi
14459 rm -f conf$$.file
14460
14461 # Extract the first word of "msgmerge", so it can be a program name with args.
14462 set dummy msgmerge; ac_word=$2
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14464 $as_echo_n "checking for $ac_word... " >&6; }
14465 if ${ac_cv_path_MSGMERGE+:} false; then :
14466   $as_echo_n "(cached) " >&6
14467 else
14468   case "$MSGMERGE" in
14469   [\\/]* | ?:[\\/]*)
14470     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14471     ;;
14472   *)
14473     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14474     for ac_dir in $PATH; do
14475       IFS="$ac_save_IFS"
14476       test -z "$ac_dir" && ac_dir=.
14477       for ac_exec_ext in '' $ac_executable_extensions; do
14478         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14479           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14480           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14481             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14482             break 2
14483           fi
14484         fi
14485       done
14486     done
14487     IFS="$ac_save_IFS"
14488   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14489     ;;
14490 esac
14491 fi
14492 MSGMERGE="$ac_cv_path_MSGMERGE"
14493 if test "$MSGMERGE" != ":"; then
14494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14495 $as_echo "$MSGMERGE" >&6; }
14496 else
14497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14498 $as_echo "no" >&6; }
14499 fi
14500
14501
14502         test -n "$localedir" || localedir='${datadir}/locale'
14503
14504
14505     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14506
14507
14508   ac_config_commands="$ac_config_commands po-directories"
14509
14510
14511
14512       if test "X$prefix" = "XNONE"; then
14513     acl_final_prefix="$ac_default_prefix"
14514   else
14515     acl_final_prefix="$prefix"
14516   fi
14517   if test "X$exec_prefix" = "XNONE"; then
14518     acl_final_exec_prefix='${prefix}'
14519   else
14520     acl_final_exec_prefix="$exec_prefix"
14521   fi
14522   acl_save_prefix="$prefix"
14523   prefix="$acl_final_prefix"
14524   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14525   prefix="$acl_save_prefix"
14526
14527
14528 # Check whether --with-gnu-ld was given.
14529 if test "${with_gnu_ld+set}" = set; then :
14530   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14531 else
14532   with_gnu_ld=no
14533 fi
14534
14535 # Prepare PATH_SEPARATOR.
14536 # The user is always right.
14537 if test "${PATH_SEPARATOR+set}" != set; then
14538   echo "#! /bin/sh" >conf$$.sh
14539   echo  "exit 0"   >>conf$$.sh
14540   chmod +x conf$$.sh
14541   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14542     PATH_SEPARATOR=';'
14543   else
14544     PATH_SEPARATOR=:
14545   fi
14546   rm -f conf$$.sh
14547 fi
14548 ac_prog=ld
14549 if test "$GCC" = yes; then
14550   # Check if gcc -print-prog-name=ld gives a path.
14551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14552 $as_echo_n "checking for ld used by GCC... " >&6; }
14553   case $host in
14554   *-*-mingw*)
14555     # gcc leaves a trailing carriage return which upsets mingw
14556     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14557   *)
14558     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14559   esac
14560   case $ac_prog in
14561     # Accept absolute paths.
14562     [\\/]* | [A-Za-z]:[\\/]*)
14563       re_direlt='/[^/][^/]*/\.\./'
14564       # Canonicalize the path of ld
14565       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14566       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14567         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14568       done
14569       test -z "$LD" && LD="$ac_prog"
14570       ;;
14571   "")
14572     # If it fails, then pretend we aren't using GCC.
14573     ac_prog=ld
14574     ;;
14575   *)
14576     # If it is relative, then search for the first ld in PATH.
14577     with_gnu_ld=unknown
14578     ;;
14579   esac
14580 elif test "$with_gnu_ld" = yes; then
14581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14582 $as_echo_n "checking for GNU ld... " >&6; }
14583 else
14584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14585 $as_echo_n "checking for non-GNU ld... " >&6; }
14586 fi
14587 if ${acl_cv_path_LD+:} false; then :
14588   $as_echo_n "(cached) " >&6
14589 else
14590   if test -z "$LD"; then
14591   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14592   for ac_dir in $PATH; do
14593     test -z "$ac_dir" && ac_dir=.
14594     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14595       acl_cv_path_LD="$ac_dir/$ac_prog"
14596       # Check to see if the program is GNU ld.  I'd rather use --version,
14597       # but apparently some GNU ld's only accept -v.
14598       # Break only if it was the GNU/non-GNU ld that we prefer.
14599       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14600       *GNU* | *'with BFD'*)
14601         test "$with_gnu_ld" != no && break ;;
14602       *)
14603         test "$with_gnu_ld" != yes && break ;;
14604       esac
14605     fi
14606   done
14607   IFS="$ac_save_ifs"
14608 else
14609   acl_cv_path_LD="$LD" # Let the user override the test with a path.
14610 fi
14611 fi
14612
14613 LD="$acl_cv_path_LD"
14614 if test -n "$LD"; then
14615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14616 $as_echo "$LD" >&6; }
14617 else
14618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14620 fi
14621 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14623 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14624 if ${acl_cv_prog_gnu_ld+:} false; then :
14625   $as_echo_n "(cached) " >&6
14626 else
14627   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14628 case `$LD -v 2>&1 </dev/null` in
14629 *GNU* | *'with BFD'*)
14630   acl_cv_prog_gnu_ld=yes ;;
14631 *)
14632   acl_cv_prog_gnu_ld=no ;;
14633 esac
14634 fi
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14636 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14637 with_gnu_ld=$acl_cv_prog_gnu_ld
14638
14639
14640
14641
14642                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14643 $as_echo_n "checking for shared library run path origin... " >&6; }
14644 if ${acl_cv_rpath+:} false; then :
14645   $as_echo_n "(cached) " >&6
14646 else
14647
14648     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14649     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14650     . ./conftest.sh
14651     rm -f ./conftest.sh
14652     acl_cv_rpath=done
14653
14654 fi
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14656 $as_echo "$acl_cv_rpath" >&6; }
14657   wl="$acl_cv_wl"
14658   acl_libext="$acl_cv_libext"
14659   acl_shlibext="$acl_cv_shlibext"
14660   acl_libname_spec="$acl_cv_libname_spec"
14661   acl_library_names_spec="$acl_cv_library_names_spec"
14662   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14663   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14664   acl_hardcode_direct="$acl_cv_hardcode_direct"
14665   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14666     # Check whether --enable-rpath was given.
14667 if test "${enable_rpath+set}" = set; then :
14668   enableval=$enable_rpath; :
14669 else
14670   enable_rpath=yes
14671 fi
14672
14673
14674
14675
14676   acl_libdirstem=lib
14677   acl_libdirstem2=
14678   case "$host_os" in
14679     solaris*)
14680                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
14681 $as_echo_n "checking for 64-bit host... " >&6; }
14682 if ${gl_cv_solaris_64bit+:} false; then :
14683   $as_echo_n "(cached) " >&6
14684 else
14685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h.  */
14687
14688 #ifdef _LP64
14689 sixtyfour bits
14690 #endif
14691
14692 _ACEOF
14693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14694   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
14695   gl_cv_solaris_64bit=yes
14696 else
14697   gl_cv_solaris_64bit=no
14698 fi
14699 rm -f conftest*
14700
14701
14702 fi
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14704 $as_echo "$gl_cv_solaris_64bit" >&6; }
14705       if test $gl_cv_solaris_64bit = yes; then
14706         acl_libdirstem=lib/64
14707         case "$host_cpu" in
14708           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
14709           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14710         esac
14711       fi
14712       ;;
14713     *)
14714       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14715       if test -n "$searchpath"; then
14716         acl_save_IFS="${IFS=    }"; IFS=":"
14717         for searchdir in $searchpath; do
14718           if test -d "$searchdir"; then
14719             case "$searchdir" in
14720               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14721               */../ | */.. )
14722                 # Better ignore directories of this form. They are misleading.
14723                 ;;
14724               *) searchdir=`cd "$searchdir" && pwd`
14725                  case "$searchdir" in
14726                    */lib64 ) acl_libdirstem=lib64 ;;
14727                  esac ;;
14728             esac
14729           fi
14730         done
14731         IFS="$acl_save_IFS"
14732       fi
14733       ;;
14734   esac
14735   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748     use_additional=yes
14749
14750   acl_save_prefix="$prefix"
14751   prefix="$acl_final_prefix"
14752   acl_save_exec_prefix="$exec_prefix"
14753   exec_prefix="$acl_final_exec_prefix"
14754
14755     eval additional_includedir=\"$includedir\"
14756     eval additional_libdir=\"$libdir\"
14757
14758   exec_prefix="$acl_save_exec_prefix"
14759   prefix="$acl_save_prefix"
14760
14761
14762 # Check whether --with-libiconv-prefix was given.
14763 if test "${with_libiconv_prefix+set}" = set; then :
14764   withval=$with_libiconv_prefix;
14765     if test "X$withval" = "Xno"; then
14766       use_additional=no
14767     else
14768       if test "X$withval" = "X"; then
14769
14770   acl_save_prefix="$prefix"
14771   prefix="$acl_final_prefix"
14772   acl_save_exec_prefix="$exec_prefix"
14773   exec_prefix="$acl_final_exec_prefix"
14774
14775           eval additional_includedir=\"$includedir\"
14776           eval additional_libdir=\"$libdir\"
14777
14778   exec_prefix="$acl_save_exec_prefix"
14779   prefix="$acl_save_prefix"
14780
14781       else
14782         additional_includedir="$withval/include"
14783         additional_libdir="$withval/$acl_libdirstem"
14784         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14785            && ! test -d "$withval/$acl_libdirstem"; then
14786           additional_libdir="$withval/$acl_libdirstem2"
14787         fi
14788       fi
14789     fi
14790
14791 fi
14792
14793       LIBICONV=
14794   LTLIBICONV=
14795   INCICONV=
14796   LIBICONV_PREFIX=
14797       HAVE_LIBICONV=
14798   rpathdirs=
14799   ltrpathdirs=
14800   names_already_handled=
14801   names_next_round='iconv '
14802   while test -n "$names_next_round"; do
14803     names_this_round="$names_next_round"
14804     names_next_round=
14805     for name in $names_this_round; do
14806       already_handled=
14807       for n in $names_already_handled; do
14808         if test "$n" = "$name"; then
14809           already_handled=yes
14810           break
14811         fi
14812       done
14813       if test -z "$already_handled"; then
14814         names_already_handled="$names_already_handled $name"
14815                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14816         eval value=\"\$HAVE_LIB$uppername\"
14817         if test -n "$value"; then
14818           if test "$value" = yes; then
14819             eval value=\"\$LIB$uppername\"
14820             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14821             eval value=\"\$LTLIB$uppername\"
14822             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14823           else
14824                                     :
14825           fi
14826         else
14827                               found_dir=
14828           found_la=
14829           found_so=
14830           found_a=
14831           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14832           if test -n "$acl_shlibext"; then
14833             shrext=".$acl_shlibext"             # typically: shrext=.so
14834           else
14835             shrext=
14836           fi
14837           if test $use_additional = yes; then
14838             dir="$additional_libdir"
14839                                     if test -n "$acl_shlibext"; then
14840               if test -f "$dir/$libname$shrext"; then
14841                 found_dir="$dir"
14842                 found_so="$dir/$libname$shrext"
14843               else
14844                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14845                   ver=`(cd "$dir" && \
14846                         for f in "$libname$shrext".*; do echo "$f"; done \
14847                         | sed -e "s,^$libname$shrext\\\\.,," \
14848                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14849                         | sed 1q ) 2>/dev/null`
14850                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14851                     found_dir="$dir"
14852                     found_so="$dir/$libname$shrext.$ver"
14853                   fi
14854                 else
14855                   eval library_names=\"$acl_library_names_spec\"
14856                   for f in $library_names; do
14857                     if test -f "$dir/$f"; then
14858                       found_dir="$dir"
14859                       found_so="$dir/$f"
14860                       break
14861                     fi
14862                   done
14863                 fi
14864               fi
14865             fi
14866                         if test "X$found_dir" = "X"; then
14867               if test -f "$dir/$libname.$acl_libext"; then
14868                 found_dir="$dir"
14869                 found_a="$dir/$libname.$acl_libext"
14870               fi
14871             fi
14872             if test "X$found_dir" != "X"; then
14873               if test -f "$dir/$libname.la"; then
14874                 found_la="$dir/$libname.la"
14875               fi
14876             fi
14877           fi
14878           if test "X$found_dir" = "X"; then
14879             for x in $LDFLAGS $LTLIBICONV; do
14880
14881   acl_save_prefix="$prefix"
14882   prefix="$acl_final_prefix"
14883   acl_save_exec_prefix="$exec_prefix"
14884   exec_prefix="$acl_final_exec_prefix"
14885   eval x=\"$x\"
14886   exec_prefix="$acl_save_exec_prefix"
14887   prefix="$acl_save_prefix"
14888
14889               case "$x" in
14890                 -L*)
14891                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14892                                     if test -n "$acl_shlibext"; then
14893                     if test -f "$dir/$libname$shrext"; then
14894                       found_dir="$dir"
14895                       found_so="$dir/$libname$shrext"
14896                     else
14897                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14898                         ver=`(cd "$dir" && \
14899                               for f in "$libname$shrext".*; do echo "$f"; done \
14900                               | sed -e "s,^$libname$shrext\\\\.,," \
14901                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14902                               | sed 1q ) 2>/dev/null`
14903                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14904                           found_dir="$dir"
14905                           found_so="$dir/$libname$shrext.$ver"
14906                         fi
14907                       else
14908                         eval library_names=\"$acl_library_names_spec\"
14909                         for f in $library_names; do
14910                           if test -f "$dir/$f"; then
14911                             found_dir="$dir"
14912                             found_so="$dir/$f"
14913                             break
14914                           fi
14915                         done
14916                       fi
14917                     fi
14918                   fi
14919                                     if test "X$found_dir" = "X"; then
14920                     if test -f "$dir/$libname.$acl_libext"; then
14921                       found_dir="$dir"
14922                       found_a="$dir/$libname.$acl_libext"
14923                     fi
14924                   fi
14925                   if test "X$found_dir" != "X"; then
14926                     if test -f "$dir/$libname.la"; then
14927                       found_la="$dir/$libname.la"
14928                     fi
14929                   fi
14930                   ;;
14931               esac
14932               if test "X$found_dir" != "X"; then
14933                 break
14934               fi
14935             done
14936           fi
14937           if test "X$found_dir" != "X"; then
14938                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14939             if test "X$found_so" != "X"; then
14940                                                         if test "$enable_rpath" = no \
14941                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14942                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14943                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14944               else
14945                                                                                 haveit=
14946                 for x in $ltrpathdirs; do
14947                   if test "X$x" = "X$found_dir"; then
14948                     haveit=yes
14949                     break
14950                   fi
14951                 done
14952                 if test -z "$haveit"; then
14953                   ltrpathdirs="$ltrpathdirs $found_dir"
14954                 fi
14955                                 if test "$acl_hardcode_direct" = yes; then
14956                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14957                 else
14958                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14959                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14960                                                             haveit=
14961                     for x in $rpathdirs; do
14962                       if test "X$x" = "X$found_dir"; then
14963                         haveit=yes
14964                         break
14965                       fi
14966                     done
14967                     if test -z "$haveit"; then
14968                       rpathdirs="$rpathdirs $found_dir"
14969                     fi
14970                   else
14971                                                                                 haveit=
14972                     for x in $LDFLAGS $LIBICONV; do
14973
14974   acl_save_prefix="$prefix"
14975   prefix="$acl_final_prefix"
14976   acl_save_exec_prefix="$exec_prefix"
14977   exec_prefix="$acl_final_exec_prefix"
14978   eval x=\"$x\"
14979   exec_prefix="$acl_save_exec_prefix"
14980   prefix="$acl_save_prefix"
14981
14982                       if test "X$x" = "X-L$found_dir"; then
14983                         haveit=yes
14984                         break
14985                       fi
14986                     done
14987                     if test -z "$haveit"; then
14988                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14989                     fi
14990                     if test "$acl_hardcode_minus_L" != no; then
14991                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14992                     else
14993                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14994                     fi
14995                   fi
14996                 fi
14997               fi
14998             else
14999               if test "X$found_a" != "X"; then
15000                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15001               else
15002                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15003               fi
15004             fi
15005                         additional_includedir=
15006             case "$found_dir" in
15007               */$acl_libdirstem | */$acl_libdirstem/)
15008                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15009                 if test "$name" = 'iconv'; then
15010                   LIBICONV_PREFIX="$basedir"
15011                 fi
15012                 additional_includedir="$basedir/include"
15013                 ;;
15014               */$acl_libdirstem2 | */$acl_libdirstem2/)
15015                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15016                 if test "$name" = 'iconv'; then
15017                   LIBICONV_PREFIX="$basedir"
15018                 fi
15019                 additional_includedir="$basedir/include"
15020                 ;;
15021             esac
15022             if test "X$additional_includedir" != "X"; then
15023                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15024                 haveit=
15025                 if test "X$additional_includedir" = "X/usr/local/include"; then
15026                   if test -n "$GCC"; then
15027                     case $host_os in
15028                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15029                     esac
15030                   fi
15031                 fi
15032                 if test -z "$haveit"; then
15033                   for x in $CPPFLAGS $INCICONV; do
15034
15035   acl_save_prefix="$prefix"
15036   prefix="$acl_final_prefix"
15037   acl_save_exec_prefix="$exec_prefix"
15038   exec_prefix="$acl_final_exec_prefix"
15039   eval x=\"$x\"
15040   exec_prefix="$acl_save_exec_prefix"
15041   prefix="$acl_save_prefix"
15042
15043                     if test "X$x" = "X-I$additional_includedir"; then
15044                       haveit=yes
15045                       break
15046                     fi
15047                   done
15048                   if test -z "$haveit"; then
15049                     if test -d "$additional_includedir"; then
15050                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15051                     fi
15052                   fi
15053                 fi
15054               fi
15055             fi
15056                         if test -n "$found_la"; then
15057                                                         save_libdir="$libdir"
15058               case "$found_la" in
15059                 */* | *\\*) . "$found_la" ;;
15060                 *) . "./$found_la" ;;
15061               esac
15062               libdir="$save_libdir"
15063                             for dep in $dependency_libs; do
15064                 case "$dep" in
15065                   -L*)
15066                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15067                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15068                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15069                       haveit=
15070                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15071                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15072                         if test -n "$GCC"; then
15073                           case $host_os in
15074                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15075                           esac
15076                         fi
15077                       fi
15078                       if test -z "$haveit"; then
15079                         haveit=
15080                         for x in $LDFLAGS $LIBICONV; do
15081
15082   acl_save_prefix="$prefix"
15083   prefix="$acl_final_prefix"
15084   acl_save_exec_prefix="$exec_prefix"
15085   exec_prefix="$acl_final_exec_prefix"
15086   eval x=\"$x\"
15087   exec_prefix="$acl_save_exec_prefix"
15088   prefix="$acl_save_prefix"
15089
15090                           if test "X$x" = "X-L$additional_libdir"; then
15091                             haveit=yes
15092                             break
15093                           fi
15094                         done
15095                         if test -z "$haveit"; then
15096                           if test -d "$additional_libdir"; then
15097                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15098                           fi
15099                         fi
15100                         haveit=
15101                         for x in $LDFLAGS $LTLIBICONV; do
15102
15103   acl_save_prefix="$prefix"
15104   prefix="$acl_final_prefix"
15105   acl_save_exec_prefix="$exec_prefix"
15106   exec_prefix="$acl_final_exec_prefix"
15107   eval x=\"$x\"
15108   exec_prefix="$acl_save_exec_prefix"
15109   prefix="$acl_save_prefix"
15110
15111                           if test "X$x" = "X-L$additional_libdir"; then
15112                             haveit=yes
15113                             break
15114                           fi
15115                         done
15116                         if test -z "$haveit"; then
15117                           if test -d "$additional_libdir"; then
15118                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15119                           fi
15120                         fi
15121                       fi
15122                     fi
15123                     ;;
15124                   -R*)
15125                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15126                     if test "$enable_rpath" != no; then
15127                                                                   haveit=
15128                       for x in $rpathdirs; do
15129                         if test "X$x" = "X$dir"; then
15130                           haveit=yes
15131                           break
15132                         fi
15133                       done
15134                       if test -z "$haveit"; then
15135                         rpathdirs="$rpathdirs $dir"
15136                       fi
15137                                                                   haveit=
15138                       for x in $ltrpathdirs; do
15139                         if test "X$x" = "X$dir"; then
15140                           haveit=yes
15141                           break
15142                         fi
15143                       done
15144                       if test -z "$haveit"; then
15145                         ltrpathdirs="$ltrpathdirs $dir"
15146                       fi
15147                     fi
15148                     ;;
15149                   -l*)
15150                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15151                     ;;
15152                   *.la)
15153                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15154                     ;;
15155                   *)
15156                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15157                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15158                     ;;
15159                 esac
15160               done
15161             fi
15162           else
15163                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15164             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15165           fi
15166         fi
15167       fi
15168     done
15169   done
15170   if test "X$rpathdirs" != "X"; then
15171     if test -n "$acl_hardcode_libdir_separator"; then
15172                         alldirs=
15173       for found_dir in $rpathdirs; do
15174         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15175       done
15176             acl_save_libdir="$libdir"
15177       libdir="$alldirs"
15178       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15179       libdir="$acl_save_libdir"
15180       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15181     else
15182             for found_dir in $rpathdirs; do
15183         acl_save_libdir="$libdir"
15184         libdir="$found_dir"
15185         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15186         libdir="$acl_save_libdir"
15187         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15188       done
15189     fi
15190   fi
15191   if test "X$ltrpathdirs" != "X"; then
15192             for found_dir in $ltrpathdirs; do
15193       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15194     done
15195   fi
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15228 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15229 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15230   $as_echo_n "(cached) " >&6
15231 else
15232   gt_save_LIBS="$LIBS"
15233      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15234      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235 /* end confdefs.h.  */
15236 #include <CoreFoundation/CFPreferences.h>
15237 int
15238 main ()
15239 {
15240 CFPreferencesCopyAppValue(NULL, NULL)
15241   ;
15242   return 0;
15243 }
15244 _ACEOF
15245 if ac_fn_c_try_link "$LINENO"; then :
15246   gt_cv_func_CFPreferencesCopyAppValue=yes
15247 else
15248   gt_cv_func_CFPreferencesCopyAppValue=no
15249 fi
15250 rm -f core conftest.err conftest.$ac_objext \
15251     conftest$ac_exeext conftest.$ac_ext
15252      LIBS="$gt_save_LIBS"
15253 fi
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15255 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15256   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15257
15258 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15259
15260   fi
15261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15262 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15263 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15264   $as_echo_n "(cached) " >&6
15265 else
15266   gt_save_LIBS="$LIBS"
15267      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15268      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269 /* end confdefs.h.  */
15270 #include <CoreFoundation/CFLocale.h>
15271 int
15272 main ()
15273 {
15274 CFLocaleCopyCurrent();
15275   ;
15276   return 0;
15277 }
15278 _ACEOF
15279 if ac_fn_c_try_link "$LINENO"; then :
15280   gt_cv_func_CFLocaleCopyCurrent=yes
15281 else
15282   gt_cv_func_CFLocaleCopyCurrent=no
15283 fi
15284 rm -f core conftest.err conftest.$ac_objext \
15285     conftest$ac_exeext conftest.$ac_ext
15286      LIBS="$gt_save_LIBS"
15287 fi
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15289 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15290   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15291
15292 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15293
15294   fi
15295   INTL_MACOSX_LIBS=
15296   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15297     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15298   fi
15299
15300
15301
15302
15303
15304
15305   LIBINTL=
15306   LTLIBINTL=
15307   POSUB=
15308
15309     case " $gt_needs " in
15310     *" need-formatstring-macros "*) gt_api_version=3 ;;
15311     *" need-ngettext "*) gt_api_version=2 ;;
15312     *) gt_api_version=1 ;;
15313   esac
15314   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15315   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15316
15317     if test "$USE_NLS" = "yes"; then
15318     gt_use_preinstalled_gnugettext=no
15319
15320
15321         if test $gt_api_version -ge 3; then
15322           gt_revision_test_code='
15323 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15324 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15325 #endif
15326 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15327 '
15328         else
15329           gt_revision_test_code=
15330         fi
15331         if test $gt_api_version -ge 2; then
15332           gt_expression_test_code=' + * ngettext ("", "", 0)'
15333         else
15334           gt_expression_test_code=
15335         fi
15336
15337         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15338 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15339 if eval \${$gt_func_gnugettext_libc+:} false; then :
15340   $as_echo_n "(cached) " >&6
15341 else
15342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h.  */
15344 #include <libintl.h>
15345 $gt_revision_test_code
15346 extern int _nl_msg_cat_cntr;
15347 extern int *_nl_domain_bindings;
15348 int
15349 main ()
15350 {
15351 bindtextdomain ("", "");
15352 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15353   ;
15354   return 0;
15355 }
15356 _ACEOF
15357 if ac_fn_c_try_link "$LINENO"; then :
15358   eval "$gt_func_gnugettext_libc=yes"
15359 else
15360   eval "$gt_func_gnugettext_libc=no"
15361 fi
15362 rm -f core conftest.err conftest.$ac_objext \
15363     conftest$ac_exeext conftest.$ac_ext
15364 fi
15365 eval ac_res=\$$gt_func_gnugettext_libc
15366                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15367 $as_echo "$ac_res" >&6; }
15368
15369         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15370
15371
15372
15373
15374
15375           am_save_CPPFLAGS="$CPPFLAGS"
15376
15377   for element in $INCICONV; do
15378     haveit=
15379     for x in $CPPFLAGS; do
15380
15381   acl_save_prefix="$prefix"
15382   prefix="$acl_final_prefix"
15383   acl_save_exec_prefix="$exec_prefix"
15384   exec_prefix="$acl_final_exec_prefix"
15385   eval x=\"$x\"
15386   exec_prefix="$acl_save_exec_prefix"
15387   prefix="$acl_save_prefix"
15388
15389       if test "X$x" = "X$element"; then
15390         haveit=yes
15391         break
15392       fi
15393     done
15394     if test -z "$haveit"; then
15395       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15396     fi
15397   done
15398
15399
15400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15401 $as_echo_n "checking for iconv... " >&6; }
15402 if ${am_cv_func_iconv+:} false; then :
15403   $as_echo_n "(cached) " >&6
15404 else
15405
15406     am_cv_func_iconv="no, consider installing GNU libiconv"
15407     am_cv_lib_iconv=no
15408     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h.  */
15410 #include <stdlib.h>
15411 #include <iconv.h>
15412 int
15413 main ()
15414 {
15415 iconv_t cd = iconv_open("","");
15416        iconv(cd,NULL,NULL,NULL,NULL);
15417        iconv_close(cd);
15418   ;
15419   return 0;
15420 }
15421 _ACEOF
15422 if ac_fn_c_try_link "$LINENO"; then :
15423   am_cv_func_iconv=yes
15424 fi
15425 rm -f core conftest.err conftest.$ac_objext \
15426     conftest$ac_exeext conftest.$ac_ext
15427     if test "$am_cv_func_iconv" != yes; then
15428       am_save_LIBS="$LIBS"
15429       LIBS="$LIBS $LIBICONV"
15430       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h.  */
15432 #include <stdlib.h>
15433 #include <iconv.h>
15434 int
15435 main ()
15436 {
15437 iconv_t cd = iconv_open("","");
15438          iconv(cd,NULL,NULL,NULL,NULL);
15439          iconv_close(cd);
15440   ;
15441   return 0;
15442 }
15443 _ACEOF
15444 if ac_fn_c_try_link "$LINENO"; then :
15445   am_cv_lib_iconv=yes
15446         am_cv_func_iconv=yes
15447 fi
15448 rm -f core conftest.err conftest.$ac_objext \
15449     conftest$ac_exeext conftest.$ac_ext
15450       LIBS="$am_save_LIBS"
15451     fi
15452
15453 fi
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15455 $as_echo "$am_cv_func_iconv" >&6; }
15456   if test "$am_cv_func_iconv" = yes; then
15457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15458 $as_echo_n "checking for working iconv... " >&6; }
15459 if ${am_cv_func_iconv_works+:} false; then :
15460   $as_echo_n "(cached) " >&6
15461 else
15462
15463             am_save_LIBS="$LIBS"
15464       if test $am_cv_lib_iconv = yes; then
15465         LIBS="$LIBS $LIBICONV"
15466       fi
15467       if test "$cross_compiling" = yes; then :
15468   case "$host_os" in
15469            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15470            *)            am_cv_func_iconv_works="guessing yes" ;;
15471          esac
15472 else
15473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h.  */
15475
15476 #include <iconv.h>
15477 #include <string.h>
15478 int main ()
15479 {
15480   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15481      returns.  */
15482   {
15483     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15484     if (cd_utf8_to_88591 != (iconv_t)(-1))
15485       {
15486         static const char input[] = "\342\202\254"; /* EURO SIGN */
15487         char buf[10];
15488         const char *inptr = input;
15489         size_t inbytesleft = strlen (input);
15490         char *outptr = buf;
15491         size_t outbytesleft = sizeof (buf);
15492         size_t res = iconv (cd_utf8_to_88591,
15493                             (char **) &inptr, &inbytesleft,
15494                             &outptr, &outbytesleft);
15495         if (res == 0)
15496           return 1;
15497       }
15498   }
15499   /* Test against Solaris 10 bug: Failures are not distinguishable from
15500      successful returns.  */
15501   {
15502     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15503     if (cd_ascii_to_88591 != (iconv_t)(-1))
15504       {
15505         static const char input[] = "\263";
15506         char buf[10];
15507         const char *inptr = input;
15508         size_t inbytesleft = strlen (input);
15509         char *outptr = buf;
15510         size_t outbytesleft = sizeof (buf);
15511         size_t res = iconv (cd_ascii_to_88591,
15512                             (char **) &inptr, &inbytesleft,
15513                             &outptr, &outbytesleft);
15514         if (res == 0)
15515           return 1;
15516       }
15517   }
15518 #if 0 /* This bug could be worked around by the caller.  */
15519   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15520   {
15521     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15522     if (cd_88591_to_utf8 != (iconv_t)(-1))
15523       {
15524         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15525         char buf[50];
15526         const char *inptr = input;
15527         size_t inbytesleft = strlen (input);
15528         char *outptr = buf;
15529         size_t outbytesleft = sizeof (buf);
15530         size_t res = iconv (cd_88591_to_utf8,
15531                             (char **) &inptr, &inbytesleft,
15532                             &outptr, &outbytesleft);
15533         if ((int)res > 0)
15534           return 1;
15535       }
15536   }
15537 #endif
15538   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15539      provided.  */
15540   if (/* Try standardized names.  */
15541       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15542       /* Try IRIX, OSF/1 names.  */
15543       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15544       /* Try AIX names.  */
15545       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15546       /* Try HP-UX names.  */
15547       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15548     return 1;
15549   return 0;
15550 }
15551 _ACEOF
15552 if ac_fn_c_try_run "$LINENO"; then :
15553   am_cv_func_iconv_works=yes
15554 else
15555   am_cv_func_iconv_works=no
15556 fi
15557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15558   conftest.$ac_objext conftest.beam conftest.$ac_ext
15559 fi
15560
15561       LIBS="$am_save_LIBS"
15562
15563 fi
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15565 $as_echo "$am_cv_func_iconv_works" >&6; }
15566     case "$am_cv_func_iconv_works" in
15567       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15568       *)   am_func_iconv=yes ;;
15569     esac
15570   else
15571     am_func_iconv=no am_cv_lib_iconv=no
15572   fi
15573   if test "$am_func_iconv" = yes; then
15574
15575 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15576
15577   fi
15578   if test "$am_cv_lib_iconv" = yes; then
15579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15580 $as_echo_n "checking how to link with libiconv... " >&6; }
15581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15582 $as_echo "$LIBICONV" >&6; }
15583   else
15584             CPPFLAGS="$am_save_CPPFLAGS"
15585     LIBICONV=
15586     LTLIBICONV=
15587   fi
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599     use_additional=yes
15600
15601   acl_save_prefix="$prefix"
15602   prefix="$acl_final_prefix"
15603   acl_save_exec_prefix="$exec_prefix"
15604   exec_prefix="$acl_final_exec_prefix"
15605
15606     eval additional_includedir=\"$includedir\"
15607     eval additional_libdir=\"$libdir\"
15608
15609   exec_prefix="$acl_save_exec_prefix"
15610   prefix="$acl_save_prefix"
15611
15612
15613 # Check whether --with-libintl-prefix was given.
15614 if test "${with_libintl_prefix+set}" = set; then :
15615   withval=$with_libintl_prefix;
15616     if test "X$withval" = "Xno"; then
15617       use_additional=no
15618     else
15619       if test "X$withval" = "X"; then
15620
15621   acl_save_prefix="$prefix"
15622   prefix="$acl_final_prefix"
15623   acl_save_exec_prefix="$exec_prefix"
15624   exec_prefix="$acl_final_exec_prefix"
15625
15626           eval additional_includedir=\"$includedir\"
15627           eval additional_libdir=\"$libdir\"
15628
15629   exec_prefix="$acl_save_exec_prefix"
15630   prefix="$acl_save_prefix"
15631
15632       else
15633         additional_includedir="$withval/include"
15634         additional_libdir="$withval/$acl_libdirstem"
15635         if test "$acl_libdirstem2" != "$acl_libdirstem" \
15636            && ! test -d "$withval/$acl_libdirstem"; then
15637           additional_libdir="$withval/$acl_libdirstem2"
15638         fi
15639       fi
15640     fi
15641
15642 fi
15643
15644       LIBINTL=
15645   LTLIBINTL=
15646   INCINTL=
15647   LIBINTL_PREFIX=
15648       HAVE_LIBINTL=
15649   rpathdirs=
15650   ltrpathdirs=
15651   names_already_handled=
15652   names_next_round='intl '
15653   while test -n "$names_next_round"; do
15654     names_this_round="$names_next_round"
15655     names_next_round=
15656     for name in $names_this_round; do
15657       already_handled=
15658       for n in $names_already_handled; do
15659         if test "$n" = "$name"; then
15660           already_handled=yes
15661           break
15662         fi
15663       done
15664       if test -z "$already_handled"; then
15665         names_already_handled="$names_already_handled $name"
15666                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15667         eval value=\"\$HAVE_LIB$uppername\"
15668         if test -n "$value"; then
15669           if test "$value" = yes; then
15670             eval value=\"\$LIB$uppername\"
15671             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15672             eval value=\"\$LTLIB$uppername\"
15673             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15674           else
15675                                     :
15676           fi
15677         else
15678                               found_dir=
15679           found_la=
15680           found_so=
15681           found_a=
15682           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15683           if test -n "$acl_shlibext"; then
15684             shrext=".$acl_shlibext"             # typically: shrext=.so
15685           else
15686             shrext=
15687           fi
15688           if test $use_additional = yes; then
15689             dir="$additional_libdir"
15690                                     if test -n "$acl_shlibext"; then
15691               if test -f "$dir/$libname$shrext"; then
15692                 found_dir="$dir"
15693                 found_so="$dir/$libname$shrext"
15694               else
15695                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15696                   ver=`(cd "$dir" && \
15697                         for f in "$libname$shrext".*; do echo "$f"; done \
15698                         | sed -e "s,^$libname$shrext\\\\.,," \
15699                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15700                         | sed 1q ) 2>/dev/null`
15701                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15702                     found_dir="$dir"
15703                     found_so="$dir/$libname$shrext.$ver"
15704                   fi
15705                 else
15706                   eval library_names=\"$acl_library_names_spec\"
15707                   for f in $library_names; do
15708                     if test -f "$dir/$f"; then
15709                       found_dir="$dir"
15710                       found_so="$dir/$f"
15711                       break
15712                     fi
15713                   done
15714                 fi
15715               fi
15716             fi
15717                         if test "X$found_dir" = "X"; then
15718               if test -f "$dir/$libname.$acl_libext"; then
15719                 found_dir="$dir"
15720                 found_a="$dir/$libname.$acl_libext"
15721               fi
15722             fi
15723             if test "X$found_dir" != "X"; then
15724               if test -f "$dir/$libname.la"; then
15725                 found_la="$dir/$libname.la"
15726               fi
15727             fi
15728           fi
15729           if test "X$found_dir" = "X"; then
15730             for x in $LDFLAGS $LTLIBINTL; do
15731
15732   acl_save_prefix="$prefix"
15733   prefix="$acl_final_prefix"
15734   acl_save_exec_prefix="$exec_prefix"
15735   exec_prefix="$acl_final_exec_prefix"
15736   eval x=\"$x\"
15737   exec_prefix="$acl_save_exec_prefix"
15738   prefix="$acl_save_prefix"
15739
15740               case "$x" in
15741                 -L*)
15742                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15743                                     if test -n "$acl_shlibext"; then
15744                     if test -f "$dir/$libname$shrext"; then
15745                       found_dir="$dir"
15746                       found_so="$dir/$libname$shrext"
15747                     else
15748                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15749                         ver=`(cd "$dir" && \
15750                               for f in "$libname$shrext".*; do echo "$f"; done \
15751                               | sed -e "s,^$libname$shrext\\\\.,," \
15752                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15753                               | sed 1q ) 2>/dev/null`
15754                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15755                           found_dir="$dir"
15756                           found_so="$dir/$libname$shrext.$ver"
15757                         fi
15758                       else
15759                         eval library_names=\"$acl_library_names_spec\"
15760                         for f in $library_names; do
15761                           if test -f "$dir/$f"; then
15762                             found_dir="$dir"
15763                             found_so="$dir/$f"
15764                             break
15765                           fi
15766                         done
15767                       fi
15768                     fi
15769                   fi
15770                                     if test "X$found_dir" = "X"; then
15771                     if test -f "$dir/$libname.$acl_libext"; then
15772                       found_dir="$dir"
15773                       found_a="$dir/$libname.$acl_libext"
15774                     fi
15775                   fi
15776                   if test "X$found_dir" != "X"; then
15777                     if test -f "$dir/$libname.la"; then
15778                       found_la="$dir/$libname.la"
15779                     fi
15780                   fi
15781                   ;;
15782               esac
15783               if test "X$found_dir" != "X"; then
15784                 break
15785               fi
15786             done
15787           fi
15788           if test "X$found_dir" != "X"; then
15789                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15790             if test "X$found_so" != "X"; then
15791                                                         if test "$enable_rpath" = no \
15792                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15793                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15794                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15795               else
15796                                                                                 haveit=
15797                 for x in $ltrpathdirs; do
15798                   if test "X$x" = "X$found_dir"; then
15799                     haveit=yes
15800                     break
15801                   fi
15802                 done
15803                 if test -z "$haveit"; then
15804                   ltrpathdirs="$ltrpathdirs $found_dir"
15805                 fi
15806                                 if test "$acl_hardcode_direct" = yes; then
15807                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15808                 else
15809                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15810                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15811                                                             haveit=
15812                     for x in $rpathdirs; do
15813                       if test "X$x" = "X$found_dir"; then
15814                         haveit=yes
15815                         break
15816                       fi
15817                     done
15818                     if test -z "$haveit"; then
15819                       rpathdirs="$rpathdirs $found_dir"
15820                     fi
15821                   else
15822                                                                                 haveit=
15823                     for x in $LDFLAGS $LIBINTL; do
15824
15825   acl_save_prefix="$prefix"
15826   prefix="$acl_final_prefix"
15827   acl_save_exec_prefix="$exec_prefix"
15828   exec_prefix="$acl_final_exec_prefix"
15829   eval x=\"$x\"
15830   exec_prefix="$acl_save_exec_prefix"
15831   prefix="$acl_save_prefix"
15832
15833                       if test "X$x" = "X-L$found_dir"; then
15834                         haveit=yes
15835                         break
15836                       fi
15837                     done
15838                     if test -z "$haveit"; then
15839                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15840                     fi
15841                     if test "$acl_hardcode_minus_L" != no; then
15842                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15843                     else
15844                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15845                     fi
15846                   fi
15847                 fi
15848               fi
15849             else
15850               if test "X$found_a" != "X"; then
15851                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15852               else
15853                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15854               fi
15855             fi
15856                         additional_includedir=
15857             case "$found_dir" in
15858               */$acl_libdirstem | */$acl_libdirstem/)
15859                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15860                 if test "$name" = 'intl'; then
15861                   LIBINTL_PREFIX="$basedir"
15862                 fi
15863                 additional_includedir="$basedir/include"
15864                 ;;
15865               */$acl_libdirstem2 | */$acl_libdirstem2/)
15866                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15867                 if test "$name" = 'intl'; then
15868                   LIBINTL_PREFIX="$basedir"
15869                 fi
15870                 additional_includedir="$basedir/include"
15871                 ;;
15872             esac
15873             if test "X$additional_includedir" != "X"; then
15874                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15875                 haveit=
15876                 if test "X$additional_includedir" = "X/usr/local/include"; then
15877                   if test -n "$GCC"; then
15878                     case $host_os in
15879                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15880                     esac
15881                   fi
15882                 fi
15883                 if test -z "$haveit"; then
15884                   for x in $CPPFLAGS $INCINTL; do
15885
15886   acl_save_prefix="$prefix"
15887   prefix="$acl_final_prefix"
15888   acl_save_exec_prefix="$exec_prefix"
15889   exec_prefix="$acl_final_exec_prefix"
15890   eval x=\"$x\"
15891   exec_prefix="$acl_save_exec_prefix"
15892   prefix="$acl_save_prefix"
15893
15894                     if test "X$x" = "X-I$additional_includedir"; then
15895                       haveit=yes
15896                       break
15897                     fi
15898                   done
15899                   if test -z "$haveit"; then
15900                     if test -d "$additional_includedir"; then
15901                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15902                     fi
15903                   fi
15904                 fi
15905               fi
15906             fi
15907                         if test -n "$found_la"; then
15908                                                         save_libdir="$libdir"
15909               case "$found_la" in
15910                 */* | *\\*) . "$found_la" ;;
15911                 *) . "./$found_la" ;;
15912               esac
15913               libdir="$save_libdir"
15914                             for dep in $dependency_libs; do
15915                 case "$dep" in
15916                   -L*)
15917                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15918                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15919                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15920                       haveit=
15921                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15922                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15923                         if test -n "$GCC"; then
15924                           case $host_os in
15925                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15926                           esac
15927                         fi
15928                       fi
15929                       if test -z "$haveit"; then
15930                         haveit=
15931                         for x in $LDFLAGS $LIBINTL; do
15932
15933   acl_save_prefix="$prefix"
15934   prefix="$acl_final_prefix"
15935   acl_save_exec_prefix="$exec_prefix"
15936   exec_prefix="$acl_final_exec_prefix"
15937   eval x=\"$x\"
15938   exec_prefix="$acl_save_exec_prefix"
15939   prefix="$acl_save_prefix"
15940
15941                           if test "X$x" = "X-L$additional_libdir"; then
15942                             haveit=yes
15943                             break
15944                           fi
15945                         done
15946                         if test -z "$haveit"; then
15947                           if test -d "$additional_libdir"; then
15948                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15949                           fi
15950                         fi
15951                         haveit=
15952                         for x in $LDFLAGS $LTLIBINTL; do
15953
15954   acl_save_prefix="$prefix"
15955   prefix="$acl_final_prefix"
15956   acl_save_exec_prefix="$exec_prefix"
15957   exec_prefix="$acl_final_exec_prefix"
15958   eval x=\"$x\"
15959   exec_prefix="$acl_save_exec_prefix"
15960   prefix="$acl_save_prefix"
15961
15962                           if test "X$x" = "X-L$additional_libdir"; then
15963                             haveit=yes
15964                             break
15965                           fi
15966                         done
15967                         if test -z "$haveit"; then
15968                           if test -d "$additional_libdir"; then
15969                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15970                           fi
15971                         fi
15972                       fi
15973                     fi
15974                     ;;
15975                   -R*)
15976                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15977                     if test "$enable_rpath" != no; then
15978                                                                   haveit=
15979                       for x in $rpathdirs; do
15980                         if test "X$x" = "X$dir"; then
15981                           haveit=yes
15982                           break
15983                         fi
15984                       done
15985                       if test -z "$haveit"; then
15986                         rpathdirs="$rpathdirs $dir"
15987                       fi
15988                                                                   haveit=
15989                       for x in $ltrpathdirs; do
15990                         if test "X$x" = "X$dir"; then
15991                           haveit=yes
15992                           break
15993                         fi
15994                       done
15995                       if test -z "$haveit"; then
15996                         ltrpathdirs="$ltrpathdirs $dir"
15997                       fi
15998                     fi
15999                     ;;
16000                   -l*)
16001                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16002                     ;;
16003                   *.la)
16004                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16005                     ;;
16006                   *)
16007                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16008                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16009                     ;;
16010                 esac
16011               done
16012             fi
16013           else
16014                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16015             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16016           fi
16017         fi
16018       fi
16019     done
16020   done
16021   if test "X$rpathdirs" != "X"; then
16022     if test -n "$acl_hardcode_libdir_separator"; then
16023                         alldirs=
16024       for found_dir in $rpathdirs; do
16025         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16026       done
16027             acl_save_libdir="$libdir"
16028       libdir="$alldirs"
16029       eval flag=\"$acl_hardcode_libdir_flag_spec\"
16030       libdir="$acl_save_libdir"
16031       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16032     else
16033             for found_dir in $rpathdirs; do
16034         acl_save_libdir="$libdir"
16035         libdir="$found_dir"
16036         eval flag=\"$acl_hardcode_libdir_flag_spec\"
16037         libdir="$acl_save_libdir"
16038         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16039       done
16040     fi
16041   fi
16042   if test "X$ltrpathdirs" != "X"; then
16043             for found_dir in $ltrpathdirs; do
16044       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16045     done
16046   fi
16047
16048
16049
16050
16051
16052
16053           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16054 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16055 if eval \${$gt_func_gnugettext_libintl+:} false; then :
16056   $as_echo_n "(cached) " >&6
16057 else
16058   gt_save_CPPFLAGS="$CPPFLAGS"
16059             CPPFLAGS="$CPPFLAGS $INCINTL"
16060             gt_save_LIBS="$LIBS"
16061             LIBS="$LIBS $LIBINTL"
16062                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16063 /* end confdefs.h.  */
16064 #include <libintl.h>
16065 $gt_revision_test_code
16066 extern int _nl_msg_cat_cntr;
16067 extern
16068 #ifdef __cplusplus
16069 "C"
16070 #endif
16071 const char *_nl_expand_alias (const char *);
16072 int
16073 main ()
16074 {
16075 bindtextdomain ("", "");
16076 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16077   ;
16078   return 0;
16079 }
16080 _ACEOF
16081 if ac_fn_c_try_link "$LINENO"; then :
16082   eval "$gt_func_gnugettext_libintl=yes"
16083 else
16084   eval "$gt_func_gnugettext_libintl=no"
16085 fi
16086 rm -f core conftest.err conftest.$ac_objext \
16087     conftest$ac_exeext conftest.$ac_ext
16088                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16089               LIBS="$LIBS $LIBICONV"
16090               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16091 /* end confdefs.h.  */
16092 #include <libintl.h>
16093 $gt_revision_test_code
16094 extern int _nl_msg_cat_cntr;
16095 extern
16096 #ifdef __cplusplus
16097 "C"
16098 #endif
16099 const char *_nl_expand_alias (const char *);
16100 int
16101 main ()
16102 {
16103 bindtextdomain ("", "");
16104 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16105   ;
16106   return 0;
16107 }
16108 _ACEOF
16109 if ac_fn_c_try_link "$LINENO"; then :
16110   LIBINTL="$LIBINTL $LIBICONV"
16111                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16112                 eval "$gt_func_gnugettext_libintl=yes"
16113
16114 fi
16115 rm -f core conftest.err conftest.$ac_objext \
16116     conftest$ac_exeext conftest.$ac_ext
16117             fi
16118             CPPFLAGS="$gt_save_CPPFLAGS"
16119             LIBS="$gt_save_LIBS"
16120 fi
16121 eval ac_res=\$$gt_func_gnugettext_libintl
16122                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16123 $as_echo "$ac_res" >&6; }
16124         fi
16125
16126                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16127            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16128                 && test "$PACKAGE" != gettext-runtime \
16129                 && test "$PACKAGE" != gettext-tools; }; then
16130           gt_use_preinstalled_gnugettext=yes
16131         else
16132                     LIBINTL=
16133           LTLIBINTL=
16134           INCINTL=
16135         fi
16136
16137
16138
16139     if test -n "$INTL_MACOSX_LIBS"; then
16140       if test "$gt_use_preinstalled_gnugettext" = "yes" \
16141          || test "$nls_cv_use_gnu_gettext" = "yes"; then
16142                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16143         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16144       fi
16145     fi
16146
16147     if test "$gt_use_preinstalled_gnugettext" = "yes" \
16148        || test "$nls_cv_use_gnu_gettext" = "yes"; then
16149
16150 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16151
16152     else
16153       USE_NLS=no
16154     fi
16155   fi
16156
16157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16158 $as_echo_n "checking whether to use NLS... " >&6; }
16159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16160 $as_echo "$USE_NLS" >&6; }
16161   if test "$USE_NLS" = "yes"; then
16162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16163 $as_echo_n "checking where the gettext function comes from... " >&6; }
16164     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16165       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16166         gt_source="external libintl"
16167       else
16168         gt_source="libc"
16169       fi
16170     else
16171       gt_source="included intl directory"
16172     fi
16173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16174 $as_echo "$gt_source" >&6; }
16175   fi
16176
16177   if test "$USE_NLS" = "yes"; then
16178
16179     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16180       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16181         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16182 $as_echo_n "checking how to link with libintl... " >&6; }
16183         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16184 $as_echo "$LIBINTL" >&6; }
16185
16186   for element in $INCINTL; do
16187     haveit=
16188     for x in $CPPFLAGS; do
16189
16190   acl_save_prefix="$prefix"
16191   prefix="$acl_final_prefix"
16192   acl_save_exec_prefix="$exec_prefix"
16193   exec_prefix="$acl_final_exec_prefix"
16194   eval x=\"$x\"
16195   exec_prefix="$acl_save_exec_prefix"
16196   prefix="$acl_save_prefix"
16197
16198       if test "X$x" = "X$element"; then
16199         haveit=yes
16200         break
16201       fi
16202     done
16203     if test -z "$haveit"; then
16204       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16205     fi
16206   done
16207
16208       fi
16209
16210
16211 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16212
16213
16214 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16215
16216     fi
16217
16218         POSUB=po
16219   fi
16220
16221
16222
16223     INTLLIBS="$LIBINTL"
16224
16225
16226
16227
16228
16229
16230
16231
16232 GETTEXT_PACKAGE=PACKAGE_TARNAME
16233
16234
16235 $as_echo "#define GETTEXT_PACKAGE PACKAGE_TARNAME" >>confdefs.h
16236
16237
16238 ac_config_files="$ac_config_files Makefile po/Makefile.in moonshot.desktop moonshot-webp.desktop moonshot-ui.spec"
16239
16240
16241 cat >confcache <<\_ACEOF
16242 # This file is a shell script that caches the results of configure
16243 # tests run on this system so they can be shared between configure
16244 # scripts and configure runs, see configure's option --config-cache.
16245 # It is not useful on other systems.  If it contains results you don't
16246 # want to keep, you may remove or edit it.
16247 #
16248 # config.status only pays attention to the cache file if you give it
16249 # the --recheck option to rerun configure.
16250 #
16251 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16252 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16253 # following values.
16254
16255 _ACEOF
16256
16257 # The following way of writing the cache mishandles newlines in values,
16258 # but we know of no workaround that is simple, portable, and efficient.
16259 # So, we kill variables containing newlines.
16260 # Ultrix sh set writes to stderr and can't be redirected directly,
16261 # and sets the high bit in the cache file unless we assign to the vars.
16262 (
16263   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16264     eval ac_val=\$$ac_var
16265     case $ac_val in #(
16266     *${as_nl}*)
16267       case $ac_var in #(
16268       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16269 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16270       esac
16271       case $ac_var in #(
16272       _ | IFS | as_nl) ;; #(
16273       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16274       *) { eval $ac_var=; unset $ac_var;} ;;
16275       esac ;;
16276     esac
16277   done
16278
16279   (set) 2>&1 |
16280     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16281     *${as_nl}ac_space=\ *)
16282       # `set' does not quote correctly, so add quotes: double-quote
16283       # substitution turns \\\\ into \\, and sed turns \\ into \.
16284       sed -n \
16285         "s/'/'\\\\''/g;
16286           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16287       ;; #(
16288     *)
16289       # `set' quotes correctly as required by POSIX, so do not add quotes.
16290       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16291       ;;
16292     esac |
16293     sort
16294 ) |
16295   sed '
16296      /^ac_cv_env_/b end
16297      t clear
16298      :clear
16299      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16300      t end
16301      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16302      :end' >>confcache
16303 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16304   if test -w "$cache_file"; then
16305     if test "x$cache_file" != "x/dev/null"; then
16306       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16307 $as_echo "$as_me: updating cache $cache_file" >&6;}
16308       if test ! -f "$cache_file" || test -h "$cache_file"; then
16309         cat confcache >"$cache_file"
16310       else
16311         case $cache_file in #(
16312         */* | ?:*)
16313           mv -f confcache "$cache_file"$$ &&
16314           mv -f "$cache_file"$$ "$cache_file" ;; #(
16315         *)
16316           mv -f confcache "$cache_file" ;;
16317         esac
16318       fi
16319     fi
16320   else
16321     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16322 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16323   fi
16324 fi
16325 rm -f confcache
16326
16327 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16328 # Let make expand exec_prefix.
16329 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16330
16331 DEFS=-DHAVE_CONFIG_H
16332
16333 ac_libobjs=
16334 ac_ltlibobjs=
16335 U=
16336 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16337   # 1. Remove the extension, and $U if already installed.
16338   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16339   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16340   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16341   #    will be set to the directory where LIBOBJS objects are built.
16342   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16343   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16344 done
16345 LIBOBJS=$ac_libobjs
16346
16347 LTLIBOBJS=$ac_ltlibobjs
16348
16349
16350  if test -n "$EXEEXT"; then
16351   am__EXEEXT_TRUE=
16352   am__EXEEXT_FALSE='#'
16353 else
16354   am__EXEEXT_TRUE='#'
16355   am__EXEEXT_FALSE=
16356 fi
16357
16358 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16359   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16361 fi
16362 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16363   as_fn_error $? "conditional \"AMDEP\" was never defined.
16364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16365 fi
16366 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16367   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16369 fi
16370 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16371   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16373 fi
16374 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
16375   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
16376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16377 fi
16378 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
16379   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
16380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16381 fi
16382 if test -z "${OS_MACOS_TRUE}" && test -z "${OS_MACOS_FALSE}"; then
16383   as_fn_error $? "conditional \"OS_MACOS\" was never defined.
16384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16385 fi
16386 if test -z "${IPC_MSRPC_TRUE}" && test -z "${IPC_MSRPC_FALSE}"; then
16387   as_fn_error $? "conditional \"IPC_MSRPC\" was never defined.
16388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16389 fi
16390 if test -z "${IPC_DBUS_TRUE}" && test -z "${IPC_DBUS_FALSE}"; then
16391   as_fn_error $? "conditional \"IPC_DBUS\" was never defined.
16392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16393 fi
16394 if test -z "${IPC_DBUS_GLIB_TRUE}" && test -z "${IPC_DBUS_GLIB_FALSE}"; then
16395   as_fn_error $? "conditional \"IPC_DBUS_GLIB\" was never defined.
16396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16397 fi
16398 if test -z "${IPC_GDBUS_TRUE}" && test -z "${IPC_GDBUS_FALSE}"; then
16399   as_fn_error $? "conditional \"IPC_GDBUS\" was never defined.
16400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16401 fi
16402
16403 : "${CONFIG_STATUS=./config.status}"
16404 ac_write_fail=0
16405 ac_clean_files_save=$ac_clean_files
16406 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16408 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16409 as_write_fail=0
16410 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16411 #! $SHELL
16412 # Generated by $as_me.
16413 # Run this file to recreate the current configuration.
16414 # Compiler output produced by configure, useful for debugging
16415 # configure, is in config.log if it exists.
16416
16417 debug=false
16418 ac_cs_recheck=false
16419 ac_cs_silent=false
16420
16421 SHELL=\${CONFIG_SHELL-$SHELL}
16422 export SHELL
16423 _ASEOF
16424 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16425 ## -------------------- ##
16426 ## M4sh Initialization. ##
16427 ## -------------------- ##
16428
16429 # Be more Bourne compatible
16430 DUALCASE=1; export DUALCASE # for MKS sh
16431 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16432   emulate sh
16433   NULLCMD=:
16434   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16435   # is contrary to our usage.  Disable this feature.
16436   alias -g '${1+"$@"}'='"$@"'
16437   setopt NO_GLOB_SUBST
16438 else
16439   case `(set -o) 2>/dev/null` in #(
16440   *posix*) :
16441     set -o posix ;; #(
16442   *) :
16443      ;;
16444 esac
16445 fi
16446
16447
16448 as_nl='
16449 '
16450 export as_nl
16451 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16452 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16453 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16454 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16455 # Prefer a ksh shell builtin over an external printf program on Solaris,
16456 # but without wasting forks for bash or zsh.
16457 if test -z "$BASH_VERSION$ZSH_VERSION" \
16458     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16459   as_echo='print -r --'
16460   as_echo_n='print -rn --'
16461 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16462   as_echo='printf %s\n'
16463   as_echo_n='printf %s'
16464 else
16465   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16466     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16467     as_echo_n='/usr/ucb/echo -n'
16468   else
16469     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16470     as_echo_n_body='eval
16471       arg=$1;
16472       case $arg in #(
16473       *"$as_nl"*)
16474         expr "X$arg" : "X\\(.*\\)$as_nl";
16475         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16476       esac;
16477       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16478     '
16479     export as_echo_n_body
16480     as_echo_n='sh -c $as_echo_n_body as_echo'
16481   fi
16482   export as_echo_body
16483   as_echo='sh -c $as_echo_body as_echo'
16484 fi
16485
16486 # The user is always right.
16487 if test "${PATH_SEPARATOR+set}" != set; then
16488   PATH_SEPARATOR=:
16489   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16490     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16491       PATH_SEPARATOR=';'
16492   }
16493 fi
16494
16495
16496 # IFS
16497 # We need space, tab and new line, in precisely that order.  Quoting is
16498 # there to prevent editors from complaining about space-tab.
16499 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16500 # splitting by setting IFS to empty value.)
16501 IFS=" ""        $as_nl"
16502
16503 # Find who we are.  Look in the path if we contain no directory separator.
16504 as_myself=
16505 case $0 in #((
16506   *[\\/]* ) as_myself=$0 ;;
16507   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16508 for as_dir in $PATH
16509 do
16510   IFS=$as_save_IFS
16511   test -z "$as_dir" && as_dir=.
16512     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16513   done
16514 IFS=$as_save_IFS
16515
16516      ;;
16517 esac
16518 # We did not find ourselves, most probably we were run as `sh COMMAND'
16519 # in which case we are not to be found in the path.
16520 if test "x$as_myself" = x; then
16521   as_myself=$0
16522 fi
16523 if test ! -f "$as_myself"; then
16524   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16525   exit 1
16526 fi
16527
16528 # Unset variables that we do not need and which cause bugs (e.g. in
16529 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16530 # suppresses any "Segmentation fault" message there.  '((' could
16531 # trigger a bug in pdksh 5.2.14.
16532 for as_var in BASH_ENV ENV MAIL MAILPATH
16533 do eval test x\${$as_var+set} = xset \
16534   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16535 done
16536 PS1='$ '
16537 PS2='> '
16538 PS4='+ '
16539
16540 # NLS nuisances.
16541 LC_ALL=C
16542 export LC_ALL
16543 LANGUAGE=C
16544 export LANGUAGE
16545
16546 # CDPATH.
16547 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16548
16549
16550 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16551 # ----------------------------------------
16552 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16553 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16554 # script with STATUS, using 1 if that was 0.
16555 as_fn_error ()
16556 {
16557   as_status=$1; test $as_status -eq 0 && as_status=1
16558   if test "$4"; then
16559     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16560     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16561   fi
16562   $as_echo "$as_me: error: $2" >&2
16563   as_fn_exit $as_status
16564 } # as_fn_error
16565
16566
16567 # as_fn_set_status STATUS
16568 # -----------------------
16569 # Set $? to STATUS, without forking.
16570 as_fn_set_status ()
16571 {
16572   return $1
16573 } # as_fn_set_status
16574
16575 # as_fn_exit STATUS
16576 # -----------------
16577 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16578 as_fn_exit ()
16579 {
16580   set +e
16581   as_fn_set_status $1
16582   exit $1
16583 } # as_fn_exit
16584
16585 # as_fn_unset VAR
16586 # ---------------
16587 # Portably unset VAR.
16588 as_fn_unset ()
16589 {
16590   { eval $1=; unset $1;}
16591 }
16592 as_unset=as_fn_unset
16593 # as_fn_append VAR VALUE
16594 # ----------------------
16595 # Append the text in VALUE to the end of the definition contained in VAR. Take
16596 # advantage of any shell optimizations that allow amortized linear growth over
16597 # repeated appends, instead of the typical quadratic growth present in naive
16598 # implementations.
16599 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16600   eval 'as_fn_append ()
16601   {
16602     eval $1+=\$2
16603   }'
16604 else
16605   as_fn_append ()
16606   {
16607     eval $1=\$$1\$2
16608   }
16609 fi # as_fn_append
16610
16611 # as_fn_arith ARG...
16612 # ------------------
16613 # Perform arithmetic evaluation on the ARGs, and store the result in the
16614 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16615 # must be portable across $(()) and expr.
16616 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16617   eval 'as_fn_arith ()
16618   {
16619     as_val=$(( $* ))
16620   }'
16621 else
16622   as_fn_arith ()
16623   {
16624     as_val=`expr "$@" || test $? -eq 1`
16625   }
16626 fi # as_fn_arith
16627
16628
16629 if expr a : '\(a\)' >/dev/null 2>&1 &&
16630    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16631   as_expr=expr
16632 else
16633   as_expr=false
16634 fi
16635
16636 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16637   as_basename=basename
16638 else
16639   as_basename=false
16640 fi
16641
16642 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16643   as_dirname=dirname
16644 else
16645   as_dirname=false
16646 fi
16647
16648 as_me=`$as_basename -- "$0" ||
16649 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16650          X"$0" : 'X\(//\)$' \| \
16651          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16652 $as_echo X/"$0" |
16653     sed '/^.*\/\([^/][^/]*\)\/*$/{
16654             s//\1/
16655             q
16656           }
16657           /^X\/\(\/\/\)$/{
16658             s//\1/
16659             q
16660           }
16661           /^X\/\(\/\).*/{
16662             s//\1/
16663             q
16664           }
16665           s/.*/./; q'`
16666
16667 # Avoid depending upon Character Ranges.
16668 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16669 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16670 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16671 as_cr_digits='0123456789'
16672 as_cr_alnum=$as_cr_Letters$as_cr_digits
16673
16674 ECHO_C= ECHO_N= ECHO_T=
16675 case `echo -n x` in #(((((
16676 -n*)
16677   case `echo 'xy\c'` in
16678   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16679   xy)  ECHO_C='\c';;
16680   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16681        ECHO_T=' ';;
16682   esac;;
16683 *)
16684   ECHO_N='-n';;
16685 esac
16686
16687 rm -f conf$$ conf$$.exe conf$$.file
16688 if test -d conf$$.dir; then
16689   rm -f conf$$.dir/conf$$.file
16690 else
16691   rm -f conf$$.dir
16692   mkdir conf$$.dir 2>/dev/null
16693 fi
16694 if (echo >conf$$.file) 2>/dev/null; then
16695   if ln -s conf$$.file conf$$ 2>/dev/null; then
16696     as_ln_s='ln -s'
16697     # ... but there are two gotchas:
16698     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16699     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16700     # In both cases, we have to default to `cp -pR'.
16701     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16702       as_ln_s='cp -pR'
16703   elif ln conf$$.file conf$$ 2>/dev/null; then
16704     as_ln_s=ln
16705   else
16706     as_ln_s='cp -pR'
16707   fi
16708 else
16709   as_ln_s='cp -pR'
16710 fi
16711 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16712 rmdir conf$$.dir 2>/dev/null
16713
16714
16715 # as_fn_mkdir_p
16716 # -------------
16717 # Create "$as_dir" as a directory, including parents if necessary.
16718 as_fn_mkdir_p ()
16719 {
16720
16721   case $as_dir in #(
16722   -*) as_dir=./$as_dir;;
16723   esac
16724   test -d "$as_dir" || eval $as_mkdir_p || {
16725     as_dirs=
16726     while :; do
16727       case $as_dir in #(
16728       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16729       *) as_qdir=$as_dir;;
16730       esac
16731       as_dirs="'$as_qdir' $as_dirs"
16732       as_dir=`$as_dirname -- "$as_dir" ||
16733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16734          X"$as_dir" : 'X\(//\)[^/]' \| \
16735          X"$as_dir" : 'X\(//\)$' \| \
16736          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16737 $as_echo X"$as_dir" |
16738     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16739             s//\1/
16740             q
16741           }
16742           /^X\(\/\/\)[^/].*/{
16743             s//\1/
16744             q
16745           }
16746           /^X\(\/\/\)$/{
16747             s//\1/
16748             q
16749           }
16750           /^X\(\/\).*/{
16751             s//\1/
16752             q
16753           }
16754           s/.*/./; q'`
16755       test -d "$as_dir" && break
16756     done
16757     test -z "$as_dirs" || eval "mkdir $as_dirs"
16758   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16759
16760
16761 } # as_fn_mkdir_p
16762 if mkdir -p . 2>/dev/null; then
16763   as_mkdir_p='mkdir -p "$as_dir"'
16764 else
16765   test -d ./-p && rmdir ./-p
16766   as_mkdir_p=false
16767 fi
16768
16769
16770 # as_fn_executable_p FILE
16771 # -----------------------
16772 # Test if FILE is an executable regular file.
16773 as_fn_executable_p ()
16774 {
16775   test -f "$1" && test -x "$1"
16776 } # as_fn_executable_p
16777 as_test_x='test -x'
16778 as_executable_p=as_fn_executable_p
16779
16780 # Sed expression to map a string onto a valid CPP name.
16781 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16782
16783 # Sed expression to map a string onto a valid variable name.
16784 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16785
16786
16787 exec 6>&1
16788 ## ----------------------------------- ##
16789 ## Main body of $CONFIG_STATUS script. ##
16790 ## ----------------------------------- ##
16791 _ASEOF
16792 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16793
16794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16795 # Save the log message, to keep $0 and so on meaningful, and to
16796 # report actual input values of CONFIG_FILES etc. instead of their
16797 # values after options handling.
16798 ac_log="
16799 This file was extended by Moonshot-ui $as_me 0.5, which was
16800 generated by GNU Autoconf 2.69.  Invocation command line was
16801
16802   CONFIG_FILES    = $CONFIG_FILES
16803   CONFIG_HEADERS  = $CONFIG_HEADERS
16804   CONFIG_LINKS    = $CONFIG_LINKS
16805   CONFIG_COMMANDS = $CONFIG_COMMANDS
16806   $ $0 $@
16807
16808 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16809 "
16810
16811 _ACEOF
16812
16813 case $ac_config_files in *"
16814 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16815 esac
16816
16817 case $ac_config_headers in *"
16818 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16819 esac
16820
16821
16822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16823 # Files that config.status was made for.
16824 config_files="$ac_config_files"
16825 config_headers="$ac_config_headers"
16826 config_commands="$ac_config_commands"
16827
16828 _ACEOF
16829
16830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16831 ac_cs_usage="\
16832 \`$as_me' instantiates files and other configuration actions
16833 from templates according to the current configuration.  Unless the files
16834 and actions are specified as TAGs, all are instantiated by default.
16835
16836 Usage: $0 [OPTION]... [TAG]...
16837
16838   -h, --help       print this help, then exit
16839   -V, --version    print version number and configuration settings, then exit
16840       --config     print configuration, then exit
16841   -q, --quiet, --silent
16842                    do not print progress messages
16843   -d, --debug      don't remove temporary files
16844       --recheck    update $as_me by reconfiguring in the same conditions
16845       --file=FILE[:TEMPLATE]
16846                    instantiate the configuration file FILE
16847       --header=FILE[:TEMPLATE]
16848                    instantiate the configuration header FILE
16849
16850 Configuration files:
16851 $config_files
16852
16853 Configuration headers:
16854 $config_headers
16855
16856 Configuration commands:
16857 $config_commands
16858
16859 Report bugs to <moonshot-community@jiscmail.ac.uk>.
16860 Moonshot-ui home page: <http://www.project-moonshot.org/>."
16861
16862 _ACEOF
16863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16864 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16865 ac_cs_version="\\
16866 Moonshot-ui config.status 0.5
16867 configured by $0, generated by GNU Autoconf 2.69,
16868   with options \\"\$ac_cs_config\\"
16869
16870 Copyright (C) 2012 Free Software Foundation, Inc.
16871 This config.status script is free software; the Free Software Foundation
16872 gives unlimited permission to copy, distribute and modify it."
16873
16874 ac_pwd='$ac_pwd'
16875 srcdir='$srcdir'
16876 INSTALL='$INSTALL'
16877 MKDIR_P='$MKDIR_P'
16878 AWK='$AWK'
16879 test -n "\$AWK" || AWK=awk
16880 _ACEOF
16881
16882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16883 # The default lists apply if the user does not specify any file.
16884 ac_need_defaults=:
16885 while test $# != 0
16886 do
16887   case $1 in
16888   --*=?*)
16889     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16890     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16891     ac_shift=:
16892     ;;
16893   --*=)
16894     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16895     ac_optarg=
16896     ac_shift=:
16897     ;;
16898   *)
16899     ac_option=$1
16900     ac_optarg=$2
16901     ac_shift=shift
16902     ;;
16903   esac
16904
16905   case $ac_option in
16906   # Handling of the options.
16907   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16908     ac_cs_recheck=: ;;
16909   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16910     $as_echo "$ac_cs_version"; exit ;;
16911   --config | --confi | --conf | --con | --co | --c )
16912     $as_echo "$ac_cs_config"; exit ;;
16913   --debug | --debu | --deb | --de | --d | -d )
16914     debug=: ;;
16915   --file | --fil | --fi | --f )
16916     $ac_shift
16917     case $ac_optarg in
16918     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16919     '') as_fn_error $? "missing file argument" ;;
16920     esac
16921     as_fn_append CONFIG_FILES " '$ac_optarg'"
16922     ac_need_defaults=false;;
16923   --header | --heade | --head | --hea )
16924     $ac_shift
16925     case $ac_optarg in
16926     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16927     esac
16928     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16929     ac_need_defaults=false;;
16930   --he | --h)
16931     # Conflict between --help and --header
16932     as_fn_error $? "ambiguous option: \`$1'
16933 Try \`$0 --help' for more information.";;
16934   --help | --hel | -h )
16935     $as_echo "$ac_cs_usage"; exit ;;
16936   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16937   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16938     ac_cs_silent=: ;;
16939
16940   # This is an error.
16941   -*) as_fn_error $? "unrecognized option: \`$1'
16942 Try \`$0 --help' for more information." ;;
16943
16944   *) as_fn_append ac_config_targets " $1"
16945      ac_need_defaults=false ;;
16946
16947   esac
16948   shift
16949 done
16950
16951 ac_configure_extra_args=
16952
16953 if $ac_cs_silent; then
16954   exec 6>/dev/null
16955   ac_configure_extra_args="$ac_configure_extra_args --silent"
16956 fi
16957
16958 _ACEOF
16959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16960 if \$ac_cs_recheck; then
16961   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16962   shift
16963   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16964   CONFIG_SHELL='$SHELL'
16965   export CONFIG_SHELL
16966   exec "\$@"
16967 fi
16968
16969 _ACEOF
16970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16971 exec 5>>config.log
16972 {
16973   echo
16974   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16975 ## Running $as_me. ##
16976 _ASBOX
16977   $as_echo "$ac_log"
16978 } >&5
16979
16980 _ACEOF
16981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16982 #
16983 # INIT-COMMANDS
16984 #
16985 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16986
16987
16988 # The HP-UX ksh and POSIX shell print the target directory to stdout
16989 # if CDPATH is set.
16990 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16991
16992 sed_quote_subst='$sed_quote_subst'
16993 double_quote_subst='$double_quote_subst'
16994 delay_variable_subst='$delay_variable_subst'
16995 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16996 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16997 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16998 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16999 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17000 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17001 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17002 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17003 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17004 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17005 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17006 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17007 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17008 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17009 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17010 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17011 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17012 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17013 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17014 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17015 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17016 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17017 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17018 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17019 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17020 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17021 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17022 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17023 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17024 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17025 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17026 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17027 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17028 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17029 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17030 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17031 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17032 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17033 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17034 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17035 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17036 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17037 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17038 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17039 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17040 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17041 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17042 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17043 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17044 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17045 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17046 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17047 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17048 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17049 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17050 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17051 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17052 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"`'
17053 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17054 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17055 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17056 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17057 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17058 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17059 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17060 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17061 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17062 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17063 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17064 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17065 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17066 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17067 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17068 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17069 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17070 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17071 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17072 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17073 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17074 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17075 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17076 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17077 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17078 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17079 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17080 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17081 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17082 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17083 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17084 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17085 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17086 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17087 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17088 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17089 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17090 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17091 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17092 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17093 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17094 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17095 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17096 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17097 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17098 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17099 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17100 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17101 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17102 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17103 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17104 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17105 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17106 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17107 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17108 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17109 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17110 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17111 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17112 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17113 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17114 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17115 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17116 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17117 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17118 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17119 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17120 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17121 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17122 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17123 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17124 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17125 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17126
17127 LTCC='$LTCC'
17128 LTCFLAGS='$LTCFLAGS'
17129 compiler='$compiler_DEFAULT'
17130
17131 # A function that is used when there is no print builtin or printf.
17132 func_fallback_echo ()
17133 {
17134   eval 'cat <<_LTECHO_EOF
17135 \$1
17136 _LTECHO_EOF'
17137 }
17138
17139 # Quote evaled strings.
17140 for var in AS \
17141 DLLTOOL \
17142 OBJDUMP \
17143 SHELL \
17144 ECHO \
17145 PATH_SEPARATOR \
17146 SED \
17147 GREP \
17148 EGREP \
17149 FGREP \
17150 LD \
17151 NM \
17152 LN_S \
17153 lt_SP2NL \
17154 lt_NL2SP \
17155 reload_flag \
17156 deplibs_check_method \
17157 file_magic_cmd \
17158 file_magic_glob \
17159 want_nocaseglob \
17160 sharedlib_from_linklib_cmd \
17161 AR \
17162 AR_FLAGS \
17163 archiver_list_spec \
17164 STRIP \
17165 RANLIB \
17166 CC \
17167 CFLAGS \
17168 compiler \
17169 lt_cv_sys_global_symbol_pipe \
17170 lt_cv_sys_global_symbol_to_cdecl \
17171 lt_cv_sys_global_symbol_to_c_name_address \
17172 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17173 nm_file_list_spec \
17174 lt_prog_compiler_no_builtin_flag \
17175 lt_prog_compiler_pic \
17176 lt_prog_compiler_wl \
17177 lt_prog_compiler_static \
17178 lt_cv_prog_compiler_c_o \
17179 need_locks \
17180 MANIFEST_TOOL \
17181 DSYMUTIL \
17182 NMEDIT \
17183 LIPO \
17184 OTOOL \
17185 OTOOL64 \
17186 shrext_cmds \
17187 export_dynamic_flag_spec \
17188 whole_archive_flag_spec \
17189 compiler_needs_object \
17190 with_gnu_ld \
17191 allow_undefined_flag \
17192 no_undefined_flag \
17193 hardcode_libdir_flag_spec \
17194 hardcode_libdir_separator \
17195 exclude_expsyms \
17196 include_expsyms \
17197 file_list_spec \
17198 variables_saved_for_relink \
17199 libname_spec \
17200 library_names_spec \
17201 soname_spec \
17202 install_override_mode \
17203 finish_eval \
17204 old_striplib \
17205 striplib; do
17206     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17207     *[\\\\\\\`\\"\\\$]*)
17208       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17209       ;;
17210     *)
17211       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17212       ;;
17213     esac
17214 done
17215
17216 # Double-quote double-evaled strings.
17217 for var in reload_cmds \
17218 old_postinstall_cmds \
17219 old_postuninstall_cmds \
17220 old_archive_cmds \
17221 extract_expsyms_cmds \
17222 old_archive_from_new_cmds \
17223 old_archive_from_expsyms_cmds \
17224 archive_cmds \
17225 archive_expsym_cmds \
17226 module_cmds \
17227 module_expsym_cmds \
17228 export_symbols_cmds \
17229 prelink_cmds \
17230 postlink_cmds \
17231 postinstall_cmds \
17232 postuninstall_cmds \
17233 finish_cmds \
17234 sys_lib_search_path_spec \
17235 sys_lib_dlsearch_path_spec; do
17236     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17237     *[\\\\\\\`\\"\\\$]*)
17238       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17239       ;;
17240     *)
17241       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17242       ;;
17243     esac
17244 done
17245
17246 ac_aux_dir='$ac_aux_dir'
17247 xsi_shell='$xsi_shell'
17248 lt_shell_append='$lt_shell_append'
17249
17250 # See if we are running on zsh, and set the options which allow our
17251 # commands through without removal of \ escapes INIT.
17252 if test -n "\${ZSH_VERSION+set}" ; then
17253    setopt NO_GLOB_SUBST
17254 fi
17255
17256
17257     PACKAGE='$PACKAGE'
17258     VERSION='$VERSION'
17259     TIMESTAMP='$TIMESTAMP'
17260     RM='$RM'
17261     ofile='$ofile'
17262
17263
17264
17265 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17266     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17267     # from automake < 1.5.
17268     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17269     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17270     LINGUAS="${LINGUAS-%UNSET%}"
17271
17272
17273 _ACEOF
17274
17275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17276
17277 # Handling of arguments.
17278 for ac_config_target in $ac_config_targets
17279 do
17280   case $ac_config_target in
17281     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17282     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17283     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17284     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17285     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17286     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17287     "moonshot.desktop") CONFIG_FILES="$CONFIG_FILES moonshot.desktop" ;;
17288     "moonshot-webp.desktop") CONFIG_FILES="$CONFIG_FILES moonshot-webp.desktop" ;;
17289     "moonshot-ui.spec") CONFIG_FILES="$CONFIG_FILES moonshot-ui.spec" ;;
17290
17291   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17292   esac
17293 done
17294
17295
17296 # If the user did not use the arguments to specify the items to instantiate,
17297 # then the envvar interface is used.  Set only those that are not.
17298 # We use the long form for the default assignment because of an extremely
17299 # bizarre bug on SunOS 4.1.3.
17300 if $ac_need_defaults; then
17301   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17302   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17303   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17304 fi
17305
17306 # Have a temporary directory for convenience.  Make it in the build tree
17307 # simply because there is no reason against having it here, and in addition,
17308 # creating and moving files from /tmp can sometimes cause problems.
17309 # Hook for its removal unless debugging.
17310 # Note that there is a small window in which the directory will not be cleaned:
17311 # after its creation but before its name has been assigned to `$tmp'.
17312 $debug ||
17313 {
17314   tmp= ac_tmp=
17315   trap 'exit_status=$?
17316   : "${ac_tmp:=$tmp}"
17317   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17318 ' 0
17319   trap 'as_fn_exit 1' 1 2 13 15
17320 }
17321 # Create a (secure) tmp directory for tmp files.
17322
17323 {
17324   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17325   test -d "$tmp"
17326 }  ||
17327 {
17328   tmp=./conf$$-$RANDOM
17329   (umask 077 && mkdir "$tmp")
17330 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17331 ac_tmp=$tmp
17332
17333 # Set up the scripts for CONFIG_FILES section.
17334 # No need to generate them if there are no CONFIG_FILES.
17335 # This happens for instance with `./config.status config.h'.
17336 if test -n "$CONFIG_FILES"; then
17337
17338
17339 ac_cr=`echo X | tr X '\015'`
17340 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17341 # But we know of no other shell where ac_cr would be empty at this
17342 # point, so we can use a bashism as a fallback.
17343 if test "x$ac_cr" = x; then
17344   eval ac_cr=\$\'\\r\'
17345 fi
17346 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17347 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17348   ac_cs_awk_cr='\\r'
17349 else
17350   ac_cs_awk_cr=$ac_cr
17351 fi
17352
17353 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17354 _ACEOF
17355
17356
17357 {
17358   echo "cat >conf$$subs.awk <<_ACEOF" &&
17359   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17360   echo "_ACEOF"
17361 } >conf$$subs.sh ||
17362   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17363 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17364 ac_delim='%!_!# '
17365 for ac_last_try in false false false false false :; do
17366   . ./conf$$subs.sh ||
17367     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17368
17369   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17370   if test $ac_delim_n = $ac_delim_num; then
17371     break
17372   elif $ac_last_try; then
17373     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17374   else
17375     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17376   fi
17377 done
17378 rm -f conf$$subs.sh
17379
17380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17381 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17382 _ACEOF
17383 sed -n '
17384 h
17385 s/^/S["/; s/!.*/"]=/
17386 p
17387 g
17388 s/^[^!]*!//
17389 :repl
17390 t repl
17391 s/'"$ac_delim"'$//
17392 t delim
17393 :nl
17394 h
17395 s/\(.\{148\}\)..*/\1/
17396 t more1
17397 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17398 p
17399 n
17400 b repl
17401 :more1
17402 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17403 p
17404 g
17405 s/.\{148\}//
17406 t nl
17407 :delim
17408 h
17409 s/\(.\{148\}\)..*/\1/
17410 t more2
17411 s/["\\]/\\&/g; s/^/"/; s/$/"/
17412 p
17413 b
17414 :more2
17415 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17416 p
17417 g
17418 s/.\{148\}//
17419 t delim
17420 ' <conf$$subs.awk | sed '
17421 /^[^""]/{
17422   N
17423   s/\n//
17424 }
17425 ' >>$CONFIG_STATUS || ac_write_fail=1
17426 rm -f conf$$subs.awk
17427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17428 _ACAWK
17429 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17430   for (key in S) S_is_set[key] = 1
17431   FS = "\a"
17432
17433 }
17434 {
17435   line = $ 0
17436   nfields = split(line, field, "@")
17437   substed = 0
17438   len = length(field[1])
17439   for (i = 2; i < nfields; i++) {
17440     key = field[i]
17441     keylen = length(key)
17442     if (S_is_set[key]) {
17443       value = S[key]
17444       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17445       len += length(value) + length(field[++i])
17446       substed = 1
17447     } else
17448       len += 1 + keylen
17449   }
17450
17451   print line
17452 }
17453
17454 _ACAWK
17455 _ACEOF
17456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17457 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17458   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17459 else
17460   cat
17461 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17462   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17463 _ACEOF
17464
17465 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17466 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17467 # trailing colons and then remove the whole line if VPATH becomes empty
17468 # (actually we leave an empty line to preserve line numbers).
17469 if test "x$srcdir" = x.; then
17470   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17471 h
17472 s///
17473 s/^/:/
17474 s/[      ]*$/:/
17475 s/:\$(srcdir):/:/g
17476 s/:\${srcdir}:/:/g
17477 s/:@srcdir@:/:/g
17478 s/^:*//
17479 s/:*$//
17480 x
17481 s/\(=[   ]*\).*/\1/
17482 G
17483 s/\n//
17484 s/^[^=]*=[       ]*$//
17485 }'
17486 fi
17487
17488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17489 fi # test -n "$CONFIG_FILES"
17490
17491 # Set up the scripts for CONFIG_HEADERS section.
17492 # No need to generate them if there are no CONFIG_HEADERS.
17493 # This happens for instance with `./config.status Makefile'.
17494 if test -n "$CONFIG_HEADERS"; then
17495 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17496 BEGIN {
17497 _ACEOF
17498
17499 # Transform confdefs.h into an awk script `defines.awk', embedded as
17500 # here-document in config.status, that substitutes the proper values into
17501 # config.h.in to produce config.h.
17502
17503 # Create a delimiter string that does not exist in confdefs.h, to ease
17504 # handling of long lines.
17505 ac_delim='%!_!# '
17506 for ac_last_try in false false :; do
17507   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17508   if test -z "$ac_tt"; then
17509     break
17510   elif $ac_last_try; then
17511     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17512   else
17513     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17514   fi
17515 done
17516
17517 # For the awk script, D is an array of macro values keyed by name,
17518 # likewise P contains macro parameters if any.  Preserve backslash
17519 # newline sequences.
17520
17521 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17522 sed -n '
17523 s/.\{148\}/&'"$ac_delim"'/g
17524 t rset
17525 :rset
17526 s/^[     ]*#[    ]*define[       ][      ]*/ /
17527 t def
17528 d
17529 :def
17530 s/\\$//
17531 t bsnl
17532 s/["\\]/\\&/g
17533 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17534 D["\1"]=" \3"/p
17535 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17536 d
17537 :bsnl
17538 s/["\\]/\\&/g
17539 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17540 D["\1"]=" \3\\\\\\n"\\/p
17541 t cont
17542 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17543 t cont
17544 d
17545 :cont
17546 n
17547 s/.\{148\}/&'"$ac_delim"'/g
17548 t clear
17549 :clear
17550 s/\\$//
17551 t bsnlc
17552 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17553 d
17554 :bsnlc
17555 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17556 b cont
17557 ' <confdefs.h | sed '
17558 s/'"$ac_delim"'/"\\\
17559 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17560
17561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17562   for (key in D) D_is_set[key] = 1
17563   FS = "\a"
17564 }
17565 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17566   line = \$ 0
17567   split(line, arg, " ")
17568   if (arg[1] == "#") {
17569     defundef = arg[2]
17570     mac1 = arg[3]
17571   } else {
17572     defundef = substr(arg[1], 2)
17573     mac1 = arg[2]
17574   }
17575   split(mac1, mac2, "(") #)
17576   macro = mac2[1]
17577   prefix = substr(line, 1, index(line, defundef) - 1)
17578   if (D_is_set[macro]) {
17579     # Preserve the white space surrounding the "#".
17580     print prefix "define", macro P[macro] D[macro]
17581     next
17582   } else {
17583     # Replace #undef with comments.  This is necessary, for example,
17584     # in the case of _POSIX_SOURCE, which is predefined and required
17585     # on some systems where configure will not decide to define it.
17586     if (defundef == "undef") {
17587       print "/*", prefix defundef, macro, "*/"
17588       next
17589     }
17590   }
17591 }
17592 { print }
17593 _ACAWK
17594 _ACEOF
17595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17596   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17597 fi # test -n "$CONFIG_HEADERS"
17598
17599
17600 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17601 shift
17602 for ac_tag
17603 do
17604   case $ac_tag in
17605   :[FHLC]) ac_mode=$ac_tag; continue;;
17606   esac
17607   case $ac_mode$ac_tag in
17608   :[FHL]*:*);;
17609   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17610   :[FH]-) ac_tag=-:-;;
17611   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17612   esac
17613   ac_save_IFS=$IFS
17614   IFS=:
17615   set x $ac_tag
17616   IFS=$ac_save_IFS
17617   shift
17618   ac_file=$1
17619   shift
17620
17621   case $ac_mode in
17622   :L) ac_source=$1;;
17623   :[FH])
17624     ac_file_inputs=
17625     for ac_f
17626     do
17627       case $ac_f in
17628       -) ac_f="$ac_tmp/stdin";;
17629       *) # Look for the file first in the build tree, then in the source tree
17630          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17631          # because $ac_f cannot contain `:'.
17632          test -f "$ac_f" ||
17633            case $ac_f in
17634            [\\/$]*) false;;
17635            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17636            esac ||
17637            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17638       esac
17639       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17640       as_fn_append ac_file_inputs " '$ac_f'"
17641     done
17642
17643     # Let's still pretend it is `configure' which instantiates (i.e., don't
17644     # use $as_me), people would be surprised to read:
17645     #    /* config.h.  Generated by config.status.  */
17646     configure_input='Generated from '`
17647           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17648         `' by configure.'
17649     if test x"$ac_file" != x-; then
17650       configure_input="$ac_file.  $configure_input"
17651       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17652 $as_echo "$as_me: creating $ac_file" >&6;}
17653     fi
17654     # Neutralize special characters interpreted by sed in replacement strings.
17655     case $configure_input in #(
17656     *\&* | *\|* | *\\* )
17657        ac_sed_conf_input=`$as_echo "$configure_input" |
17658        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17659     *) ac_sed_conf_input=$configure_input;;
17660     esac
17661
17662     case $ac_tag in
17663     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17664       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17665     esac
17666     ;;
17667   esac
17668
17669   ac_dir=`$as_dirname -- "$ac_file" ||
17670 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17671          X"$ac_file" : 'X\(//\)[^/]' \| \
17672          X"$ac_file" : 'X\(//\)$' \| \
17673          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17674 $as_echo X"$ac_file" |
17675     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17676             s//\1/
17677             q
17678           }
17679           /^X\(\/\/\)[^/].*/{
17680             s//\1/
17681             q
17682           }
17683           /^X\(\/\/\)$/{
17684             s//\1/
17685             q
17686           }
17687           /^X\(\/\).*/{
17688             s//\1/
17689             q
17690           }
17691           s/.*/./; q'`
17692   as_dir="$ac_dir"; as_fn_mkdir_p
17693   ac_builddir=.
17694
17695 case "$ac_dir" in
17696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17697 *)
17698   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17699   # A ".." for each directory in $ac_dir_suffix.
17700   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17701   case $ac_top_builddir_sub in
17702   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17703   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17704   esac ;;
17705 esac
17706 ac_abs_top_builddir=$ac_pwd
17707 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17708 # for backward compatibility:
17709 ac_top_builddir=$ac_top_build_prefix
17710
17711 case $srcdir in
17712   .)  # We are building in place.
17713     ac_srcdir=.
17714     ac_top_srcdir=$ac_top_builddir_sub
17715     ac_abs_top_srcdir=$ac_pwd ;;
17716   [\\/]* | ?:[\\/]* )  # Absolute name.
17717     ac_srcdir=$srcdir$ac_dir_suffix;
17718     ac_top_srcdir=$srcdir
17719     ac_abs_top_srcdir=$srcdir ;;
17720   *) # Relative name.
17721     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17722     ac_top_srcdir=$ac_top_build_prefix$srcdir
17723     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17724 esac
17725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17726
17727
17728   case $ac_mode in
17729   :F)
17730   #
17731   # CONFIG_FILE
17732   #
17733
17734   case $INSTALL in
17735   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17736   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17737   esac
17738   ac_MKDIR_P=$MKDIR_P
17739   case $MKDIR_P in
17740   [\\/$]* | ?:[\\/]* ) ;;
17741   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17742   esac
17743 _ACEOF
17744
17745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17746 # If the template does not know about datarootdir, expand it.
17747 # FIXME: This hack should be removed a few years after 2.60.
17748 ac_datarootdir_hack=; ac_datarootdir_seen=
17749 ac_sed_dataroot='
17750 /datarootdir/ {
17751   p
17752   q
17753 }
17754 /@datadir@/p
17755 /@docdir@/p
17756 /@infodir@/p
17757 /@localedir@/p
17758 /@mandir@/p'
17759 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17760 *datarootdir*) ac_datarootdir_seen=yes;;
17761 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17762   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17763 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17764 _ACEOF
17765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17766   ac_datarootdir_hack='
17767   s&@datadir@&$datadir&g
17768   s&@docdir@&$docdir&g
17769   s&@infodir@&$infodir&g
17770   s&@localedir@&$localedir&g
17771   s&@mandir@&$mandir&g
17772   s&\\\${datarootdir}&$datarootdir&g' ;;
17773 esac
17774 _ACEOF
17775
17776 # Neutralize VPATH when `$srcdir' = `.'.
17777 # Shell code in configure.ac might set extrasub.
17778 # FIXME: do we really want to maintain this feature?
17779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17780 ac_sed_extra="$ac_vpsub
17781 $extrasub
17782 _ACEOF
17783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17784 :t
17785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17786 s|@configure_input@|$ac_sed_conf_input|;t t
17787 s&@top_builddir@&$ac_top_builddir_sub&;t t
17788 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17789 s&@srcdir@&$ac_srcdir&;t t
17790 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17791 s&@top_srcdir@&$ac_top_srcdir&;t t
17792 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17793 s&@builddir@&$ac_builddir&;t t
17794 s&@abs_builddir@&$ac_abs_builddir&;t t
17795 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17796 s&@INSTALL@&$ac_INSTALL&;t t
17797 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17798 $ac_datarootdir_hack
17799 "
17800 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17801   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17802
17803 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17804   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17805   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17806       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17807   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17808 which seems to be undefined.  Please make sure it is defined" >&5
17809 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17810 which seems to be undefined.  Please make sure it is defined" >&2;}
17811
17812   rm -f "$ac_tmp/stdin"
17813   case $ac_file in
17814   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17815   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17816   esac \
17817   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17818  ;;
17819   :H)
17820   #
17821   # CONFIG_HEADER
17822   #
17823   if test x"$ac_file" != x-; then
17824     {
17825       $as_echo "/* $configure_input  */" \
17826       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17827     } >"$ac_tmp/config.h" \
17828       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17829     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17830       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17831 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17832     else
17833       rm -f "$ac_file"
17834       mv "$ac_tmp/config.h" "$ac_file" \
17835         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17836     fi
17837   else
17838     $as_echo "/* $configure_input  */" \
17839       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17840       || as_fn_error $? "could not create -" "$LINENO" 5
17841   fi
17842 # Compute "$ac_file"'s index in $config_headers.
17843 _am_arg="$ac_file"
17844 _am_stamp_count=1
17845 for _am_header in $config_headers :; do
17846   case $_am_header in
17847     $_am_arg | $_am_arg:* )
17848       break ;;
17849     * )
17850       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17851   esac
17852 done
17853 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17854 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17855          X"$_am_arg" : 'X\(//\)[^/]' \| \
17856          X"$_am_arg" : 'X\(//\)$' \| \
17857          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17858 $as_echo X"$_am_arg" |
17859     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17860             s//\1/
17861             q
17862           }
17863           /^X\(\/\/\)[^/].*/{
17864             s//\1/
17865             q
17866           }
17867           /^X\(\/\/\)$/{
17868             s//\1/
17869             q
17870           }
17871           /^X\(\/\).*/{
17872             s//\1/
17873             q
17874           }
17875           s/.*/./; q'`/stamp-h$_am_stamp_count
17876  ;;
17877
17878   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17879 $as_echo "$as_me: executing $ac_file commands" >&6;}
17880  ;;
17881   esac
17882
17883
17884   case $ac_file$ac_mode in
17885     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17886   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17887   # are listed without --file.  Let's play safe and only enable the eval
17888   # if we detect the quoting.
17889   case $CONFIG_FILES in
17890   *\'*) eval set x "$CONFIG_FILES" ;;
17891   *)   set x $CONFIG_FILES ;;
17892   esac
17893   shift
17894   for mf
17895   do
17896     # Strip MF so we end up with the name of the file.
17897     mf=`echo "$mf" | sed -e 's/:.*$//'`
17898     # Check whether this is an Automake generated Makefile or not.
17899     # We used to match only the files named `Makefile.in', but
17900     # some people rename them; so instead we look at the file content.
17901     # Grep'ing the first line is not enough: some people post-process
17902     # each Makefile.in and add a new line on top of each file to say so.
17903     # Grep'ing the whole file is not good either: AIX grep has a line
17904     # limit of 2048, but all sed's we know have understand at least 4000.
17905     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17906       dirpart=`$as_dirname -- "$mf" ||
17907 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17908          X"$mf" : 'X\(//\)[^/]' \| \
17909          X"$mf" : 'X\(//\)$' \| \
17910          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17911 $as_echo X"$mf" |
17912     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17913             s//\1/
17914             q
17915           }
17916           /^X\(\/\/\)[^/].*/{
17917             s//\1/
17918             q
17919           }
17920           /^X\(\/\/\)$/{
17921             s//\1/
17922             q
17923           }
17924           /^X\(\/\).*/{
17925             s//\1/
17926             q
17927           }
17928           s/.*/./; q'`
17929     else
17930       continue
17931     fi
17932     # Extract the definition of DEPDIR, am__include, and am__quote
17933     # from the Makefile without running `make'.
17934     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17935     test -z "$DEPDIR" && continue
17936     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17937     test -z "am__include" && continue
17938     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17939     # When using ansi2knr, U may be empty or an underscore; expand it
17940     U=`sed -n 's/^U = //p' < "$mf"`
17941     # Find all dependency output files, they are included files with
17942     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17943     # simplest approach to changing $(DEPDIR) to its actual value in the
17944     # expansion.
17945     for file in `sed -n "
17946       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17947          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17948       # Make sure the directory exists.
17949       test -f "$dirpart/$file" && continue
17950       fdir=`$as_dirname -- "$file" ||
17951 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17952          X"$file" : 'X\(//\)[^/]' \| \
17953          X"$file" : 'X\(//\)$' \| \
17954          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17955 $as_echo X"$file" |
17956     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17957             s//\1/
17958             q
17959           }
17960           /^X\(\/\/\)[^/].*/{
17961             s//\1/
17962             q
17963           }
17964           /^X\(\/\/\)$/{
17965             s//\1/
17966             q
17967           }
17968           /^X\(\/\).*/{
17969             s//\1/
17970             q
17971           }
17972           s/.*/./; q'`
17973       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17974       # echo "creating $dirpart/$file"
17975       echo '# dummy' > "$dirpart/$file"
17976     done
17977   done
17978 }
17979  ;;
17980     "libtool":C)
17981
17982     # See if we are running on zsh, and set the options which allow our
17983     # commands through without removal of \ escapes.
17984     if test -n "${ZSH_VERSION+set}" ; then
17985       setopt NO_GLOB_SUBST
17986     fi
17987
17988     cfgfile="${ofile}T"
17989     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17990     $RM "$cfgfile"
17991
17992     cat <<_LT_EOF >> "$cfgfile"
17993 #! $SHELL
17994
17995 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17996 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17997 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17998 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17999 #
18000 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18001 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18002 #                 Foundation, Inc.
18003 #   Written by Gordon Matzigkeit, 1996
18004 #
18005 #   This file is part of GNU Libtool.
18006 #
18007 # GNU Libtool is free software; you can redistribute it and/or
18008 # modify it under the terms of the GNU General Public License as
18009 # published by the Free Software Foundation; either version 2 of
18010 # the License, or (at your option) any later version.
18011 #
18012 # As a special exception to the GNU General Public License,
18013 # if you distribute this file as part of a program or library that
18014 # is built using GNU Libtool, you may include this file under the
18015 # same distribution terms that you use for the rest of that program.
18016 #
18017 # GNU Libtool is distributed in the hope that it will be useful,
18018 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18019 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18020 # GNU General Public License for more details.
18021 #
18022 # You should have received a copy of the GNU General Public License
18023 # along with GNU Libtool; see the file COPYING.  If not, a copy
18024 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18025 # obtained by writing to the Free Software Foundation, Inc.,
18026 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18027
18028
18029 # The names of the tagged configurations supported by this script.
18030 available_tags=""
18031
18032 # ### BEGIN LIBTOOL CONFIG
18033
18034 # Which release of libtool.m4 was used?
18035 macro_version=$macro_version
18036 macro_revision=$macro_revision
18037
18038 # Assembler program.
18039 AS=$lt_AS
18040
18041 # DLL creation program.
18042 DLLTOOL=$lt_DLLTOOL
18043
18044 # Object dumper program.
18045 OBJDUMP=$lt_OBJDUMP
18046
18047 # Whether or not to build shared libraries.
18048 build_libtool_libs=$enable_shared
18049
18050 # Whether or not to build static libraries.
18051 build_old_libs=$enable_static
18052
18053 # What type of objects to build.
18054 pic_mode=$pic_mode
18055
18056 # Whether or not to optimize for fast installation.
18057 fast_install=$enable_fast_install
18058
18059 # Shell to use when invoking shell scripts.
18060 SHELL=$lt_SHELL
18061
18062 # An echo program that protects backslashes.
18063 ECHO=$lt_ECHO
18064
18065 # The PATH separator for the build system.
18066 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18067
18068 # The host system.
18069 host_alias=$host_alias
18070 host=$host
18071 host_os=$host_os
18072
18073 # The build system.
18074 build_alias=$build_alias
18075 build=$build
18076 build_os=$build_os
18077
18078 # A sed program that does not truncate output.
18079 SED=$lt_SED
18080
18081 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18082 Xsed="\$SED -e 1s/^X//"
18083
18084 # A grep program that handles long lines.
18085 GREP=$lt_GREP
18086
18087 # An ERE matcher.
18088 EGREP=$lt_EGREP
18089
18090 # A literal string matcher.
18091 FGREP=$lt_FGREP
18092
18093 # A BSD- or MS-compatible name lister.
18094 NM=$lt_NM
18095
18096 # Whether we need soft or hard links.
18097 LN_S=$lt_LN_S
18098
18099 # What is the maximum length of a command?
18100 max_cmd_len=$max_cmd_len
18101
18102 # Object file suffix (normally "o").
18103 objext=$ac_objext
18104
18105 # Executable file suffix (normally "").
18106 exeext=$exeext
18107
18108 # whether the shell understands "unset".
18109 lt_unset=$lt_unset
18110
18111 # turn spaces into newlines.
18112 SP2NL=$lt_lt_SP2NL
18113
18114 # turn newlines into spaces.
18115 NL2SP=$lt_lt_NL2SP
18116
18117 # convert \$build file names to \$host format.
18118 to_host_file_cmd=$lt_cv_to_host_file_cmd
18119
18120 # convert \$build files to toolchain format.
18121 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18122
18123 # Method to check whether dependent libraries are shared objects.
18124 deplibs_check_method=$lt_deplibs_check_method
18125
18126 # Command to use when deplibs_check_method = "file_magic".
18127 file_magic_cmd=$lt_file_magic_cmd
18128
18129 # How to find potential files when deplibs_check_method = "file_magic".
18130 file_magic_glob=$lt_file_magic_glob
18131
18132 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18133 want_nocaseglob=$lt_want_nocaseglob
18134
18135 # Command to associate shared and link libraries.
18136 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18137
18138 # The archiver.
18139 AR=$lt_AR
18140
18141 # Flags to create an archive.
18142 AR_FLAGS=$lt_AR_FLAGS
18143
18144 # How to feed a file listing to the archiver.
18145 archiver_list_spec=$lt_archiver_list_spec
18146
18147 # A symbol stripping program.
18148 STRIP=$lt_STRIP
18149
18150 # Commands used to install an old-style archive.
18151 RANLIB=$lt_RANLIB
18152 old_postinstall_cmds=$lt_old_postinstall_cmds
18153 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18154
18155 # Whether to use a lock for old archive extraction.
18156 lock_old_archive_extraction=$lock_old_archive_extraction
18157
18158 # A C compiler.
18159 LTCC=$lt_CC
18160
18161 # LTCC compiler flags.
18162 LTCFLAGS=$lt_CFLAGS
18163
18164 # Take the output of nm and produce a listing of raw symbols and C names.
18165 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18166
18167 # Transform the output of nm in a proper C declaration.
18168 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18169
18170 # Transform the output of nm in a C name address pair.
18171 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18172
18173 # Transform the output of nm in a C name address pair when lib prefix is needed.
18174 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18175
18176 # Specify filename containing input files for \$NM.
18177 nm_file_list_spec=$lt_nm_file_list_spec
18178
18179 # The root where to search for dependent libraries,and in which our libraries should be installed.
18180 lt_sysroot=$lt_sysroot
18181
18182 # The name of the directory that contains temporary libtool files.
18183 objdir=$objdir
18184
18185 # Used to examine libraries when file_magic_cmd begins with "file".
18186 MAGIC_CMD=$MAGIC_CMD
18187
18188 # Must we lock files when doing compilation?
18189 need_locks=$lt_need_locks
18190
18191 # Manifest tool.
18192 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18193
18194 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18195 DSYMUTIL=$lt_DSYMUTIL
18196
18197 # Tool to change global to local symbols on Mac OS X.
18198 NMEDIT=$lt_NMEDIT
18199
18200 # Tool to manipulate fat objects and archives on Mac OS X.
18201 LIPO=$lt_LIPO
18202
18203 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18204 OTOOL=$lt_OTOOL
18205
18206 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18207 OTOOL64=$lt_OTOOL64
18208
18209 # Old archive suffix (normally "a").
18210 libext=$libext
18211
18212 # Shared library suffix (normally ".so").
18213 shrext_cmds=$lt_shrext_cmds
18214
18215 # The commands to extract the exported symbol list from a shared archive.
18216 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18217
18218 # Variables whose values should be saved in libtool wrapper scripts and
18219 # restored at link time.
18220 variables_saved_for_relink=$lt_variables_saved_for_relink
18221
18222 # Do we need the "lib" prefix for modules?
18223 need_lib_prefix=$need_lib_prefix
18224
18225 # Do we need a version for libraries?
18226 need_version=$need_version
18227
18228 # Library versioning type.
18229 version_type=$version_type
18230
18231 # Shared library runtime path variable.
18232 runpath_var=$runpath_var
18233
18234 # Shared library path variable.
18235 shlibpath_var=$shlibpath_var
18236
18237 # Is shlibpath searched before the hard-coded library search path?
18238 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18239
18240 # Format of library name prefix.
18241 libname_spec=$lt_libname_spec
18242
18243 # List of archive names.  First name is the real one, the rest are links.
18244 # The last name is the one that the linker finds with -lNAME
18245 library_names_spec=$lt_library_names_spec
18246
18247 # The coded name of the library, if different from the real name.
18248 soname_spec=$lt_soname_spec
18249
18250 # Permission mode override for installation of shared libraries.
18251 install_override_mode=$lt_install_override_mode
18252
18253 # Command to use after installation of a shared archive.
18254 postinstall_cmds=$lt_postinstall_cmds
18255
18256 # Command to use after uninstallation of a shared archive.
18257 postuninstall_cmds=$lt_postuninstall_cmds
18258
18259 # Commands used to finish a libtool library installation in a directory.
18260 finish_cmds=$lt_finish_cmds
18261
18262 # As "finish_cmds", except a single script fragment to be evaled but
18263 # not shown.
18264 finish_eval=$lt_finish_eval
18265
18266 # Whether we should hardcode library paths into libraries.
18267 hardcode_into_libs=$hardcode_into_libs
18268
18269 # Compile-time system search path for libraries.
18270 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18271
18272 # Run-time system search path for libraries.
18273 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18274
18275 # Whether dlopen is supported.
18276 dlopen_support=$enable_dlopen
18277
18278 # Whether dlopen of programs is supported.
18279 dlopen_self=$enable_dlopen_self
18280
18281 # Whether dlopen of statically linked programs is supported.
18282 dlopen_self_static=$enable_dlopen_self_static
18283
18284 # Commands to strip libraries.
18285 old_striplib=$lt_old_striplib
18286 striplib=$lt_striplib
18287
18288
18289 # The linker used to build libraries.
18290 LD=$lt_LD
18291
18292 # How to create reloadable object files.
18293 reload_flag=$lt_reload_flag
18294 reload_cmds=$lt_reload_cmds
18295
18296 # Commands used to build an old-style archive.
18297 old_archive_cmds=$lt_old_archive_cmds
18298
18299 # A language specific compiler.
18300 CC=$lt_compiler
18301
18302 # Is the compiler the GNU compiler?
18303 with_gcc=$GCC
18304
18305 # Compiler flag to turn off builtin functions.
18306 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18307
18308 # Additional compiler flags for building library objects.
18309 pic_flag=$lt_lt_prog_compiler_pic
18310
18311 # How to pass a linker flag through the compiler.
18312 wl=$lt_lt_prog_compiler_wl
18313
18314 # Compiler flag to prevent dynamic linking.
18315 link_static_flag=$lt_lt_prog_compiler_static
18316
18317 # Does compiler simultaneously support -c and -o options?
18318 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18319
18320 # Whether or not to add -lc for building shared libraries.
18321 build_libtool_need_lc=$archive_cmds_need_lc
18322
18323 # Whether or not to disallow shared libs when runtime libs are static.
18324 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18325
18326 # Compiler flag to allow reflexive dlopens.
18327 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18328
18329 # Compiler flag to generate shared objects directly from archives.
18330 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18331
18332 # Whether the compiler copes with passing no objects directly.
18333 compiler_needs_object=$lt_compiler_needs_object
18334
18335 # Create an old-style archive from a shared archive.
18336 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18337
18338 # Create a temporary old-style archive to link instead of a shared archive.
18339 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18340
18341 # Commands used to build a shared archive.
18342 archive_cmds=$lt_archive_cmds
18343 archive_expsym_cmds=$lt_archive_expsym_cmds
18344
18345 # Commands used to build a loadable module if different from building
18346 # a shared archive.
18347 module_cmds=$lt_module_cmds
18348 module_expsym_cmds=$lt_module_expsym_cmds
18349
18350 # Whether we are building with GNU ld or not.
18351 with_gnu_ld=$lt_with_gnu_ld
18352
18353 # Flag that allows shared libraries with undefined symbols to be built.
18354 allow_undefined_flag=$lt_allow_undefined_flag
18355
18356 # Flag that enforces no undefined symbols.
18357 no_undefined_flag=$lt_no_undefined_flag
18358
18359 # Flag to hardcode \$libdir into a binary during linking.
18360 # This must work even if \$libdir does not exist
18361 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18362
18363 # Whether we need a single "-rpath" flag with a separated argument.
18364 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18365
18366 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18367 # DIR into the resulting binary.
18368 hardcode_direct=$hardcode_direct
18369
18370 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18371 # DIR into the resulting binary and the resulting library dependency is
18372 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18373 # library is relocated.
18374 hardcode_direct_absolute=$hardcode_direct_absolute
18375
18376 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18377 # into the resulting binary.
18378 hardcode_minus_L=$hardcode_minus_L
18379
18380 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18381 # into the resulting binary.
18382 hardcode_shlibpath_var=$hardcode_shlibpath_var
18383
18384 # Set to "yes" if building a shared library automatically hardcodes DIR
18385 # into the library and all subsequent libraries and executables linked
18386 # against it.
18387 hardcode_automatic=$hardcode_automatic
18388
18389 # Set to yes if linker adds runtime paths of dependent libraries
18390 # to runtime path list.
18391 inherit_rpath=$inherit_rpath
18392
18393 # Whether libtool must link a program against all its dependency libraries.
18394 link_all_deplibs=$link_all_deplibs
18395
18396 # Set to "yes" if exported symbols are required.
18397 always_export_symbols=$always_export_symbols
18398
18399 # The commands to list exported symbols.
18400 export_symbols_cmds=$lt_export_symbols_cmds
18401
18402 # Symbols that should not be listed in the preloaded symbols.
18403 exclude_expsyms=$lt_exclude_expsyms
18404
18405 # Symbols that must always be exported.
18406 include_expsyms=$lt_include_expsyms
18407
18408 # Commands necessary for linking programs (against libraries) with templates.
18409 prelink_cmds=$lt_prelink_cmds
18410
18411 # Commands necessary for finishing linking programs.
18412 postlink_cmds=$lt_postlink_cmds
18413
18414 # Specify filename containing input files.
18415 file_list_spec=$lt_file_list_spec
18416
18417 # How to hardcode a shared library path into an executable.
18418 hardcode_action=$hardcode_action
18419
18420 # ### END LIBTOOL CONFIG
18421
18422 _LT_EOF
18423
18424   case $host_os in
18425   aix3*)
18426     cat <<\_LT_EOF >> "$cfgfile"
18427 # AIX sometimes has problems with the GCC collect2 program.  For some
18428 # reason, if we set the COLLECT_NAMES environment variable, the problems
18429 # vanish in a puff of smoke.
18430 if test "X${COLLECT_NAMES+set}" != Xset; then
18431   COLLECT_NAMES=
18432   export COLLECT_NAMES
18433 fi
18434 _LT_EOF
18435     ;;
18436   esac
18437
18438
18439 ltmain="$ac_aux_dir/ltmain.sh"
18440
18441
18442   # We use sed instead of cat because bash on DJGPP gets confused if
18443   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18444   # text mode, it properly converts lines to CR/LF.  This bash problem
18445   # is reportedly fixed, but why not run on old versions too?
18446   sed '$q' "$ltmain" >> "$cfgfile" \
18447      || (rm -f "$cfgfile"; exit 1)
18448
18449   if test x"$xsi_shell" = xyes; then
18450   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18451 func_dirname ()\
18452 {\
18453 \    case ${1} in\
18454 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18455 \      *  ) func_dirname_result="${3}" ;;\
18456 \    esac\
18457 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18458   && mv -f "$cfgfile.tmp" "$cfgfile" \
18459     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18460 test 0 -eq $? || _lt_function_replace_fail=:
18461
18462
18463   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18464 func_basename ()\
18465 {\
18466 \    func_basename_result="${1##*/}"\
18467 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18468   && mv -f "$cfgfile.tmp" "$cfgfile" \
18469     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18470 test 0 -eq $? || _lt_function_replace_fail=:
18471
18472
18473   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18474 func_dirname_and_basename ()\
18475 {\
18476 \    case ${1} in\
18477 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18478 \      *  ) func_dirname_result="${3}" ;;\
18479 \    esac\
18480 \    func_basename_result="${1##*/}"\
18481 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18482   && mv -f "$cfgfile.tmp" "$cfgfile" \
18483     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18484 test 0 -eq $? || _lt_function_replace_fail=:
18485
18486
18487   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18488 func_stripname ()\
18489 {\
18490 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18491 \    # positional parameters, so assign one to ordinary parameter first.\
18492 \    func_stripname_result=${3}\
18493 \    func_stripname_result=${func_stripname_result#"${1}"}\
18494 \    func_stripname_result=${func_stripname_result%"${2}"}\
18495 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18496   && mv -f "$cfgfile.tmp" "$cfgfile" \
18497     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18498 test 0 -eq $? || _lt_function_replace_fail=:
18499
18500
18501   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18502 func_split_long_opt ()\
18503 {\
18504 \    func_split_long_opt_name=${1%%=*}\
18505 \    func_split_long_opt_arg=${1#*=}\
18506 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18507   && mv -f "$cfgfile.tmp" "$cfgfile" \
18508     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18509 test 0 -eq $? || _lt_function_replace_fail=:
18510
18511
18512   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18513 func_split_short_opt ()\
18514 {\
18515 \    func_split_short_opt_arg=${1#??}\
18516 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18517 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18518   && mv -f "$cfgfile.tmp" "$cfgfile" \
18519     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18520 test 0 -eq $? || _lt_function_replace_fail=:
18521
18522
18523   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18524 func_lo2o ()\
18525 {\
18526 \    case ${1} in\
18527 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18528 \      *)    func_lo2o_result=${1} ;;\
18529 \    esac\
18530 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18531   && mv -f "$cfgfile.tmp" "$cfgfile" \
18532     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18533 test 0 -eq $? || _lt_function_replace_fail=:
18534
18535
18536   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18537 func_xform ()\
18538 {\
18539     func_xform_result=${1%.*}.lo\
18540 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18541   && mv -f "$cfgfile.tmp" "$cfgfile" \
18542     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18543 test 0 -eq $? || _lt_function_replace_fail=:
18544
18545
18546   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18547 func_arith ()\
18548 {\
18549     func_arith_result=$(( $* ))\
18550 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18551   && mv -f "$cfgfile.tmp" "$cfgfile" \
18552     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18553 test 0 -eq $? || _lt_function_replace_fail=:
18554
18555
18556   sed -e '/^func_len ()$/,/^} # func_len /c\
18557 func_len ()\
18558 {\
18559     func_len_result=${#1}\
18560 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18561   && mv -f "$cfgfile.tmp" "$cfgfile" \
18562     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18563 test 0 -eq $? || _lt_function_replace_fail=:
18564
18565 fi
18566
18567 if test x"$lt_shell_append" = xyes; then
18568   sed -e '/^func_append ()$/,/^} # func_append /c\
18569 func_append ()\
18570 {\
18571     eval "${1}+=\\${2}"\
18572 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18573   && mv -f "$cfgfile.tmp" "$cfgfile" \
18574     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18575 test 0 -eq $? || _lt_function_replace_fail=:
18576
18577
18578   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18579 func_append_quoted ()\
18580 {\
18581 \    func_quote_for_eval "${2}"\
18582 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18583 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18584   && mv -f "$cfgfile.tmp" "$cfgfile" \
18585     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18586 test 0 -eq $? || _lt_function_replace_fail=:
18587
18588
18589   # Save a `func_append' function call where possible by direct use of '+='
18590   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18591     && mv -f "$cfgfile.tmp" "$cfgfile" \
18592       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18593   test 0 -eq $? || _lt_function_replace_fail=:
18594 else
18595   # Save a `func_append' function call even when '+=' is not available
18596   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18597     && mv -f "$cfgfile.tmp" "$cfgfile" \
18598       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18599   test 0 -eq $? || _lt_function_replace_fail=:
18600 fi
18601
18602 if test x"$_lt_function_replace_fail" = x":"; then
18603   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18604 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18605 fi
18606
18607
18608    mv -f "$cfgfile" "$ofile" ||
18609     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18610   chmod +x "$ofile"
18611
18612  ;;
18613     "po-directories":C)
18614     for ac_file in $CONFIG_FILES; do
18615       # Support "outfile[:infile[:infile...]]"
18616       case "$ac_file" in
18617         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18618       esac
18619       # PO directories have a Makefile.in generated from Makefile.in.in.
18620       case "$ac_file" in */Makefile.in)
18621         # Adjust a relative srcdir.
18622         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18623         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18624         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18625         # In autoconf-2.13 it is called $ac_given_srcdir.
18626         # In autoconf-2.50 it is called $srcdir.
18627         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18628         case "$ac_given_srcdir" in
18629           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18630           /*) top_srcdir="$ac_given_srcdir" ;;
18631           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18632         esac
18633         # Treat a directory as a PO directory if and only if it has a
18634         # POTFILES.in file. This allows packages to have multiple PO
18635         # directories under different names or in different locations.
18636         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18637           rm -f "$ac_dir/POTFILES"
18638           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18639           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18640           POMAKEFILEDEPS="POTFILES.in"
18641           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18642           # on $ac_dir but don't depend on user-specified configuration
18643           # parameters.
18644           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18645             # The LINGUAS file contains the set of available languages.
18646             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18647               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18648             fi
18649             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18650             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18651             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18652             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18653           else
18654             # The set of available languages was given in configure.in.
18655             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18656             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18657           fi
18658           # Compute POFILES
18659           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18660           # Compute UPDATEPOFILES
18661           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18662           # Compute DUMMYPOFILES
18663           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18664           # Compute GMOFILES
18665           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18666           case "$ac_given_srcdir" in
18667             .) srcdirpre= ;;
18668             *) srcdirpre='$(srcdir)/' ;;
18669           esac
18670           POFILES=
18671           UPDATEPOFILES=
18672           DUMMYPOFILES=
18673           GMOFILES=
18674           for lang in $ALL_LINGUAS; do
18675             POFILES="$POFILES $srcdirpre$lang.po"
18676             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18677             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18678             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18679           done
18680           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18681           # environment variable.
18682           INST_LINGUAS=
18683           if test -n "$ALL_LINGUAS"; then
18684             for presentlang in $ALL_LINGUAS; do
18685               useit=no
18686               if test "%UNSET%" != "$LINGUAS"; then
18687                 desiredlanguages="$LINGUAS"
18688               else
18689                 desiredlanguages="$ALL_LINGUAS"
18690               fi
18691               for desiredlang in $desiredlanguages; do
18692                 # Use the presentlang catalog if desiredlang is
18693                 #   a. equal to presentlang, or
18694                 #   b. a variant of presentlang (because in this case,
18695                 #      presentlang can be used as a fallback for messages
18696                 #      which are not translated in the desiredlang catalog).
18697                 case "$desiredlang" in
18698                   "$presentlang"*) useit=yes;;
18699                 esac
18700               done
18701               if test $useit = yes; then
18702                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18703               fi
18704             done
18705           fi
18706           CATALOGS=
18707           if test -n "$INST_LINGUAS"; then
18708             for lang in $INST_LINGUAS; do
18709               CATALOGS="$CATALOGS $lang.gmo"
18710             done
18711           fi
18712           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18713           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"
18714           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18715             if test -f "$f"; then
18716               case "$f" in
18717                 *.orig | *.bak | *~) ;;
18718                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18719               esac
18720             fi
18721           done
18722         fi
18723         ;;
18724       esac
18725     done ;;
18726
18727   esac
18728 done # for ac_tag
18729
18730
18731 as_fn_exit 0
18732 _ACEOF
18733 ac_clean_files=$ac_clean_files_save
18734
18735 test $ac_write_fail = 0 ||
18736   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18737
18738
18739 # configure is writing to config.log, and then calls config.status.
18740 # config.status does its own redirection, appending to config.log.
18741 # Unfortunately, on DOS this fails, as config.log is still kept open
18742 # by configure, so config.status won't be able to write to it; its
18743 # output is simply discarded.  So we exec the FD to /dev/null,
18744 # effectively closing config.log, so it can be properly (re)opened and
18745 # appended to by config.status.  When coming back to configure, we
18746 # need to make the FD available again.
18747 if test "$no_create" != yes; then
18748   ac_cs_success=:
18749   ac_config_status_args=
18750   test "$silent" = yes &&
18751     ac_config_status_args="$ac_config_status_args --quiet"
18752   exec 5>/dev/null
18753   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18754   exec 5>>config.log
18755   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18756   # would make configure fail if this is the last instruction.
18757   $ac_cs_success || as_fn_exit 1
18758 fi
18759 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18760   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18761 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18762 fi
18763