Added dependency of ibus engines
[profile/ivi/weekeyboard.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for weekeyboard 0.0.2.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='weekeyboard'
589 PACKAGE_TARNAME='weekeyboard'
590 PACKAGE_VERSION='0.0.2'
591 PACKAGE_STRING='weekeyboard 0.0.2'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 #  include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 #  include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 CXXFLAGS
636 wayland_protocoldir
637 wayland_scanner
638 WAYLAND_SCANNER_LIBS
639 WAYLAND_SCANNER_CFLAGS
640 have_ibus
641 IBUS_LIBS
642 IBUS_CFLAGS
643 EDJE_CC_PATH
644 EFL_LIBS
645 EFL_CFLAGS
646 WAYLAND_LIBS
647 WAYLAND_CFLAGS
648 PKG_CONFIG_LIBDIR
649 PKG_CONFIG_PATH
650 PKG_CONFIG
651 CPP
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 ac_ct_AR
660 AR
661 DLLTOOL
662 OBJDUMP
663 LN_S
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 EGREP
670 GREP
671 host_os
672 host_vendor
673 host_cpu
674 host
675 build_os
676 build_vendor
677 build_cpu
678 build
679 LIBTOOL
680 SED
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__quote
689 am__include
690 DEPDIR
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CPPFLAGS
695 LDFLAGS
696 CFLAGS
697 CC
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
707 AWK
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 STRIP
712 install_sh
713 MAKEINFO
714 AUTOHEADER
715 AUTOMAKE
716 AUTOCONF
717 ACLOCAL
718 VERSION
719 PACKAGE
720 CYGPATH_W
721 am__isrc
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 weekeyboard_VERSION
726 weekeyboard_MICRO
727 weekeyboard_MINOR
728 weekeyboard_MAJOR
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 localstatedir
749 sharedstatedir
750 sysconfdir
751 datadir
752 datarootdir
753 libexecdir
754 sbindir
755 bindir
756 program_transform_name
757 prefix
758 exec_prefix
759 PACKAGE_URL
760 PACKAGE_BUGREPORT
761 PACKAGE_STRING
762 PACKAGE_VERSION
763 PACKAGE_TARNAME
764 PACKAGE_NAME
765 PATH_SEPARATOR
766 SHELL'
767 ac_subst_files='wayland_scanner_rules'
768 ac_user_opts='
769 enable_option_checking
770 enable_silent_rules
771 enable_dependency_tracking
772 enable_static
773 enable_shared
774 with_pic
775 enable_fast_install
776 with_gnu_ld
777 with_sysroot
778 enable_libtool_lock
779 with_edje_cc
780 '
781       ac_precious_vars='build_alias
782 host_alias
783 target_alias
784 CC
785 CFLAGS
786 LDFLAGS
787 LIBS
788 CPPFLAGS
789 CPP
790 PKG_CONFIG
791 PKG_CONFIG_PATH
792 PKG_CONFIG_LIBDIR
793 WAYLAND_CFLAGS
794 WAYLAND_LIBS
795 EFL_CFLAGS
796 EFL_LIBS
797 IBUS_CFLAGS
798 IBUS_LIBS
799 WAYLAND_SCANNER_CFLAGS
800 WAYLAND_SCANNER_LIBS'
801
802
803 # Initialize some variables set by options.
804 ac_init_help=
805 ac_init_version=false
806 ac_unrecognized_opts=
807 ac_unrecognized_sep=
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
810 cache_file=/dev/null
811 exec_prefix=NONE
812 no_create=
813 no_recursion=
814 prefix=NONE
815 program_prefix=NONE
816 program_suffix=NONE
817 program_transform_name=s,x,x,
818 silent=
819 site=
820 srcdir=
821 verbose=
822 x_includes=NONE
823 x_libraries=NONE
824
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855   # If the previous option needs an argument, assign it.
856   if test -n "$ac_prev"; then
857     eval $ac_prev=\$ac_option
858     ac_prev=
859     continue
860   fi
861
862   case $ac_option in
863   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864   *=)   ac_optarg= ;;
865   *)    ac_optarg=yes ;;
866   esac
867
868   # Accept the important Cygnus configure options, so we can diagnose typos.
869
870   case $ac_dashdash$ac_option in
871   --)
872     ac_dashdash=yes ;;
873
874   -bindir | --bindir | --bindi | --bind | --bin | --bi)
875     ac_prev=bindir ;;
876   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877     bindir=$ac_optarg ;;
878
879   -build | --build | --buil | --bui | --bu)
880     ac_prev=build_alias ;;
881   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882     build_alias=$ac_optarg ;;
883
884   -cache-file | --cache-file | --cache-fil | --cache-fi \
885   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886     ac_prev=cache_file ;;
887   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889     cache_file=$ac_optarg ;;
890
891   --config-cache | -C)
892     cache_file=config.cache ;;
893
894   -datadir | --datadir | --datadi | --datad)
895     ac_prev=datadir ;;
896   -datadir=* | --datadir=* | --datadi=* | --datad=*)
897     datadir=$ac_optarg ;;
898
899   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900   | --dataroo | --dataro | --datar)
901     ac_prev=datarootdir ;;
902   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904     datarootdir=$ac_optarg ;;
905
906   -disable-* | --disable-*)
907     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908     # Reject names that are not valid shell variable names.
909     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910       as_fn_error $? "invalid feature name: $ac_useropt"
911     ac_useropt_orig=$ac_useropt
912     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913     case $ac_user_opts in
914       *"
915 "enable_$ac_useropt"
916 "*) ;;
917       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918          ac_unrecognized_sep=', ';;
919     esac
920     eval enable_$ac_useropt=no ;;
921
922   -docdir | --docdir | --docdi | --doc | --do)
923     ac_prev=docdir ;;
924   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925     docdir=$ac_optarg ;;
926
927   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928     ac_prev=dvidir ;;
929   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930     dvidir=$ac_optarg ;;
931
932   -enable-* | --enable-*)
933     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934     # Reject names that are not valid shell variable names.
935     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936       as_fn_error $? "invalid feature name: $ac_useropt"
937     ac_useropt_orig=$ac_useropt
938     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939     case $ac_user_opts in
940       *"
941 "enable_$ac_useropt"
942 "*) ;;
943       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944          ac_unrecognized_sep=', ';;
945     esac
946     eval enable_$ac_useropt=\$ac_optarg ;;
947
948   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950   | --exec | --exe | --ex)
951     ac_prev=exec_prefix ;;
952   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954   | --exec=* | --exe=* | --ex=*)
955     exec_prefix=$ac_optarg ;;
956
957   -gas | --gas | --ga | --g)
958     # Obsolete; use --with-gas.
959     with_gas=yes ;;
960
961   -help | --help | --hel | --he | -h)
962     ac_init_help=long ;;
963   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964     ac_init_help=recursive ;;
965   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966     ac_init_help=short ;;
967
968   -host | --host | --hos | --ho)
969     ac_prev=host_alias ;;
970   -host=* | --host=* | --hos=* | --ho=*)
971     host_alias=$ac_optarg ;;
972
973   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974     ac_prev=htmldir ;;
975   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976   | --ht=*)
977     htmldir=$ac_optarg ;;
978
979   -includedir | --includedir | --includedi | --included | --include \
980   | --includ | --inclu | --incl | --inc)
981     ac_prev=includedir ;;
982   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983   | --includ=* | --inclu=* | --incl=* | --inc=*)
984     includedir=$ac_optarg ;;
985
986   -infodir | --infodir | --infodi | --infod | --info | --inf)
987     ac_prev=infodir ;;
988   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989     infodir=$ac_optarg ;;
990
991   -libdir | --libdir | --libdi | --libd)
992     ac_prev=libdir ;;
993   -libdir=* | --libdir=* | --libdi=* | --libd=*)
994     libdir=$ac_optarg ;;
995
996   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997   | --libexe | --libex | --libe)
998     ac_prev=libexecdir ;;
999   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000   | --libexe=* | --libex=* | --libe=*)
1001     libexecdir=$ac_optarg ;;
1002
1003   -localedir | --localedir | --localedi | --localed | --locale)
1004     ac_prev=localedir ;;
1005   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006     localedir=$ac_optarg ;;
1007
1008   -localstatedir | --localstatedir | --localstatedi | --localstated \
1009   | --localstate | --localstat | --localsta | --localst | --locals)
1010     ac_prev=localstatedir ;;
1011   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013     localstatedir=$ac_optarg ;;
1014
1015   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016     ac_prev=mandir ;;
1017   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018     mandir=$ac_optarg ;;
1019
1020   -nfp | --nfp | --nf)
1021     # Obsolete; use --without-fp.
1022     with_fp=no ;;
1023
1024   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025   | --no-cr | --no-c | -n)
1026     no_create=yes ;;
1027
1028   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030     no_recursion=yes ;;
1031
1032   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034   | --oldin | --oldi | --old | --ol | --o)
1035     ac_prev=oldincludedir ;;
1036   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039     oldincludedir=$ac_optarg ;;
1040
1041   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042     ac_prev=prefix ;;
1043   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044     prefix=$ac_optarg ;;
1045
1046   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047   | --program-pre | --program-pr | --program-p)
1048     ac_prev=program_prefix ;;
1049   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051     program_prefix=$ac_optarg ;;
1052
1053   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054   | --program-suf | --program-su | --program-s)
1055     ac_prev=program_suffix ;;
1056   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058     program_suffix=$ac_optarg ;;
1059
1060   -program-transform-name | --program-transform-name \
1061   | --program-transform-nam | --program-transform-na \
1062   | --program-transform-n | --program-transform- \
1063   | --program-transform | --program-transfor \
1064   | --program-transfo | --program-transf \
1065   | --program-trans | --program-tran \
1066   | --progr-tra | --program-tr | --program-t)
1067     ac_prev=program_transform_name ;;
1068   -program-transform-name=* | --program-transform-name=* \
1069   | --program-transform-nam=* | --program-transform-na=* \
1070   | --program-transform-n=* | --program-transform-=* \
1071   | --program-transform=* | --program-transfor=* \
1072   | --program-transfo=* | --program-transf=* \
1073   | --program-trans=* | --program-tran=* \
1074   | --progr-tra=* | --program-tr=* | --program-t=*)
1075     program_transform_name=$ac_optarg ;;
1076
1077   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078     ac_prev=pdfdir ;;
1079   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080     pdfdir=$ac_optarg ;;
1081
1082   -psdir | --psdir | --psdi | --psd | --ps)
1083     ac_prev=psdir ;;
1084   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085     psdir=$ac_optarg ;;
1086
1087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088   | -silent | --silent | --silen | --sile | --sil)
1089     silent=yes ;;
1090
1091   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092     ac_prev=sbindir ;;
1093   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094   | --sbi=* | --sb=*)
1095     sbindir=$ac_optarg ;;
1096
1097   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099   | --sharedst | --shareds | --shared | --share | --shar \
1100   | --sha | --sh)
1101     ac_prev=sharedstatedir ;;
1102   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105   | --sha=* | --sh=*)
1106     sharedstatedir=$ac_optarg ;;
1107
1108   -site | --site | --sit)
1109     ac_prev=site ;;
1110   -site=* | --site=* | --sit=*)
1111     site=$ac_optarg ;;
1112
1113   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114     ac_prev=srcdir ;;
1115   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116     srcdir=$ac_optarg ;;
1117
1118   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119   | --syscon | --sysco | --sysc | --sys | --sy)
1120     ac_prev=sysconfdir ;;
1121   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123     sysconfdir=$ac_optarg ;;
1124
1125   -target | --target | --targe | --targ | --tar | --ta | --t)
1126     ac_prev=target_alias ;;
1127   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128     target_alias=$ac_optarg ;;
1129
1130   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131     verbose=yes ;;
1132
1133   -version | --version | --versio | --versi | --vers | -V)
1134     ac_init_version=: ;;
1135
1136   -with-* | --with-*)
1137     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138     # Reject names that are not valid shell variable names.
1139     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140       as_fn_error $? "invalid package name: $ac_useropt"
1141     ac_useropt_orig=$ac_useropt
1142     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143     case $ac_user_opts in
1144       *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148          ac_unrecognized_sep=', ';;
1149     esac
1150     eval with_$ac_useropt=\$ac_optarg ;;
1151
1152   -without-* | --without-*)
1153     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156       as_fn_error $? "invalid package name: $ac_useropt"
1157     ac_useropt_orig=$ac_useropt
1158     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159     case $ac_user_opts in
1160       *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164          ac_unrecognized_sep=', ';;
1165     esac
1166     eval with_$ac_useropt=no ;;
1167
1168   --x)
1169     # Obsolete; use --with-x.
1170     with_x=yes ;;
1171
1172   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173   | --x-incl | --x-inc | --x-in | --x-i)
1174     ac_prev=x_includes ;;
1175   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177     x_includes=$ac_optarg ;;
1178
1179   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181     ac_prev=x_libraries ;;
1182   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184     x_libraries=$ac_optarg ;;
1185
1186   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187 Try \`$0 --help' for more information"
1188     ;;
1189
1190   *=*)
1191     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192     # Reject names that are not valid shell variable names.
1193     case $ac_envvar in #(
1194       '' | [0-9]* | *[!_$as_cr_alnum]* )
1195       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196     esac
1197     eval $ac_envvar=\$ac_optarg
1198     export $ac_envvar ;;
1199
1200   *)
1201     # FIXME: should be removed in autoconf 3.0.
1202     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1206     ;;
1207
1208   esac
1209 done
1210
1211 if test -n "$ac_prev"; then
1212   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213   as_fn_error $? "missing argument to $ac_option"
1214 fi
1215
1216 if test -n "$ac_unrecognized_opts"; then
1217   case $enable_option_checking in
1218     no) ;;
1219     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221   esac
1222 fi
1223
1224 # Check all directory arguments for consistency.
1225 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226                 datadir sysconfdir sharedstatedir localstatedir includedir \
1227                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228                 libdir localedir mandir
1229 do
1230   eval ac_val=\$$ac_var
1231   # Remove trailing slashes.
1232   case $ac_val in
1233     */ )
1234       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235       eval $ac_var=\$ac_val;;
1236   esac
1237   # Be sure to have absolute directory names.
1238   case $ac_val in
1239     [\\/$]* | ?:[\\/]* )  continue;;
1240     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241   esac
1242   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243 done
1244
1245 # There might be people who depend on the old broken behavior: `$host'
1246 # used to hold the argument of --host etc.
1247 # FIXME: To remove some day.
1248 build=$build_alias
1249 host=$host_alias
1250 target=$target_alias
1251
1252 # FIXME: To remove some day.
1253 if test "x$host_alias" != x; then
1254   if test "x$build_alias" = x; then
1255     cross_compiling=maybe
1256   elif test "x$build_alias" != "x$host_alias"; then
1257     cross_compiling=yes
1258   fi
1259 fi
1260
1261 ac_tool_prefix=
1262 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263
1264 test "$silent" = yes && exec 6>/dev/null
1265
1266
1267 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268 ac_ls_di=`ls -di .` &&
1269 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270   as_fn_error $? "working directory cannot be determined"
1271 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272   as_fn_error $? "pwd does not report name of working directory"
1273
1274
1275 # Find the source files, if location was not specified.
1276 if test -z "$srcdir"; then
1277   ac_srcdir_defaulted=yes
1278   # Try the directory containing this script, then the parent directory.
1279   ac_confdir=`$as_dirname -- "$as_myself" ||
1280 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281          X"$as_myself" : 'X\(//\)[^/]' \| \
1282          X"$as_myself" : 'X\(//\)$' \| \
1283          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284 $as_echo X"$as_myself" |
1285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286             s//\1/
1287             q
1288           }
1289           /^X\(\/\/\)[^/].*/{
1290             s//\1/
1291             q
1292           }
1293           /^X\(\/\/\)$/{
1294             s//\1/
1295             q
1296           }
1297           /^X\(\/\).*/{
1298             s//\1/
1299             q
1300           }
1301           s/.*/./; q'`
1302   srcdir=$ac_confdir
1303   if test ! -r "$srcdir/$ac_unique_file"; then
1304     srcdir=..
1305   fi
1306 else
1307   ac_srcdir_defaulted=no
1308 fi
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1311   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1312 fi
1313 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 ac_abs_confdir=`(
1315         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1316         pwd)`
1317 # When building in place, set srcdir=.
1318 if test "$ac_abs_confdir" = "$ac_pwd"; then
1319   srcdir=.
1320 fi
1321 # Remove unnecessary trailing slashes from srcdir.
1322 # Double slashes in file names in object file debugging info
1323 # mess up M-x gdb in Emacs.
1324 case $srcdir in
1325 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 esac
1327 for ac_var in $ac_precious_vars; do
1328   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329   eval ac_env_${ac_var}_value=\$${ac_var}
1330   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 done
1333
1334 #
1335 # Report the --help message.
1336 #
1337 if test "$ac_init_help" = "long"; then
1338   # Omit some internal or obsolete options to make the list less imposing.
1339   # This message is too long to be a string in the A/UX 3.1 sh.
1340   cat <<_ACEOF
1341 \`configure' configures weekeyboard 0.0.2 to adapt to many kinds of systems.
1342
1343 Usage: $0 [OPTION]... [VAR=VALUE]...
1344
1345 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346 VAR=VALUE.  See below for descriptions of some of the useful variables.
1347
1348 Defaults for the options are specified in brackets.
1349
1350 Configuration:
1351   -h, --help              display this help and exit
1352       --help=short        display options specific to this package
1353       --help=recursive    display the short help of all the included packages
1354   -V, --version           display version information and exit
1355   -q, --quiet, --silent   do not print \`checking ...' messages
1356       --cache-file=FILE   cache test results in FILE [disabled]
1357   -C, --config-cache      alias for \`--cache-file=config.cache'
1358   -n, --no-create         do not create output files
1359       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1360
1361 Installation directories:
1362   --prefix=PREFIX         install architecture-independent files in PREFIX
1363                           [$ac_default_prefix]
1364   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1365                           [PREFIX]
1366
1367 By default, \`make install' will install all the files in
1368 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1369 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370 for instance \`--prefix=\$HOME'.
1371
1372 For better control, use the options below.
1373
1374 Fine tuning of the installation directories:
1375   --bindir=DIR            user executables [EPREFIX/bin]
1376   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1377   --libexecdir=DIR        program executables [EPREFIX/libexec]
1378   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1379   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1380   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1381   --libdir=DIR            object code libraries [EPREFIX/lib]
1382   --includedir=DIR        C header files [PREFIX/include]
1383   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1384   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1385   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1386   --infodir=DIR           info documentation [DATAROOTDIR/info]
1387   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1388   --mandir=DIR            man documentation [DATAROOTDIR/man]
1389   --docdir=DIR            documentation root [DATAROOTDIR/doc/weekeyboard]
1390   --htmldir=DIR           html documentation [DOCDIR]
1391   --dvidir=DIR            dvi documentation [DOCDIR]
1392   --pdfdir=DIR            pdf documentation [DOCDIR]
1393   --psdir=DIR             ps documentation [DOCDIR]
1394 _ACEOF
1395
1396   cat <<\_ACEOF
1397
1398 Program names:
1399   --program-prefix=PREFIX            prepend PREFIX to installed program names
1400   --program-suffix=SUFFIX            append SUFFIX to installed program names
1401   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1402
1403 System types:
1404   --build=BUILD     configure for building on BUILD [guessed]
1405   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1406 _ACEOF
1407 fi
1408
1409 if test -n "$ac_init_help"; then
1410   case $ac_init_help in
1411      short | recursive ) echo "Configuration of weekeyboard 0.0.2:";;
1412    esac
1413   cat <<\_ACEOF
1414
1415 Optional Features:
1416   --disable-option-checking  ignore unrecognized --enable/--with options
1417   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1418   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1419   --enable-silent-rules   less verbose build output (undo: "make V=1")
1420   --disable-silent-rules  verbose build output (undo: "make V=0")
1421   --enable-dependency-tracking
1422                           do not reject slow dependency extractors
1423   --disable-dependency-tracking
1424                           speeds up one-time build
1425   --enable-static[=PKGS]  build static libraries [default=no]
1426   --enable-shared[=PKGS]  build shared libraries [default=yes]
1427   --enable-fast-install[=PKGS]
1428                           optimize for fast installation [default=yes]
1429   --disable-libtool-lock  avoid locking (might break parallel builds)
1430
1431 Optional Packages:
1432   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1433   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1434   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1435                           both]
1436   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1437   --with-sysroot=DIR Search for dependent libraries within DIR
1438                         (or the compiler's sysroot if not specified).
1439   --with-edje-cc=PATH     Path to edje_cc binary
1440
1441 Some influential environment variables:
1442   CC          C compiler command
1443   CFLAGS      C compiler flags
1444   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1445               nonstandard directory <lib dir>
1446   LIBS        libraries to pass to the linker, e.g. -l<library>
1447   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448               you have headers in a nonstandard directory <include dir>
1449   CPP         C preprocessor
1450   PKG_CONFIG  path to pkg-config utility
1451   PKG_CONFIG_PATH
1452               directories to add to pkg-config's search path
1453   PKG_CONFIG_LIBDIR
1454               path overriding pkg-config's built-in search path
1455   WAYLAND_CFLAGS
1456               C compiler flags for WAYLAND, overriding pkg-config
1457   WAYLAND_LIBS
1458               linker flags for WAYLAND, overriding pkg-config
1459   EFL_CFLAGS  C compiler flags for EFL, overriding pkg-config
1460   EFL_LIBS    linker flags for EFL, overriding pkg-config
1461   IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
1462   IBUS_LIBS   linker flags for IBUS, overriding pkg-config
1463   WAYLAND_SCANNER_CFLAGS
1464               C compiler flags for WAYLAND_SCANNER, overriding pkg-config
1465   WAYLAND_SCANNER_LIBS
1466               linker flags for WAYLAND_SCANNER, overriding pkg-config
1467
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to the package provider.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477   # If there are subdirs, report their specific --help.
1478   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479     test -d "$ac_dir" ||
1480       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481       continue
1482     ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488   # A ".." for each directory in $ac_dir_suffix.
1489   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490   case $ac_top_builddir_sub in
1491   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493   esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501   .)  # We are building in place.
1502     ac_srcdir=.
1503     ac_top_srcdir=$ac_top_builddir_sub
1504     ac_abs_top_srcdir=$ac_pwd ;;
1505   [\\/]* | ?:[\\/]* )  # Absolute name.
1506     ac_srcdir=$srcdir$ac_dir_suffix;
1507     ac_top_srcdir=$srcdir
1508     ac_abs_top_srcdir=$srcdir ;;
1509   *) # Relative name.
1510     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511     ac_top_srcdir=$ac_top_build_prefix$srcdir
1512     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516     cd "$ac_dir" || { ac_status=$?; continue; }
1517     # Check for guested configure.
1518     if test -f "$ac_srcdir/configure.gnu"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521     elif test -f "$ac_srcdir/configure"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure" --help=recursive
1524     else
1525       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526     fi || ac_status=$?
1527     cd "$ac_pwd" || { ac_status=$?; break; }
1528   done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533   cat <<\_ACEOF
1534 weekeyboard configure 0.0.2
1535 generated by GNU Autoconf 2.69
1536
1537 Copyright (C) 2012 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540 _ACEOF
1541   exit
1542 fi
1543
1544 ## ------------------------ ##
1545 ## Autoconf initialization. ##
1546 ## ------------------------ ##
1547
1548 # ac_fn_c_try_compile LINENO
1549 # --------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_compile ()
1552 {
1553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554   rm -f conftest.$ac_objext
1555   if { { ac_try="$ac_compile"
1556 case "(($ac_try" in
1557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558   *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562   (eval "$ac_compile") 2>conftest.err
1563   ac_status=$?
1564   if test -s conftest.err; then
1565     grep -v '^ *+' conftest.err >conftest.er1
1566     cat conftest.er1 >&5
1567     mv -f conftest.er1 conftest.err
1568   fi
1569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570   test $ac_status = 0; } && {
1571          test -z "$ac_c_werror_flag" ||
1572          test ! -s conftest.err
1573        } && test -s conftest.$ac_objext; then :
1574   ac_retval=0
1575 else
1576   $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1578
1579         ac_retval=1
1580 fi
1581   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582   as_fn_set_status $ac_retval
1583
1584 } # ac_fn_c_try_compile
1585
1586 # ac_fn_c_try_link LINENO
1587 # -----------------------
1588 # Try to link conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_link ()
1590 {
1591   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592   rm -f conftest.$ac_objext conftest$ac_exeext
1593   if { { ac_try="$ac_link"
1594 case "(($ac_try" in
1595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596   *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600   (eval "$ac_link") 2>conftest.err
1601   ac_status=$?
1602   if test -s conftest.err; then
1603     grep -v '^ *+' conftest.err >conftest.er1
1604     cat conftest.er1 >&5
1605     mv -f conftest.er1 conftest.err
1606   fi
1607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608   test $ac_status = 0; } && {
1609          test -z "$ac_c_werror_flag" ||
1610          test ! -s conftest.err
1611        } && test -s conftest$ac_exeext && {
1612          test "$cross_compiling" = yes ||
1613          test -x conftest$ac_exeext
1614        }; then :
1615   ac_retval=0
1616 else
1617   $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1619
1620         ac_retval=1
1621 fi
1622   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1623   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1624   # interfere with the next link command; also delete a directory that is
1625   # left behind by Apple's compiler.  We do this before executing the actions.
1626   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1627   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628   as_fn_set_status $ac_retval
1629
1630 } # ac_fn_c_try_link
1631
1632 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1633 # -------------------------------------------------------
1634 # Tests whether HEADER exists and can be compiled using the include files in
1635 # INCLUDES, setting the cache variable VAR accordingly.
1636 ac_fn_c_check_header_compile ()
1637 {
1638   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 $as_echo_n "checking for $2... " >&6; }
1641 if eval \${$3+:} false; then :
1642   $as_echo_n "(cached) " >&6
1643 else
1644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h.  */
1646 $4
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_compile "$LINENO"; then :
1650   eval "$3=yes"
1651 else
1652   eval "$3=no"
1653 fi
1654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655 fi
1656 eval ac_res=\$$3
1657                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 $as_echo "$ac_res" >&6; }
1659   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660
1661 } # ac_fn_c_check_header_compile
1662
1663 # ac_fn_c_try_cpp LINENO
1664 # ----------------------
1665 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_cpp ()
1667 {
1668   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669   if { { ac_try="$ac_cpp conftest.$ac_ext"
1670 case "(($ac_try" in
1671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672   *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1677   ac_status=$?
1678   if test -s conftest.err; then
1679     grep -v '^ *+' conftest.err >conftest.er1
1680     cat conftest.er1 >&5
1681     mv -f conftest.er1 conftest.err
1682   fi
1683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684   test $ac_status = 0; } > conftest.i && {
1685          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1686          test ! -s conftest.err
1687        }; then :
1688   ac_retval=0
1689 else
1690   $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693     ac_retval=1
1694 fi
1695   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696   as_fn_set_status $ac_retval
1697
1698 } # ac_fn_c_try_cpp
1699
1700 # ac_fn_c_try_run LINENO
1701 # ----------------------
1702 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1703 # that executables *can* be run.
1704 ac_fn_c_try_run ()
1705 {
1706   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707   if { { ac_try="$ac_link"
1708 case "(($ac_try" in
1709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710   *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714   (eval "$ac_link") 2>&5
1715   ac_status=$?
1716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1718   { { case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_try") 2>&5
1725   ac_status=$?
1726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727   test $ac_status = 0; }; }; then :
1728   ac_retval=0
1729 else
1730   $as_echo "$as_me: program exited with status $ac_status" >&5
1731        $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734        ac_retval=$ac_status
1735 fi
1736   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738   as_fn_set_status $ac_retval
1739
1740 } # ac_fn_c_try_run
1741
1742 # ac_fn_c_check_func LINENO FUNC VAR
1743 # ----------------------------------
1744 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1745 ac_fn_c_check_func ()
1746 {
1747   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if eval \${$3+:} false; then :
1751   $as_echo_n "(cached) " >&6
1752 else
1753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h.  */
1755 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1757 #define $2 innocuous_$2
1758
1759 /* System header to define __stub macros and hopefully few prototypes,
1760     which can conflict with char $2 (); below.
1761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1762     <limits.h> exists even on freestanding compilers.  */
1763
1764 #ifdef __STDC__
1765 # include <limits.h>
1766 #else
1767 # include <assert.h>
1768 #endif
1769
1770 #undef $2
1771
1772 /* Override any GCC internal prototype to avoid an error.
1773    Use char because int might match the return type of a GCC
1774    builtin and then its argument prototype would still apply.  */
1775 #ifdef __cplusplus
1776 extern "C"
1777 #endif
1778 char $2 ();
1779 /* The GNU C library defines this for functions which it implements
1780     to always fail with ENOSYS.  Some functions are actually named
1781     something starting with __ and the normal name is an alias.  */
1782 #if defined __stub_$2 || defined __stub___$2
1783 choke me
1784 #endif
1785
1786 int
1787 main ()
1788 {
1789 return $2 ();
1790   ;
1791   return 0;
1792 }
1793 _ACEOF
1794 if ac_fn_c_try_link "$LINENO"; then :
1795   eval "$3=yes"
1796 else
1797   eval "$3=no"
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext \
1800     conftest$ac_exeext conftest.$ac_ext
1801 fi
1802 eval ac_res=\$$3
1803                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807 } # ac_fn_c_check_func
1808 cat >config.log <<_ACEOF
1809 This file contains any messages produced by compilers while
1810 running configure, to aid debugging if configure makes a mistake.
1811
1812 It was created by weekeyboard $as_me 0.0.2, which was
1813 generated by GNU Autoconf 2.69.  Invocation command line was
1814
1815   $ $0 $@
1816
1817 _ACEOF
1818 exec 5>>config.log
1819 {
1820 cat <<_ASUNAME
1821 ## --------- ##
1822 ## Platform. ##
1823 ## --------- ##
1824
1825 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1826 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1827 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1828 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1829 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1830
1831 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1832 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1833
1834 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1835 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1836 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1837 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1838 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1839 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1840 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1841
1842 _ASUNAME
1843
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 for as_dir in $PATH
1846 do
1847   IFS=$as_save_IFS
1848   test -z "$as_dir" && as_dir=.
1849     $as_echo "PATH: $as_dir"
1850   done
1851 IFS=$as_save_IFS
1852
1853 } >&5
1854
1855 cat >&5 <<_ACEOF
1856
1857
1858 ## ----------- ##
1859 ## Core tests. ##
1860 ## ----------- ##
1861
1862 _ACEOF
1863
1864
1865 # Keep a trace of the command line.
1866 # Strip out --no-create and --no-recursion so they do not pile up.
1867 # Strip out --silent because we don't want to record it for future runs.
1868 # Also quote any args containing shell meta-characters.
1869 # Make two passes to allow for proper duplicate-argument suppression.
1870 ac_configure_args=
1871 ac_configure_args0=
1872 ac_configure_args1=
1873 ac_must_keep_next=false
1874 for ac_pass in 1 2
1875 do
1876   for ac_arg
1877   do
1878     case $ac_arg in
1879     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1880     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1881     | -silent | --silent | --silen | --sile | --sil)
1882       continue ;;
1883     *\'*)
1884       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1885     esac
1886     case $ac_pass in
1887     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1888     2)
1889       as_fn_append ac_configure_args1 " '$ac_arg'"
1890       if test $ac_must_keep_next = true; then
1891         ac_must_keep_next=false # Got value, back to normal.
1892       else
1893         case $ac_arg in
1894           *=* | --config-cache | -C | -disable-* | --disable-* \
1895           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1896           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1897           | -with-* | --with-* | -without-* | --without-* | --x)
1898             case "$ac_configure_args0 " in
1899               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1900             esac
1901             ;;
1902           -* ) ac_must_keep_next=true ;;
1903         esac
1904       fi
1905       as_fn_append ac_configure_args " '$ac_arg'"
1906       ;;
1907     esac
1908   done
1909 done
1910 { ac_configure_args0=; unset ac_configure_args0;}
1911 { ac_configure_args1=; unset ac_configure_args1;}
1912
1913 # When interrupted or exit'd, cleanup temporary files, and complete
1914 # config.log.  We remove comments because anyway the quotes in there
1915 # would cause problems or look ugly.
1916 # WARNING: Use '\'' to represent an apostrophe within the trap.
1917 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1918 trap 'exit_status=$?
1919   # Save into config.log some information that might help in debugging.
1920   {
1921     echo
1922
1923     $as_echo "## ---------------- ##
1924 ## Cache variables. ##
1925 ## ---------------- ##"
1926     echo
1927     # The following way of writing the cache mishandles newlines in values,
1928 (
1929   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1930     eval ac_val=\$$ac_var
1931     case $ac_val in #(
1932     *${as_nl}*)
1933       case $ac_var in #(
1934       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1935 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1936       esac
1937       case $ac_var in #(
1938       _ | IFS | as_nl) ;; #(
1939       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1940       *) { eval $ac_var=; unset $ac_var;} ;;
1941       esac ;;
1942     esac
1943   done
1944   (set) 2>&1 |
1945     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1946     *${as_nl}ac_space=\ *)
1947       sed -n \
1948         "s/'\''/'\''\\\\'\'''\''/g;
1949           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1950       ;; #(
1951     *)
1952       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1953       ;;
1954     esac |
1955     sort
1956 )
1957     echo
1958
1959     $as_echo "## ----------------- ##
1960 ## Output variables. ##
1961 ## ----------------- ##"
1962     echo
1963     for ac_var in $ac_subst_vars
1964     do
1965       eval ac_val=\$$ac_var
1966       case $ac_val in
1967       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1968       esac
1969       $as_echo "$ac_var='\''$ac_val'\''"
1970     done | sort
1971     echo
1972
1973     if test -n "$ac_subst_files"; then
1974       $as_echo "## ------------------- ##
1975 ## File substitutions. ##
1976 ## ------------------- ##"
1977       echo
1978       for ac_var in $ac_subst_files
1979       do
1980         eval ac_val=\$$ac_var
1981         case $ac_val in
1982         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1983         esac
1984         $as_echo "$ac_var='\''$ac_val'\''"
1985       done | sort
1986       echo
1987     fi
1988
1989     if test -s confdefs.h; then
1990       $as_echo "## ----------- ##
1991 ## confdefs.h. ##
1992 ## ----------- ##"
1993       echo
1994       cat confdefs.h
1995       echo
1996     fi
1997     test "$ac_signal" != 0 &&
1998       $as_echo "$as_me: caught signal $ac_signal"
1999     $as_echo "$as_me: exit $exit_status"
2000   } >&5
2001   rm -f core *.core core.conftest.* &&
2002     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2003     exit $exit_status
2004 ' 0
2005 for ac_signal in 1 2 13 15; do
2006   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2007 done
2008 ac_signal=0
2009
2010 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2011 rm -f -r conftest* confdefs.h
2012
2013 $as_echo "/* confdefs.h */" > confdefs.h
2014
2015 # Predefined preprocessor variables.
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_NAME "$PACKAGE_NAME"
2019 _ACEOF
2020
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2023 _ACEOF
2024
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2027 _ACEOF
2028
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_STRING "$PACKAGE_STRING"
2031 _ACEOF
2032
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2035 _ACEOF
2036
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_URL "$PACKAGE_URL"
2039 _ACEOF
2040
2041
2042 # Let the site file select an alternate cache file if it wants to.
2043 # Prefer an explicitly selected file to automatically selected ones.
2044 ac_site_file1=NONE
2045 ac_site_file2=NONE
2046 if test -n "$CONFIG_SITE"; then
2047   # We do not want a PATH search for config.site.
2048   case $CONFIG_SITE in #((
2049     -*)  ac_site_file1=./$CONFIG_SITE;;
2050     */*) ac_site_file1=$CONFIG_SITE;;
2051     *)   ac_site_file1=./$CONFIG_SITE;;
2052   esac
2053 elif test "x$prefix" != xNONE; then
2054   ac_site_file1=$prefix/share/config.site
2055   ac_site_file2=$prefix/etc/config.site
2056 else
2057   ac_site_file1=$ac_default_prefix/share/config.site
2058   ac_site_file2=$ac_default_prefix/etc/config.site
2059 fi
2060 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2061 do
2062   test "x$ac_site_file" = xNONE && continue
2063   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2064     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2065 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2066     sed 's/^/| /' "$ac_site_file" >&5
2067     . "$ac_site_file" \
2068       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2070 as_fn_error $? "failed to load site script $ac_site_file
2071 See \`config.log' for more details" "$LINENO" 5; }
2072   fi
2073 done
2074
2075 if test -r "$cache_file"; then
2076   # Some versions of bash will fail to source /dev/null (special files
2077   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2078   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2079     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2080 $as_echo "$as_me: loading cache $cache_file" >&6;}
2081     case $cache_file in
2082       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2083       *)                      . "./$cache_file";;
2084     esac
2085   fi
2086 else
2087   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2088 $as_echo "$as_me: creating cache $cache_file" >&6;}
2089   >$cache_file
2090 fi
2091
2092 # Check that the precious variables saved in the cache have kept the same
2093 # value.
2094 ac_cache_corrupted=false
2095 for ac_var in $ac_precious_vars; do
2096   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2097   eval ac_new_set=\$ac_env_${ac_var}_set
2098   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2099   eval ac_new_val=\$ac_env_${ac_var}_value
2100   case $ac_old_set,$ac_new_set in
2101     set,)
2102       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2103 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2104       ac_cache_corrupted=: ;;
2105     ,set)
2106       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2107 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2108       ac_cache_corrupted=: ;;
2109     ,);;
2110     *)
2111       if test "x$ac_old_val" != "x$ac_new_val"; then
2112         # differences in whitespace do not lead to failure.
2113         ac_old_val_w=`echo x $ac_old_val`
2114         ac_new_val_w=`echo x $ac_new_val`
2115         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2116           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2117 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2118           ac_cache_corrupted=:
2119         else
2120           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2121 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2122           eval $ac_var=\$ac_old_val
2123         fi
2124         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2125 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2126         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2127 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2128       fi;;
2129   esac
2130   # Pass precious variables to config.status.
2131   if test "$ac_new_set" = set; then
2132     case $ac_new_val in
2133     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2134     *) ac_arg=$ac_var=$ac_new_val ;;
2135     esac
2136     case " $ac_configure_args " in
2137       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2138       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2139     esac
2140   fi
2141 done
2142 if $ac_cache_corrupted; then
2143   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2145   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2146 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2147   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2148 fi
2149 ## -------------------- ##
2150 ## Main body of script. ##
2151 ## -------------------- ##
2152
2153 ac_ext=c
2154 ac_cpp='$CPP $CPPFLAGS'
2155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2158
2159
2160
2161 weekeyboard_MAJOR=0
2162
2163 weekeyboard_MINOR=0
2164
2165 weekeyboard_MICRO=2
2166
2167 weekeyboard_VERSION=0.0.2
2168
2169
2170 ac_config_headers="$ac_config_headers config.h"
2171
2172
2173 am__api_version='1.13'
2174
2175 ac_aux_dir=
2176 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2177   if test -f "$ac_dir/install-sh"; then
2178     ac_aux_dir=$ac_dir
2179     ac_install_sh="$ac_aux_dir/install-sh -c"
2180     break
2181   elif test -f "$ac_dir/install.sh"; then
2182     ac_aux_dir=$ac_dir
2183     ac_install_sh="$ac_aux_dir/install.sh -c"
2184     break
2185   elif test -f "$ac_dir/shtool"; then
2186     ac_aux_dir=$ac_dir
2187     ac_install_sh="$ac_aux_dir/shtool install -c"
2188     break
2189   fi
2190 done
2191 if test -z "$ac_aux_dir"; then
2192   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2193 fi
2194
2195 # These three variables are undocumented and unsupported,
2196 # and are intended to be withdrawn in a future Autoconf release.
2197 # They can cause serious problems if a builder's source tree is in a directory
2198 # whose full name contains unusual characters.
2199 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2200 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2201 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2202
2203
2204 # Find a good install program.  We prefer a C program (faster),
2205 # so one script is as good as another.  But avoid the broken or
2206 # incompatible versions:
2207 # SysV /etc/install, /usr/sbin/install
2208 # SunOS /usr/etc/install
2209 # IRIX /sbin/install
2210 # AIX /bin/install
2211 # AmigaOS /C/install, which installs bootblocks on floppy discs
2212 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2213 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2214 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2215 # OS/2's system install, which has a completely different semantic
2216 # ./install, which can be erroneously created by make from ./install.sh.
2217 # Reject install programs that cannot install multiple files.
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2219 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2220 if test -z "$INSTALL"; then
2221 if ${ac_cv_path_install+:} false; then :
2222   $as_echo_n "(cached) " >&6
2223 else
2224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227   IFS=$as_save_IFS
2228   test -z "$as_dir" && as_dir=.
2229     # Account for people who put trailing slashes in PATH elements.
2230 case $as_dir/ in #((
2231   ./ | .// | /[cC]/* | \
2232   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2233   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2234   /usr/ucb/* ) ;;
2235   *)
2236     # OSF1 and SCO ODT 3.0 have their own names for install.
2237     # Don't use installbsd from OSF since it installs stuff as root
2238     # by default.
2239     for ac_prog in ginstall scoinst install; do
2240       for ac_exec_ext in '' $ac_executable_extensions; do
2241         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2242           if test $ac_prog = install &&
2243             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2244             # AIX install.  It has an incompatible calling convention.
2245             :
2246           elif test $ac_prog = install &&
2247             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2248             # program-specific install script used by HP pwplus--don't use.
2249             :
2250           else
2251             rm -rf conftest.one conftest.two conftest.dir
2252             echo one > conftest.one
2253             echo two > conftest.two
2254             mkdir conftest.dir
2255             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2256               test -s conftest.one && test -s conftest.two &&
2257               test -s conftest.dir/conftest.one &&
2258               test -s conftest.dir/conftest.two
2259             then
2260               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2261               break 3
2262             fi
2263           fi
2264         fi
2265       done
2266     done
2267     ;;
2268 esac
2269
2270   done
2271 IFS=$as_save_IFS
2272
2273 rm -rf conftest.one conftest.two conftest.dir
2274
2275 fi
2276   if test "${ac_cv_path_install+set}" = set; then
2277     INSTALL=$ac_cv_path_install
2278   else
2279     # As a last resort, use the slow shell script.  Don't cache a
2280     # value for INSTALL within a source directory, because that will
2281     # break other packages using the cache if that directory is
2282     # removed, or if the value is a relative name.
2283     INSTALL=$ac_install_sh
2284   fi
2285 fi
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2287 $as_echo "$INSTALL" >&6; }
2288
2289 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2290 # It thinks the first close brace ends the variable substitution.
2291 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2292
2293 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2294
2295 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2296
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2298 $as_echo_n "checking whether build environment is sane... " >&6; }
2299 # Reject unsafe characters in $srcdir or the absolute working directory
2300 # name.  Accept space and tab only in the latter.
2301 am_lf='
2302 '
2303 case `pwd` in
2304   *[\\\"\#\$\&\'\`$am_lf]*)
2305     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2306 esac
2307 case $srcdir in
2308   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2309     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2310 esac
2311
2312 # Do 'set' in a subshell so we don't clobber the current shell's
2313 # arguments.  Must try -L first in case configure is actually a
2314 # symlink; some systems play weird games with the mod time of symlinks
2315 # (eg FreeBSD returns the mod time of the symlink's containing
2316 # directory).
2317 if (
2318    am_has_slept=no
2319    for am_try in 1 2; do
2320      echo "timestamp, slept: $am_has_slept" > conftest.file
2321      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2322      if test "$*" = "X"; then
2323         # -L didn't work.
2324         set X `ls -t "$srcdir/configure" conftest.file`
2325      fi
2326      if test "$*" != "X $srcdir/configure conftest.file" \
2327         && test "$*" != "X conftest.file $srcdir/configure"; then
2328
2329         # If neither matched, then we have a broken ls.  This can happen
2330         # if, for instance, CONFIG_SHELL is bash and it inherits a
2331         # broken ls alias from the environment.  This has actually
2332         # happened.  Such a system could not be considered "sane".
2333         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2334   alias in your environment" "$LINENO" 5
2335      fi
2336      if test "$2" = conftest.file || test $am_try -eq 2; then
2337        break
2338      fi
2339      # Just in case.
2340      sleep 1
2341      am_has_slept=yes
2342    done
2343    test "$2" = conftest.file
2344    )
2345 then
2346    # Ok.
2347    :
2348 else
2349    as_fn_error $? "newly created file is older than distributed files!
2350 Check your system clock" "$LINENO" 5
2351 fi
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2353 $as_echo "yes" >&6; }
2354 # If we didn't sleep, we still need to ensure time stamps of config.status and
2355 # generated files are strictly newer.
2356 am_sleep_pid=
2357 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2358   ( sleep 1 ) &
2359   am_sleep_pid=$!
2360 fi
2361
2362 rm -f conftest.file
2363
2364 test "$program_prefix" != NONE &&
2365   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2366 # Use a double $ so make ignores it.
2367 test "$program_suffix" != NONE &&
2368   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2369 # Double any \ or $.
2370 # By default was `s,x,x', remove it if useless.
2371 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2372 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2373
2374 # expand $ac_aux_dir to an absolute path
2375 am_aux_dir=`cd $ac_aux_dir && pwd`
2376
2377 if test x"${MISSING+set}" != xset; then
2378   case $am_aux_dir in
2379   *\ * | *\     *)
2380     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2381   *)
2382     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2383   esac
2384 fi
2385 # Use eval to expand $SHELL
2386 if eval "$MISSING --is-lightweight"; then
2387   am_missing_run="$MISSING "
2388 else
2389   am_missing_run=
2390   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2391 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2392 fi
2393
2394 if test x"${install_sh}" != xset; then
2395   case $am_aux_dir in
2396   *\ * | *\     *)
2397     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2398   *)
2399     install_sh="\${SHELL} $am_aux_dir/install-sh"
2400   esac
2401 fi
2402
2403 # Installed binaries are usually stripped using 'strip' when the user
2404 # run "make install-strip".  However 'strip' might not be the right
2405 # tool to use in cross-compilation environments, therefore Automake
2406 # will honor the 'STRIP' environment variable to overrule this program.
2407 if test "$cross_compiling" != no; then
2408   if test -n "$ac_tool_prefix"; then
2409   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2410 set dummy ${ac_tool_prefix}strip; ac_word=$2
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2412 $as_echo_n "checking for $ac_word... " >&6; }
2413 if ${ac_cv_prog_STRIP+:} false; then :
2414   $as_echo_n "(cached) " >&6
2415 else
2416   if test -n "$STRIP"; then
2417   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422   IFS=$as_save_IFS
2423   test -z "$as_dir" && as_dir=.
2424     for ac_exec_ext in '' $ac_executable_extensions; do
2425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2428     break 2
2429   fi
2430 done
2431   done
2432 IFS=$as_save_IFS
2433
2434 fi
2435 fi
2436 STRIP=$ac_cv_prog_STRIP
2437 if test -n "$STRIP"; then
2438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2439 $as_echo "$STRIP" >&6; }
2440 else
2441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2442 $as_echo "no" >&6; }
2443 fi
2444
2445
2446 fi
2447 if test -z "$ac_cv_prog_STRIP"; then
2448   ac_ct_STRIP=$STRIP
2449   # Extract the first word of "strip", so it can be a program name with args.
2450 set dummy strip; ac_word=$2
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452 $as_echo_n "checking for $ac_word... " >&6; }
2453 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2454   $as_echo_n "(cached) " >&6
2455 else
2456   if test -n "$ac_ct_STRIP"; then
2457   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462   IFS=$as_save_IFS
2463   test -z "$as_dir" && as_dir=.
2464     for ac_exec_ext in '' $ac_executable_extensions; do
2465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2466     ac_cv_prog_ac_ct_STRIP="strip"
2467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2468     break 2
2469   fi
2470 done
2471   done
2472 IFS=$as_save_IFS
2473
2474 fi
2475 fi
2476 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2477 if test -n "$ac_ct_STRIP"; then
2478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2479 $as_echo "$ac_ct_STRIP" >&6; }
2480 else
2481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2482 $as_echo "no" >&6; }
2483 fi
2484
2485   if test "x$ac_ct_STRIP" = x; then
2486     STRIP=":"
2487   else
2488     case $cross_compiling:$ac_tool_warned in
2489 yes:)
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2492 ac_tool_warned=yes ;;
2493 esac
2494     STRIP=$ac_ct_STRIP
2495   fi
2496 else
2497   STRIP="$ac_cv_prog_STRIP"
2498 fi
2499
2500 fi
2501 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2502
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2504 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2505 if test -z "$MKDIR_P"; then
2506   if ${ac_cv_path_mkdir+:} false; then :
2507   $as_echo_n "(cached) " >&6
2508 else
2509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2511 do
2512   IFS=$as_save_IFS
2513   test -z "$as_dir" && as_dir=.
2514     for ac_prog in mkdir gmkdir; do
2515          for ac_exec_ext in '' $ac_executable_extensions; do
2516            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2517            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2518              'mkdir (GNU coreutils) '* | \
2519              'mkdir (coreutils) '* | \
2520              'mkdir (fileutils) '4.1*)
2521                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2522                break 3;;
2523            esac
2524          done
2525        done
2526   done
2527 IFS=$as_save_IFS
2528
2529 fi
2530
2531   test -d ./--version && rmdir ./--version
2532   if test "${ac_cv_path_mkdir+set}" = set; then
2533     MKDIR_P="$ac_cv_path_mkdir -p"
2534   else
2535     # As a last resort, use the slow shell script.  Don't cache a
2536     # value for MKDIR_P within a source directory, because that will
2537     # break other packages using the cache if that directory is
2538     # removed, or if the value is a relative name.
2539     MKDIR_P="$ac_install_sh -d"
2540   fi
2541 fi
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2543 $as_echo "$MKDIR_P" >&6; }
2544
2545 for ac_prog in gawk mawk nawk awk
2546 do
2547   # Extract the first word of "$ac_prog", so it can be a program name with args.
2548 set dummy $ac_prog; ac_word=$2
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550 $as_echo_n "checking for $ac_word... " >&6; }
2551 if ${ac_cv_prog_AWK+:} false; then :
2552   $as_echo_n "(cached) " >&6
2553 else
2554   if test -n "$AWK"; then
2555   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2556 else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2559 do
2560   IFS=$as_save_IFS
2561   test -z "$as_dir" && as_dir=.
2562     for ac_exec_ext in '' $ac_executable_extensions; do
2563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2564     ac_cv_prog_AWK="$ac_prog"
2565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566     break 2
2567   fi
2568 done
2569   done
2570 IFS=$as_save_IFS
2571
2572 fi
2573 fi
2574 AWK=$ac_cv_prog_AWK
2575 if test -n "$AWK"; then
2576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2577 $as_echo "$AWK" >&6; }
2578 else
2579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580 $as_echo "no" >&6; }
2581 fi
2582
2583
2584   test -n "$AWK" && break
2585 done
2586
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2588 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2589 set x ${MAKE-make}
2590 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2591 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2592   $as_echo_n "(cached) " >&6
2593 else
2594   cat >conftest.make <<\_ACEOF
2595 SHELL = /bin/sh
2596 all:
2597         @echo '@@@%%%=$(MAKE)=@@@%%%'
2598 _ACEOF
2599 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2600 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2601   *@@@%%%=?*=@@@%%%*)
2602     eval ac_cv_prog_make_${ac_make}_set=yes;;
2603   *)
2604     eval ac_cv_prog_make_${ac_make}_set=no;;
2605 esac
2606 rm -f conftest.make
2607 fi
2608 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2610 $as_echo "yes" >&6; }
2611   SET_MAKE=
2612 else
2613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614 $as_echo "no" >&6; }
2615   SET_MAKE="MAKE=${MAKE-make}"
2616 fi
2617
2618 rm -rf .tst 2>/dev/null
2619 mkdir .tst 2>/dev/null
2620 if test -d .tst; then
2621   am__leading_dot=.
2622 else
2623   am__leading_dot=_
2624 fi
2625 rmdir .tst 2>/dev/null
2626
2627 # Check whether --enable-silent-rules was given.
2628 if test "${enable_silent_rules+set}" = set; then :
2629   enableval=$enable_silent_rules;
2630 fi
2631
2632 case $enable_silent_rules in # (((
2633   yes) AM_DEFAULT_VERBOSITY=0;;
2634    no) AM_DEFAULT_VERBOSITY=1;;
2635     *) AM_DEFAULT_VERBOSITY=1;;
2636 esac
2637 am_make=${MAKE-make}
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2639 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2640 if ${am_cv_make_support_nested_variables+:} false; then :
2641   $as_echo_n "(cached) " >&6
2642 else
2643   if $as_echo 'TRUE=$(BAR$(V))
2644 BAR0=false
2645 BAR1=true
2646 V=1
2647 am__doit:
2648         @$(TRUE)
2649 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2650   am_cv_make_support_nested_variables=yes
2651 else
2652   am_cv_make_support_nested_variables=no
2653 fi
2654 fi
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2656 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2657 if test $am_cv_make_support_nested_variables = yes; then
2658     AM_V='$(V)'
2659   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2660 else
2661   AM_V=$AM_DEFAULT_VERBOSITY
2662   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2663 fi
2664 AM_BACKSLASH='\'
2665
2666 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2667   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2668   # is not polluted with repeated "-I."
2669   am__isrc=' -I$(srcdir)'
2670   # test to see if srcdir already configured
2671   if test -f $srcdir/config.status; then
2672     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2673   fi
2674 fi
2675
2676 # test whether we have cygpath
2677 if test -z "$CYGPATH_W"; then
2678   if (cygpath --version) >/dev/null 2>/dev/null; then
2679     CYGPATH_W='cygpath -w'
2680   else
2681     CYGPATH_W=echo
2682   fi
2683 fi
2684
2685
2686 # Define the identity of the package.
2687  PACKAGE='weekeyboard'
2688  VERSION='0.0.2'
2689
2690
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE "$PACKAGE"
2693 _ACEOF
2694
2695
2696 cat >>confdefs.h <<_ACEOF
2697 #define VERSION "$VERSION"
2698 _ACEOF
2699
2700 # Some tools Automake needs.
2701
2702 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2703
2704
2705 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2706
2707
2708 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2709
2710
2711 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2712
2713
2714 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2715
2716 # For better backward compatibility.  To be removed once Automake 1.9.x
2717 # dies out for good.  For more background, see:
2718 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2719 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2720 mkdir_p='$(MKDIR_P)'
2721
2722 # We need awk for the "check" target.  The system "awk" is bad on
2723 # some platforms.
2724 # Always define AMTAR for backward compatibility.  Yes, it's still used
2725 # in the wild :-(  We should find a proper way to deprecate it ...
2726 AMTAR='$${TAR-tar}'
2727
2728
2729 # We'll loop over all known methods to create a tar archive until one works.
2730 _am_tools='gnutar  pax cpio none'
2731
2732 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2733
2734
2735
2736
2737
2738
2739
2740 # Check whether --enable-silent-rules was given.
2741 if test "${enable_silent_rules+set}" = set; then :
2742   enableval=$enable_silent_rules;
2743 fi
2744
2745 case $enable_silent_rules in # (((
2746   yes) AM_DEFAULT_VERBOSITY=0;;
2747    no) AM_DEFAULT_VERBOSITY=1;;
2748     *) AM_DEFAULT_VERBOSITY=0;;
2749 esac
2750 am_make=${MAKE-make}
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2752 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2753 if ${am_cv_make_support_nested_variables+:} false; then :
2754   $as_echo_n "(cached) " >&6
2755 else
2756   if $as_echo 'TRUE=$(BAR$(V))
2757 BAR0=false
2758 BAR1=true
2759 V=1
2760 am__doit:
2761         @$(TRUE)
2762 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2763   am_cv_make_support_nested_variables=yes
2764 else
2765   am_cv_make_support_nested_variables=no
2766 fi
2767 fi
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2769 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2770 if test $am_cv_make_support_nested_variables = yes; then
2771     AM_V='$(V)'
2772   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2773 else
2774   AM_V=$AM_DEFAULT_VERBOSITY
2775   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2776 fi
2777 AM_BACKSLASH='\'
2778
2779
2780 # Check for programs
2781 ac_ext=c
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786 if test -n "$ac_tool_prefix"; then
2787   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2788 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_CC+:} false; then :
2792   $as_echo_n "(cached) " >&6
2793 else
2794   if test -n "$CC"; then
2795   ac_cv_prog_CC="$CC" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800   IFS=$as_save_IFS
2801   test -z "$as_dir" && as_dir=.
2802     for ac_exec_ext in '' $ac_executable_extensions; do
2803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806     break 2
2807   fi
2808 done
2809   done
2810 IFS=$as_save_IFS
2811
2812 fi
2813 fi
2814 CC=$ac_cv_prog_CC
2815 if test -n "$CC"; then
2816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2817 $as_echo "$CC" >&6; }
2818 else
2819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2821 fi
2822
2823
2824 fi
2825 if test -z "$ac_cv_prog_CC"; then
2826   ac_ct_CC=$CC
2827   # Extract the first word of "gcc", so it can be a program name with args.
2828 set dummy gcc; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2832   $as_echo_n "(cached) " >&6
2833 else
2834   if test -n "$ac_ct_CC"; then
2835   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840   IFS=$as_save_IFS
2841   test -z "$as_dir" && as_dir=.
2842     for ac_exec_ext in '' $ac_executable_extensions; do
2843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844     ac_cv_prog_ac_ct_CC="gcc"
2845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846     break 2
2847   fi
2848 done
2849   done
2850 IFS=$as_save_IFS
2851
2852 fi
2853 fi
2854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2855 if test -n "$ac_ct_CC"; then
2856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2857 $as_echo "$ac_ct_CC" >&6; }
2858 else
2859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2861 fi
2862
2863   if test "x$ac_ct_CC" = x; then
2864     CC=""
2865   else
2866     case $cross_compiling:$ac_tool_warned in
2867 yes:)
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2870 ac_tool_warned=yes ;;
2871 esac
2872     CC=$ac_ct_CC
2873   fi
2874 else
2875   CC="$ac_cv_prog_CC"
2876 fi
2877
2878 if test -z "$CC"; then
2879           if test -n "$ac_tool_prefix"; then
2880     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}cc; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if ${ac_cv_prog_CC+:} false; then :
2885   $as_echo_n "(cached) " >&6
2886 else
2887   if test -n "$CC"; then
2888   ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895     for ac_exec_ext in '' $ac_executable_extensions; do
2896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897     ac_cv_prog_CC="${ac_tool_prefix}cc"
2898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899     break 2
2900   fi
2901 done
2902   done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2911 else
2912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914 fi
2915
2916
2917   fi
2918 fi
2919 if test -z "$CC"; then
2920   # Extract the first word of "cc", so it can be a program name with args.
2921 set dummy cc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_CC+:} false; then :
2925   $as_echo_n "(cached) " >&6
2926 else
2927   if test -n "$CC"; then
2928   ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930   ac_prog_rejected=no
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934   IFS=$as_save_IFS
2935   test -z "$as_dir" && as_dir=.
2936     for ac_exec_ext in '' $ac_executable_extensions; do
2937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2939        ac_prog_rejected=yes
2940        continue
2941      fi
2942     ac_cv_prog_CC="cc"
2943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944     break 2
2945   fi
2946 done
2947   done
2948 IFS=$as_save_IFS
2949
2950 if test $ac_prog_rejected = yes; then
2951   # We found a bogon in the path, so make sure we never use it.
2952   set dummy $ac_cv_prog_CC
2953   shift
2954   if test $# != 0; then
2955     # We chose a different compiler from the bogus one.
2956     # However, it has the same basename, so the bogon will be chosen
2957     # first if we set CC to just the basename; use the full file name.
2958     shift
2959     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2960   fi
2961 fi
2962 fi
2963 fi
2964 CC=$ac_cv_prog_CC
2965 if test -n "$CC"; then
2966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 $as_echo "$CC" >&6; }
2968 else
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 fi
2972
2973
2974 fi
2975 if test -z "$CC"; then
2976   if test -n "$ac_tool_prefix"; then
2977   for ac_prog in cl.exe
2978   do
2979     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_CC+:} false; then :
2984   $as_echo_n "(cached) " >&6
2985 else
2986   if test -n "$CC"; then
2987   ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992   IFS=$as_save_IFS
2993   test -z "$as_dir" && as_dir=.
2994     for ac_exec_ext in '' $ac_executable_extensions; do
2995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998     break 2
2999   fi
3000 done
3001   done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 CC=$ac_cv_prog_CC
3007 if test -n "$CC"; then
3008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009 $as_echo "$CC" >&6; }
3010 else
3011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 fi
3014
3015
3016     test -n "$CC" && break
3017   done
3018 fi
3019 if test -z "$CC"; then
3020   ac_ct_CC=$CC
3021   for ac_prog in cl.exe
3022 do
3023   # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy $ac_prog; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3028   $as_echo_n "(cached) " >&6
3029 else
3030   if test -n "$ac_ct_CC"; then
3031   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036   IFS=$as_save_IFS
3037   test -z "$as_dir" && as_dir=.
3038     for ac_exec_ext in '' $ac_executable_extensions; do
3039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040     ac_cv_prog_ac_ct_CC="$ac_prog"
3041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042     break 2
3043   fi
3044 done
3045   done
3046 IFS=$as_save_IFS
3047
3048 fi
3049 fi
3050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3051 if test -n "$ac_ct_CC"; then
3052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3053 $as_echo "$ac_ct_CC" >&6; }
3054 else
3055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3057 fi
3058
3059
3060   test -n "$ac_ct_CC" && break
3061 done
3062
3063   if test "x$ac_ct_CC" = x; then
3064     CC=""
3065   else
3066     case $cross_compiling:$ac_tool_warned in
3067 yes:)
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3070 ac_tool_warned=yes ;;
3071 esac
3072     CC=$ac_ct_CC
3073   fi
3074 fi
3075
3076 fi
3077
3078
3079 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error $? "no acceptable C compiler found in \$PATH
3082 See \`config.log' for more details" "$LINENO" 5; }
3083
3084 # Provide some information about the compiler.
3085 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3086 set X $ac_compile
3087 ac_compiler=$2
3088 for ac_option in --version -v -V -qversion; do
3089   { { ac_try="$ac_compiler $ac_option >&5"
3090 case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 $as_echo "$ac_try_echo"; } >&5
3096   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3097   ac_status=$?
3098   if test -s conftest.err; then
3099     sed '10a\
3100 ... rest of stderr output deleted ...
3101          10q' conftest.err >conftest.er1
3102     cat conftest.er1 >&5
3103   fi
3104   rm -f conftest.er1 conftest.err
3105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106   test $ac_status = 0; }
3107 done
3108
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h.  */
3111
3112 int
3113 main ()
3114 {
3115
3116   ;
3117   return 0;
3118 }
3119 _ACEOF
3120 ac_clean_files_save=$ac_clean_files
3121 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3122 # Try to create an executable without -o first, disregard a.out.
3123 # It will help us diagnose broken compilers, and finding out an intuition
3124 # of exeext.
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3126 $as_echo_n "checking whether the C compiler works... " >&6; }
3127 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3128
3129 # The possible output files:
3130 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3131
3132 ac_rmfiles=
3133 for ac_file in $ac_files
3134 do
3135   case $ac_file in
3136     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3138   esac
3139 done
3140 rm -f $ac_rmfiles
3141
3142 if { { ac_try="$ac_link_default"
3143 case "(($ac_try" in
3144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145   *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149   (eval "$ac_link_default") 2>&5
3150   ac_status=$?
3151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152   test $ac_status = 0; }; then :
3153   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3155 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3156 # so that the user can short-circuit this test for compilers unknown to
3157 # Autoconf.
3158 for ac_file in $ac_files ''
3159 do
3160   test -f "$ac_file" || continue
3161   case $ac_file in
3162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3163         ;;
3164     [ab].out )
3165         # We found the default executable, but exeext='' is most
3166         # certainly right.
3167         break;;
3168     *.* )
3169         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3170         then :; else
3171            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3172         fi
3173         # We set ac_cv_exeext here because the later test for it is not
3174         # safe: cross compilers may not add the suffix if given an `-o'
3175         # argument, so we may need to know it at that point already.
3176         # Even if this section looks crufty: it has the advantage of
3177         # actually working.
3178         break;;
3179     * )
3180         break;;
3181   esac
3182 done
3183 test "$ac_cv_exeext" = no && ac_cv_exeext=
3184
3185 else
3186   ac_file=''
3187 fi
3188 if test -z "$ac_file"; then :
3189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 $as_echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error 77 "C compiler cannot create executables
3197 See \`config.log' for more details" "$LINENO" 5; }
3198 else
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3201 fi
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3203 $as_echo_n "checking for C compiler default output file name... " >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3205 $as_echo "$ac_file" >&6; }
3206 ac_exeext=$ac_cv_exeext
3207
3208 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3209 ac_clean_files=$ac_clean_files_save
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3211 $as_echo_n "checking for suffix of executables... " >&6; }
3212 if { { ac_try="$ac_link"
3213 case "(($ac_try" in
3214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215   *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219   (eval "$ac_link") 2>&5
3220   ac_status=$?
3221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222   test $ac_status = 0; }; then :
3223   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3225 # work properly (i.e., refer to `conftest.exe'), while it won't with
3226 # `rm'.
3227 for ac_file in conftest.exe conftest conftest.*; do
3228   test -f "$ac_file" || continue
3229   case $ac_file in
3230     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232           break;;
3233     * ) break;;
3234   esac
3235 done
3236 else
3237   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3240 See \`config.log' for more details" "$LINENO" 5; }
3241 fi
3242 rm -f conftest conftest$ac_cv_exeext
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3244 $as_echo "$ac_cv_exeext" >&6; }
3245
3246 rm -f conftest.$ac_ext
3247 EXEEXT=$ac_cv_exeext
3248 ac_exeext=$EXEEXT
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h.  */
3251 #include <stdio.h>
3252 int
3253 main ()
3254 {
3255 FILE *f = fopen ("conftest.out", "w");
3256  return ferror (f) || fclose (f) != 0;
3257
3258   ;
3259   return 0;
3260 }
3261 _ACEOF
3262 ac_clean_files="$ac_clean_files conftest.out"
3263 # Check that the compiler produces executables we can run.  If not, either
3264 # the compiler is broken, or we cross compile.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3266 $as_echo_n "checking whether we are cross compiling... " >&6; }
3267 if test "$cross_compiling" != yes; then
3268   { { ac_try="$ac_link"
3269 case "(($ac_try" in
3270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271   *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274 $as_echo "$ac_try_echo"; } >&5
3275   (eval "$ac_link") 2>&5
3276   ac_status=$?
3277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278   test $ac_status = 0; }
3279   if { ac_try='./conftest$ac_cv_exeext'
3280   { { case "(($ac_try" in
3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282   *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 $as_echo "$ac_try_echo"; } >&5
3286   (eval "$ac_try") 2>&5
3287   ac_status=$?
3288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289   test $ac_status = 0; }; }; then
3290     cross_compiling=no
3291   else
3292     if test "$cross_compiling" = maybe; then
3293         cross_compiling=yes
3294     else
3295         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error $? "cannot run C compiled programs.
3298 If you meant to cross compile, use \`--host'.
3299 See \`config.log' for more details" "$LINENO" 5; }
3300     fi
3301   fi
3302 fi
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3304 $as_echo "$cross_compiling" >&6; }
3305
3306 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3307 ac_clean_files=$ac_clean_files_save
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3309 $as_echo_n "checking for suffix of object files... " >&6; }
3310 if ${ac_cv_objext+:} false; then :
3311   $as_echo_n "(cached) " >&6
3312 else
3313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h.  */
3315
3316 int
3317 main ()
3318 {
3319
3320   ;
3321   return 0;
3322 }
3323 _ACEOF
3324 rm -f conftest.o conftest.obj
3325 if { { ac_try="$ac_compile"
3326 case "(($ac_try" in
3327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328   *) ac_try_echo=$ac_try;;
3329 esac
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332   (eval "$ac_compile") 2>&5
3333   ac_status=$?
3334   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335   test $ac_status = 0; }; then :
3336   for ac_file in conftest.o conftest.obj conftest.*; do
3337   test -f "$ac_file" || continue;
3338   case $ac_file in
3339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3340     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3341        break;;
3342   esac
3343 done
3344 else
3345   $as_echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3347
3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 as_fn_error $? "cannot compute suffix of object files: cannot compile
3351 See \`config.log' for more details" "$LINENO" 5; }
3352 fi
3353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3354 fi
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3356 $as_echo "$ac_cv_objext" >&6; }
3357 OBJEXT=$ac_cv_objext
3358 ac_objext=$OBJEXT
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3360 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3361 if ${ac_cv_c_compiler_gnu+:} false; then :
3362   $as_echo_n "(cached) " >&6
3363 else
3364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h.  */
3366
3367 int
3368 main ()
3369 {
3370 #ifndef __GNUC__
3371        choke me
3372 #endif
3373
3374   ;
3375   return 0;
3376 }
3377 _ACEOF
3378 if ac_fn_c_try_compile "$LINENO"; then :
3379   ac_compiler_gnu=yes
3380 else
3381   ac_compiler_gnu=no
3382 fi
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3385
3386 fi
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3388 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3389 if test $ac_compiler_gnu = yes; then
3390   GCC=yes
3391 else
3392   GCC=
3393 fi
3394 ac_test_CFLAGS=${CFLAGS+set}
3395 ac_save_CFLAGS=$CFLAGS
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3397 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3398 if ${ac_cv_prog_cc_g+:} false; then :
3399   $as_echo_n "(cached) " >&6
3400 else
3401   ac_save_c_werror_flag=$ac_c_werror_flag
3402    ac_c_werror_flag=yes
3403    ac_cv_prog_cc_g=no
3404    CFLAGS="-g"
3405    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h.  */
3407
3408 int
3409 main ()
3410 {
3411
3412   ;
3413   return 0;
3414 }
3415 _ACEOF
3416 if ac_fn_c_try_compile "$LINENO"; then :
3417   ac_cv_prog_cc_g=yes
3418 else
3419   CFLAGS=""
3420       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h.  */
3422
3423 int
3424 main ()
3425 {
3426
3427   ;
3428   return 0;
3429 }
3430 _ACEOF
3431 if ac_fn_c_try_compile "$LINENO"; then :
3432
3433 else
3434   ac_c_werror_flag=$ac_save_c_werror_flag
3435          CFLAGS="-g"
3436          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h.  */
3438
3439 int
3440 main ()
3441 {
3442
3443   ;
3444   return 0;
3445 }
3446 _ACEOF
3447 if ac_fn_c_try_compile "$LINENO"; then :
3448   ac_cv_prog_cc_g=yes
3449 fi
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 fi
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 fi
3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455    ac_c_werror_flag=$ac_save_c_werror_flag
3456 fi
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3458 $as_echo "$ac_cv_prog_cc_g" >&6; }
3459 if test "$ac_test_CFLAGS" = set; then
3460   CFLAGS=$ac_save_CFLAGS
3461 elif test $ac_cv_prog_cc_g = yes; then
3462   if test "$GCC" = yes; then
3463     CFLAGS="-g -O2"
3464   else
3465     CFLAGS="-g"
3466   fi
3467 else
3468   if test "$GCC" = yes; then
3469     CFLAGS="-O2"
3470   else
3471     CFLAGS=
3472   fi
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3475 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3476 if ${ac_cv_prog_cc_c89+:} false; then :
3477   $as_echo_n "(cached) " >&6
3478 else
3479   ac_cv_prog_cc_c89=no
3480 ac_save_CC=$CC
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h.  */
3483 #include <stdarg.h>
3484 #include <stdio.h>
3485 struct stat;
3486 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3487 struct buf { int x; };
3488 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3489 static char *e (p, i)
3490      char **p;
3491      int i;
3492 {
3493   return p[i];
3494 }
3495 static char *f (char * (*g) (char **, int), char **p, ...)
3496 {
3497   char *s;
3498   va_list v;
3499   va_start (v,p);
3500   s = g (p, va_arg (v,int));
3501   va_end (v);
3502   return s;
3503 }
3504
3505 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3506    function prototypes and stuff, but not '\xHH' hex character constants.
3507    These don't provoke an error unfortunately, instead are silently treated
3508    as 'x'.  The following induces an error, until -std is added to get
3509    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3510    array size at least.  It's necessary to write '\x00'==0 to get something
3511    that's true only with -std.  */
3512 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3513
3514 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3515    inside strings and character constants.  */
3516 #define FOO(x) 'x'
3517 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3518
3519 int test (int i, double x);
3520 struct s1 {int (*f) (int a);};
3521 struct s2 {int (*f) (double a);};
3522 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3523 int argc;
3524 char **argv;
3525 int
3526 main ()
3527 {
3528 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3529   ;
3530   return 0;
3531 }
3532 _ACEOF
3533 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3534         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3535 do
3536   CC="$ac_save_CC $ac_arg"
3537   if ac_fn_c_try_compile "$LINENO"; then :
3538   ac_cv_prog_cc_c89=$ac_arg
3539 fi
3540 rm -f core conftest.err conftest.$ac_objext
3541   test "x$ac_cv_prog_cc_c89" != "xno" && break
3542 done
3543 rm -f conftest.$ac_ext
3544 CC=$ac_save_CC
3545
3546 fi
3547 # AC_CACHE_VAL
3548 case "x$ac_cv_prog_cc_c89" in
3549   x)
3550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3551 $as_echo "none needed" >&6; } ;;
3552   xno)
3553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3554 $as_echo "unsupported" >&6; } ;;
3555   *)
3556     CC="$CC $ac_cv_prog_cc_c89"
3557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3558 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3559 esac
3560 if test "x$ac_cv_prog_cc_c89" != xno; then :
3561
3562 fi
3563
3564 ac_ext=c
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569 DEPDIR="${am__leading_dot}deps"
3570
3571 ac_config_commands="$ac_config_commands depfiles"
3572
3573
3574 am_make=${MAKE-make}
3575 cat > confinc << 'END'
3576 am__doit:
3577         @echo this is the am__doit target
3578 .PHONY: am__doit
3579 END
3580 # If we don't find an include directive, just comment out the code.
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3582 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3583 am__include="#"
3584 am__quote=
3585 _am_result=none
3586 # First try GNU make style include.
3587 echo "include confinc" > confmf
3588 # Ignore all kinds of additional output from 'make'.
3589 case `$am_make -s -f confmf 2> /dev/null` in #(
3590 *the\ am__doit\ target*)
3591   am__include=include
3592   am__quote=
3593   _am_result=GNU
3594   ;;
3595 esac
3596 # Now try BSD make style include.
3597 if test "$am__include" = "#"; then
3598    echo '.include "confinc"' > confmf
3599    case `$am_make -s -f confmf 2> /dev/null` in #(
3600    *the\ am__doit\ target*)
3601      am__include=.include
3602      am__quote="\""
3603      _am_result=BSD
3604      ;;
3605    esac
3606 fi
3607
3608
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3610 $as_echo "$_am_result" >&6; }
3611 rm -f confinc confmf
3612
3613 # Check whether --enable-dependency-tracking was given.
3614 if test "${enable_dependency_tracking+set}" = set; then :
3615   enableval=$enable_dependency_tracking;
3616 fi
3617
3618 if test "x$enable_dependency_tracking" != xno; then
3619   am_depcomp="$ac_aux_dir/depcomp"
3620   AMDEPBACKSLASH='\'
3621   am__nodep='_no'
3622 fi
3623  if test "x$enable_dependency_tracking" != xno; then
3624   AMDEP_TRUE=
3625   AMDEP_FALSE='#'
3626 else
3627   AMDEP_TRUE='#'
3628   AMDEP_FALSE=
3629 fi
3630
3631
3632
3633 depcc="$CC"   am_compiler_list=
3634
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3636 $as_echo_n "checking dependency style of $depcc... " >&6; }
3637 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3638   $as_echo_n "(cached) " >&6
3639 else
3640   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3641   # We make a subdir and do the tests there.  Otherwise we can end up
3642   # making bogus files that we don't know about and never remove.  For
3643   # instance it was reported that on HP-UX the gcc test will end up
3644   # making a dummy file named 'D' -- because '-MD' means "put the output
3645   # in D".
3646   rm -rf conftest.dir
3647   mkdir conftest.dir
3648   # Copy depcomp to subdir because otherwise we won't find it if we're
3649   # using a relative directory.
3650   cp "$am_depcomp" conftest.dir
3651   cd conftest.dir
3652   # We will build objects and dependencies in a subdirectory because
3653   # it helps to detect inapplicable dependency modes.  For instance
3654   # both Tru64's cc and ICC support -MD to output dependencies as a
3655   # side effect of compilation, but ICC will put the dependencies in
3656   # the current directory while Tru64 will put them in the object
3657   # directory.
3658   mkdir sub
3659
3660   am_cv_CC_dependencies_compiler_type=none
3661   if test "$am_compiler_list" = ""; then
3662      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3663   fi
3664   am__universal=false
3665   case " $depcc " in #(
3666      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3667      esac
3668
3669   for depmode in $am_compiler_list; do
3670     # Setup a source with many dependencies, because some compilers
3671     # like to wrap large dependency lists on column 80 (with \), and
3672     # we should not choose a depcomp mode which is confused by this.
3673     #
3674     # We need to recreate these files for each test, as the compiler may
3675     # overwrite some of them when testing with obscure command lines.
3676     # This happens at least with the AIX C compiler.
3677     : > sub/conftest.c
3678     for i in 1 2 3 4 5 6; do
3679       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3680       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3681       # Solaris 10 /bin/sh.
3682       echo '/* dummy */' > sub/conftst$i.h
3683     done
3684     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3685
3686     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3687     # mode.  It turns out that the SunPro C++ compiler does not properly
3688     # handle '-M -o', and we need to detect this.  Also, some Intel
3689     # versions had trouble with output in subdirs.
3690     am__obj=sub/conftest.${OBJEXT-o}
3691     am__minus_obj="-o $am__obj"
3692     case $depmode in
3693     gcc)
3694       # This depmode causes a compiler race in universal mode.
3695       test "$am__universal" = false || continue
3696       ;;
3697     nosideeffect)
3698       # After this tag, mechanisms are not by side-effect, so they'll
3699       # only be used when explicitly requested.
3700       if test "x$enable_dependency_tracking" = xyes; then
3701         continue
3702       else
3703         break
3704       fi
3705       ;;
3706     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3707       # This compiler won't grok '-c -o', but also, the minuso test has
3708       # not run yet.  These depmodes are late enough in the game, and
3709       # so weak that their functioning should not be impacted.
3710       am__obj=conftest.${OBJEXT-o}
3711       am__minus_obj=
3712       ;;
3713     none) break ;;
3714     esac
3715     if depmode=$depmode \
3716        source=sub/conftest.c object=$am__obj \
3717        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3718        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3719          >/dev/null 2>conftest.err &&
3720        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3721        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3722        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3723        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3724       # icc doesn't choke on unknown options, it will just issue warnings
3725       # or remarks (even with -Werror).  So we grep stderr for any message
3726       # that says an option was ignored or not supported.
3727       # When given -MP, icc 7.0 and 7.1 complain thusly:
3728       #   icc: Command line warning: ignoring option '-M'; no argument required
3729       # The diagnosis changed in icc 8.0:
3730       #   icc: Command line remark: option '-MP' not supported
3731       if (grep 'ignoring option' conftest.err ||
3732           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3733         am_cv_CC_dependencies_compiler_type=$depmode
3734         break
3735       fi
3736     fi
3737   done
3738
3739   cd ..
3740   rm -rf conftest.dir
3741 else
3742   am_cv_CC_dependencies_compiler_type=none
3743 fi
3744
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3747 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3748 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3749
3750  if
3751   test "x$enable_dependency_tracking" != xno \
3752   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3753   am__fastdepCC_TRUE=
3754   am__fastdepCC_FALSE='#'
3755 else
3756   am__fastdepCC_TRUE='#'
3757   am__fastdepCC_FALSE=
3758 fi
3759
3760
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3762 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3763 if ${ac_cv_path_SED+:} false; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3767      for ac_i in 1 2 3 4 5 6 7; do
3768        ac_script="$ac_script$as_nl$ac_script"
3769      done
3770      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3771      { ac_script=; unset ac_script;}
3772      if test -z "$SED"; then
3773   ac_path_SED_found=false
3774   # Loop through the user's path and test for each of PROGNAME-LIST
3775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH
3777 do
3778   IFS=$as_save_IFS
3779   test -z "$as_dir" && as_dir=.
3780     for ac_prog in sed gsed; do
3781     for ac_exec_ext in '' $ac_executable_extensions; do
3782       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3783       as_fn_executable_p "$ac_path_SED" || continue
3784 # Check for GNU ac_path_SED and select it if it is found.
3785   # Check for GNU $ac_path_SED
3786 case `"$ac_path_SED" --version 2>&1` in
3787 *GNU*)
3788   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3789 *)
3790   ac_count=0
3791   $as_echo_n 0123456789 >"conftest.in"
3792   while :
3793   do
3794     cat "conftest.in" "conftest.in" >"conftest.tmp"
3795     mv "conftest.tmp" "conftest.in"
3796     cp "conftest.in" "conftest.nl"
3797     $as_echo '' >> "conftest.nl"
3798     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3799     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3800     as_fn_arith $ac_count + 1 && ac_count=$as_val
3801     if test $ac_count -gt ${ac_path_SED_max-0}; then
3802       # Best one so far, save it but keep looking for a better one
3803       ac_cv_path_SED="$ac_path_SED"
3804       ac_path_SED_max=$ac_count
3805     fi
3806     # 10*(2^10) chars as input seems more than enough
3807     test $ac_count -gt 10 && break
3808   done
3809   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3810 esac
3811
3812       $ac_path_SED_found && break 3
3813     done
3814   done
3815   done
3816 IFS=$as_save_IFS
3817   if test -z "$ac_cv_path_SED"; then
3818     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3819   fi
3820 else
3821   ac_cv_path_SED=$SED
3822 fi
3823
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3826 $as_echo "$ac_cv_path_SED" >&6; }
3827  SED="$ac_cv_path_SED"
3828   rm -f conftest.sed
3829
3830
3831 # Initialize libtool
3832
3833 case `pwd` in
3834   *\ * | *\     *)
3835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3836 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3837 esac
3838
3839
3840
3841 macro_version='2.4.2'
3842 macro_revision='1.3337'
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856 ltmain="$ac_aux_dir/ltmain.sh"
3857
3858 # Make sure we can run config.sub.
3859 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3860   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3861
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3863 $as_echo_n "checking build system type... " >&6; }
3864 if ${ac_cv_build+:} false; then :
3865   $as_echo_n "(cached) " >&6
3866 else
3867   ac_build_alias=$build_alias
3868 test "x$ac_build_alias" = x &&
3869   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3870 test "x$ac_build_alias" = x &&
3871   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3872 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3873   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3874
3875 fi
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3877 $as_echo "$ac_cv_build" >&6; }
3878 case $ac_cv_build in
3879 *-*-*) ;;
3880 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3881 esac
3882 build=$ac_cv_build
3883 ac_save_IFS=$IFS; IFS='-'
3884 set x $ac_cv_build
3885 shift
3886 build_cpu=$1
3887 build_vendor=$2
3888 shift; shift
3889 # Remember, the first character of IFS is used to create $*,
3890 # except with old shells:
3891 build_os=$*
3892 IFS=$ac_save_IFS
3893 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3894
3895
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3897 $as_echo_n "checking host system type... " >&6; }
3898 if ${ac_cv_host+:} false; then :
3899   $as_echo_n "(cached) " >&6
3900 else
3901   if test "x$host_alias" = x; then
3902   ac_cv_host=$ac_cv_build
3903 else
3904   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3905     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3906 fi
3907
3908 fi
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3910 $as_echo "$ac_cv_host" >&6; }
3911 case $ac_cv_host in
3912 *-*-*) ;;
3913 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3914 esac
3915 host=$ac_cv_host
3916 ac_save_IFS=$IFS; IFS='-'
3917 set x $ac_cv_host
3918 shift
3919 host_cpu=$1
3920 host_vendor=$2
3921 shift; shift
3922 # Remember, the first character of IFS is used to create $*,
3923 # except with old shells:
3924 host_os=$*
3925 IFS=$ac_save_IFS
3926 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3927
3928
3929 # Backslashify metacharacters that are still active within
3930 # double-quoted strings.
3931 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3932
3933 # Same as above, but do not quote variable references.
3934 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3935
3936 # Sed substitution to delay expansion of an escaped shell variable in a
3937 # double_quote_subst'ed string.
3938 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3939
3940 # Sed substitution to delay expansion of an escaped single quote.
3941 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3942
3943 # Sed substitution to avoid accidental globbing in evaled expressions
3944 no_glob_subst='s/\*/\\\*/g'
3945
3946 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3947 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3948 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3949
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3951 $as_echo_n "checking how to print strings... " >&6; }
3952 # Test print first, because it will be a builtin if present.
3953 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3954    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3955   ECHO='print -r --'
3956 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3957   ECHO='printf %s\n'
3958 else
3959   # Use this function as a fallback that always works.
3960   func_fallback_echo ()
3961   {
3962     eval 'cat <<_LTECHO_EOF
3963 $1
3964 _LTECHO_EOF'
3965   }
3966   ECHO='func_fallback_echo'
3967 fi
3968
3969 # func_echo_all arg...
3970 # Invoke $ECHO with all args, space-separated.
3971 func_echo_all ()
3972 {
3973     $ECHO ""
3974 }
3975
3976 case "$ECHO" in
3977   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3978 $as_echo "printf" >&6; } ;;
3979   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3980 $as_echo "print -r" >&6; } ;;
3981   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3982 $as_echo "cat" >&6; } ;;
3983 esac
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3999 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4000 if ${ac_cv_path_SED+:} false; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4004      for ac_i in 1 2 3 4 5 6 7; do
4005        ac_script="$ac_script$as_nl$ac_script"
4006      done
4007      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4008      { ac_script=; unset ac_script;}
4009      if test -z "$SED"; then
4010   ac_path_SED_found=false
4011   # Loop through the user's path and test for each of PROGNAME-LIST
4012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015   IFS=$as_save_IFS
4016   test -z "$as_dir" && as_dir=.
4017     for ac_prog in sed gsed; do
4018     for ac_exec_ext in '' $ac_executable_extensions; do
4019       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4020       as_fn_executable_p "$ac_path_SED" || continue
4021 # Check for GNU ac_path_SED and select it if it is found.
4022   # Check for GNU $ac_path_SED
4023 case `"$ac_path_SED" --version 2>&1` in
4024 *GNU*)
4025   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4026 *)
4027   ac_count=0
4028   $as_echo_n 0123456789 >"conftest.in"
4029   while :
4030   do
4031     cat "conftest.in" "conftest.in" >"conftest.tmp"
4032     mv "conftest.tmp" "conftest.in"
4033     cp "conftest.in" "conftest.nl"
4034     $as_echo '' >> "conftest.nl"
4035     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4037     as_fn_arith $ac_count + 1 && ac_count=$as_val
4038     if test $ac_count -gt ${ac_path_SED_max-0}; then
4039       # Best one so far, save it but keep looking for a better one
4040       ac_cv_path_SED="$ac_path_SED"
4041       ac_path_SED_max=$ac_count
4042     fi
4043     # 10*(2^10) chars as input seems more than enough
4044     test $ac_count -gt 10 && break
4045   done
4046   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047 esac
4048
4049       $ac_path_SED_found && break 3
4050     done
4051   done
4052   done
4053 IFS=$as_save_IFS
4054   if test -z "$ac_cv_path_SED"; then
4055     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4056   fi
4057 else
4058   ac_cv_path_SED=$SED
4059 fi
4060
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4063 $as_echo "$ac_cv_path_SED" >&6; }
4064  SED="$ac_cv_path_SED"
4065   rm -f conftest.sed
4066
4067 test -z "$SED" && SED=sed
4068 Xsed="$SED -e 1s/^X//"
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4081 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4082 if ${ac_cv_path_GREP+:} false; then :
4083   $as_echo_n "(cached) " >&6
4084 else
4085   if test -z "$GREP"; then
4086   ac_path_GREP_found=false
4087   # Loop through the user's path and test for each of PROGNAME-LIST
4088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4090 do
4091   IFS=$as_save_IFS
4092   test -z "$as_dir" && as_dir=.
4093     for ac_prog in grep ggrep; do
4094     for ac_exec_ext in '' $ac_executable_extensions; do
4095       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4096       as_fn_executable_p "$ac_path_GREP" || continue
4097 # Check for GNU ac_path_GREP and select it if it is found.
4098   # Check for GNU $ac_path_GREP
4099 case `"$ac_path_GREP" --version 2>&1` in
4100 *GNU*)
4101   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4102 *)
4103   ac_count=0
4104   $as_echo_n 0123456789 >"conftest.in"
4105   while :
4106   do
4107     cat "conftest.in" "conftest.in" >"conftest.tmp"
4108     mv "conftest.tmp" "conftest.in"
4109     cp "conftest.in" "conftest.nl"
4110     $as_echo 'GREP' >> "conftest.nl"
4111     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113     as_fn_arith $ac_count + 1 && ac_count=$as_val
4114     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4115       # Best one so far, save it but keep looking for a better one
4116       ac_cv_path_GREP="$ac_path_GREP"
4117       ac_path_GREP_max=$ac_count
4118     fi
4119     # 10*(2^10) chars as input seems more than enough
4120     test $ac_count -gt 10 && break
4121   done
4122   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123 esac
4124
4125       $ac_path_GREP_found && break 3
4126     done
4127   done
4128   done
4129 IFS=$as_save_IFS
4130   if test -z "$ac_cv_path_GREP"; then
4131     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4132   fi
4133 else
4134   ac_cv_path_GREP=$GREP
4135 fi
4136
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4139 $as_echo "$ac_cv_path_GREP" >&6; }
4140  GREP="$ac_cv_path_GREP"
4141
4142
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4144 $as_echo_n "checking for egrep... " >&6; }
4145 if ${ac_cv_path_EGREP+:} false; then :
4146   $as_echo_n "(cached) " >&6
4147 else
4148   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4149    then ac_cv_path_EGREP="$GREP -E"
4150    else
4151      if test -z "$EGREP"; then
4152   ac_path_EGREP_found=false
4153   # Loop through the user's path and test for each of PROGNAME-LIST
4154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156 do
4157   IFS=$as_save_IFS
4158   test -z "$as_dir" && as_dir=.
4159     for ac_prog in egrep; do
4160     for ac_exec_ext in '' $ac_executable_extensions; do
4161       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4162       as_fn_executable_p "$ac_path_EGREP" || continue
4163 # Check for GNU ac_path_EGREP and select it if it is found.
4164   # Check for GNU $ac_path_EGREP
4165 case `"$ac_path_EGREP" --version 2>&1` in
4166 *GNU*)
4167   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4168 *)
4169   ac_count=0
4170   $as_echo_n 0123456789 >"conftest.in"
4171   while :
4172   do
4173     cat "conftest.in" "conftest.in" >"conftest.tmp"
4174     mv "conftest.tmp" "conftest.in"
4175     cp "conftest.in" "conftest.nl"
4176     $as_echo 'EGREP' >> "conftest.nl"
4177     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4178     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4179     as_fn_arith $ac_count + 1 && ac_count=$as_val
4180     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4181       # Best one so far, save it but keep looking for a better one
4182       ac_cv_path_EGREP="$ac_path_EGREP"
4183       ac_path_EGREP_max=$ac_count
4184     fi
4185     # 10*(2^10) chars as input seems more than enough
4186     test $ac_count -gt 10 && break
4187   done
4188   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4189 esac
4190
4191       $ac_path_EGREP_found && break 3
4192     done
4193   done
4194   done
4195 IFS=$as_save_IFS
4196   if test -z "$ac_cv_path_EGREP"; then
4197     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4198   fi
4199 else
4200   ac_cv_path_EGREP=$EGREP
4201 fi
4202
4203    fi
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4206 $as_echo "$ac_cv_path_EGREP" >&6; }
4207  EGREP="$ac_cv_path_EGREP"
4208
4209
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4211 $as_echo_n "checking for fgrep... " >&6; }
4212 if ${ac_cv_path_FGREP+:} false; then :
4213   $as_echo_n "(cached) " >&6
4214 else
4215   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4216    then ac_cv_path_FGREP="$GREP -F"
4217    else
4218      if test -z "$FGREP"; then
4219   ac_path_FGREP_found=false
4220   # Loop through the user's path and test for each of PROGNAME-LIST
4221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223 do
4224   IFS=$as_save_IFS
4225   test -z "$as_dir" && as_dir=.
4226     for ac_prog in fgrep; do
4227     for ac_exec_ext in '' $ac_executable_extensions; do
4228       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4229       as_fn_executable_p "$ac_path_FGREP" || continue
4230 # Check for GNU ac_path_FGREP and select it if it is found.
4231   # Check for GNU $ac_path_FGREP
4232 case `"$ac_path_FGREP" --version 2>&1` in
4233 *GNU*)
4234   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4235 *)
4236   ac_count=0
4237   $as_echo_n 0123456789 >"conftest.in"
4238   while :
4239   do
4240     cat "conftest.in" "conftest.in" >"conftest.tmp"
4241     mv "conftest.tmp" "conftest.in"
4242     cp "conftest.in" "conftest.nl"
4243     $as_echo 'FGREP' >> "conftest.nl"
4244     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246     as_fn_arith $ac_count + 1 && ac_count=$as_val
4247     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4248       # Best one so far, save it but keep looking for a better one
4249       ac_cv_path_FGREP="$ac_path_FGREP"
4250       ac_path_FGREP_max=$ac_count
4251     fi
4252     # 10*(2^10) chars as input seems more than enough
4253     test $ac_count -gt 10 && break
4254   done
4255   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256 esac
4257
4258       $ac_path_FGREP_found && break 3
4259     done
4260   done
4261   done
4262 IFS=$as_save_IFS
4263   if test -z "$ac_cv_path_FGREP"; then
4264     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4265   fi
4266 else
4267   ac_cv_path_FGREP=$FGREP
4268 fi
4269
4270    fi
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4273 $as_echo "$ac_cv_path_FGREP" >&6; }
4274  FGREP="$ac_cv_path_FGREP"
4275
4276
4277 test -z "$GREP" && GREP=grep
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297 # Check whether --with-gnu-ld was given.
4298 if test "${with_gnu_ld+set}" = set; then :
4299   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4300 else
4301   with_gnu_ld=no
4302 fi
4303
4304 ac_prog=ld
4305 if test "$GCC" = yes; then
4306   # Check if gcc -print-prog-name=ld gives a path.
4307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4308 $as_echo_n "checking for ld used by $CC... " >&6; }
4309   case $host in
4310   *-*-mingw*)
4311     # gcc leaves a trailing carriage return which upsets mingw
4312     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4313   *)
4314     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4315   esac
4316   case $ac_prog in
4317     # Accept absolute paths.
4318     [\\/]* | ?:[\\/]*)
4319       re_direlt='/[^/][^/]*/\.\./'
4320       # Canonicalize the pathname of ld
4321       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4322       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4323         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4324       done
4325       test -z "$LD" && LD="$ac_prog"
4326       ;;
4327   "")
4328     # If it fails, then pretend we aren't using GCC.
4329     ac_prog=ld
4330     ;;
4331   *)
4332     # If it is relative, then search for the first ld in PATH.
4333     with_gnu_ld=unknown
4334     ;;
4335   esac
4336 elif test "$with_gnu_ld" = yes; then
4337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4338 $as_echo_n "checking for GNU ld... " >&6; }
4339 else
4340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4341 $as_echo_n "checking for non-GNU ld... " >&6; }
4342 fi
4343 if ${lt_cv_path_LD+:} false; then :
4344   $as_echo_n "(cached) " >&6
4345 else
4346   if test -z "$LD"; then
4347   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4348   for ac_dir in $PATH; do
4349     IFS="$lt_save_ifs"
4350     test -z "$ac_dir" && ac_dir=.
4351     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4352       lt_cv_path_LD="$ac_dir/$ac_prog"
4353       # Check to see if the program is GNU ld.  I'd rather use --version,
4354       # but apparently some variants of GNU ld only accept -v.
4355       # Break only if it was the GNU/non-GNU ld that we prefer.
4356       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4357       *GNU* | *'with BFD'*)
4358         test "$with_gnu_ld" != no && break
4359         ;;
4360       *)
4361         test "$with_gnu_ld" != yes && break
4362         ;;
4363       esac
4364     fi
4365   done
4366   IFS="$lt_save_ifs"
4367 else
4368   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4369 fi
4370 fi
4371
4372 LD="$lt_cv_path_LD"
4373 if test -n "$LD"; then
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4375 $as_echo "$LD" >&6; }
4376 else
4377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4379 fi
4380 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4382 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4383 if ${lt_cv_prog_gnu_ld+:} false; then :
4384   $as_echo_n "(cached) " >&6
4385 else
4386   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4387 case `$LD -v 2>&1 </dev/null` in
4388 *GNU* | *'with BFD'*)
4389   lt_cv_prog_gnu_ld=yes
4390   ;;
4391 *)
4392   lt_cv_prog_gnu_ld=no
4393   ;;
4394 esac
4395 fi
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4397 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4398 with_gnu_ld=$lt_cv_prog_gnu_ld
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4409 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4410 if ${lt_cv_path_NM+:} false; then :
4411   $as_echo_n "(cached) " >&6
4412 else
4413   if test -n "$NM"; then
4414   # Let the user override the test.
4415   lt_cv_path_NM="$NM"
4416 else
4417   lt_nm_to_check="${ac_tool_prefix}nm"
4418   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4419     lt_nm_to_check="$lt_nm_to_check nm"
4420   fi
4421   for lt_tmp_nm in $lt_nm_to_check; do
4422     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4423     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4424       IFS="$lt_save_ifs"
4425       test -z "$ac_dir" && ac_dir=.
4426       tmp_nm="$ac_dir/$lt_tmp_nm"
4427       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4428         # Check to see if the nm accepts a BSD-compat flag.
4429         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4430         #   nm: unknown option "B" ignored
4431         # Tru64's nm complains that /dev/null is an invalid object file
4432         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4433         */dev/null* | *'Invalid file or object type'*)
4434           lt_cv_path_NM="$tmp_nm -B"
4435           break
4436           ;;
4437         *)
4438           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4439           */dev/null*)
4440             lt_cv_path_NM="$tmp_nm -p"
4441             break
4442             ;;
4443           *)
4444             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4445             continue # so that we can try to find one that supports BSD flags
4446             ;;
4447           esac
4448           ;;
4449         esac
4450       fi
4451     done
4452     IFS="$lt_save_ifs"
4453   done
4454   : ${lt_cv_path_NM=no}
4455 fi
4456 fi
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4458 $as_echo "$lt_cv_path_NM" >&6; }
4459 if test "$lt_cv_path_NM" != "no"; then
4460   NM="$lt_cv_path_NM"
4461 else
4462   # Didn't find any BSD compatible name lister, look for dumpbin.
4463   if test -n "$DUMPBIN"; then :
4464     # Let the user override the test.
4465   else
4466     if test -n "$ac_tool_prefix"; then
4467   for ac_prog in dumpbin "link -dump"
4468   do
4469     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4470 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4472 $as_echo_n "checking for $ac_word... " >&6; }
4473 if ${ac_cv_prog_DUMPBIN+:} false; then :
4474   $as_echo_n "(cached) " >&6
4475 else
4476   if test -n "$DUMPBIN"; then
4477   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4478 else
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4481 do
4482   IFS=$as_save_IFS
4483   test -z "$as_dir" && as_dir=.
4484     for ac_exec_ext in '' $ac_executable_extensions; do
4485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488     break 2
4489   fi
4490 done
4491   done
4492 IFS=$as_save_IFS
4493
4494 fi
4495 fi
4496 DUMPBIN=$ac_cv_prog_DUMPBIN
4497 if test -n "$DUMPBIN"; then
4498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4499 $as_echo "$DUMPBIN" >&6; }
4500 else
4501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4503 fi
4504
4505
4506     test -n "$DUMPBIN" && break
4507   done
4508 fi
4509 if test -z "$DUMPBIN"; then
4510   ac_ct_DUMPBIN=$DUMPBIN
4511   for ac_prog in dumpbin "link -dump"
4512 do
4513   # Extract the first word of "$ac_prog", so it can be a program name with args.
4514 set dummy $ac_prog; ac_word=$2
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516 $as_echo_n "checking for $ac_word... " >&6; }
4517 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4518   $as_echo_n "(cached) " >&6
4519 else
4520   if test -n "$ac_ct_DUMPBIN"; then
4521   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526   IFS=$as_save_IFS
4527   test -z "$as_dir" && as_dir=.
4528     for ac_exec_ext in '' $ac_executable_extensions; do
4529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532     break 2
4533   fi
4534 done
4535   done
4536 IFS=$as_save_IFS
4537
4538 fi
4539 fi
4540 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4541 if test -n "$ac_ct_DUMPBIN"; then
4542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4543 $as_echo "$ac_ct_DUMPBIN" >&6; }
4544 else
4545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4547 fi
4548
4549
4550   test -n "$ac_ct_DUMPBIN" && break
4551 done
4552
4553   if test "x$ac_ct_DUMPBIN" = x; then
4554     DUMPBIN=":"
4555   else
4556     case $cross_compiling:$ac_tool_warned in
4557 yes:)
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4560 ac_tool_warned=yes ;;
4561 esac
4562     DUMPBIN=$ac_ct_DUMPBIN
4563   fi
4564 fi
4565
4566     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4567     *COFF*)
4568       DUMPBIN="$DUMPBIN -symbols"
4569       ;;
4570     *)
4571       DUMPBIN=:
4572       ;;
4573     esac
4574   fi
4575
4576   if test "$DUMPBIN" != ":"; then
4577     NM="$DUMPBIN"
4578   fi
4579 fi
4580 test -z "$NM" && NM=nm
4581
4582
4583
4584
4585
4586
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4588 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4589 if ${lt_cv_nm_interface+:} false; then :
4590   $as_echo_n "(cached) " >&6
4591 else
4592   lt_cv_nm_interface="BSD nm"
4593   echo "int some_variable = 0;" > conftest.$ac_ext
4594   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4595   (eval "$ac_compile" 2>conftest.err)
4596   cat conftest.err >&5
4597   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4598   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4599   cat conftest.err >&5
4600   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4601   cat conftest.out >&5
4602   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4603     lt_cv_nm_interface="MS dumpbin"
4604   fi
4605   rm -f conftest*
4606 fi
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4608 $as_echo "$lt_cv_nm_interface" >&6; }
4609
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4611 $as_echo_n "checking whether ln -s works... " >&6; }
4612 LN_S=$as_ln_s
4613 if test "$LN_S" = "ln -s"; then
4614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4615 $as_echo "yes" >&6; }
4616 else
4617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4618 $as_echo "no, using $LN_S" >&6; }
4619 fi
4620
4621 # find the maximum length of command line arguments
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4623 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4624 if ${lt_cv_sys_max_cmd_len+:} false; then :
4625   $as_echo_n "(cached) " >&6
4626 else
4627     i=0
4628   teststring="ABCD"
4629
4630   case $build_os in
4631   msdosdjgpp*)
4632     # On DJGPP, this test can blow up pretty badly due to problems in libc
4633     # (any single argument exceeding 2000 bytes causes a buffer overrun
4634     # during glob expansion).  Even if it were fixed, the result of this
4635     # check would be larger than it should be.
4636     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4637     ;;
4638
4639   gnu*)
4640     # Under GNU Hurd, this test is not required because there is
4641     # no limit to the length of command line arguments.
4642     # Libtool will interpret -1 as no limit whatsoever
4643     lt_cv_sys_max_cmd_len=-1;
4644     ;;
4645
4646   cygwin* | mingw* | cegcc*)
4647     # On Win9x/ME, this test blows up -- it succeeds, but takes
4648     # about 5 minutes as the teststring grows exponentially.
4649     # Worse, since 9x/ME are not pre-emptively multitasking,
4650     # you end up with a "frozen" computer, even though with patience
4651     # the test eventually succeeds (with a max line length of 256k).
4652     # Instead, let's just punt: use the minimum linelength reported by
4653     # all of the supported platforms: 8192 (on NT/2K/XP).
4654     lt_cv_sys_max_cmd_len=8192;
4655     ;;
4656
4657   mint*)
4658     # On MiNT this can take a long time and run out of memory.
4659     lt_cv_sys_max_cmd_len=8192;
4660     ;;
4661
4662   amigaos*)
4663     # On AmigaOS with pdksh, this test takes hours, literally.
4664     # So we just punt and use a minimum line length of 8192.
4665     lt_cv_sys_max_cmd_len=8192;
4666     ;;
4667
4668   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4669     # This has been around since 386BSD, at least.  Likely further.
4670     if test -x /sbin/sysctl; then
4671       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4672     elif test -x /usr/sbin/sysctl; then
4673       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4674     else
4675       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4676     fi
4677     # And add a safety zone
4678     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4679     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4680     ;;
4681
4682   interix*)
4683     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4684     lt_cv_sys_max_cmd_len=196608
4685     ;;
4686
4687   os2*)
4688     # The test takes a long time on OS/2.
4689     lt_cv_sys_max_cmd_len=8192
4690     ;;
4691
4692   osf*)
4693     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4694     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4695     # nice to cause kernel panics so lets avoid the loop below.
4696     # First set a reasonable default.
4697     lt_cv_sys_max_cmd_len=16384
4698     #
4699     if test -x /sbin/sysconfig; then
4700       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4701         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4702       esac
4703     fi
4704     ;;
4705   sco3.2v5*)
4706     lt_cv_sys_max_cmd_len=102400
4707     ;;
4708   sysv5* | sco5v6* | sysv4.2uw2*)
4709     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4710     if test -n "$kargmax"; then
4711       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4712     else
4713       lt_cv_sys_max_cmd_len=32768
4714     fi
4715     ;;
4716   *)
4717     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4718     if test -n "$lt_cv_sys_max_cmd_len"; then
4719       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4720       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4721     else
4722       # Make teststring a little bigger before we do anything with it.
4723       # a 1K string should be a reasonable start.
4724       for i in 1 2 3 4 5 6 7 8 ; do
4725         teststring=$teststring$teststring
4726       done
4727       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4728       # If test is not a shell built-in, we'll probably end up computing a
4729       # maximum length that is only half of the actual maximum length, but
4730       # we can't tell.
4731       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4732                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4733               test $i != 17 # 1/2 MB should be enough
4734       do
4735         i=`expr $i + 1`
4736         teststring=$teststring$teststring
4737       done
4738       # Only check the string length outside the loop.
4739       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4740       teststring=
4741       # Add a significant safety factor because C++ compilers can tack on
4742       # massive amounts of additional arguments before passing them to the
4743       # linker.  It appears as though 1/2 is a usable value.
4744       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4745     fi
4746     ;;
4747   esac
4748
4749 fi
4750
4751 if test -n $lt_cv_sys_max_cmd_len ; then
4752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4753 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4754 else
4755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4756 $as_echo "none" >&6; }
4757 fi
4758 max_cmd_len=$lt_cv_sys_max_cmd_len
4759
4760
4761
4762
4763
4764
4765 : ${CP="cp -f"}
4766 : ${MV="mv -f"}
4767 : ${RM="rm -f"}
4768
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4770 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4771 # Try some XSI features
4772 xsi_shell=no
4773 ( _lt_dummy="a/b/c"
4774   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4775       = c,a/b,b/c, \
4776     && eval 'test $(( 1 + 1 )) -eq 2 \
4777     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4778   && xsi_shell=yes
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4780 $as_echo "$xsi_shell" >&6; }
4781
4782
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4784 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4785 lt_shell_append=no
4786 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4787     >/dev/null 2>&1 \
4788   && lt_shell_append=yes
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4790 $as_echo "$lt_shell_append" >&6; }
4791
4792
4793 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4794   lt_unset=unset
4795 else
4796   lt_unset=false
4797 fi
4798
4799
4800
4801
4802
4803 # test EBCDIC or ASCII
4804 case `echo X|tr X '\101'` in
4805  A) # ASCII based system
4806     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4807   lt_SP2NL='tr \040 \012'
4808   lt_NL2SP='tr \015\012 \040\040'
4809   ;;
4810  *) # EBCDIC based system
4811   lt_SP2NL='tr \100 \n'
4812   lt_NL2SP='tr \r\n \100\100'
4813   ;;
4814 esac
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4825 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4826 if ${lt_cv_to_host_file_cmd+:} false; then :
4827   $as_echo_n "(cached) " >&6
4828 else
4829   case $host in
4830   *-*-mingw* )
4831     case $build in
4832       *-*-mingw* ) # actually msys
4833         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4834         ;;
4835       *-*-cygwin* )
4836         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4837         ;;
4838       * ) # otherwise, assume *nix
4839         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4840         ;;
4841     esac
4842     ;;
4843   *-*-cygwin* )
4844     case $build in
4845       *-*-mingw* ) # actually msys
4846         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4847         ;;
4848       *-*-cygwin* )
4849         lt_cv_to_host_file_cmd=func_convert_file_noop
4850         ;;
4851       * ) # otherwise, assume *nix
4852         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4853         ;;
4854     esac
4855     ;;
4856   * ) # unhandled hosts (and "normal" native builds)
4857     lt_cv_to_host_file_cmd=func_convert_file_noop
4858     ;;
4859 esac
4860
4861 fi
4862
4863 to_host_file_cmd=$lt_cv_to_host_file_cmd
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4865 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4866
4867
4868
4869
4870
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4872 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4873 if ${lt_cv_to_tool_file_cmd+:} false; then :
4874   $as_echo_n "(cached) " >&6
4875 else
4876   #assume ordinary cross tools, or native build.
4877 lt_cv_to_tool_file_cmd=func_convert_file_noop
4878 case $host in
4879   *-*-mingw* )
4880     case $build in
4881       *-*-mingw* ) # actually msys
4882         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4883         ;;
4884     esac
4885     ;;
4886 esac
4887
4888 fi
4889
4890 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4892 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4893
4894
4895
4896
4897
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4899 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4900 if ${lt_cv_ld_reload_flag+:} false; then :
4901   $as_echo_n "(cached) " >&6
4902 else
4903   lt_cv_ld_reload_flag='-r'
4904 fi
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4906 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4907 reload_flag=$lt_cv_ld_reload_flag
4908 case $reload_flag in
4909 "" | " "*) ;;
4910 *) reload_flag=" $reload_flag" ;;
4911 esac
4912 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4913 case $host_os in
4914   cygwin* | mingw* | pw32* | cegcc*)
4915     if test "$GCC" != yes; then
4916       reload_cmds=false
4917     fi
4918     ;;
4919   darwin*)
4920     if test "$GCC" = yes; then
4921       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4922     else
4923       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4924     fi
4925     ;;
4926 esac
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936 if test -n "$ac_tool_prefix"; then
4937   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4938 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if ${ac_cv_prog_OBJDUMP+:} false; then :
4942   $as_echo_n "(cached) " >&6
4943 else
4944   if test -n "$OBJDUMP"; then
4945   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950   IFS=$as_save_IFS
4951   test -z "$as_dir" && as_dir=.
4952     for ac_exec_ext in '' $ac_executable_extensions; do
4953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956     break 2
4957   fi
4958 done
4959   done
4960 IFS=$as_save_IFS
4961
4962 fi
4963 fi
4964 OBJDUMP=$ac_cv_prog_OBJDUMP
4965 if test -n "$OBJDUMP"; then
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4967 $as_echo "$OBJDUMP" >&6; }
4968 else
4969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4971 fi
4972
4973
4974 fi
4975 if test -z "$ac_cv_prog_OBJDUMP"; then
4976   ac_ct_OBJDUMP=$OBJDUMP
4977   # Extract the first word of "objdump", so it can be a program name with args.
4978 set dummy objdump; ac_word=$2
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980 $as_echo_n "checking for $ac_word... " >&6; }
4981 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4982   $as_echo_n "(cached) " >&6
4983 else
4984   if test -n "$ac_ct_OBJDUMP"; then
4985   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4986 else
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990   IFS=$as_save_IFS
4991   test -z "$as_dir" && as_dir=.
4992     for ac_exec_ext in '' $ac_executable_extensions; do
4993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996     break 2
4997   fi
4998 done
4999   done
5000 IFS=$as_save_IFS
5001
5002 fi
5003 fi
5004 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5005 if test -n "$ac_ct_OBJDUMP"; then
5006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5007 $as_echo "$ac_ct_OBJDUMP" >&6; }
5008 else
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5011 fi
5012
5013   if test "x$ac_ct_OBJDUMP" = x; then
5014     OBJDUMP="false"
5015   else
5016     case $cross_compiling:$ac_tool_warned in
5017 yes:)
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5020 ac_tool_warned=yes ;;
5021 esac
5022     OBJDUMP=$ac_ct_OBJDUMP
5023   fi
5024 else
5025   OBJDUMP="$ac_cv_prog_OBJDUMP"
5026 fi
5027
5028 test -z "$OBJDUMP" && OBJDUMP=objdump
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5039 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5040 if ${lt_cv_deplibs_check_method+:} false; then :
5041   $as_echo_n "(cached) " >&6
5042 else
5043   lt_cv_file_magic_cmd='$MAGIC_CMD'
5044 lt_cv_file_magic_test_file=
5045 lt_cv_deplibs_check_method='unknown'
5046 # Need to set the preceding variable on all platforms that support
5047 # interlibrary dependencies.
5048 # 'none' -- dependencies not supported.
5049 # `unknown' -- same as none, but documents that we really don't know.
5050 # 'pass_all' -- all dependencies passed with no checks.
5051 # 'test_compile' -- check by making test program.
5052 # 'file_magic [[regex]]' -- check by looking for files in library path
5053 # which responds to the $file_magic_cmd with a given extended regex.
5054 # If you have `file' or equivalent on your system and you're not sure
5055 # whether `pass_all' will *always* work, you probably want this one.
5056
5057 case $host_os in
5058 aix[4-9]*)
5059   lt_cv_deplibs_check_method=pass_all
5060   ;;
5061
5062 beos*)
5063   lt_cv_deplibs_check_method=pass_all
5064   ;;
5065
5066 bsdi[45]*)
5067   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5068   lt_cv_file_magic_cmd='/usr/bin/file -L'
5069   lt_cv_file_magic_test_file=/shlib/libc.so
5070   ;;
5071
5072 cygwin*)
5073   # func_win32_libid is a shell function defined in ltmain.sh
5074   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5075   lt_cv_file_magic_cmd='func_win32_libid'
5076   ;;
5077
5078 mingw* | pw32*)
5079   # Base MSYS/MinGW do not provide the 'file' command needed by
5080   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5081   # unless we find 'file', for example because we are cross-compiling.
5082   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5083   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5084     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5085     lt_cv_file_magic_cmd='func_win32_libid'
5086   else
5087     # Keep this pattern in sync with the one in func_win32_libid.
5088     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5089     lt_cv_file_magic_cmd='$OBJDUMP -f'
5090   fi
5091   ;;
5092
5093 cegcc*)
5094   # use the weaker test based on 'objdump'. See mingw*.
5095   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5096   lt_cv_file_magic_cmd='$OBJDUMP -f'
5097   ;;
5098
5099 darwin* | rhapsody*)
5100   lt_cv_deplibs_check_method=pass_all
5101   ;;
5102
5103 freebsd* | dragonfly*)
5104   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5105     case $host_cpu in
5106     i*86 )
5107       # Not sure whether the presence of OpenBSD here was a mistake.
5108       # Let's accept both of them until this is cleared up.
5109       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5110       lt_cv_file_magic_cmd=/usr/bin/file
5111       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5112       ;;
5113     esac
5114   else
5115     lt_cv_deplibs_check_method=pass_all
5116   fi
5117   ;;
5118
5119 gnu*)
5120   lt_cv_deplibs_check_method=pass_all
5121   ;;
5122
5123 haiku*)
5124   lt_cv_deplibs_check_method=pass_all
5125   ;;
5126
5127 hpux10.20* | hpux11*)
5128   lt_cv_file_magic_cmd=/usr/bin/file
5129   case $host_cpu in
5130   ia64*)
5131     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5132     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5133     ;;
5134   hppa*64*)
5135     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]'
5136     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5137     ;;
5138   *)
5139     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5140     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5141     ;;
5142   esac
5143   ;;
5144
5145 interix[3-9]*)
5146   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5147   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5148   ;;
5149
5150 irix5* | irix6* | nonstopux*)
5151   case $LD in
5152   *-32|*"-32 ") libmagic=32-bit;;
5153   *-n32|*"-n32 ") libmagic=N32;;
5154   *-64|*"-64 ") libmagic=64-bit;;
5155   *) libmagic=never-match;;
5156   esac
5157   lt_cv_deplibs_check_method=pass_all
5158   ;;
5159
5160 # This must be glibc/ELF.
5161 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5162   lt_cv_deplibs_check_method=pass_all
5163   ;;
5164
5165 netbsd*)
5166   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5167     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5168   else
5169     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5170   fi
5171   ;;
5172
5173 newos6*)
5174   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5175   lt_cv_file_magic_cmd=/usr/bin/file
5176   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5177   ;;
5178
5179 *nto* | *qnx*)
5180   lt_cv_deplibs_check_method=pass_all
5181   ;;
5182
5183 openbsd*)
5184   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5185     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5186   else
5187     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5188   fi
5189   ;;
5190
5191 osf3* | osf4* | osf5*)
5192   lt_cv_deplibs_check_method=pass_all
5193   ;;
5194
5195 rdos*)
5196   lt_cv_deplibs_check_method=pass_all
5197   ;;
5198
5199 solaris*)
5200   lt_cv_deplibs_check_method=pass_all
5201   ;;
5202
5203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5204   lt_cv_deplibs_check_method=pass_all
5205   ;;
5206
5207 sysv4 | sysv4.3*)
5208   case $host_vendor in
5209   motorola)
5210     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]'
5211     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5212     ;;
5213   ncr)
5214     lt_cv_deplibs_check_method=pass_all
5215     ;;
5216   sequent)
5217     lt_cv_file_magic_cmd='/bin/file'
5218     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5219     ;;
5220   sni)
5221     lt_cv_file_magic_cmd='/bin/file'
5222     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5223     lt_cv_file_magic_test_file=/lib/libc.so
5224     ;;
5225   siemens)
5226     lt_cv_deplibs_check_method=pass_all
5227     ;;
5228   pc)
5229     lt_cv_deplibs_check_method=pass_all
5230     ;;
5231   esac
5232   ;;
5233
5234 tpf*)
5235   lt_cv_deplibs_check_method=pass_all
5236   ;;
5237 esac
5238
5239 fi
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5241 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5242
5243 file_magic_glob=
5244 want_nocaseglob=no
5245 if test "$build" = "$host"; then
5246   case $host_os in
5247   mingw* | pw32*)
5248     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5249       want_nocaseglob=yes
5250     else
5251       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5252     fi
5253     ;;
5254   esac
5255 fi
5256
5257 file_magic_cmd=$lt_cv_file_magic_cmd
5258 deplibs_check_method=$lt_cv_deplibs_check_method
5259 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282 if test -n "$ac_tool_prefix"; then
5283   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5284 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if ${ac_cv_prog_DLLTOOL+:} false; then :
5288   $as_echo_n "(cached) " >&6
5289 else
5290   if test -n "$DLLTOOL"; then
5291   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5295 do
5296   IFS=$as_save_IFS
5297   test -z "$as_dir" && as_dir=.
5298     for ac_exec_ext in '' $ac_executable_extensions; do
5299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302     break 2
5303   fi
5304 done
5305   done
5306 IFS=$as_save_IFS
5307
5308 fi
5309 fi
5310 DLLTOOL=$ac_cv_prog_DLLTOOL
5311 if test -n "$DLLTOOL"; then
5312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5313 $as_echo "$DLLTOOL" >&6; }
5314 else
5315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5317 fi
5318
5319
5320 fi
5321 if test -z "$ac_cv_prog_DLLTOOL"; then
5322   ac_ct_DLLTOOL=$DLLTOOL
5323   # Extract the first word of "dlltool", so it can be a program name with args.
5324 set dummy dlltool; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5328   $as_echo_n "(cached) " >&6
5329 else
5330   if test -n "$ac_ct_DLLTOOL"; then
5331   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5335 do
5336   IFS=$as_save_IFS
5337   test -z "$as_dir" && as_dir=.
5338     for ac_exec_ext in '' $ac_executable_extensions; do
5339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342     break 2
5343   fi
5344 done
5345   done
5346 IFS=$as_save_IFS
5347
5348 fi
5349 fi
5350 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5351 if test -n "$ac_ct_DLLTOOL"; then
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5353 $as_echo "$ac_ct_DLLTOOL" >&6; }
5354 else
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5357 fi
5358
5359   if test "x$ac_ct_DLLTOOL" = x; then
5360     DLLTOOL="false"
5361   else
5362     case $cross_compiling:$ac_tool_warned in
5363 yes:)
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366 ac_tool_warned=yes ;;
5367 esac
5368     DLLTOOL=$ac_ct_DLLTOOL
5369   fi
5370 else
5371   DLLTOOL="$ac_cv_prog_DLLTOOL"
5372 fi
5373
5374 test -z "$DLLTOOL" && DLLTOOL=dlltool
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5386 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5387 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   lt_cv_sharedlib_from_linklib_cmd='unknown'
5391
5392 case $host_os in
5393 cygwin* | mingw* | pw32* | cegcc*)
5394   # two different shell functions defined in ltmain.sh
5395   # decide which to use based on capabilities of $DLLTOOL
5396   case `$DLLTOOL --help 2>&1` in
5397   *--identify-strict*)
5398     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5399     ;;
5400   *)
5401     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5402     ;;
5403   esac
5404   ;;
5405 *)
5406   # fallback: assume linklib IS sharedlib
5407   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5408   ;;
5409 esac
5410
5411 fi
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5413 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5414 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5415 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5416
5417
5418
5419
5420
5421
5422
5423
5424 if test -n "$ac_tool_prefix"; then
5425   for ac_prog in ar
5426   do
5427     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if ${ac_cv_prog_AR+:} false; then :
5432   $as_echo_n "(cached) " >&6
5433 else
5434   if test -n "$AR"; then
5435   ac_cv_prog_AR="$AR" # Let the user override the test.
5436 else
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5439 do
5440   IFS=$as_save_IFS
5441   test -z "$as_dir" && as_dir=.
5442     for ac_exec_ext in '' $ac_executable_extensions; do
5443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446     break 2
5447   fi
5448 done
5449   done
5450 IFS=$as_save_IFS
5451
5452 fi
5453 fi
5454 AR=$ac_cv_prog_AR
5455 if test -n "$AR"; then
5456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5457 $as_echo "$AR" >&6; }
5458 else
5459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5461 fi
5462
5463
5464     test -n "$AR" && break
5465   done
5466 fi
5467 if test -z "$AR"; then
5468   ac_ct_AR=$AR
5469   for ac_prog in ar
5470 do
5471   # Extract the first word of "$ac_prog", so it can be a program name with args.
5472 set dummy $ac_prog; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   if test -n "$ac_ct_AR"; then
5479   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484   IFS=$as_save_IFS
5485   test -z "$as_dir" && as_dir=.
5486     for ac_exec_ext in '' $ac_executable_extensions; do
5487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488     ac_cv_prog_ac_ct_AR="$ac_prog"
5489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490     break 2
5491   fi
5492 done
5493   done
5494 IFS=$as_save_IFS
5495
5496 fi
5497 fi
5498 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5499 if test -n "$ac_ct_AR"; then
5500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5501 $as_echo "$ac_ct_AR" >&6; }
5502 else
5503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 fi
5506
5507
5508   test -n "$ac_ct_AR" && break
5509 done
5510
5511   if test "x$ac_ct_AR" = x; then
5512     AR="false"
5513   else
5514     case $cross_compiling:$ac_tool_warned in
5515 yes:)
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5518 ac_tool_warned=yes ;;
5519 esac
5520     AR=$ac_ct_AR
5521   fi
5522 fi
5523
5524 : ${AR=ar}
5525 : ${AR_FLAGS=cru}
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5538 $as_echo_n "checking for archiver @FILE support... " >&6; }
5539 if ${lt_cv_ar_at_file+:} false; then :
5540   $as_echo_n "(cached) " >&6
5541 else
5542   lt_cv_ar_at_file=no
5543    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h.  */
5545
5546 int
5547 main ()
5548 {
5549
5550   ;
5551   return 0;
5552 }
5553 _ACEOF
5554 if ac_fn_c_try_compile "$LINENO"; then :
5555   echo conftest.$ac_objext > conftest.lst
5556       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5557       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5558   (eval $lt_ar_try) 2>&5
5559   ac_status=$?
5560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5561   test $ac_status = 0; }
5562       if test "$ac_status" -eq 0; then
5563         # Ensure the archiver fails upon bogus file names.
5564         rm -f conftest.$ac_objext libconftest.a
5565         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5566   (eval $lt_ar_try) 2>&5
5567   ac_status=$?
5568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5569   test $ac_status = 0; }
5570         if test "$ac_status" -ne 0; then
5571           lt_cv_ar_at_file=@
5572         fi
5573       fi
5574       rm -f conftest.* libconftest.a
5575
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578
5579 fi
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5581 $as_echo "$lt_cv_ar_at_file" >&6; }
5582
5583 if test "x$lt_cv_ar_at_file" = xno; then
5584   archiver_list_spec=
5585 else
5586   archiver_list_spec=$lt_cv_ar_at_file
5587 fi
5588
5589
5590
5591
5592
5593
5594
5595 if test -n "$ac_tool_prefix"; then
5596   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5597 set dummy ${ac_tool_prefix}strip; ac_word=$2
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if ${ac_cv_prog_STRIP+:} false; then :
5601   $as_echo_n "(cached) " >&6
5602 else
5603   if test -n "$STRIP"; then
5604   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5608 do
5609   IFS=$as_save_IFS
5610   test -z "$as_dir" && as_dir=.
5611     for ac_exec_ext in '' $ac_executable_extensions; do
5612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5613     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615     break 2
5616   fi
5617 done
5618   done
5619 IFS=$as_save_IFS
5620
5621 fi
5622 fi
5623 STRIP=$ac_cv_prog_STRIP
5624 if test -n "$STRIP"; then
5625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5626 $as_echo "$STRIP" >&6; }
5627 else
5628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5629 $as_echo "no" >&6; }
5630 fi
5631
5632
5633 fi
5634 if test -z "$ac_cv_prog_STRIP"; then
5635   ac_ct_STRIP=$STRIP
5636   # Extract the first word of "strip", so it can be a program name with args.
5637 set dummy strip; ac_word=$2
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5641   $as_echo_n "(cached) " >&6
5642 else
5643   if test -n "$ac_ct_STRIP"; then
5644   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5648 do
5649   IFS=$as_save_IFS
5650   test -z "$as_dir" && as_dir=.
5651     for ac_exec_ext in '' $ac_executable_extensions; do
5652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653     ac_cv_prog_ac_ct_STRIP="strip"
5654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655     break 2
5656   fi
5657 done
5658   done
5659 IFS=$as_save_IFS
5660
5661 fi
5662 fi
5663 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5664 if test -n "$ac_ct_STRIP"; then
5665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5666 $as_echo "$ac_ct_STRIP" >&6; }
5667 else
5668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5670 fi
5671
5672   if test "x$ac_ct_STRIP" = x; then
5673     STRIP=":"
5674   else
5675     case $cross_compiling:$ac_tool_warned in
5676 yes:)
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5679 ac_tool_warned=yes ;;
5680 esac
5681     STRIP=$ac_ct_STRIP
5682   fi
5683 else
5684   STRIP="$ac_cv_prog_STRIP"
5685 fi
5686
5687 test -z "$STRIP" && STRIP=:
5688
5689
5690
5691
5692
5693
5694 if test -n "$ac_tool_prefix"; then
5695   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5696 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_RANLIB+:} false; then :
5700   $as_echo_n "(cached) " >&6
5701 else
5702   if test -n "$RANLIB"; then
5703   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5707 do
5708   IFS=$as_save_IFS
5709   test -z "$as_dir" && as_dir=.
5710     for ac_exec_ext in '' $ac_executable_extensions; do
5711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714     break 2
5715   fi
5716 done
5717   done
5718 IFS=$as_save_IFS
5719
5720 fi
5721 fi
5722 RANLIB=$ac_cv_prog_RANLIB
5723 if test -n "$RANLIB"; then
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5725 $as_echo "$RANLIB" >&6; }
5726 else
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5729 fi
5730
5731
5732 fi
5733 if test -z "$ac_cv_prog_RANLIB"; then
5734   ac_ct_RANLIB=$RANLIB
5735   # Extract the first word of "ranlib", so it can be a program name with args.
5736 set dummy ranlib; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5740   $as_echo_n "(cached) " >&6
5741 else
5742   if test -n "$ac_ct_RANLIB"; then
5743   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5744 else
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5747 do
5748   IFS=$as_save_IFS
5749   test -z "$as_dir" && as_dir=.
5750     for ac_exec_ext in '' $ac_executable_extensions; do
5751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5752     ac_cv_prog_ac_ct_RANLIB="ranlib"
5753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754     break 2
5755   fi
5756 done
5757   done
5758 IFS=$as_save_IFS
5759
5760 fi
5761 fi
5762 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5763 if test -n "$ac_ct_RANLIB"; then
5764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5765 $as_echo "$ac_ct_RANLIB" >&6; }
5766 else
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5769 fi
5770
5771   if test "x$ac_ct_RANLIB" = x; then
5772     RANLIB=":"
5773   else
5774     case $cross_compiling:$ac_tool_warned in
5775 yes:)
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5778 ac_tool_warned=yes ;;
5779 esac
5780     RANLIB=$ac_ct_RANLIB
5781   fi
5782 else
5783   RANLIB="$ac_cv_prog_RANLIB"
5784 fi
5785
5786 test -z "$RANLIB" && RANLIB=:
5787
5788
5789
5790
5791
5792
5793 # Determine commands to create old-style static archives.
5794 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5795 old_postinstall_cmds='chmod 644 $oldlib'
5796 old_postuninstall_cmds=
5797
5798 if test -n "$RANLIB"; then
5799   case $host_os in
5800   openbsd*)
5801     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5802     ;;
5803   *)
5804     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5805     ;;
5806   esac
5807   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5808 fi
5809
5810 case $host_os in
5811   darwin*)
5812     lock_old_archive_extraction=yes ;;
5813   *)
5814     lock_old_archive_extraction=no ;;
5815 esac
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855 # If no C compiler was specified, use CC.
5856 LTCC=${LTCC-"$CC"}
5857
5858 # If no C compiler flags were specified, use CFLAGS.
5859 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5860
5861 # Allow CC to be a program name with arguments.
5862 compiler=$CC
5863
5864
5865 # Check for command to grab the raw symbol name followed by C symbol from nm.
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5867 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5868 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5869   $as_echo_n "(cached) " >&6
5870 else
5871
5872 # These are sane defaults that work on at least a few old systems.
5873 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5874
5875 # Character class describing NM global symbol codes.
5876 symcode='[BCDEGRST]'
5877
5878 # Regexp to match symbols that can be accessed directly from C.
5879 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5880
5881 # Define system-specific variables.
5882 case $host_os in
5883 aix*)
5884   symcode='[BCDT]'
5885   ;;
5886 cygwin* | mingw* | pw32* | cegcc*)
5887   symcode='[ABCDGISTW]'
5888   ;;
5889 hpux*)
5890   if test "$host_cpu" = ia64; then
5891     symcode='[ABCDEGRST]'
5892   fi
5893   ;;
5894 irix* | nonstopux*)
5895   symcode='[BCDEGRST]'
5896   ;;
5897 osf*)
5898   symcode='[BCDEGQRST]'
5899   ;;
5900 solaris*)
5901   symcode='[BDRT]'
5902   ;;
5903 sco3.2v5*)
5904   symcode='[DT]'
5905   ;;
5906 sysv4.2uw2*)
5907   symcode='[DT]'
5908   ;;
5909 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5910   symcode='[ABDT]'
5911   ;;
5912 sysv4)
5913   symcode='[DFNSTU]'
5914   ;;
5915 esac
5916
5917 # If we're using GNU nm, then use its standard symbol codes.
5918 case `$NM -V 2>&1` in
5919 *GNU* | *'with BFD'*)
5920   symcode='[ABCDGIRSTW]' ;;
5921 esac
5922
5923 # Transform an extracted symbol line into a proper C declaration.
5924 # Some systems (esp. on ia64) link data and code symbols differently,
5925 # so use this general approach.
5926 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5927
5928 # Transform an extracted symbol line into symbol name and symbol address
5929 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5930 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'"
5931
5932 # Handle CRLF in mingw tool chain
5933 opt_cr=
5934 case $build_os in
5935 mingw*)
5936   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5937   ;;
5938 esac
5939
5940 # Try without a prefix underscore, then with it.
5941 for ac_symprfx in "" "_"; do
5942
5943   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5944   symxfrm="\\1 $ac_symprfx\\2 \\2"
5945
5946   # Write the raw and C identifiers.
5947   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5948     # Fake it for dumpbin and say T for any non-static function
5949     # and D for any global variable.
5950     # Also find C++ and __fastcall symbols from MSVC++,
5951     # which start with @ or ?.
5952     lt_cv_sys_global_symbol_pipe="$AWK '"\
5953 "     {last_section=section; section=\$ 3};"\
5954 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5955 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5956 "     \$ 0!~/External *\|/{next};"\
5957 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5958 "     {if(hide[section]) next};"\
5959 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5960 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5961 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5962 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5963 "     ' prfx=^$ac_symprfx"
5964   else
5965     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5966   fi
5967   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5968
5969   # Check to see that the pipe works correctly.
5970   pipe_works=no
5971
5972   rm -f conftest*
5973   cat > conftest.$ac_ext <<_LT_EOF
5974 #ifdef __cplusplus
5975 extern "C" {
5976 #endif
5977 char nm_test_var;
5978 void nm_test_func(void);
5979 void nm_test_func(void){}
5980 #ifdef __cplusplus
5981 }
5982 #endif
5983 int main(){nm_test_var='a';nm_test_func();return(0);}
5984 _LT_EOF
5985
5986   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5987   (eval $ac_compile) 2>&5
5988   ac_status=$?
5989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5990   test $ac_status = 0; }; then
5991     # Now try to grab the symbols.
5992     nlist=conftest.nm
5993     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5994   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5995   ac_status=$?
5996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5997   test $ac_status = 0; } && test -s "$nlist"; then
5998       # Try sorting and uniquifying the output.
5999       if sort "$nlist" | uniq > "$nlist"T; then
6000         mv -f "$nlist"T "$nlist"
6001       else
6002         rm -f "$nlist"T
6003       fi
6004
6005       # Make sure that we snagged all the symbols we need.
6006       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6007         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6008           cat <<_LT_EOF > conftest.$ac_ext
6009 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6010 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6011 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6012    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6013 # define LT_DLSYM_CONST
6014 #elif defined(__osf__)
6015 /* This system does not cope well with relocations in const data.  */
6016 # define LT_DLSYM_CONST
6017 #else
6018 # define LT_DLSYM_CONST const
6019 #endif
6020
6021 #ifdef __cplusplus
6022 extern "C" {
6023 #endif
6024
6025 _LT_EOF
6026           # Now generate the symbol file.
6027           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6028
6029           cat <<_LT_EOF >> conftest.$ac_ext
6030
6031 /* The mapping between symbol names and symbols.  */
6032 LT_DLSYM_CONST struct {
6033   const char *name;
6034   void       *address;
6035 }
6036 lt__PROGRAM__LTX_preloaded_symbols[] =
6037 {
6038   { "@PROGRAM@", (void *) 0 },
6039 _LT_EOF
6040           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6041           cat <<\_LT_EOF >> conftest.$ac_ext
6042   {0, (void *) 0}
6043 };
6044
6045 /* This works around a problem in FreeBSD linker */
6046 #ifdef FREEBSD_WORKAROUND
6047 static const void *lt_preloaded_setup() {
6048   return lt__PROGRAM__LTX_preloaded_symbols;
6049 }
6050 #endif
6051
6052 #ifdef __cplusplus
6053 }
6054 #endif
6055 _LT_EOF
6056           # Now try linking the two files.
6057           mv conftest.$ac_objext conftstm.$ac_objext
6058           lt_globsym_save_LIBS=$LIBS
6059           lt_globsym_save_CFLAGS=$CFLAGS
6060           LIBS="conftstm.$ac_objext"
6061           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6062           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6063   (eval $ac_link) 2>&5
6064   ac_status=$?
6065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6066   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6067             pipe_works=yes
6068           fi
6069           LIBS=$lt_globsym_save_LIBS
6070           CFLAGS=$lt_globsym_save_CFLAGS
6071         else
6072           echo "cannot find nm_test_func in $nlist" >&5
6073         fi
6074       else
6075         echo "cannot find nm_test_var in $nlist" >&5
6076       fi
6077     else
6078       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6079     fi
6080   else
6081     echo "$progname: failed program was:" >&5
6082     cat conftest.$ac_ext >&5
6083   fi
6084   rm -rf conftest* conftst*
6085
6086   # Do not use the global_symbol_pipe unless it works.
6087   if test "$pipe_works" = yes; then
6088     break
6089   else
6090     lt_cv_sys_global_symbol_pipe=
6091   fi
6092 done
6093
6094 fi
6095
6096 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6097   lt_cv_sys_global_symbol_to_cdecl=
6098 fi
6099 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6101 $as_echo "failed" >&6; }
6102 else
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6104 $as_echo "ok" >&6; }
6105 fi
6106
6107 # Response file support.
6108 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6109   nm_file_list_spec='@'
6110 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6111   nm_file_list_spec='@'
6112 fi
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6141 $as_echo_n "checking for sysroot... " >&6; }
6142
6143 # Check whether --with-sysroot was given.
6144 if test "${with_sysroot+set}" = set; then :
6145   withval=$with_sysroot;
6146 else
6147   with_sysroot=no
6148 fi
6149
6150
6151 lt_sysroot=
6152 case ${with_sysroot} in #(
6153  yes)
6154    if test "$GCC" = yes; then
6155      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6156    fi
6157    ;; #(
6158  /*)
6159    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6160    ;; #(
6161  no|'')
6162    ;; #(
6163  *)
6164    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6165 $as_echo "${with_sysroot}" >&6; }
6166    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6167    ;;
6168 esac
6169
6170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6171 $as_echo "${lt_sysroot:-no}" >&6; }
6172
6173
6174
6175
6176
6177 # Check whether --enable-libtool-lock was given.
6178 if test "${enable_libtool_lock+set}" = set; then :
6179   enableval=$enable_libtool_lock;
6180 fi
6181
6182 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6183
6184 # Some flags need to be propagated to the compiler or linker for good
6185 # libtool support.
6186 case $host in
6187 ia64-*-hpux*)
6188   # Find out which ABI we are using.
6189   echo 'int i;' > conftest.$ac_ext
6190   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6191   (eval $ac_compile) 2>&5
6192   ac_status=$?
6193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6194   test $ac_status = 0; }; then
6195     case `/usr/bin/file conftest.$ac_objext` in
6196       *ELF-32*)
6197         HPUX_IA64_MODE="32"
6198         ;;
6199       *ELF-64*)
6200         HPUX_IA64_MODE="64"
6201         ;;
6202     esac
6203   fi
6204   rm -rf conftest*
6205   ;;
6206 *-*-irix6*)
6207   # Find out which ABI we are using.
6208   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6209   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6210   (eval $ac_compile) 2>&5
6211   ac_status=$?
6212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6213   test $ac_status = 0; }; then
6214     if test "$lt_cv_prog_gnu_ld" = yes; then
6215       case `/usr/bin/file conftest.$ac_objext` in
6216         *32-bit*)
6217           LD="${LD-ld} -melf32bsmip"
6218           ;;
6219         *N32*)
6220           LD="${LD-ld} -melf32bmipn32"
6221           ;;
6222         *64-bit*)
6223           LD="${LD-ld} -melf64bmip"
6224         ;;
6225       esac
6226     else
6227       case `/usr/bin/file conftest.$ac_objext` in
6228         *32-bit*)
6229           LD="${LD-ld} -32"
6230           ;;
6231         *N32*)
6232           LD="${LD-ld} -n32"
6233           ;;
6234         *64-bit*)
6235           LD="${LD-ld} -64"
6236           ;;
6237       esac
6238     fi
6239   fi
6240   rm -rf conftest*
6241   ;;
6242
6243 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6244 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6245   # Find out which ABI we are using.
6246   echo 'int i;' > conftest.$ac_ext
6247   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6248   (eval $ac_compile) 2>&5
6249   ac_status=$?
6250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6251   test $ac_status = 0; }; then
6252     case `/usr/bin/file conftest.o` in
6253       *32-bit*)
6254         case $host in
6255           x86_64-*kfreebsd*-gnu)
6256             LD="${LD-ld} -m elf_i386_fbsd"
6257             ;;
6258           x86_64-*linux*)
6259             LD="${LD-ld} -m elf_i386"
6260             ;;
6261           powerpcle-*linux*)
6262             LD="${LD-ld} -m elf32lppclinux"
6263             ;;
6264           powerpc-*linux*)
6265             LD="${LD-ld} -m elf32ppclinux"
6266             ;;
6267           s390x-*linux*)
6268             LD="${LD-ld} -m elf_s390"
6269             ;;
6270           sparc64-*linux*)
6271             LD="${LD-ld} -m elf32_sparc"
6272             ;;
6273         esac
6274         ;;
6275       *64-bit*)
6276         case $host in
6277           x86_64-*kfreebsd*-gnu)
6278             LD="${LD-ld} -m elf_x86_64_fbsd"
6279             ;;
6280           x86_64-*linux*)
6281             LD="${LD-ld} -m elf_x86_64"
6282             ;;
6283           powerpcle-*linux*)
6284             LD="${LD-ld} -m elf64lppc"
6285             ;;
6286           powerpc-*linux*)
6287             LD="${LD-ld} -m elf64ppc"
6288             ;;
6289           s390*-*linux*|s390*-*tpf*)
6290             LD="${LD-ld} -m elf64_s390"
6291             ;;
6292           sparc*-*linux*)
6293             LD="${LD-ld} -m elf64_sparc"
6294             ;;
6295         esac
6296         ;;
6297     esac
6298   fi
6299   rm -rf conftest*
6300   ;;
6301
6302 *-*-sco3.2v5*)
6303   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6304   SAVE_CFLAGS="$CFLAGS"
6305   CFLAGS="$CFLAGS -belf"
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6307 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6308 if ${lt_cv_cc_needs_belf+:} false; then :
6309   $as_echo_n "(cached) " >&6
6310 else
6311   ac_ext=c
6312 ac_cpp='$CPP $CPPFLAGS'
6313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6316
6317      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h.  */
6319
6320 int
6321 main ()
6322 {
6323
6324   ;
6325   return 0;
6326 }
6327 _ACEOF
6328 if ac_fn_c_try_link "$LINENO"; then :
6329   lt_cv_cc_needs_belf=yes
6330 else
6331   lt_cv_cc_needs_belf=no
6332 fi
6333 rm -f core conftest.err conftest.$ac_objext \
6334     conftest$ac_exeext conftest.$ac_ext
6335      ac_ext=c
6336 ac_cpp='$CPP $CPPFLAGS'
6337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6340
6341 fi
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6343 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6344   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6345     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6346     CFLAGS="$SAVE_CFLAGS"
6347   fi
6348   ;;
6349 *-*solaris*)
6350   # Find out which ABI we are using.
6351   echo 'int i;' > conftest.$ac_ext
6352   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6353   (eval $ac_compile) 2>&5
6354   ac_status=$?
6355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6356   test $ac_status = 0; }; then
6357     case `/usr/bin/file conftest.o` in
6358     *64-bit*)
6359       case $lt_cv_prog_gnu_ld in
6360       yes*)
6361         case $host in
6362         i?86-*-solaris*)
6363           LD="${LD-ld} -m elf_x86_64"
6364           ;;
6365         sparc*-*-solaris*)
6366           LD="${LD-ld} -m elf64_sparc"
6367           ;;
6368         esac
6369         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6370         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6371           LD="${LD-ld}_sol2"
6372         fi
6373         ;;
6374       *)
6375         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6376           LD="${LD-ld} -64"
6377         fi
6378         ;;
6379       esac
6380       ;;
6381     esac
6382   fi
6383   rm -rf conftest*
6384   ;;
6385 esac
6386
6387 need_locks="$enable_libtool_lock"
6388
6389 if test -n "$ac_tool_prefix"; then
6390   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6391 set dummy ${ac_tool_prefix}mt; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6395   $as_echo_n "(cached) " >&6
6396 else
6397   if test -n "$MANIFEST_TOOL"; then
6398   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6402 do
6403   IFS=$as_save_IFS
6404   test -z "$as_dir" && as_dir=.
6405     for ac_exec_ext in '' $ac_executable_extensions; do
6406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6407     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409     break 2
6410   fi
6411 done
6412   done
6413 IFS=$as_save_IFS
6414
6415 fi
6416 fi
6417 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6418 if test -n "$MANIFEST_TOOL"; then
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6420 $as_echo "$MANIFEST_TOOL" >&6; }
6421 else
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6424 fi
6425
6426
6427 fi
6428 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6429   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6430   # Extract the first word of "mt", so it can be a program name with args.
6431 set dummy mt; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6435   $as_echo_n "(cached) " >&6
6436 else
6437   if test -n "$ac_ct_MANIFEST_TOOL"; then
6438   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443   IFS=$as_save_IFS
6444   test -z "$as_dir" && as_dir=.
6445     for ac_exec_ext in '' $ac_executable_extensions; do
6446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452   done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6458 if test -n "$ac_ct_MANIFEST_TOOL"; then
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6460 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6461 else
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6465
6466   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6467     MANIFEST_TOOL=":"
6468   else
6469     case $cross_compiling:$ac_tool_warned in
6470 yes:)
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6473 ac_tool_warned=yes ;;
6474 esac
6475     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6476   fi
6477 else
6478   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6479 fi
6480
6481 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6483 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6484 if ${lt_cv_path_mainfest_tool+:} false; then :
6485   $as_echo_n "(cached) " >&6
6486 else
6487   lt_cv_path_mainfest_tool=no
6488   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6489   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6490   cat conftest.err >&5
6491   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6492     lt_cv_path_mainfest_tool=yes
6493   fi
6494   rm -f conftest*
6495 fi
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6497 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6498 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6499   MANIFEST_TOOL=:
6500 fi
6501
6502
6503
6504
6505
6506
6507   case $host_os in
6508     rhapsody* | darwin*)
6509     if test -n "$ac_tool_prefix"; then
6510   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6511 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6515   $as_echo_n "(cached) " >&6
6516 else
6517   if test -n "$DSYMUTIL"; then
6518   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6519 else
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523   IFS=$as_save_IFS
6524   test -z "$as_dir" && as_dir=.
6525     for ac_exec_ext in '' $ac_executable_extensions; do
6526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529     break 2
6530   fi
6531 done
6532   done
6533 IFS=$as_save_IFS
6534
6535 fi
6536 fi
6537 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6538 if test -n "$DSYMUTIL"; then
6539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6540 $as_echo "$DSYMUTIL" >&6; }
6541 else
6542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6544 fi
6545
6546
6547 fi
6548 if test -z "$ac_cv_prog_DSYMUTIL"; then
6549   ac_ct_DSYMUTIL=$DSYMUTIL
6550   # Extract the first word of "dsymutil", so it can be a program name with args.
6551 set dummy dsymutil; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6555   $as_echo_n "(cached) " >&6
6556 else
6557   if test -n "$ac_ct_DSYMUTIL"; then
6558   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563   IFS=$as_save_IFS
6564   test -z "$as_dir" && as_dir=.
6565     for ac_exec_ext in '' $ac_executable_extensions; do
6566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6567     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569     break 2
6570   fi
6571 done
6572   done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6578 if test -n "$ac_ct_DSYMUTIL"; then
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6580 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6581 else
6582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6584 fi
6585
6586   if test "x$ac_ct_DSYMUTIL" = x; then
6587     DSYMUTIL=":"
6588   else
6589     case $cross_compiling:$ac_tool_warned in
6590 yes:)
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6593 ac_tool_warned=yes ;;
6594 esac
6595     DSYMUTIL=$ac_ct_DSYMUTIL
6596   fi
6597 else
6598   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6599 fi
6600
6601     if test -n "$ac_tool_prefix"; then
6602   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6603 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if ${ac_cv_prog_NMEDIT+:} false; then :
6607   $as_echo_n "(cached) " >&6
6608 else
6609   if test -n "$NMEDIT"; then
6610   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6611 else
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6614 do
6615   IFS=$as_save_IFS
6616   test -z "$as_dir" && as_dir=.
6617     for ac_exec_ext in '' $ac_executable_extensions; do
6618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6619     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621     break 2
6622   fi
6623 done
6624   done
6625 IFS=$as_save_IFS
6626
6627 fi
6628 fi
6629 NMEDIT=$ac_cv_prog_NMEDIT
6630 if test -n "$NMEDIT"; then
6631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6632 $as_echo "$NMEDIT" >&6; }
6633 else
6634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 $as_echo "no" >&6; }
6636 fi
6637
6638
6639 fi
6640 if test -z "$ac_cv_prog_NMEDIT"; then
6641   ac_ct_NMEDIT=$NMEDIT
6642   # Extract the first word of "nmedit", so it can be a program name with args.
6643 set dummy nmedit; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6647   $as_echo_n "(cached) " >&6
6648 else
6649   if test -n "$ac_ct_NMEDIT"; then
6650   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6651 else
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6654 do
6655   IFS=$as_save_IFS
6656   test -z "$as_dir" && as_dir=.
6657     for ac_exec_ext in '' $ac_executable_extensions; do
6658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6659     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661     break 2
6662   fi
6663 done
6664   done
6665 IFS=$as_save_IFS
6666
6667 fi
6668 fi
6669 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6670 if test -n "$ac_ct_NMEDIT"; then
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6672 $as_echo "$ac_ct_NMEDIT" >&6; }
6673 else
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6676 fi
6677
6678   if test "x$ac_ct_NMEDIT" = x; then
6679     NMEDIT=":"
6680   else
6681     case $cross_compiling:$ac_tool_warned in
6682 yes:)
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6685 ac_tool_warned=yes ;;
6686 esac
6687     NMEDIT=$ac_ct_NMEDIT
6688   fi
6689 else
6690   NMEDIT="$ac_cv_prog_NMEDIT"
6691 fi
6692
6693     if test -n "$ac_tool_prefix"; then
6694   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6695 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_LIPO+:} false; then :
6699   $as_echo_n "(cached) " >&6
6700 else
6701   if test -n "$LIPO"; then
6702   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707   IFS=$as_save_IFS
6708   test -z "$as_dir" && as_dir=.
6709     for ac_exec_ext in '' $ac_executable_extensions; do
6710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713     break 2
6714   fi
6715 done
6716   done
6717 IFS=$as_save_IFS
6718
6719 fi
6720 fi
6721 LIPO=$ac_cv_prog_LIPO
6722 if test -n "$LIPO"; then
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6724 $as_echo "$LIPO" >&6; }
6725 else
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6728 fi
6729
6730
6731 fi
6732 if test -z "$ac_cv_prog_LIPO"; then
6733   ac_ct_LIPO=$LIPO
6734   # Extract the first word of "lipo", so it can be a program name with args.
6735 set dummy lipo; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6739   $as_echo_n "(cached) " >&6
6740 else
6741   if test -n "$ac_ct_LIPO"; then
6742   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6743 else
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6746 do
6747   IFS=$as_save_IFS
6748   test -z "$as_dir" && as_dir=.
6749     for ac_exec_ext in '' $ac_executable_extensions; do
6750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6751     ac_cv_prog_ac_ct_LIPO="lipo"
6752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753     break 2
6754   fi
6755 done
6756   done
6757 IFS=$as_save_IFS
6758
6759 fi
6760 fi
6761 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6762 if test -n "$ac_ct_LIPO"; then
6763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6764 $as_echo "$ac_ct_LIPO" >&6; }
6765 else
6766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6768 fi
6769
6770   if test "x$ac_ct_LIPO" = x; then
6771     LIPO=":"
6772   else
6773     case $cross_compiling:$ac_tool_warned in
6774 yes:)
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6777 ac_tool_warned=yes ;;
6778 esac
6779     LIPO=$ac_ct_LIPO
6780   fi
6781 else
6782   LIPO="$ac_cv_prog_LIPO"
6783 fi
6784
6785     if test -n "$ac_tool_prefix"; then
6786   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}otool; ac_word=$2
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789 $as_echo_n "checking for $ac_word... " >&6; }
6790 if ${ac_cv_prog_OTOOL+:} false; then :
6791   $as_echo_n "(cached) " >&6
6792 else
6793   if test -n "$OTOOL"; then
6794   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801     for ac_exec_ext in '' $ac_executable_extensions; do
6802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6803     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808   done
6809 IFS=$as_save_IFS
6810
6811 fi
6812 fi
6813 OTOOL=$ac_cv_prog_OTOOL
6814 if test -n "$OTOOL"; then
6815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6816 $as_echo "$OTOOL" >&6; }
6817 else
6818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819 $as_echo "no" >&6; }
6820 fi
6821
6822
6823 fi
6824 if test -z "$ac_cv_prog_OTOOL"; then
6825   ac_ct_OTOOL=$OTOOL
6826   # Extract the first word of "otool", so it can be a program name with args.
6827 set dummy otool; ac_word=$2
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6831   $as_echo_n "(cached) " >&6
6832 else
6833   if test -n "$ac_ct_OTOOL"; then
6834   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839   IFS=$as_save_IFS
6840   test -z "$as_dir" && as_dir=.
6841     for ac_exec_ext in '' $ac_executable_extensions; do
6842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6843     ac_cv_prog_ac_ct_OTOOL="otool"
6844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845     break 2
6846   fi
6847 done
6848   done
6849 IFS=$as_save_IFS
6850
6851 fi
6852 fi
6853 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6854 if test -n "$ac_ct_OTOOL"; then
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6856 $as_echo "$ac_ct_OTOOL" >&6; }
6857 else
6858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859 $as_echo "no" >&6; }
6860 fi
6861
6862   if test "x$ac_ct_OTOOL" = x; then
6863     OTOOL=":"
6864   else
6865     case $cross_compiling:$ac_tool_warned in
6866 yes:)
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6869 ac_tool_warned=yes ;;
6870 esac
6871     OTOOL=$ac_ct_OTOOL
6872   fi
6873 else
6874   OTOOL="$ac_cv_prog_OTOOL"
6875 fi
6876
6877     if test -n "$ac_tool_prefix"; then
6878   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6879 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if ${ac_cv_prog_OTOOL64+:} false; then :
6883   $as_echo_n "(cached) " >&6
6884 else
6885   if test -n "$OTOOL64"; then
6886   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6887 else
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6890 do
6891   IFS=$as_save_IFS
6892   test -z "$as_dir" && as_dir=.
6893     for ac_exec_ext in '' $ac_executable_extensions; do
6894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897     break 2
6898   fi
6899 done
6900   done
6901 IFS=$as_save_IFS
6902
6903 fi
6904 fi
6905 OTOOL64=$ac_cv_prog_OTOOL64
6906 if test -n "$OTOOL64"; then
6907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6908 $as_echo "$OTOOL64" >&6; }
6909 else
6910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911 $as_echo "no" >&6; }
6912 fi
6913
6914
6915 fi
6916 if test -z "$ac_cv_prog_OTOOL64"; then
6917   ac_ct_OTOOL64=$OTOOL64
6918   # Extract the first word of "otool64", so it can be a program name with args.
6919 set dummy otool64; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6923   $as_echo_n "(cached) " >&6
6924 else
6925   if test -n "$ac_ct_OTOOL64"; then
6926   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6927 else
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931   IFS=$as_save_IFS
6932   test -z "$as_dir" && as_dir=.
6933     for ac_exec_ext in '' $ac_executable_extensions; do
6934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6935     ac_cv_prog_ac_ct_OTOOL64="otool64"
6936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937     break 2
6938   fi
6939 done
6940   done
6941 IFS=$as_save_IFS
6942
6943 fi
6944 fi
6945 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6946 if test -n "$ac_ct_OTOOL64"; then
6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6948 $as_echo "$ac_ct_OTOOL64" >&6; }
6949 else
6950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6952 fi
6953
6954   if test "x$ac_ct_OTOOL64" = x; then
6955     OTOOL64=":"
6956   else
6957     case $cross_compiling:$ac_tool_warned in
6958 yes:)
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6961 ac_tool_warned=yes ;;
6962 esac
6963     OTOOL64=$ac_ct_OTOOL64
6964   fi
6965 else
6966   OTOOL64="$ac_cv_prog_OTOOL64"
6967 fi
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6996 $as_echo_n "checking for -single_module linker flag... " >&6; }
6997 if ${lt_cv_apple_cc_single_mod+:} false; then :
6998   $as_echo_n "(cached) " >&6
6999 else
7000   lt_cv_apple_cc_single_mod=no
7001       if test -z "${LT_MULTI_MODULE}"; then
7002         # By default we will add the -single_module flag. You can override
7003         # by either setting the environment variable LT_MULTI_MODULE
7004         # non-empty at configure time, or by adding -multi_module to the
7005         # link flags.
7006         rm -rf libconftest.dylib*
7007         echo "int foo(void){return 1;}" > conftest.c
7008         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7009 -dynamiclib -Wl,-single_module conftest.c" >&5
7010         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7011           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7012         _lt_result=$?
7013         # If there is a non-empty error log, and "single_module"
7014         # appears in it, assume the flag caused a linker warning
7015         if test -s conftest.err && $GREP single_module conftest.err; then
7016           cat conftest.err >&5
7017         # Otherwise, if the output was created with a 0 exit code from
7018         # the compiler, it worked.
7019         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7020           lt_cv_apple_cc_single_mod=yes
7021         else
7022           cat conftest.err >&5
7023         fi
7024         rm -rf libconftest.dylib*
7025         rm -f conftest.*
7026       fi
7027 fi
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7029 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7030
7031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7032 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7033 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7034   $as_echo_n "(cached) " >&6
7035 else
7036   lt_cv_ld_exported_symbols_list=no
7037       save_LDFLAGS=$LDFLAGS
7038       echo "_main" > conftest.sym
7039       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7040       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h.  */
7042
7043 int
7044 main ()
7045 {
7046
7047   ;
7048   return 0;
7049 }
7050 _ACEOF
7051 if ac_fn_c_try_link "$LINENO"; then :
7052   lt_cv_ld_exported_symbols_list=yes
7053 else
7054   lt_cv_ld_exported_symbols_list=no
7055 fi
7056 rm -f core conftest.err conftest.$ac_objext \
7057     conftest$ac_exeext conftest.$ac_ext
7058         LDFLAGS="$save_LDFLAGS"
7059
7060 fi
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7062 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7063
7064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7065 $as_echo_n "checking for -force_load linker flag... " >&6; }
7066 if ${lt_cv_ld_force_load+:} false; then :
7067   $as_echo_n "(cached) " >&6
7068 else
7069   lt_cv_ld_force_load=no
7070       cat > conftest.c << _LT_EOF
7071 int forced_loaded() { return 2;}
7072 _LT_EOF
7073       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7074       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7075       echo "$AR cru libconftest.a conftest.o" >&5
7076       $AR cru libconftest.a conftest.o 2>&5
7077       echo "$RANLIB libconftest.a" >&5
7078       $RANLIB libconftest.a 2>&5
7079       cat > conftest.c << _LT_EOF
7080 int main() { return 0;}
7081 _LT_EOF
7082       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7083       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7084       _lt_result=$?
7085       if test -s conftest.err && $GREP force_load conftest.err; then
7086         cat conftest.err >&5
7087       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7088         lt_cv_ld_force_load=yes
7089       else
7090         cat conftest.err >&5
7091       fi
7092         rm -f conftest.err libconftest.a conftest conftest.c
7093         rm -rf conftest.dSYM
7094
7095 fi
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7097 $as_echo "$lt_cv_ld_force_load" >&6; }
7098     case $host_os in
7099     rhapsody* | darwin1.[012])
7100       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7101     darwin1.*)
7102       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7103     darwin*) # darwin 5.x on
7104       # if running on 10.5 or later, the deployment target defaults
7105       # to the OS version, if on x86, and 10.4, the deployment
7106       # target defaults to 10.4. Don't you love it?
7107       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7108         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7109           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7110         10.[012]*)
7111           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7112         10.*)
7113           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7114       esac
7115     ;;
7116   esac
7117     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7118       _lt_dar_single_mod='$single_module'
7119     fi
7120     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7121       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7122     else
7123       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7124     fi
7125     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7126       _lt_dsymutil='~$DSYMUTIL $lib || :'
7127     else
7128       _lt_dsymutil=
7129     fi
7130     ;;
7131   esac
7132
7133 ac_ext=c
7134 ac_cpp='$CPP $CPPFLAGS'
7135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7139 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7140 # On Suns, sometimes $CPP names a directory.
7141 if test -n "$CPP" && test -d "$CPP"; then
7142   CPP=
7143 fi
7144 if test -z "$CPP"; then
7145   if ${ac_cv_prog_CPP+:} false; then :
7146   $as_echo_n "(cached) " >&6
7147 else
7148       # Double quotes because CPP needs to be expanded
7149     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7150     do
7151       ac_preproc_ok=false
7152 for ac_c_preproc_warn_flag in '' yes
7153 do
7154   # Use a header file that comes with gcc, so configuring glibc
7155   # with a fresh cross-compiler works.
7156   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7157   # <limits.h> exists even on freestanding compilers.
7158   # On the NeXT, cc -E runs the code through the compiler's parser,
7159   # not just through cpp. "Syntax error" is here to catch this case.
7160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h.  */
7162 #ifdef __STDC__
7163 # include <limits.h>
7164 #else
7165 # include <assert.h>
7166 #endif
7167                      Syntax error
7168 _ACEOF
7169 if ac_fn_c_try_cpp "$LINENO"; then :
7170
7171 else
7172   # Broken: fails on valid input.
7173 continue
7174 fi
7175 rm -f conftest.err conftest.i conftest.$ac_ext
7176
7177   # OK, works on sane cases.  Now check whether nonexistent headers
7178   # can be detected and how.
7179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h.  */
7181 #include <ac_nonexistent.h>
7182 _ACEOF
7183 if ac_fn_c_try_cpp "$LINENO"; then :
7184   # Broken: success on invalid input.
7185 continue
7186 else
7187   # Passes both tests.
7188 ac_preproc_ok=:
7189 break
7190 fi
7191 rm -f conftest.err conftest.i conftest.$ac_ext
7192
7193 done
7194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7195 rm -f conftest.i conftest.err conftest.$ac_ext
7196 if $ac_preproc_ok; then :
7197   break
7198 fi
7199
7200     done
7201     ac_cv_prog_CPP=$CPP
7202
7203 fi
7204   CPP=$ac_cv_prog_CPP
7205 else
7206   ac_cv_prog_CPP=$CPP
7207 fi
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7209 $as_echo "$CPP" >&6; }
7210 ac_preproc_ok=false
7211 for ac_c_preproc_warn_flag in '' yes
7212 do
7213   # Use a header file that comes with gcc, so configuring glibc
7214   # with a fresh cross-compiler works.
7215   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7216   # <limits.h> exists even on freestanding compilers.
7217   # On the NeXT, cc -E runs the code through the compiler's parser,
7218   # not just through cpp. "Syntax error" is here to catch this case.
7219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h.  */
7221 #ifdef __STDC__
7222 # include <limits.h>
7223 #else
7224 # include <assert.h>
7225 #endif
7226                      Syntax error
7227 _ACEOF
7228 if ac_fn_c_try_cpp "$LINENO"; then :
7229
7230 else
7231   # Broken: fails on valid input.
7232 continue
7233 fi
7234 rm -f conftest.err conftest.i conftest.$ac_ext
7235
7236   # OK, works on sane cases.  Now check whether nonexistent headers
7237   # can be detected and how.
7238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h.  */
7240 #include <ac_nonexistent.h>
7241 _ACEOF
7242 if ac_fn_c_try_cpp "$LINENO"; then :
7243   # Broken: success on invalid input.
7244 continue
7245 else
7246   # Passes both tests.
7247 ac_preproc_ok=:
7248 break
7249 fi
7250 rm -f conftest.err conftest.i conftest.$ac_ext
7251
7252 done
7253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7254 rm -f conftest.i conftest.err conftest.$ac_ext
7255 if $ac_preproc_ok; then :
7256
7257 else
7258   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7260 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7261 See \`config.log' for more details" "$LINENO" 5; }
7262 fi
7263
7264 ac_ext=c
7265 ac_cpp='$CPP $CPPFLAGS'
7266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269
7270
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7272 $as_echo_n "checking for ANSI C header files... " >&6; }
7273 if ${ac_cv_header_stdc+:} false; then :
7274   $as_echo_n "(cached) " >&6
7275 else
7276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h.  */
7278 #include <stdlib.h>
7279 #include <stdarg.h>
7280 #include <string.h>
7281 #include <float.h>
7282
7283 int
7284 main ()
7285 {
7286
7287   ;
7288   return 0;
7289 }
7290 _ACEOF
7291 if ac_fn_c_try_compile "$LINENO"; then :
7292   ac_cv_header_stdc=yes
7293 else
7294   ac_cv_header_stdc=no
7295 fi
7296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297
7298 if test $ac_cv_header_stdc = yes; then
7299   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h.  */
7302 #include <string.h>
7303
7304 _ACEOF
7305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7306   $EGREP "memchr" >/dev/null 2>&1; then :
7307
7308 else
7309   ac_cv_header_stdc=no
7310 fi
7311 rm -f conftest*
7312
7313 fi
7314
7315 if test $ac_cv_header_stdc = yes; then
7316   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h.  */
7319 #include <stdlib.h>
7320
7321 _ACEOF
7322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7323   $EGREP "free" >/dev/null 2>&1; then :
7324
7325 else
7326   ac_cv_header_stdc=no
7327 fi
7328 rm -f conftest*
7329
7330 fi
7331
7332 if test $ac_cv_header_stdc = yes; then
7333   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7334   if test "$cross_compiling" = yes; then :
7335   :
7336 else
7337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h.  */
7339 #include <ctype.h>
7340 #include <stdlib.h>
7341 #if ((' ' & 0x0FF) == 0x020)
7342 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7343 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7344 #else
7345 # define ISLOWER(c) \
7346                    (('a' <= (c) && (c) <= 'i') \
7347                      || ('j' <= (c) && (c) <= 'r') \
7348                      || ('s' <= (c) && (c) <= 'z'))
7349 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7350 #endif
7351
7352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7353 int
7354 main ()
7355 {
7356   int i;
7357   for (i = 0; i < 256; i++)
7358     if (XOR (islower (i), ISLOWER (i))
7359         || toupper (i) != TOUPPER (i))
7360       return 2;
7361   return 0;
7362 }
7363 _ACEOF
7364 if ac_fn_c_try_run "$LINENO"; then :
7365
7366 else
7367   ac_cv_header_stdc=no
7368 fi
7369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7370   conftest.$ac_objext conftest.beam conftest.$ac_ext
7371 fi
7372
7373 fi
7374 fi
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7376 $as_echo "$ac_cv_header_stdc" >&6; }
7377 if test $ac_cv_header_stdc = yes; then
7378
7379 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7380
7381 fi
7382
7383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7384 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7385                   inttypes.h stdint.h unistd.h
7386 do :
7387   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7388 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7389 "
7390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7391   cat >>confdefs.h <<_ACEOF
7392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7393 _ACEOF
7394
7395 fi
7396
7397 done
7398
7399
7400 for ac_header in dlfcn.h
7401 do :
7402   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7403 "
7404 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7405   cat >>confdefs.h <<_ACEOF
7406 #define HAVE_DLFCN_H 1
7407 _ACEOF
7408
7409 fi
7410
7411 done
7412
7413
7414
7415
7416
7417 # Set options
7418 # Check whether --enable-static was given.
7419 if test "${enable_static+set}" = set; then :
7420   enableval=$enable_static; p=${PACKAGE-default}
7421     case $enableval in
7422     yes) enable_static=yes ;;
7423     no) enable_static=no ;;
7424     *)
7425      enable_static=no
7426       # Look at the argument we got.  We use all the common list separators.
7427       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7428       for pkg in $enableval; do
7429         IFS="$lt_save_ifs"
7430         if test "X$pkg" = "X$p"; then
7431           enable_static=yes
7432         fi
7433       done
7434       IFS="$lt_save_ifs"
7435       ;;
7436     esac
7437 else
7438   enable_static=no
7439 fi
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450         enable_dlopen=no
7451
7452
7453   enable_win32_dll=no
7454
7455
7456             # Check whether --enable-shared was given.
7457 if test "${enable_shared+set}" = set; then :
7458   enableval=$enable_shared; p=${PACKAGE-default}
7459     case $enableval in
7460     yes) enable_shared=yes ;;
7461     no) enable_shared=no ;;
7462     *)
7463       enable_shared=no
7464       # Look at the argument we got.  We use all the common list separators.
7465       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7466       for pkg in $enableval; do
7467         IFS="$lt_save_ifs"
7468         if test "X$pkg" = "X$p"; then
7469           enable_shared=yes
7470         fi
7471       done
7472       IFS="$lt_save_ifs"
7473       ;;
7474     esac
7475 else
7476   enable_shared=yes
7477 fi
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489 # Check whether --with-pic was given.
7490 if test "${with_pic+set}" = set; then :
7491   withval=$with_pic; lt_p=${PACKAGE-default}
7492     case $withval in
7493     yes|no) pic_mode=$withval ;;
7494     *)
7495       pic_mode=default
7496       # Look at the argument we got.  We use all the common list separators.
7497       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7498       for lt_pkg in $withval; do
7499         IFS="$lt_save_ifs"
7500         if test "X$lt_pkg" = "X$lt_p"; then
7501           pic_mode=yes
7502         fi
7503       done
7504       IFS="$lt_save_ifs"
7505       ;;
7506     esac
7507 else
7508   pic_mode=default
7509 fi
7510
7511
7512 test -z "$pic_mode" && pic_mode=default
7513
7514
7515
7516
7517
7518
7519
7520   # Check whether --enable-fast-install was given.
7521 if test "${enable_fast_install+set}" = set; then :
7522   enableval=$enable_fast_install; p=${PACKAGE-default}
7523     case $enableval in
7524     yes) enable_fast_install=yes ;;
7525     no) enable_fast_install=no ;;
7526     *)
7527       enable_fast_install=no
7528       # Look at the argument we got.  We use all the common list separators.
7529       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7530       for pkg in $enableval; do
7531         IFS="$lt_save_ifs"
7532         if test "X$pkg" = "X$p"; then
7533           enable_fast_install=yes
7534         fi
7535       done
7536       IFS="$lt_save_ifs"
7537       ;;
7538     esac
7539 else
7540   enable_fast_install=yes
7541 fi
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553 # This can be used to rebuild libtool when needed
7554 LIBTOOL_DEPS="$ltmain"
7555
7556 # Always use our own libtool.
7557 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588 test -z "$LN_S" && LN_S="ln -s"
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603 if test -n "${ZSH_VERSION+set}" ; then
7604    setopt NO_GLOB_SUBST
7605 fi
7606
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7608 $as_echo_n "checking for objdir... " >&6; }
7609 if ${lt_cv_objdir+:} false; then :
7610   $as_echo_n "(cached) " >&6
7611 else
7612   rm -f .libs 2>/dev/null
7613 mkdir .libs 2>/dev/null
7614 if test -d .libs; then
7615   lt_cv_objdir=.libs
7616 else
7617   # MS-DOS does not allow filenames that begin with a dot.
7618   lt_cv_objdir=_libs
7619 fi
7620 rmdir .libs 2>/dev/null
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7623 $as_echo "$lt_cv_objdir" >&6; }
7624 objdir=$lt_cv_objdir
7625
7626
7627
7628
7629
7630 cat >>confdefs.h <<_ACEOF
7631 #define LT_OBJDIR "$lt_cv_objdir/"
7632 _ACEOF
7633
7634
7635
7636
7637 case $host_os in
7638 aix3*)
7639   # AIX sometimes has problems with the GCC collect2 program.  For some
7640   # reason, if we set the COLLECT_NAMES environment variable, the problems
7641   # vanish in a puff of smoke.
7642   if test "X${COLLECT_NAMES+set}" != Xset; then
7643     COLLECT_NAMES=
7644     export COLLECT_NAMES
7645   fi
7646   ;;
7647 esac
7648
7649 # Global variables:
7650 ofile=libtool
7651 can_build_shared=yes
7652
7653 # All known linkers require a `.a' archive for static linking (except MSVC,
7654 # which needs '.lib').
7655 libext=a
7656
7657 with_gnu_ld="$lt_cv_prog_gnu_ld"
7658
7659 old_CC="$CC"
7660 old_CFLAGS="$CFLAGS"
7661
7662 # Set sane defaults for various variables
7663 test -z "$CC" && CC=cc
7664 test -z "$LTCC" && LTCC=$CC
7665 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7666 test -z "$LD" && LD=ld
7667 test -z "$ac_objext" && ac_objext=o
7668
7669 for cc_temp in $compiler""; do
7670   case $cc_temp in
7671     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7672     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7673     \-*) ;;
7674     *) break;;
7675   esac
7676 done
7677 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7678
7679
7680 # Only perform the check for file, if the check method requires it
7681 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7682 case $deplibs_check_method in
7683 file_magic*)
7684   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7686 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7687 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7688   $as_echo_n "(cached) " >&6
7689 else
7690   case $MAGIC_CMD in
7691 [\\/*] |  ?:[\\/]*)
7692   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7693   ;;
7694 *)
7695   lt_save_MAGIC_CMD="$MAGIC_CMD"
7696   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7697   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7698   for ac_dir in $ac_dummy; do
7699     IFS="$lt_save_ifs"
7700     test -z "$ac_dir" && ac_dir=.
7701     if test -f $ac_dir/${ac_tool_prefix}file; then
7702       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7703       if test -n "$file_magic_test_file"; then
7704         case $deplibs_check_method in
7705         "file_magic "*)
7706           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7707           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7708           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7709             $EGREP "$file_magic_regex" > /dev/null; then
7710             :
7711           else
7712             cat <<_LT_EOF 1>&2
7713
7714 *** Warning: the command libtool uses to detect shared libraries,
7715 *** $file_magic_cmd, produces output that libtool cannot recognize.
7716 *** The result is that libtool may fail to recognize shared libraries
7717 *** as such.  This will affect the creation of libtool libraries that
7718 *** depend on shared libraries, but programs linked with such libtool
7719 *** libraries will work regardless of this problem.  Nevertheless, you
7720 *** may want to report the problem to your system manager and/or to
7721 *** bug-libtool@gnu.org
7722
7723 _LT_EOF
7724           fi ;;
7725         esac
7726       fi
7727       break
7728     fi
7729   done
7730   IFS="$lt_save_ifs"
7731   MAGIC_CMD="$lt_save_MAGIC_CMD"
7732   ;;
7733 esac
7734 fi
7735
7736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7737 if test -n "$MAGIC_CMD"; then
7738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7739 $as_echo "$MAGIC_CMD" >&6; }
7740 else
7741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744
7745
7746
7747
7748
7749 if test -z "$lt_cv_path_MAGIC_CMD"; then
7750   if test -n "$ac_tool_prefix"; then
7751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7752 $as_echo_n "checking for file... " >&6; }
7753 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7754   $as_echo_n "(cached) " >&6
7755 else
7756   case $MAGIC_CMD in
7757 [\\/*] |  ?:[\\/]*)
7758   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7759   ;;
7760 *)
7761   lt_save_MAGIC_CMD="$MAGIC_CMD"
7762   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7763   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7764   for ac_dir in $ac_dummy; do
7765     IFS="$lt_save_ifs"
7766     test -z "$ac_dir" && ac_dir=.
7767     if test -f $ac_dir/file; then
7768       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7769       if test -n "$file_magic_test_file"; then
7770         case $deplibs_check_method in
7771         "file_magic "*)
7772           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7773           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7774           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7775             $EGREP "$file_magic_regex" > /dev/null; then
7776             :
7777           else
7778             cat <<_LT_EOF 1>&2
7779
7780 *** Warning: the command libtool uses to detect shared libraries,
7781 *** $file_magic_cmd, produces output that libtool cannot recognize.
7782 *** The result is that libtool may fail to recognize shared libraries
7783 *** as such.  This will affect the creation of libtool libraries that
7784 *** depend on shared libraries, but programs linked with such libtool
7785 *** libraries will work regardless of this problem.  Nevertheless, you
7786 *** may want to report the problem to your system manager and/or to
7787 *** bug-libtool@gnu.org
7788
7789 _LT_EOF
7790           fi ;;
7791         esac
7792       fi
7793       break
7794     fi
7795   done
7796   IFS="$lt_save_ifs"
7797   MAGIC_CMD="$lt_save_MAGIC_CMD"
7798   ;;
7799 esac
7800 fi
7801
7802 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7803 if test -n "$MAGIC_CMD"; then
7804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7805 $as_echo "$MAGIC_CMD" >&6; }
7806 else
7807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 $as_echo "no" >&6; }
7809 fi
7810
7811
7812   else
7813     MAGIC_CMD=:
7814   fi
7815 fi
7816
7817   fi
7818   ;;
7819 esac
7820
7821 # Use C for the default configuration in the libtool script
7822
7823 lt_save_CC="$CC"
7824 ac_ext=c
7825 ac_cpp='$CPP $CPPFLAGS'
7826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7829
7830
7831 # Source file extension for C test sources.
7832 ac_ext=c
7833
7834 # Object file extension for compiled C test sources.
7835 objext=o
7836 objext=$objext
7837
7838 # Code to be used in simple compile tests
7839 lt_simple_compile_test_code="int some_variable = 0;"
7840
7841 # Code to be used in simple link tests
7842 lt_simple_link_test_code='int main(){return(0);}'
7843
7844
7845
7846
7847
7848
7849
7850 # If no C compiler was specified, use CC.
7851 LTCC=${LTCC-"$CC"}
7852
7853 # If no C compiler flags were specified, use CFLAGS.
7854 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7855
7856 # Allow CC to be a program name with arguments.
7857 compiler=$CC
7858
7859 # Save the default compiler, since it gets overwritten when the other
7860 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7861 compiler_DEFAULT=$CC
7862
7863 # save warnings/boilerplate of simple test code
7864 ac_outfile=conftest.$ac_objext
7865 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7866 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7867 _lt_compiler_boilerplate=`cat conftest.err`
7868 $RM conftest*
7869
7870 ac_outfile=conftest.$ac_objext
7871 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7872 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7873 _lt_linker_boilerplate=`cat conftest.err`
7874 $RM -r conftest*
7875
7876
7877 if test -n "$compiler"; then
7878
7879 lt_prog_compiler_no_builtin_flag=
7880
7881 if test "$GCC" = yes; then
7882   case $cc_basename in
7883   nvcc*)
7884     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7885   *)
7886     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7887   esac
7888
7889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7890 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7891 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7892   $as_echo_n "(cached) " >&6
7893 else
7894   lt_cv_prog_compiler_rtti_exceptions=no
7895    ac_outfile=conftest.$ac_objext
7896    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7897    lt_compiler_flag="-fno-rtti -fno-exceptions"
7898    # Insert the option either (1) after the last *FLAGS variable, or
7899    # (2) before a word containing "conftest.", or (3) at the end.
7900    # Note that $ac_compile itself does not contain backslashes and begins
7901    # with a dollar sign (not a hyphen), so the echo should work correctly.
7902    # The option is referenced via a variable to avoid confusing sed.
7903    lt_compile=`echo "$ac_compile" | $SED \
7904    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7905    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7906    -e 's:$: $lt_compiler_flag:'`
7907    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7908    (eval "$lt_compile" 2>conftest.err)
7909    ac_status=$?
7910    cat conftest.err >&5
7911    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912    if (exit $ac_status) && test -s "$ac_outfile"; then
7913      # The compiler can only warn and ignore the option if not recognized
7914      # So say no if there are warnings other than the usual output.
7915      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7916      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7917      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7918        lt_cv_prog_compiler_rtti_exceptions=yes
7919      fi
7920    fi
7921    $RM conftest*
7922
7923 fi
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7925 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7926
7927 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7928     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7929 else
7930     :
7931 fi
7932
7933 fi
7934
7935
7936
7937
7938
7939
7940   lt_prog_compiler_wl=
7941 lt_prog_compiler_pic=
7942 lt_prog_compiler_static=
7943
7944
7945   if test "$GCC" = yes; then
7946     lt_prog_compiler_wl='-Wl,'
7947     lt_prog_compiler_static='-static'
7948
7949     case $host_os in
7950       aix*)
7951       # All AIX code is PIC.
7952       if test "$host_cpu" = ia64; then
7953         # AIX 5 now supports IA64 processor
7954         lt_prog_compiler_static='-Bstatic'
7955       fi
7956       ;;
7957
7958     amigaos*)
7959       case $host_cpu in
7960       powerpc)
7961             # see comment about AmigaOS4 .so support
7962             lt_prog_compiler_pic='-fPIC'
7963         ;;
7964       m68k)
7965             # FIXME: we need at least 68020 code to build shared libraries, but
7966             # adding the `-m68020' flag to GCC prevents building anything better,
7967             # like `-m68040'.
7968             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7969         ;;
7970       esac
7971       ;;
7972
7973     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7974       # PIC is the default for these OSes.
7975       ;;
7976
7977     mingw* | cygwin* | pw32* | os2* | cegcc*)
7978       # This hack is so that the source file can tell whether it is being
7979       # built for inclusion in a dll (and should export symbols for example).
7980       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7981       # (--disable-auto-import) libraries
7982       lt_prog_compiler_pic='-DDLL_EXPORT'
7983       ;;
7984
7985     darwin* | rhapsody*)
7986       # PIC is the default on this platform
7987       # Common symbols not allowed in MH_DYLIB files
7988       lt_prog_compiler_pic='-fno-common'
7989       ;;
7990
7991     haiku*)
7992       # PIC is the default for Haiku.
7993       # The "-static" flag exists, but is broken.
7994       lt_prog_compiler_static=
7995       ;;
7996
7997     hpux*)
7998       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7999       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8000       # sets the default TLS model and affects inlining.
8001       case $host_cpu in
8002       hppa*64*)
8003         # +Z the default
8004         ;;
8005       *)
8006         lt_prog_compiler_pic='-fPIC'
8007         ;;
8008       esac
8009       ;;
8010
8011     interix[3-9]*)
8012       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8013       # Instead, we relocate shared libraries at runtime.
8014       ;;
8015
8016     msdosdjgpp*)
8017       # Just because we use GCC doesn't mean we suddenly get shared libraries
8018       # on systems that don't support them.
8019       lt_prog_compiler_can_build_shared=no
8020       enable_shared=no
8021       ;;
8022
8023     *nto* | *qnx*)
8024       # QNX uses GNU C++, but need to define -shared option too, otherwise
8025       # it will coredump.
8026       lt_prog_compiler_pic='-fPIC -shared'
8027       ;;
8028
8029     sysv4*MP*)
8030       if test -d /usr/nec; then
8031         lt_prog_compiler_pic=-Kconform_pic
8032       fi
8033       ;;
8034
8035     *)
8036       lt_prog_compiler_pic='-fPIC'
8037       ;;
8038     esac
8039
8040     case $cc_basename in
8041     nvcc*) # Cuda Compiler Driver 2.2
8042       lt_prog_compiler_wl='-Xlinker '
8043       if test -n "$lt_prog_compiler_pic"; then
8044         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8045       fi
8046       ;;
8047     esac
8048   else
8049     # PORTME Check for flag to pass linker flags through the system compiler.
8050     case $host_os in
8051     aix*)
8052       lt_prog_compiler_wl='-Wl,'
8053       if test "$host_cpu" = ia64; then
8054         # AIX 5 now supports IA64 processor
8055         lt_prog_compiler_static='-Bstatic'
8056       else
8057         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8058       fi
8059       ;;
8060
8061     mingw* | cygwin* | pw32* | os2* | cegcc*)
8062       # This hack is so that the source file can tell whether it is being
8063       # built for inclusion in a dll (and should export symbols for example).
8064       lt_prog_compiler_pic='-DDLL_EXPORT'
8065       ;;
8066
8067     hpux9* | hpux10* | hpux11*)
8068       lt_prog_compiler_wl='-Wl,'
8069       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8070       # not for PA HP-UX.
8071       case $host_cpu in
8072       hppa*64*|ia64*)
8073         # +Z the default
8074         ;;
8075       *)
8076         lt_prog_compiler_pic='+Z'
8077         ;;
8078       esac
8079       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8080       lt_prog_compiler_static='${wl}-a ${wl}archive'
8081       ;;
8082
8083     irix5* | irix6* | nonstopux*)
8084       lt_prog_compiler_wl='-Wl,'
8085       # PIC (with -KPIC) is the default.
8086       lt_prog_compiler_static='-non_shared'
8087       ;;
8088
8089     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8090       case $cc_basename in
8091       # old Intel for x86_64 which still supported -KPIC.
8092       ecc*)
8093         lt_prog_compiler_wl='-Wl,'
8094         lt_prog_compiler_pic='-KPIC'
8095         lt_prog_compiler_static='-static'
8096         ;;
8097       # icc used to be incompatible with GCC.
8098       # ICC 10 doesn't accept -KPIC any more.
8099       icc* | ifort*)
8100         lt_prog_compiler_wl='-Wl,'
8101         lt_prog_compiler_pic='-fPIC'
8102         lt_prog_compiler_static='-static'
8103         ;;
8104       # Lahey Fortran 8.1.
8105       lf95*)
8106         lt_prog_compiler_wl='-Wl,'
8107         lt_prog_compiler_pic='--shared'
8108         lt_prog_compiler_static='--static'
8109         ;;
8110       nagfor*)
8111         # NAG Fortran compiler
8112         lt_prog_compiler_wl='-Wl,-Wl,,'
8113         lt_prog_compiler_pic='-PIC'
8114         lt_prog_compiler_static='-Bstatic'
8115         ;;
8116       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8117         # Portland Group compilers (*not* the Pentium gcc compiler,
8118         # which looks to be a dead project)
8119         lt_prog_compiler_wl='-Wl,'
8120         lt_prog_compiler_pic='-fpic'
8121         lt_prog_compiler_static='-Bstatic'
8122         ;;
8123       ccc*)
8124         lt_prog_compiler_wl='-Wl,'
8125         # All Alpha code is PIC.
8126         lt_prog_compiler_static='-non_shared'
8127         ;;
8128       xl* | bgxl* | bgf* | mpixl*)
8129         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8130         lt_prog_compiler_wl='-Wl,'
8131         lt_prog_compiler_pic='-qpic'
8132         lt_prog_compiler_static='-qstaticlink'
8133         ;;
8134       *)
8135         case `$CC -V 2>&1 | sed 5q` in
8136         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8137           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8138           lt_prog_compiler_pic='-KPIC'
8139           lt_prog_compiler_static='-Bstatic'
8140           lt_prog_compiler_wl=''
8141           ;;
8142         *Sun\ F* | *Sun*Fortran*)
8143           lt_prog_compiler_pic='-KPIC'
8144           lt_prog_compiler_static='-Bstatic'
8145           lt_prog_compiler_wl='-Qoption ld '
8146           ;;
8147         *Sun\ C*)
8148           # Sun C 5.9
8149           lt_prog_compiler_pic='-KPIC'
8150           lt_prog_compiler_static='-Bstatic'
8151           lt_prog_compiler_wl='-Wl,'
8152           ;;
8153         *Intel*\ [CF]*Compiler*)
8154           lt_prog_compiler_wl='-Wl,'
8155           lt_prog_compiler_pic='-fPIC'
8156           lt_prog_compiler_static='-static'
8157           ;;
8158         *Portland\ Group*)
8159           lt_prog_compiler_wl='-Wl,'
8160           lt_prog_compiler_pic='-fpic'
8161           lt_prog_compiler_static='-Bstatic'
8162           ;;
8163         esac
8164         ;;
8165       esac
8166       ;;
8167
8168     newsos6)
8169       lt_prog_compiler_pic='-KPIC'
8170       lt_prog_compiler_static='-Bstatic'
8171       ;;
8172
8173     *nto* | *qnx*)
8174       # QNX uses GNU C++, but need to define -shared option too, otherwise
8175       # it will coredump.
8176       lt_prog_compiler_pic='-fPIC -shared'
8177       ;;
8178
8179     osf3* | osf4* | osf5*)
8180       lt_prog_compiler_wl='-Wl,'
8181       # All OSF/1 code is PIC.
8182       lt_prog_compiler_static='-non_shared'
8183       ;;
8184
8185     rdos*)
8186       lt_prog_compiler_static='-non_shared'
8187       ;;
8188
8189     solaris*)
8190       lt_prog_compiler_pic='-KPIC'
8191       lt_prog_compiler_static='-Bstatic'
8192       case $cc_basename in
8193       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8194         lt_prog_compiler_wl='-Qoption ld ';;
8195       *)
8196         lt_prog_compiler_wl='-Wl,';;
8197       esac
8198       ;;
8199
8200     sunos4*)
8201       lt_prog_compiler_wl='-Qoption ld '
8202       lt_prog_compiler_pic='-PIC'
8203       lt_prog_compiler_static='-Bstatic'
8204       ;;
8205
8206     sysv4 | sysv4.2uw2* | sysv4.3*)
8207       lt_prog_compiler_wl='-Wl,'
8208       lt_prog_compiler_pic='-KPIC'
8209       lt_prog_compiler_static='-Bstatic'
8210       ;;
8211
8212     sysv4*MP*)
8213       if test -d /usr/nec ;then
8214         lt_prog_compiler_pic='-Kconform_pic'
8215         lt_prog_compiler_static='-Bstatic'
8216       fi
8217       ;;
8218
8219     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8220       lt_prog_compiler_wl='-Wl,'
8221       lt_prog_compiler_pic='-KPIC'
8222       lt_prog_compiler_static='-Bstatic'
8223       ;;
8224
8225     unicos*)
8226       lt_prog_compiler_wl='-Wl,'
8227       lt_prog_compiler_can_build_shared=no
8228       ;;
8229
8230     uts4*)
8231       lt_prog_compiler_pic='-pic'
8232       lt_prog_compiler_static='-Bstatic'
8233       ;;
8234
8235     *)
8236       lt_prog_compiler_can_build_shared=no
8237       ;;
8238     esac
8239   fi
8240
8241 case $host_os in
8242   # For platforms which do not support PIC, -DPIC is meaningless:
8243   *djgpp*)
8244     lt_prog_compiler_pic=
8245     ;;
8246   *)
8247     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8248     ;;
8249 esac
8250
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8252 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8253 if ${lt_cv_prog_compiler_pic+:} false; then :
8254   $as_echo_n "(cached) " >&6
8255 else
8256   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8257 fi
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8259 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8260 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8261
8262 #
8263 # Check to make sure the PIC flag actually works.
8264 #
8265 if test -n "$lt_prog_compiler_pic"; then
8266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8267 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8268 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8269   $as_echo_n "(cached) " >&6
8270 else
8271   lt_cv_prog_compiler_pic_works=no
8272    ac_outfile=conftest.$ac_objext
8273    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8274    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8275    # Insert the option either (1) after the last *FLAGS variable, or
8276    # (2) before a word containing "conftest.", or (3) at the end.
8277    # Note that $ac_compile itself does not contain backslashes and begins
8278    # with a dollar sign (not a hyphen), so the echo should work correctly.
8279    # The option is referenced via a variable to avoid confusing sed.
8280    lt_compile=`echo "$ac_compile" | $SED \
8281    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8282    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8283    -e 's:$: $lt_compiler_flag:'`
8284    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8285    (eval "$lt_compile" 2>conftest.err)
8286    ac_status=$?
8287    cat conftest.err >&5
8288    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289    if (exit $ac_status) && test -s "$ac_outfile"; then
8290      # The compiler can only warn and ignore the option if not recognized
8291      # So say no if there are warnings other than the usual output.
8292      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8293      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8294      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8295        lt_cv_prog_compiler_pic_works=yes
8296      fi
8297    fi
8298    $RM conftest*
8299
8300 fi
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8302 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8303
8304 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8305     case $lt_prog_compiler_pic in
8306      "" | " "*) ;;
8307      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8308      esac
8309 else
8310     lt_prog_compiler_pic=
8311      lt_prog_compiler_can_build_shared=no
8312 fi
8313
8314 fi
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326 #
8327 # Check to make sure the static flag actually works.
8328 #
8329 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8331 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8332 if ${lt_cv_prog_compiler_static_works+:} false; then :
8333   $as_echo_n "(cached) " >&6
8334 else
8335   lt_cv_prog_compiler_static_works=no
8336    save_LDFLAGS="$LDFLAGS"
8337    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8338    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8339    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8340      # The linker can only warn and ignore the option if not recognized
8341      # So say no if there are warnings
8342      if test -s conftest.err; then
8343        # Append any errors to the config.log.
8344        cat conftest.err 1>&5
8345        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8346        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8347        if diff conftest.exp conftest.er2 >/dev/null; then
8348          lt_cv_prog_compiler_static_works=yes
8349        fi
8350      else
8351        lt_cv_prog_compiler_static_works=yes
8352      fi
8353    fi
8354    $RM -r conftest*
8355    LDFLAGS="$save_LDFLAGS"
8356
8357 fi
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8359 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8360
8361 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8362     :
8363 else
8364     lt_prog_compiler_static=
8365 fi
8366
8367
8368
8369
8370
8371
8372
8373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8374 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8375 if ${lt_cv_prog_compiler_c_o+:} false; then :
8376   $as_echo_n "(cached) " >&6
8377 else
8378   lt_cv_prog_compiler_c_o=no
8379    $RM -r conftest 2>/dev/null
8380    mkdir conftest
8381    cd conftest
8382    mkdir out
8383    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8384
8385    lt_compiler_flag="-o out/conftest2.$ac_objext"
8386    # Insert the option either (1) after the last *FLAGS variable, or
8387    # (2) before a word containing "conftest.", or (3) at the end.
8388    # Note that $ac_compile itself does not contain backslashes and begins
8389    # with a dollar sign (not a hyphen), so the echo should work correctly.
8390    lt_compile=`echo "$ac_compile" | $SED \
8391    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8392    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8393    -e 's:$: $lt_compiler_flag:'`
8394    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8395    (eval "$lt_compile" 2>out/conftest.err)
8396    ac_status=$?
8397    cat out/conftest.err >&5
8398    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8400    then
8401      # The compiler can only warn and ignore the option if not recognized
8402      # So say no if there are warnings
8403      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8404      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8405      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8406        lt_cv_prog_compiler_c_o=yes
8407      fi
8408    fi
8409    chmod u+w . 2>&5
8410    $RM conftest*
8411    # SGI C++ compiler will create directory out/ii_files/ for
8412    # template instantiation
8413    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8414    $RM out/* && rmdir out
8415    cd ..
8416    $RM -r conftest
8417    $RM conftest*
8418
8419 fi
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8421 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8422
8423
8424
8425
8426
8427
8428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8429 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8430 if ${lt_cv_prog_compiler_c_o+:} false; then :
8431   $as_echo_n "(cached) " >&6
8432 else
8433   lt_cv_prog_compiler_c_o=no
8434    $RM -r conftest 2>/dev/null
8435    mkdir conftest
8436    cd conftest
8437    mkdir out
8438    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8439
8440    lt_compiler_flag="-o out/conftest2.$ac_objext"
8441    # Insert the option either (1) after the last *FLAGS variable, or
8442    # (2) before a word containing "conftest.", or (3) at the end.
8443    # Note that $ac_compile itself does not contain backslashes and begins
8444    # with a dollar sign (not a hyphen), so the echo should work correctly.
8445    lt_compile=`echo "$ac_compile" | $SED \
8446    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8447    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8448    -e 's:$: $lt_compiler_flag:'`
8449    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8450    (eval "$lt_compile" 2>out/conftest.err)
8451    ac_status=$?
8452    cat out/conftest.err >&5
8453    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8455    then
8456      # The compiler can only warn and ignore the option if not recognized
8457      # So say no if there are warnings
8458      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8459      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8460      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8461        lt_cv_prog_compiler_c_o=yes
8462      fi
8463    fi
8464    chmod u+w . 2>&5
8465    $RM conftest*
8466    # SGI C++ compiler will create directory out/ii_files/ for
8467    # template instantiation
8468    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8469    $RM out/* && rmdir out
8470    cd ..
8471    $RM -r conftest
8472    $RM conftest*
8473
8474 fi
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8476 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8477
8478
8479
8480
8481 hard_links="nottested"
8482 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8483   # do not overwrite the value of need_locks provided by the user
8484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8485 $as_echo_n "checking if we can lock with hard links... " >&6; }
8486   hard_links=yes
8487   $RM conftest*
8488   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8489   touch conftest.a
8490   ln conftest.a conftest.b 2>&5 || hard_links=no
8491   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8493 $as_echo "$hard_links" >&6; }
8494   if test "$hard_links" = no; then
8495     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8496 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8497     need_locks=warn
8498   fi
8499 else
8500   need_locks=no
8501 fi
8502
8503
8504
8505
8506
8507
8508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8509 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8510
8511   runpath_var=
8512   allow_undefined_flag=
8513   always_export_symbols=no
8514   archive_cmds=
8515   archive_expsym_cmds=
8516   compiler_needs_object=no
8517   enable_shared_with_static_runtimes=no
8518   export_dynamic_flag_spec=
8519   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8520   hardcode_automatic=no
8521   hardcode_direct=no
8522   hardcode_direct_absolute=no
8523   hardcode_libdir_flag_spec=
8524   hardcode_libdir_separator=
8525   hardcode_minus_L=no
8526   hardcode_shlibpath_var=unsupported
8527   inherit_rpath=no
8528   link_all_deplibs=unknown
8529   module_cmds=
8530   module_expsym_cmds=
8531   old_archive_from_new_cmds=
8532   old_archive_from_expsyms_cmds=
8533   thread_safe_flag_spec=
8534   whole_archive_flag_spec=
8535   # include_expsyms should be a list of space-separated symbols to be *always*
8536   # included in the symbol list
8537   include_expsyms=
8538   # exclude_expsyms can be an extended regexp of symbols to exclude
8539   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8540   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8541   # as well as any symbol that contains `d'.
8542   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8543   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8544   # platforms (ab)use it in PIC code, but their linkers get confused if
8545   # the symbol is explicitly referenced.  Since portable code cannot
8546   # rely on this symbol name, it's probably fine to never include it in
8547   # preloaded symbol tables.
8548   # Exclude shared library initialization/finalization symbols.
8549   extract_expsyms_cmds=
8550
8551   case $host_os in
8552   cygwin* | mingw* | pw32* | cegcc*)
8553     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8554     # When not using gcc, we currently assume that we are using
8555     # Microsoft Visual C++.
8556     if test "$GCC" != yes; then
8557       with_gnu_ld=no
8558     fi
8559     ;;
8560   interix*)
8561     # we just hope/assume this is gcc and not c89 (= MSVC++)
8562     with_gnu_ld=yes
8563     ;;
8564   openbsd*)
8565     with_gnu_ld=no
8566     ;;
8567   esac
8568
8569   ld_shlibs=yes
8570
8571   # On some targets, GNU ld is compatible enough with the native linker
8572   # that we're better off using the native interface for both.
8573   lt_use_gnu_ld_interface=no
8574   if test "$with_gnu_ld" = yes; then
8575     case $host_os in
8576       aix*)
8577         # The AIX port of GNU ld has always aspired to compatibility
8578         # with the native linker.  However, as the warning in the GNU ld
8579         # block says, versions before 2.19.5* couldn't really create working
8580         # shared libraries, regardless of the interface used.
8581         case `$LD -v 2>&1` in
8582           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8583           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8584           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8585           *)
8586             lt_use_gnu_ld_interface=yes
8587             ;;
8588         esac
8589         ;;
8590       *)
8591         lt_use_gnu_ld_interface=yes
8592         ;;
8593     esac
8594   fi
8595
8596   if test "$lt_use_gnu_ld_interface" = yes; then
8597     # If archive_cmds runs LD, not CC, wlarc should be empty
8598     wlarc='${wl}'
8599
8600     # Set some defaults for GNU ld with shared library support. These
8601     # are reset later if shared libraries are not supported. Putting them
8602     # here allows them to be overridden if necessary.
8603     runpath_var=LD_RUN_PATH
8604     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8605     export_dynamic_flag_spec='${wl}--export-dynamic'
8606     # ancient GNU ld didn't support --whole-archive et. al.
8607     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8608       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8609     else
8610       whole_archive_flag_spec=
8611     fi
8612     supports_anon_versioning=no
8613     case `$LD -v 2>&1` in
8614       *GNU\ gold*) supports_anon_versioning=yes ;;
8615       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8616       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8617       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8618       *\ 2.11.*) ;; # other 2.11 versions
8619       *) supports_anon_versioning=yes ;;
8620     esac
8621
8622     # See if GNU ld supports shared libraries.
8623     case $host_os in
8624     aix[3-9]*)
8625       # On AIX/PPC, the GNU linker is very broken
8626       if test "$host_cpu" != ia64; then
8627         ld_shlibs=no
8628         cat <<_LT_EOF 1>&2
8629
8630 *** Warning: the GNU linker, at least up to release 2.19, is reported
8631 *** to be unable to reliably create shared libraries on AIX.
8632 *** Therefore, libtool is disabling shared libraries support.  If you
8633 *** really care for shared libraries, you may want to install binutils
8634 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8635 *** You will then need to restart the configuration process.
8636
8637 _LT_EOF
8638       fi
8639       ;;
8640
8641     amigaos*)
8642       case $host_cpu in
8643       powerpc)
8644             # see comment about AmigaOS4 .so support
8645             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8646             archive_expsym_cmds=''
8647         ;;
8648       m68k)
8649             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)'
8650             hardcode_libdir_flag_spec='-L$libdir'
8651             hardcode_minus_L=yes
8652         ;;
8653       esac
8654       ;;
8655
8656     beos*)
8657       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8658         allow_undefined_flag=unsupported
8659         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8660         # support --undefined.  This deserves some investigation.  FIXME
8661         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662       else
8663         ld_shlibs=no
8664       fi
8665       ;;
8666
8667     cygwin* | mingw* | pw32* | cegcc*)
8668       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8669       # as there is no search path for DLLs.
8670       hardcode_libdir_flag_spec='-L$libdir'
8671       export_dynamic_flag_spec='${wl}--export-all-symbols'
8672       allow_undefined_flag=unsupported
8673       always_export_symbols=no
8674       enable_shared_with_static_runtimes=yes
8675       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'
8676       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8677
8678       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8679         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8680         # If the export-symbols file already is a .def file (1st line
8681         # is EXPORTS), use it as is; otherwise, prepend...
8682         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8683           cp $export_symbols $output_objdir/$soname.def;
8684         else
8685           echo EXPORTS > $output_objdir/$soname.def;
8686           cat $export_symbols >> $output_objdir/$soname.def;
8687         fi~
8688         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8689       else
8690         ld_shlibs=no
8691       fi
8692       ;;
8693
8694     haiku*)
8695       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8696       link_all_deplibs=yes
8697       ;;
8698
8699     interix[3-9]*)
8700       hardcode_direct=no
8701       hardcode_shlibpath_var=no
8702       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8703       export_dynamic_flag_spec='${wl}-E'
8704       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8705       # Instead, shared libraries are loaded at an image base (0x10000000 by
8706       # default) and relocated if they conflict, which is a slow very memory
8707       # consuming and fragmenting process.  To avoid this, we pick a random,
8708       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8709       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8710       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8711       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'
8712       ;;
8713
8714     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8715       tmp_diet=no
8716       if test "$host_os" = linux-dietlibc; then
8717         case $cc_basename in
8718           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8719         esac
8720       fi
8721       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8722          && test "$tmp_diet" = no
8723       then
8724         tmp_addflag=' $pic_flag'
8725         tmp_sharedflag='-shared'
8726         case $cc_basename,$host_cpu in
8727         pgcc*)                          # Portland Group C compiler
8728           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'
8729           tmp_addflag=' $pic_flag'
8730           ;;
8731         pgf77* | pgf90* | pgf95* | pgfortran*)
8732                                         # Portland Group f77 and f90 compilers
8733           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'
8734           tmp_addflag=' $pic_flag -Mnomain' ;;
8735         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8736           tmp_addflag=' -i_dynamic' ;;
8737         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8738           tmp_addflag=' -i_dynamic -nofor_main' ;;
8739         ifc* | ifort*)                  # Intel Fortran compiler
8740           tmp_addflag=' -nofor_main' ;;
8741         lf95*)                          # Lahey Fortran 8.1
8742           whole_archive_flag_spec=
8743           tmp_sharedflag='--shared' ;;
8744         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8745           tmp_sharedflag='-qmkshrobj'
8746           tmp_addflag= ;;
8747         nvcc*)  # Cuda Compiler Driver 2.2
8748           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'
8749           compiler_needs_object=yes
8750           ;;
8751         esac
8752         case `$CC -V 2>&1 | sed 5q` in
8753         *Sun\ C*)                       # Sun C 5.9
8754           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'
8755           compiler_needs_object=yes
8756           tmp_sharedflag='-G' ;;
8757         *Sun\ F*)                       # Sun Fortran 8.3
8758           tmp_sharedflag='-G' ;;
8759         esac
8760         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761
8762         if test "x$supports_anon_versioning" = xyes; then
8763           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8764             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8765             echo "local: *; };" >> $output_objdir/$libname.ver~
8766             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8767         fi
8768
8769         case $cc_basename in
8770         xlf* | bgf* | bgxlf* | mpixlf*)
8771           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8772           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8773           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8774           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8775           if test "x$supports_anon_versioning" = xyes; then
8776             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8777               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8778               echo "local: *; };" >> $output_objdir/$libname.ver~
8779               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8780           fi
8781           ;;
8782         esac
8783       else
8784         ld_shlibs=no
8785       fi
8786       ;;
8787
8788     netbsd*)
8789       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8790         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8791         wlarc=
8792       else
8793         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8794         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8795       fi
8796       ;;
8797
8798     solaris*)
8799       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8800         ld_shlibs=no
8801         cat <<_LT_EOF 1>&2
8802
8803 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8804 *** create shared libraries on Solaris systems.  Therefore, libtool
8805 *** is disabling shared libraries support.  We urge you to upgrade GNU
8806 *** binutils to release 2.9.1 or newer.  Another option is to modify
8807 *** your PATH or compiler configuration so that the native linker is
8808 *** used, and then restart.
8809
8810 _LT_EOF
8811       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8812         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8813         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8814       else
8815         ld_shlibs=no
8816       fi
8817       ;;
8818
8819     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8820       case `$LD -v 2>&1` in
8821         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8822         ld_shlibs=no
8823         cat <<_LT_EOF 1>&2
8824
8825 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8826 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8827 *** is disabling shared libraries support.  We urge you to upgrade GNU
8828 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8829 *** your PATH or compiler configuration so that the native linker is
8830 *** used, and then restart.
8831
8832 _LT_EOF
8833         ;;
8834         *)
8835           # For security reasons, it is highly recommended that you always
8836           # use absolute paths for naming shared libraries, and exclude the
8837           # DT_RUNPATH tag from executables and libraries.  But doing so
8838           # requires that you compile everything twice, which is a pain.
8839           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8840             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8841             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8842             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8843           else
8844             ld_shlibs=no
8845           fi
8846         ;;
8847       esac
8848       ;;
8849
8850     sunos4*)
8851       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8852       wlarc=
8853       hardcode_direct=yes
8854       hardcode_shlibpath_var=no
8855       ;;
8856
8857     *)
8858       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8859         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8861       else
8862         ld_shlibs=no
8863       fi
8864       ;;
8865     esac
8866
8867     if test "$ld_shlibs" = no; then
8868       runpath_var=
8869       hardcode_libdir_flag_spec=
8870       export_dynamic_flag_spec=
8871       whole_archive_flag_spec=
8872     fi
8873   else
8874     # PORTME fill in a description of your system's linker (not GNU ld)
8875     case $host_os in
8876     aix3*)
8877       allow_undefined_flag=unsupported
8878       always_export_symbols=yes
8879       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'
8880       # Note: this linker hardcodes the directories in LIBPATH if there
8881       # are no directories specified by -L.
8882       hardcode_minus_L=yes
8883       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8884         # Neither direct hardcoding nor static linking is supported with a
8885         # broken collect2.
8886         hardcode_direct=unsupported
8887       fi
8888       ;;
8889
8890     aix[4-9]*)
8891       if test "$host_cpu" = ia64; then
8892         # On IA64, the linker does run time linking by default, so we don't
8893         # have to do anything special.
8894         aix_use_runtimelinking=no
8895         exp_sym_flag='-Bexport'
8896         no_entry_flag=""
8897       else
8898         # If we're using GNU nm, then we don't want the "-C" option.
8899         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8900         # Also, AIX nm treats weak defined symbols like other global
8901         # defined symbols, whereas GNU nm marks them as "W".
8902         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8903           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'
8904         else
8905           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'
8906         fi
8907         aix_use_runtimelinking=no
8908
8909         # Test if we are trying to use run time linking or normal
8910         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8911         # need to do runtime linking.
8912         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8913           for ld_flag in $LDFLAGS; do
8914           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8915             aix_use_runtimelinking=yes
8916             break
8917           fi
8918           done
8919           ;;
8920         esac
8921
8922         exp_sym_flag='-bexport'
8923         no_entry_flag='-bnoentry'
8924       fi
8925
8926       # When large executables or shared objects are built, AIX ld can
8927       # have problems creating the table of contents.  If linking a library
8928       # or program results in "error TOC overflow" add -mminimal-toc to
8929       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8930       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8931
8932       archive_cmds=''
8933       hardcode_direct=yes
8934       hardcode_direct_absolute=yes
8935       hardcode_libdir_separator=':'
8936       link_all_deplibs=yes
8937       file_list_spec='${wl}-f,'
8938
8939       if test "$GCC" = yes; then
8940         case $host_os in aix4.[012]|aix4.[012].*)
8941         # We only want to do this on AIX 4.2 and lower, the check
8942         # below for broken collect2 doesn't work under 4.3+
8943           collect2name=`${CC} -print-prog-name=collect2`
8944           if test -f "$collect2name" &&
8945            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8946           then
8947           # We have reworked collect2
8948           :
8949           else
8950           # We have old collect2
8951           hardcode_direct=unsupported
8952           # It fails to find uninstalled libraries when the uninstalled
8953           # path is not listed in the libpath.  Setting hardcode_minus_L
8954           # to unsupported forces relinking
8955           hardcode_minus_L=yes
8956           hardcode_libdir_flag_spec='-L$libdir'
8957           hardcode_libdir_separator=
8958           fi
8959           ;;
8960         esac
8961         shared_flag='-shared'
8962         if test "$aix_use_runtimelinking" = yes; then
8963           shared_flag="$shared_flag "'${wl}-G'
8964         fi
8965       else
8966         # not using gcc
8967         if test "$host_cpu" = ia64; then
8968         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8969         # chokes on -Wl,-G. The following line is correct:
8970           shared_flag='-G'
8971         else
8972           if test "$aix_use_runtimelinking" = yes; then
8973             shared_flag='${wl}-G'
8974           else
8975             shared_flag='${wl}-bM:SRE'
8976           fi
8977         fi
8978       fi
8979
8980       export_dynamic_flag_spec='${wl}-bexpall'
8981       # It seems that -bexpall does not export symbols beginning with
8982       # underscore (_), so it is better to generate a list of symbols to export.
8983       always_export_symbols=yes
8984       if test "$aix_use_runtimelinking" = yes; then
8985         # Warning - without using the other runtime loading flags (-brtl),
8986         # -berok will link without error, but may produce a broken library.
8987         allow_undefined_flag='-berok'
8988         # Determine the default libpath from the value encoded in an
8989         # empty executable.
8990         if test "${lt_cv_aix_libpath+set}" = set; then
8991   aix_libpath=$lt_cv_aix_libpath
8992 else
8993   if ${lt_cv_aix_libpath_+:} false; then :
8994   $as_echo_n "(cached) " >&6
8995 else
8996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h.  */
8998
8999 int
9000 main ()
9001 {
9002
9003   ;
9004   return 0;
9005 }
9006 _ACEOF
9007 if ac_fn_c_try_link "$LINENO"; then :
9008
9009   lt_aix_libpath_sed='
9010       /Import File Strings/,/^$/ {
9011           /^0/ {
9012               s/^0  *\([^ ]*\) *$/\1/
9013               p
9014           }
9015       }'
9016   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9017   # Check for a 64-bit object if we didn't find anything.
9018   if test -z "$lt_cv_aix_libpath_"; then
9019     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9020   fi
9021 fi
9022 rm -f core conftest.err conftest.$ac_objext \
9023     conftest$ac_exeext conftest.$ac_ext
9024   if test -z "$lt_cv_aix_libpath_"; then
9025     lt_cv_aix_libpath_="/usr/lib:/lib"
9026   fi
9027
9028 fi
9029
9030   aix_libpath=$lt_cv_aix_libpath_
9031 fi
9032
9033         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9034         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"
9035       else
9036         if test "$host_cpu" = ia64; then
9037           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9038           allow_undefined_flag="-z nodefs"
9039           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"
9040         else
9041          # Determine the default libpath from the value encoded in an
9042          # empty executable.
9043          if test "${lt_cv_aix_libpath+set}" = set; then
9044   aix_libpath=$lt_cv_aix_libpath
9045 else
9046   if ${lt_cv_aix_libpath_+:} false; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h.  */
9051
9052 int
9053 main ()
9054 {
9055
9056   ;
9057   return 0;
9058 }
9059 _ACEOF
9060 if ac_fn_c_try_link "$LINENO"; then :
9061
9062   lt_aix_libpath_sed='
9063       /Import File Strings/,/^$/ {
9064           /^0/ {
9065               s/^0  *\([^ ]*\) *$/\1/
9066               p
9067           }
9068       }'
9069   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9070   # Check for a 64-bit object if we didn't find anything.
9071   if test -z "$lt_cv_aix_libpath_"; then
9072     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9073   fi
9074 fi
9075 rm -f core conftest.err conftest.$ac_objext \
9076     conftest$ac_exeext conftest.$ac_ext
9077   if test -z "$lt_cv_aix_libpath_"; then
9078     lt_cv_aix_libpath_="/usr/lib:/lib"
9079   fi
9080
9081 fi
9082
9083   aix_libpath=$lt_cv_aix_libpath_
9084 fi
9085
9086          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9087           # Warning - without using the other run time loading flags,
9088           # -berok will link without error, but may produce a broken library.
9089           no_undefined_flag=' ${wl}-bernotok'
9090           allow_undefined_flag=' ${wl}-berok'
9091           if test "$with_gnu_ld" = yes; then
9092             # We only use this code for GNU lds that support --whole-archive.
9093             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9094           else
9095             # Exported symbols can be pulled into shared objects from archives
9096             whole_archive_flag_spec='$convenience'
9097           fi
9098           archive_cmds_need_lc=yes
9099           # This is similar to how AIX traditionally builds its shared libraries.
9100           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'
9101         fi
9102       fi
9103       ;;
9104
9105     amigaos*)
9106       case $host_cpu in
9107       powerpc)
9108             # see comment about AmigaOS4 .so support
9109             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110             archive_expsym_cmds=''
9111         ;;
9112       m68k)
9113             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)'
9114             hardcode_libdir_flag_spec='-L$libdir'
9115             hardcode_minus_L=yes
9116         ;;
9117       esac
9118       ;;
9119
9120     bsdi[45]*)
9121       export_dynamic_flag_spec=-rdynamic
9122       ;;
9123
9124     cygwin* | mingw* | pw32* | cegcc*)
9125       # When not using gcc, we currently assume that we are using
9126       # Microsoft Visual C++.
9127       # hardcode_libdir_flag_spec is actually meaningless, as there is
9128       # no search path for DLLs.
9129       case $cc_basename in
9130       cl*)
9131         # Native MSVC
9132         hardcode_libdir_flag_spec=' '
9133         allow_undefined_flag=unsupported
9134         always_export_symbols=yes
9135         file_list_spec='@'
9136         # Tell ltmain to make .lib files, not .a files.
9137         libext=lib
9138         # Tell ltmain to make .dll files, not .so files.
9139         shrext_cmds=".dll"
9140         # FIXME: Setting linknames here is a bad hack.
9141         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9142         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9143             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9144           else
9145             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9146           fi~
9147           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9148           linknames='
9149         # The linker will not automatically build a static lib if we build a DLL.
9150         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9151         enable_shared_with_static_runtimes=yes
9152         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9153         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9154         # Don't use ranlib
9155         old_postinstall_cmds='chmod 644 $oldlib'
9156         postlink_cmds='lt_outputfile="@OUTPUT@"~
9157           lt_tool_outputfile="@TOOL_OUTPUT@"~
9158           case $lt_outputfile in
9159             *.exe|*.EXE) ;;
9160             *)
9161               lt_outputfile="$lt_outputfile.exe"
9162               lt_tool_outputfile="$lt_tool_outputfile.exe"
9163               ;;
9164           esac~
9165           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9166             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9167             $RM "$lt_outputfile.manifest";
9168           fi'
9169         ;;
9170       *)
9171         # Assume MSVC wrapper
9172         hardcode_libdir_flag_spec=' '
9173         allow_undefined_flag=unsupported
9174         # Tell ltmain to make .lib files, not .a files.
9175         libext=lib
9176         # Tell ltmain to make .dll files, not .so files.
9177         shrext_cmds=".dll"
9178         # FIXME: Setting linknames here is a bad hack.
9179         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9180         # The linker will automatically build a .lib file if we build a DLL.
9181         old_archive_from_new_cmds='true'
9182         # FIXME: Should let the user specify the lib program.
9183         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9184         enable_shared_with_static_runtimes=yes
9185         ;;
9186       esac
9187       ;;
9188
9189     darwin* | rhapsody*)
9190
9191
9192   archive_cmds_need_lc=no
9193   hardcode_direct=no
9194   hardcode_automatic=yes
9195   hardcode_shlibpath_var=unsupported
9196   if test "$lt_cv_ld_force_load" = "yes"; then
9197     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\"`'
9198
9199   else
9200     whole_archive_flag_spec=''
9201   fi
9202   link_all_deplibs=yes
9203   allow_undefined_flag="$_lt_dar_allow_undefined"
9204   case $cc_basename in
9205      ifort*) _lt_dar_can_shared=yes ;;
9206      *) _lt_dar_can_shared=$GCC ;;
9207   esac
9208   if test "$_lt_dar_can_shared" = "yes"; then
9209     output_verbose_link_cmd=func_echo_all
9210     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9211     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9212     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}"
9213     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}"
9214
9215   else
9216   ld_shlibs=no
9217   fi
9218
9219       ;;
9220
9221     dgux*)
9222       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9223       hardcode_libdir_flag_spec='-L$libdir'
9224       hardcode_shlibpath_var=no
9225       ;;
9226
9227     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9228     # support.  Future versions do this automatically, but an explicit c++rt0.o
9229     # does not break anything, and helps significantly (at the cost of a little
9230     # extra space).
9231     freebsd2.2*)
9232       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9233       hardcode_libdir_flag_spec='-R$libdir'
9234       hardcode_direct=yes
9235       hardcode_shlibpath_var=no
9236       ;;
9237
9238     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9239     freebsd2.*)
9240       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9241       hardcode_direct=yes
9242       hardcode_minus_L=yes
9243       hardcode_shlibpath_var=no
9244       ;;
9245
9246     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9247     freebsd* | dragonfly*)
9248       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9249       hardcode_libdir_flag_spec='-R$libdir'
9250       hardcode_direct=yes
9251       hardcode_shlibpath_var=no
9252       ;;
9253
9254     hpux9*)
9255       if test "$GCC" = yes; then
9256         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'
9257       else
9258         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'
9259       fi
9260       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9261       hardcode_libdir_separator=:
9262       hardcode_direct=yes
9263
9264       # hardcode_minus_L: Not really in the search PATH,
9265       # but as the default location of the library.
9266       hardcode_minus_L=yes
9267       export_dynamic_flag_spec='${wl}-E'
9268       ;;
9269
9270     hpux10*)
9271       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9272         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9273       else
9274         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9275       fi
9276       if test "$with_gnu_ld" = no; then
9277         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9278         hardcode_libdir_separator=:
9279         hardcode_direct=yes
9280         hardcode_direct_absolute=yes
9281         export_dynamic_flag_spec='${wl}-E'
9282         # hardcode_minus_L: Not really in the search PATH,
9283         # but as the default location of the library.
9284         hardcode_minus_L=yes
9285       fi
9286       ;;
9287
9288     hpux11*)
9289       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9290         case $host_cpu in
9291         hppa*64*)
9292           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9293           ;;
9294         ia64*)
9295           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9296           ;;
9297         *)
9298           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9299           ;;
9300         esac
9301       else
9302         case $host_cpu in
9303         hppa*64*)
9304           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9305           ;;
9306         ia64*)
9307           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9308           ;;
9309         *)
9310
9311           # Older versions of the 11.00 compiler do not understand -b yet
9312           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9313           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9314 $as_echo_n "checking if $CC understands -b... " >&6; }
9315 if ${lt_cv_prog_compiler__b+:} false; then :
9316   $as_echo_n "(cached) " >&6
9317 else
9318   lt_cv_prog_compiler__b=no
9319    save_LDFLAGS="$LDFLAGS"
9320    LDFLAGS="$LDFLAGS -b"
9321    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9322    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9323      # The linker can only warn and ignore the option if not recognized
9324      # So say no if there are warnings
9325      if test -s conftest.err; then
9326        # Append any errors to the config.log.
9327        cat conftest.err 1>&5
9328        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9329        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9330        if diff conftest.exp conftest.er2 >/dev/null; then
9331          lt_cv_prog_compiler__b=yes
9332        fi
9333      else
9334        lt_cv_prog_compiler__b=yes
9335      fi
9336    fi
9337    $RM -r conftest*
9338    LDFLAGS="$save_LDFLAGS"
9339
9340 fi
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9342 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9343
9344 if test x"$lt_cv_prog_compiler__b" = xyes; then
9345     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9346 else
9347     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9348 fi
9349
9350           ;;
9351         esac
9352       fi
9353       if test "$with_gnu_ld" = no; then
9354         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9355         hardcode_libdir_separator=:
9356
9357         case $host_cpu in
9358         hppa*64*|ia64*)
9359           hardcode_direct=no
9360           hardcode_shlibpath_var=no
9361           ;;
9362         *)
9363           hardcode_direct=yes
9364           hardcode_direct_absolute=yes
9365           export_dynamic_flag_spec='${wl}-E'
9366
9367           # hardcode_minus_L: Not really in the search PATH,
9368           # but as the default location of the library.
9369           hardcode_minus_L=yes
9370           ;;
9371         esac
9372       fi
9373       ;;
9374
9375     irix5* | irix6* | nonstopux*)
9376       if test "$GCC" = yes; then
9377         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'
9378         # Try to use the -exported_symbol ld option, if it does not
9379         # work, assume that -exports_file does not work either and
9380         # implicitly export all symbols.
9381         # This should be the same for all languages, so no per-tag cache variable.
9382         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9383 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9384 if ${lt_cv_irix_exported_symbol+:} false; then :
9385   $as_echo_n "(cached) " >&6
9386 else
9387   save_LDFLAGS="$LDFLAGS"
9388            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9389            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h.  */
9391 int foo (void) { return 0; }
9392 _ACEOF
9393 if ac_fn_c_try_link "$LINENO"; then :
9394   lt_cv_irix_exported_symbol=yes
9395 else
9396   lt_cv_irix_exported_symbol=no
9397 fi
9398 rm -f core conftest.err conftest.$ac_objext \
9399     conftest$ac_exeext conftest.$ac_ext
9400            LDFLAGS="$save_LDFLAGS"
9401 fi
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9403 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9404         if test "$lt_cv_irix_exported_symbol" = yes; then
9405           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'
9406         fi
9407       else
9408         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'
9409         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'
9410       fi
9411       archive_cmds_need_lc='no'
9412       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9413       hardcode_libdir_separator=:
9414       inherit_rpath=yes
9415       link_all_deplibs=yes
9416       ;;
9417
9418     netbsd*)
9419       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9420         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9421       else
9422         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9423       fi
9424       hardcode_libdir_flag_spec='-R$libdir'
9425       hardcode_direct=yes
9426       hardcode_shlibpath_var=no
9427       ;;
9428
9429     newsos6)
9430       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9431       hardcode_direct=yes
9432       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9433       hardcode_libdir_separator=:
9434       hardcode_shlibpath_var=no
9435       ;;
9436
9437     *nto* | *qnx*)
9438       ;;
9439
9440     openbsd*)
9441       if test -f /usr/libexec/ld.so; then
9442         hardcode_direct=yes
9443         hardcode_shlibpath_var=no
9444         hardcode_direct_absolute=yes
9445         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9446           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9447           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9448           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9449           export_dynamic_flag_spec='${wl}-E'
9450         else
9451           case $host_os in
9452            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9453              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9454              hardcode_libdir_flag_spec='-R$libdir'
9455              ;;
9456            *)
9457              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9458              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9459              ;;
9460           esac
9461         fi
9462       else
9463         ld_shlibs=no
9464       fi
9465       ;;
9466
9467     os2*)
9468       hardcode_libdir_flag_spec='-L$libdir'
9469       hardcode_minus_L=yes
9470       allow_undefined_flag=unsupported
9471       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'
9472       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9473       ;;
9474
9475     osf3*)
9476       if test "$GCC" = yes; then
9477         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9478         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'
9479       else
9480         allow_undefined_flag=' -expect_unresolved \*'
9481         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'
9482       fi
9483       archive_cmds_need_lc='no'
9484       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9485       hardcode_libdir_separator=:
9486       ;;
9487
9488     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9489       if test "$GCC" = yes; then
9490         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9491         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'
9492         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9493       else
9494         allow_undefined_flag=' -expect_unresolved \*'
9495         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'
9496         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~
9497         $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'
9498
9499         # Both c and cxx compiler support -rpath directly
9500         hardcode_libdir_flag_spec='-rpath $libdir'
9501       fi
9502       archive_cmds_need_lc='no'
9503       hardcode_libdir_separator=:
9504       ;;
9505
9506     solaris*)
9507       no_undefined_flag=' -z defs'
9508       if test "$GCC" = yes; then
9509         wlarc='${wl}'
9510         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9511         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9512           $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'
9513       else
9514         case `$CC -V 2>&1` in
9515         *"Compilers 5.0"*)
9516           wlarc=''
9517           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9519           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9520           ;;
9521         *)
9522           wlarc='${wl}'
9523           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9524           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9525           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9526           ;;
9527         esac
9528       fi
9529       hardcode_libdir_flag_spec='-R$libdir'
9530       hardcode_shlibpath_var=no
9531       case $host_os in
9532       solaris2.[0-5] | solaris2.[0-5].*) ;;
9533       *)
9534         # The compiler driver will combine and reorder linker options,
9535         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9536         # but is careful enough not to reorder.
9537         # Supported since Solaris 2.6 (maybe 2.5.1?)
9538         if test "$GCC" = yes; then
9539           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9540         else
9541           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9542         fi
9543         ;;
9544       esac
9545       link_all_deplibs=yes
9546       ;;
9547
9548     sunos4*)
9549       if test "x$host_vendor" = xsequent; then
9550         # Use $CC to link under sequent, because it throws in some extra .o
9551         # files that make .init and .fini sections work.
9552         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9553       else
9554         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9555       fi
9556       hardcode_libdir_flag_spec='-L$libdir'
9557       hardcode_direct=yes
9558       hardcode_minus_L=yes
9559       hardcode_shlibpath_var=no
9560       ;;
9561
9562     sysv4)
9563       case $host_vendor in
9564         sni)
9565           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9566           hardcode_direct=yes # is this really true???
9567         ;;
9568         siemens)
9569           ## LD is ld it makes a PLAMLIB
9570           ## CC just makes a GrossModule.
9571           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9572           reload_cmds='$CC -r -o $output$reload_objs'
9573           hardcode_direct=no
9574         ;;
9575         motorola)
9576           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9577           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9578         ;;
9579       esac
9580       runpath_var='LD_RUN_PATH'
9581       hardcode_shlibpath_var=no
9582       ;;
9583
9584     sysv4.3*)
9585       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586       hardcode_shlibpath_var=no
9587       export_dynamic_flag_spec='-Bexport'
9588       ;;
9589
9590     sysv4*MP*)
9591       if test -d /usr/nec; then
9592         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9593         hardcode_shlibpath_var=no
9594         runpath_var=LD_RUN_PATH
9595         hardcode_runpath_var=yes
9596         ld_shlibs=yes
9597       fi
9598       ;;
9599
9600     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9601       no_undefined_flag='${wl}-z,text'
9602       archive_cmds_need_lc=no
9603       hardcode_shlibpath_var=no
9604       runpath_var='LD_RUN_PATH'
9605
9606       if test "$GCC" = yes; then
9607         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9608         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9609       else
9610         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9611         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9612       fi
9613       ;;
9614
9615     sysv5* | sco3.2v5* | sco5v6*)
9616       # Note: We can NOT use -z defs as we might desire, because we do not
9617       # link with -lc, and that would cause any symbols used from libc to
9618       # always be unresolved, which means just about no library would
9619       # ever link correctly.  If we're not using GNU ld we use -z text
9620       # though, which does catch some bad symbols but isn't as heavy-handed
9621       # as -z defs.
9622       no_undefined_flag='${wl}-z,text'
9623       allow_undefined_flag='${wl}-z,nodefs'
9624       archive_cmds_need_lc=no
9625       hardcode_shlibpath_var=no
9626       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9627       hardcode_libdir_separator=':'
9628       link_all_deplibs=yes
9629       export_dynamic_flag_spec='${wl}-Bexport'
9630       runpath_var='LD_RUN_PATH'
9631
9632       if test "$GCC" = yes; then
9633         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9634         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9635       else
9636         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9637         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9638       fi
9639       ;;
9640
9641     uts4*)
9642       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9643       hardcode_libdir_flag_spec='-L$libdir'
9644       hardcode_shlibpath_var=no
9645       ;;
9646
9647     *)
9648       ld_shlibs=no
9649       ;;
9650     esac
9651
9652     if test x$host_vendor = xsni; then
9653       case $host in
9654       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9655         export_dynamic_flag_spec='${wl}-Blargedynsym'
9656         ;;
9657       esac
9658     fi
9659   fi
9660
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9662 $as_echo "$ld_shlibs" >&6; }
9663 test "$ld_shlibs" = no && can_build_shared=no
9664
9665 with_gnu_ld=$with_gnu_ld
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681 #
9682 # Do we need to explicitly link libc?
9683 #
9684 case "x$archive_cmds_need_lc" in
9685 x|xyes)
9686   # Assume -lc should be added
9687   archive_cmds_need_lc=yes
9688
9689   if test "$enable_shared" = yes && test "$GCC" = yes; then
9690     case $archive_cmds in
9691     *'~'*)
9692       # FIXME: we may have to deal with multi-command sequences.
9693       ;;
9694     '$CC '*)
9695       # Test whether the compiler implicitly links with -lc since on some
9696       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9697       # to ld, don't add -lc before -lgcc.
9698       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9699 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9700 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9701   $as_echo_n "(cached) " >&6
9702 else
9703   $RM conftest*
9704         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9705
9706         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9707   (eval $ac_compile) 2>&5
9708   ac_status=$?
9709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9710   test $ac_status = 0; } 2>conftest.err; then
9711           soname=conftest
9712           lib=conftest
9713           libobjs=conftest.$ac_objext
9714           deplibs=
9715           wl=$lt_prog_compiler_wl
9716           pic_flag=$lt_prog_compiler_pic
9717           compiler_flags=-v
9718           linker_flags=-v
9719           verstring=
9720           output_objdir=.
9721           libname=conftest
9722           lt_save_allow_undefined_flag=$allow_undefined_flag
9723           allow_undefined_flag=
9724           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9725   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9726   ac_status=$?
9727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9728   test $ac_status = 0; }
9729           then
9730             lt_cv_archive_cmds_need_lc=no
9731           else
9732             lt_cv_archive_cmds_need_lc=yes
9733           fi
9734           allow_undefined_flag=$lt_save_allow_undefined_flag
9735         else
9736           cat conftest.err 1>&5
9737         fi
9738         $RM conftest*
9739
9740 fi
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9742 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9743       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9744       ;;
9745     esac
9746   fi
9747   ;;
9748 esac
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9902 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9903
9904 if test "$GCC" = yes; then
9905   case $host_os in
9906     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9907     *) lt_awk_arg="/^libraries:/" ;;
9908   esac
9909   case $host_os in
9910     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9911     *) lt_sed_strip_eq="s,=/,/,g" ;;
9912   esac
9913   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9914   case $lt_search_path_spec in
9915   *\;*)
9916     # if the path contains ";" then we assume it to be the separator
9917     # otherwise default to the standard path separator (i.e. ":") - it is
9918     # assumed that no part of a normal pathname contains ";" but that should
9919     # okay in the real world where ";" in dirpaths is itself problematic.
9920     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9921     ;;
9922   *)
9923     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9924     ;;
9925   esac
9926   # Ok, now we have the path, separated by spaces, we can step through it
9927   # and add multilib dir if necessary.
9928   lt_tmp_lt_search_path_spec=
9929   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9930   for lt_sys_path in $lt_search_path_spec; do
9931     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9932       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9933     else
9934       test -d "$lt_sys_path" && \
9935         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9936     fi
9937   done
9938   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9939 BEGIN {RS=" "; FS="/|\n";} {
9940   lt_foo="";
9941   lt_count=0;
9942   for (lt_i = NF; lt_i > 0; lt_i--) {
9943     if ($lt_i != "" && $lt_i != ".") {
9944       if ($lt_i == "..") {
9945         lt_count++;
9946       } else {
9947         if (lt_count == 0) {
9948           lt_foo="/" $lt_i lt_foo;
9949         } else {
9950           lt_count--;
9951         }
9952       }
9953     }
9954   }
9955   if (lt_foo != "") { lt_freq[lt_foo]++; }
9956   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9957 }'`
9958   # AWK program above erroneously prepends '/' to C:/dos/paths
9959   # for these hosts.
9960   case $host_os in
9961     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9962       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9963   esac
9964   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9965 else
9966   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9967 fi
9968 library_names_spec=
9969 libname_spec='lib$name'
9970 soname_spec=
9971 shrext_cmds=".so"
9972 postinstall_cmds=
9973 postuninstall_cmds=
9974 finish_cmds=
9975 finish_eval=
9976 shlibpath_var=
9977 shlibpath_overrides_runpath=unknown
9978 version_type=none
9979 dynamic_linker="$host_os ld.so"
9980 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9981 need_lib_prefix=unknown
9982 hardcode_into_libs=no
9983
9984 # when you set need_version to no, make sure it does not cause -set_version
9985 # flags to be left without arguments
9986 need_version=unknown
9987
9988 case $host_os in
9989 aix3*)
9990   version_type=linux # correct to gnu/linux during the next big refactor
9991   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9992   shlibpath_var=LIBPATH
9993
9994   # AIX 3 has no versioning support, so we append a major version to the name.
9995   soname_spec='${libname}${release}${shared_ext}$major'
9996   ;;
9997
9998 aix[4-9]*)
9999   version_type=linux # correct to gnu/linux during the next big refactor
10000   need_lib_prefix=no
10001   need_version=no
10002   hardcode_into_libs=yes
10003   if test "$host_cpu" = ia64; then
10004     # AIX 5 supports IA64
10005     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10006     shlibpath_var=LD_LIBRARY_PATH
10007   else
10008     # With GCC up to 2.95.x, collect2 would create an import file
10009     # for dependence libraries.  The import file would start with
10010     # the line `#! .'.  This would cause the generated library to
10011     # depend on `.', always an invalid library.  This was fixed in
10012     # development snapshots of GCC prior to 3.0.
10013     case $host_os in
10014       aix4 | aix4.[01] | aix4.[01].*)
10015       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10016            echo ' yes '
10017            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10018         :
10019       else
10020         can_build_shared=no
10021       fi
10022       ;;
10023     esac
10024     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10025     # soname into executable. Probably we can add versioning support to
10026     # collect2, so additional links can be useful in future.
10027     if test "$aix_use_runtimelinking" = yes; then
10028       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10029       # instead of lib<name>.a to let people know that these are not
10030       # typical AIX shared libraries.
10031       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032     else
10033       # We preserve .a as extension for shared libraries through AIX4.2
10034       # and later when we are not doing run time linking.
10035       library_names_spec='${libname}${release}.a $libname.a'
10036       soname_spec='${libname}${release}${shared_ext}$major'
10037     fi
10038     shlibpath_var=LIBPATH
10039   fi
10040   ;;
10041
10042 amigaos*)
10043   case $host_cpu in
10044   powerpc)
10045     # Since July 2007 AmigaOS4 officially supports .so libraries.
10046     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048     ;;
10049   m68k)
10050     library_names_spec='$libname.ixlibrary $libname.a'
10051     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10052     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'
10053     ;;
10054   esac
10055   ;;
10056
10057 beos*)
10058   library_names_spec='${libname}${shared_ext}'
10059   dynamic_linker="$host_os ld.so"
10060   shlibpath_var=LIBRARY_PATH
10061   ;;
10062
10063 bsdi[45]*)
10064   version_type=linux # correct to gnu/linux during the next big refactor
10065   need_version=no
10066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067   soname_spec='${libname}${release}${shared_ext}$major'
10068   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10069   shlibpath_var=LD_LIBRARY_PATH
10070   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10071   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10072   # the default ld.so.conf also contains /usr/contrib/lib and
10073   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10074   # libtool to hard-code these into programs
10075   ;;
10076
10077 cygwin* | mingw* | pw32* | cegcc*)
10078   version_type=windows
10079   shrext_cmds=".dll"
10080   need_version=no
10081   need_lib_prefix=no
10082
10083   case $GCC,$cc_basename in
10084   yes,*)
10085     # gcc
10086     library_names_spec='$libname.dll.a'
10087     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10088     postinstall_cmds='base_file=`basename \${file}`~
10089       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10090       dldir=$destdir/`dirname \$dlpath`~
10091       test -d \$dldir || mkdir -p \$dldir~
10092       $install_prog $dir/$dlname \$dldir/$dlname~
10093       chmod a+x \$dldir/$dlname~
10094       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10095         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10096       fi'
10097     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10098       dlpath=$dir/\$dldll~
10099        $RM \$dlpath'
10100     shlibpath_overrides_runpath=yes
10101
10102     case $host_os in
10103     cygwin*)
10104       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10105       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10106
10107       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10108       ;;
10109     mingw* | cegcc*)
10110       # MinGW DLLs use traditional 'lib' prefix
10111       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10112       ;;
10113     pw32*)
10114       # pw32 DLLs use 'pw' prefix rather than 'lib'
10115       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10116       ;;
10117     esac
10118     dynamic_linker='Win32 ld.exe'
10119     ;;
10120
10121   *,cl*)
10122     # Native MSVC
10123     libname_spec='$name'
10124     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10125     library_names_spec='${libname}.dll.lib'
10126
10127     case $build_os in
10128     mingw*)
10129       sys_lib_search_path_spec=
10130       lt_save_ifs=$IFS
10131       IFS=';'
10132       for lt_path in $LIB
10133       do
10134         IFS=$lt_save_ifs
10135         # Let DOS variable expansion print the short 8.3 style file name.
10136         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10137         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10138       done
10139       IFS=$lt_save_ifs
10140       # Convert to MSYS style.
10141       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10142       ;;
10143     cygwin*)
10144       # Convert to unix form, then to dos form, then back to unix form
10145       # but this time dos style (no spaces!) so that the unix form looks
10146       # like /cygdrive/c/PROGRA~1:/cygdr...
10147       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10148       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10149       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10150       ;;
10151     *)
10152       sys_lib_search_path_spec="$LIB"
10153       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10154         # It is most probably a Windows format PATH.
10155         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10156       else
10157         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10158       fi
10159       # FIXME: find the short name or the path components, as spaces are
10160       # common. (e.g. "Program Files" -> "PROGRA~1")
10161       ;;
10162     esac
10163
10164     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10165     postinstall_cmds='base_file=`basename \${file}`~
10166       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10167       dldir=$destdir/`dirname \$dlpath`~
10168       test -d \$dldir || mkdir -p \$dldir~
10169       $install_prog $dir/$dlname \$dldir/$dlname'
10170     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10171       dlpath=$dir/\$dldll~
10172        $RM \$dlpath'
10173     shlibpath_overrides_runpath=yes
10174     dynamic_linker='Win32 link.exe'
10175     ;;
10176
10177   *)
10178     # Assume MSVC wrapper
10179     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10180     dynamic_linker='Win32 ld.exe'
10181     ;;
10182   esac
10183   # FIXME: first we should search . and the directory the executable is in
10184   shlibpath_var=PATH
10185   ;;
10186
10187 darwin* | rhapsody*)
10188   dynamic_linker="$host_os dyld"
10189   version_type=darwin
10190   need_lib_prefix=no
10191   need_version=no
10192   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10193   soname_spec='${libname}${release}${major}$shared_ext'
10194   shlibpath_overrides_runpath=yes
10195   shlibpath_var=DYLD_LIBRARY_PATH
10196   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10197
10198   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10199   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10200   ;;
10201
10202 dgux*)
10203   version_type=linux # correct to gnu/linux during the next big refactor
10204   need_lib_prefix=no
10205   need_version=no
10206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10207   soname_spec='${libname}${release}${shared_ext}$major'
10208   shlibpath_var=LD_LIBRARY_PATH
10209   ;;
10210
10211 freebsd* | dragonfly*)
10212   # DragonFly does not have aout.  When/if they implement a new
10213   # versioning mechanism, adjust this.
10214   if test -x /usr/bin/objformat; then
10215     objformat=`/usr/bin/objformat`
10216   else
10217     case $host_os in
10218     freebsd[23].*) objformat=aout ;;
10219     *) objformat=elf ;;
10220     esac
10221   fi
10222   version_type=freebsd-$objformat
10223   case $version_type in
10224     freebsd-elf*)
10225       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10226       need_version=no
10227       need_lib_prefix=no
10228       ;;
10229     freebsd-*)
10230       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10231       need_version=yes
10232       ;;
10233   esac
10234   shlibpath_var=LD_LIBRARY_PATH
10235   case $host_os in
10236   freebsd2.*)
10237     shlibpath_overrides_runpath=yes
10238     ;;
10239   freebsd3.[01]* | freebsdelf3.[01]*)
10240     shlibpath_overrides_runpath=yes
10241     hardcode_into_libs=yes
10242     ;;
10243   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10244   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10245     shlibpath_overrides_runpath=no
10246     hardcode_into_libs=yes
10247     ;;
10248   *) # from 4.6 on, and DragonFly
10249     shlibpath_overrides_runpath=yes
10250     hardcode_into_libs=yes
10251     ;;
10252   esac
10253   ;;
10254
10255 gnu*)
10256   version_type=linux # correct to gnu/linux during the next big refactor
10257   need_lib_prefix=no
10258   need_version=no
10259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10260   soname_spec='${libname}${release}${shared_ext}$major'
10261   shlibpath_var=LD_LIBRARY_PATH
10262   shlibpath_overrides_runpath=no
10263   hardcode_into_libs=yes
10264   ;;
10265
10266 haiku*)
10267   version_type=linux # correct to gnu/linux during the next big refactor
10268   need_lib_prefix=no
10269   need_version=no
10270   dynamic_linker="$host_os runtime_loader"
10271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10272   soname_spec='${libname}${release}${shared_ext}$major'
10273   shlibpath_var=LIBRARY_PATH
10274   shlibpath_overrides_runpath=yes
10275   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10276   hardcode_into_libs=yes
10277   ;;
10278
10279 hpux9* | hpux10* | hpux11*)
10280   # Give a soname corresponding to the major version so that dld.sl refuses to
10281   # link against other versions.
10282   version_type=sunos
10283   need_lib_prefix=no
10284   need_version=no
10285   case $host_cpu in
10286   ia64*)
10287     shrext_cmds='.so'
10288     hardcode_into_libs=yes
10289     dynamic_linker="$host_os dld.so"
10290     shlibpath_var=LD_LIBRARY_PATH
10291     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10292     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293     soname_spec='${libname}${release}${shared_ext}$major'
10294     if test "X$HPUX_IA64_MODE" = X32; then
10295       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10296     else
10297       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10298     fi
10299     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10300     ;;
10301   hppa*64*)
10302     shrext_cmds='.sl'
10303     hardcode_into_libs=yes
10304     dynamic_linker="$host_os dld.sl"
10305     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10306     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308     soname_spec='${libname}${release}${shared_ext}$major'
10309     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10310     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10311     ;;
10312   *)
10313     shrext_cmds='.sl'
10314     dynamic_linker="$host_os dld.sl"
10315     shlibpath_var=SHLIB_PATH
10316     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10318     soname_spec='${libname}${release}${shared_ext}$major'
10319     ;;
10320   esac
10321   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10322   postinstall_cmds='chmod 555 $lib'
10323   # or fails outright, so override atomically:
10324   install_override_mode=555
10325   ;;
10326
10327 interix[3-9]*)
10328   version_type=linux # correct to gnu/linux during the next big refactor
10329   need_lib_prefix=no
10330   need_version=no
10331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10332   soname_spec='${libname}${release}${shared_ext}$major'
10333   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10334   shlibpath_var=LD_LIBRARY_PATH
10335   shlibpath_overrides_runpath=no
10336   hardcode_into_libs=yes
10337   ;;
10338
10339 irix5* | irix6* | nonstopux*)
10340   case $host_os in
10341     nonstopux*) version_type=nonstopux ;;
10342     *)
10343         if test "$lt_cv_prog_gnu_ld" = yes; then
10344                 version_type=linux # correct to gnu/linux during the next big refactor
10345         else
10346                 version_type=irix
10347         fi ;;
10348   esac
10349   need_lib_prefix=no
10350   need_version=no
10351   soname_spec='${libname}${release}${shared_ext}$major'
10352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10353   case $host_os in
10354   irix5* | nonstopux*)
10355     libsuff= shlibsuff=
10356     ;;
10357   *)
10358     case $LD in # libtool.m4 will add one of these switches to LD
10359     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10360       libsuff= shlibsuff= libmagic=32-bit;;
10361     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10362       libsuff=32 shlibsuff=N32 libmagic=N32;;
10363     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10364       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10365     *) libsuff= shlibsuff= libmagic=never-match;;
10366     esac
10367     ;;
10368   esac
10369   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10370   shlibpath_overrides_runpath=no
10371   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10372   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10373   hardcode_into_libs=yes
10374   ;;
10375
10376 # No shared lib support for Linux oldld, aout, or coff.
10377 linux*oldld* | linux*aout* | linux*coff*)
10378   dynamic_linker=no
10379   ;;
10380
10381 # This must be glibc/ELF.
10382 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10383   version_type=linux # correct to gnu/linux during the next big refactor
10384   need_lib_prefix=no
10385   need_version=no
10386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387   soname_spec='${libname}${release}${shared_ext}$major'
10388   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10389   shlibpath_var=LD_LIBRARY_PATH
10390   shlibpath_overrides_runpath=no
10391
10392   # Some binutils ld are patched to set DT_RUNPATH
10393   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10394   $as_echo_n "(cached) " >&6
10395 else
10396   lt_cv_shlibpath_overrides_runpath=no
10397     save_LDFLAGS=$LDFLAGS
10398     save_libdir=$libdir
10399     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10400          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10401     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h.  */
10403
10404 int
10405 main ()
10406 {
10407
10408   ;
10409   return 0;
10410 }
10411 _ACEOF
10412 if ac_fn_c_try_link "$LINENO"; then :
10413   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10414   lt_cv_shlibpath_overrides_runpath=yes
10415 fi
10416 fi
10417 rm -f core conftest.err conftest.$ac_objext \
10418     conftest$ac_exeext conftest.$ac_ext
10419     LDFLAGS=$save_LDFLAGS
10420     libdir=$save_libdir
10421
10422 fi
10423
10424   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10425
10426   # This implies no fast_install, which is unacceptable.
10427   # Some rework will be needed to allow for fast_install
10428   # before this can be enabled.
10429   hardcode_into_libs=yes
10430
10431   # Add ABI-specific directories to the system library path.
10432   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10433
10434   # Append ld.so.conf contents to the search path
10435   if test -f /etc/ld.so.conf; then
10436     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' ' '`
10437     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10438
10439   fi
10440
10441   # We used to test for /lib/ld.so.1 and disable shared libraries on
10442   # powerpc, because MkLinux only supported shared libraries with the
10443   # GNU dynamic linker.  Since this was broken with cross compilers,
10444   # most powerpc-linux boxes support dynamic linking these days and
10445   # people can always --disable-shared, the test was removed, and we
10446   # assume the GNU/Linux dynamic linker is in use.
10447   dynamic_linker='GNU/Linux ld.so'
10448   ;;
10449
10450 netbsd*)
10451   version_type=sunos
10452   need_lib_prefix=no
10453   need_version=no
10454   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10455     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10456     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10457     dynamic_linker='NetBSD (a.out) ld.so'
10458   else
10459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10460     soname_spec='${libname}${release}${shared_ext}$major'
10461     dynamic_linker='NetBSD ld.elf_so'
10462   fi
10463   shlibpath_var=LD_LIBRARY_PATH
10464   shlibpath_overrides_runpath=yes
10465   hardcode_into_libs=yes
10466   ;;
10467
10468 newsos6)
10469   version_type=linux # correct to gnu/linux during the next big refactor
10470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471   shlibpath_var=LD_LIBRARY_PATH
10472   shlibpath_overrides_runpath=yes
10473   ;;
10474
10475 *nto* | *qnx*)
10476   version_type=qnx
10477   need_lib_prefix=no
10478   need_version=no
10479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480   soname_spec='${libname}${release}${shared_ext}$major'
10481   shlibpath_var=LD_LIBRARY_PATH
10482   shlibpath_overrides_runpath=no
10483   hardcode_into_libs=yes
10484   dynamic_linker='ldqnx.so'
10485   ;;
10486
10487 openbsd*)
10488   version_type=sunos
10489   sys_lib_dlsearch_path_spec="/usr/lib"
10490   need_lib_prefix=no
10491   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10492   case $host_os in
10493     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10494     *)                          need_version=no  ;;
10495   esac
10496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10497   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10498   shlibpath_var=LD_LIBRARY_PATH
10499   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10500     case $host_os in
10501       openbsd2.[89] | openbsd2.[89].*)
10502         shlibpath_overrides_runpath=no
10503         ;;
10504       *)
10505         shlibpath_overrides_runpath=yes
10506         ;;
10507       esac
10508   else
10509     shlibpath_overrides_runpath=yes
10510   fi
10511   ;;
10512
10513 os2*)
10514   libname_spec='$name'
10515   shrext_cmds=".dll"
10516   need_lib_prefix=no
10517   library_names_spec='$libname${shared_ext} $libname.a'
10518   dynamic_linker='OS/2 ld.exe'
10519   shlibpath_var=LIBPATH
10520   ;;
10521
10522 osf3* | osf4* | osf5*)
10523   version_type=osf
10524   need_lib_prefix=no
10525   need_version=no
10526   soname_spec='${libname}${release}${shared_ext}$major'
10527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528   shlibpath_var=LD_LIBRARY_PATH
10529   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10530   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10531   ;;
10532
10533 rdos*)
10534   dynamic_linker=no
10535   ;;
10536
10537 solaris*)
10538   version_type=linux # correct to gnu/linux during the next big refactor
10539   need_lib_prefix=no
10540   need_version=no
10541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542   soname_spec='${libname}${release}${shared_ext}$major'
10543   shlibpath_var=LD_LIBRARY_PATH
10544   shlibpath_overrides_runpath=yes
10545   hardcode_into_libs=yes
10546   # ldd complains unless libraries are executable
10547   postinstall_cmds='chmod +x $lib'
10548   ;;
10549
10550 sunos4*)
10551   version_type=sunos
10552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10553   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10554   shlibpath_var=LD_LIBRARY_PATH
10555   shlibpath_overrides_runpath=yes
10556   if test "$with_gnu_ld" = yes; then
10557     need_lib_prefix=no
10558   fi
10559   need_version=yes
10560   ;;
10561
10562 sysv4 | sysv4.3*)
10563   version_type=linux # correct to gnu/linux during the next big refactor
10564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565   soname_spec='${libname}${release}${shared_ext}$major'
10566   shlibpath_var=LD_LIBRARY_PATH
10567   case $host_vendor in
10568     sni)
10569       shlibpath_overrides_runpath=no
10570       need_lib_prefix=no
10571       runpath_var=LD_RUN_PATH
10572       ;;
10573     siemens)
10574       need_lib_prefix=no
10575       ;;
10576     motorola)
10577       need_lib_prefix=no
10578       need_version=no
10579       shlibpath_overrides_runpath=no
10580       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10581       ;;
10582   esac
10583   ;;
10584
10585 sysv4*MP*)
10586   if test -d /usr/nec ;then
10587     version_type=linux # correct to gnu/linux during the next big refactor
10588     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10589     soname_spec='$libname${shared_ext}.$major'
10590     shlibpath_var=LD_LIBRARY_PATH
10591   fi
10592   ;;
10593
10594 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10595   version_type=freebsd-elf
10596   need_lib_prefix=no
10597   need_version=no
10598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10599   soname_spec='${libname}${release}${shared_ext}$major'
10600   shlibpath_var=LD_LIBRARY_PATH
10601   shlibpath_overrides_runpath=yes
10602   hardcode_into_libs=yes
10603   if test "$with_gnu_ld" = yes; then
10604     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10605   else
10606     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10607     case $host_os in
10608       sco3.2v5*)
10609         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10610         ;;
10611     esac
10612   fi
10613   sys_lib_dlsearch_path_spec='/usr/lib'
10614   ;;
10615
10616 tpf*)
10617   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10618   version_type=linux # correct to gnu/linux during the next big refactor
10619   need_lib_prefix=no
10620   need_version=no
10621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10622   shlibpath_var=LD_LIBRARY_PATH
10623   shlibpath_overrides_runpath=no
10624   hardcode_into_libs=yes
10625   ;;
10626
10627 uts4*)
10628   version_type=linux # correct to gnu/linux during the next big refactor
10629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630   soname_spec='${libname}${release}${shared_ext}$major'
10631   shlibpath_var=LD_LIBRARY_PATH
10632   ;;
10633
10634 *)
10635   dynamic_linker=no
10636   ;;
10637 esac
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10639 $as_echo "$dynamic_linker" >&6; }
10640 test "$dynamic_linker" = no && can_build_shared=no
10641
10642 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10643 if test "$GCC" = yes; then
10644   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10645 fi
10646
10647 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10648   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10649 fi
10650 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10651   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10652 fi
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10746 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10747 hardcode_action=
10748 if test -n "$hardcode_libdir_flag_spec" ||
10749    test -n "$runpath_var" ||
10750    test "X$hardcode_automatic" = "Xyes" ; then
10751
10752   # We can hardcode non-existent directories.
10753   if test "$hardcode_direct" != no &&
10754      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10755      # have to relink, otherwise we might link with an installed library
10756      # when we should be linking with a yet-to-be-installed one
10757      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10758      test "$hardcode_minus_L" != no; then
10759     # Linking always hardcodes the temporary library directory.
10760     hardcode_action=relink
10761   else
10762     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10763     hardcode_action=immediate
10764   fi
10765 else
10766   # We cannot hardcode anything, or else we can only hardcode existing
10767   # directories.
10768   hardcode_action=unsupported
10769 fi
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10771 $as_echo "$hardcode_action" >&6; }
10772
10773 if test "$hardcode_action" = relink ||
10774    test "$inherit_rpath" = yes; then
10775   # Fast installation is not supported
10776   enable_fast_install=no
10777 elif test "$shlibpath_overrides_runpath" = yes ||
10778      test "$enable_shared" = no; then
10779   # Fast installation is not necessary
10780   enable_fast_install=needless
10781 fi
10782
10783
10784
10785
10786
10787
10788   if test "x$enable_dlopen" != xyes; then
10789   enable_dlopen=unknown
10790   enable_dlopen_self=unknown
10791   enable_dlopen_self_static=unknown
10792 else
10793   lt_cv_dlopen=no
10794   lt_cv_dlopen_libs=
10795
10796   case $host_os in
10797   beos*)
10798     lt_cv_dlopen="load_add_on"
10799     lt_cv_dlopen_libs=
10800     lt_cv_dlopen_self=yes
10801     ;;
10802
10803   mingw* | pw32* | cegcc*)
10804     lt_cv_dlopen="LoadLibrary"
10805     lt_cv_dlopen_libs=
10806     ;;
10807
10808   cygwin*)
10809     lt_cv_dlopen="dlopen"
10810     lt_cv_dlopen_libs=
10811     ;;
10812
10813   darwin*)
10814   # if libdl is installed we need to link against it
10815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10816 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10817 if ${ac_cv_lib_dl_dlopen+:} false; then :
10818   $as_echo_n "(cached) " >&6
10819 else
10820   ac_check_lib_save_LIBS=$LIBS
10821 LIBS="-ldl  $LIBS"
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h.  */
10824
10825 /* Override any GCC internal prototype to avoid an error.
10826    Use char because int might match the return type of a GCC
10827    builtin and then its argument prototype would still apply.  */
10828 #ifdef __cplusplus
10829 extern "C"
10830 #endif
10831 char dlopen ();
10832 int
10833 main ()
10834 {
10835 return dlopen ();
10836   ;
10837   return 0;
10838 }
10839 _ACEOF
10840 if ac_fn_c_try_link "$LINENO"; then :
10841   ac_cv_lib_dl_dlopen=yes
10842 else
10843   ac_cv_lib_dl_dlopen=no
10844 fi
10845 rm -f core conftest.err conftest.$ac_objext \
10846     conftest$ac_exeext conftest.$ac_ext
10847 LIBS=$ac_check_lib_save_LIBS
10848 fi
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10850 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10851 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10852   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10853 else
10854
10855     lt_cv_dlopen="dyld"
10856     lt_cv_dlopen_libs=
10857     lt_cv_dlopen_self=yes
10858
10859 fi
10860
10861     ;;
10862
10863   *)
10864     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10865 if test "x$ac_cv_func_shl_load" = xyes; then :
10866   lt_cv_dlopen="shl_load"
10867 else
10868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10869 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10870 if ${ac_cv_lib_dld_shl_load+:} false; then :
10871   $as_echo_n "(cached) " >&6
10872 else
10873   ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-ldld  $LIBS"
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h.  */
10877
10878 /* Override any GCC internal prototype to avoid an error.
10879    Use char because int might match the return type of a GCC
10880    builtin and then its argument prototype would still apply.  */
10881 #ifdef __cplusplus
10882 extern "C"
10883 #endif
10884 char shl_load ();
10885 int
10886 main ()
10887 {
10888 return shl_load ();
10889   ;
10890   return 0;
10891 }
10892 _ACEOF
10893 if ac_fn_c_try_link "$LINENO"; then :
10894   ac_cv_lib_dld_shl_load=yes
10895 else
10896   ac_cv_lib_dld_shl_load=no
10897 fi
10898 rm -f core conftest.err conftest.$ac_objext \
10899     conftest$ac_exeext conftest.$ac_ext
10900 LIBS=$ac_check_lib_save_LIBS
10901 fi
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10903 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10904 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10905   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10906 else
10907   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10908 if test "x$ac_cv_func_dlopen" = xyes; then :
10909   lt_cv_dlopen="dlopen"
10910 else
10911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10912 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10913 if ${ac_cv_lib_dl_dlopen+:} false; then :
10914   $as_echo_n "(cached) " >&6
10915 else
10916   ac_check_lib_save_LIBS=$LIBS
10917 LIBS="-ldl  $LIBS"
10918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919 /* end confdefs.h.  */
10920
10921 /* Override any GCC internal prototype to avoid an error.
10922    Use char because int might match the return type of a GCC
10923    builtin and then its argument prototype would still apply.  */
10924 #ifdef __cplusplus
10925 extern "C"
10926 #endif
10927 char dlopen ();
10928 int
10929 main ()
10930 {
10931 return dlopen ();
10932   ;
10933   return 0;
10934 }
10935 _ACEOF
10936 if ac_fn_c_try_link "$LINENO"; then :
10937   ac_cv_lib_dl_dlopen=yes
10938 else
10939   ac_cv_lib_dl_dlopen=no
10940 fi
10941 rm -f core conftest.err conftest.$ac_objext \
10942     conftest$ac_exeext conftest.$ac_ext
10943 LIBS=$ac_check_lib_save_LIBS
10944 fi
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10946 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10947 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10948   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10949 else
10950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10951 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10952 if ${ac_cv_lib_svld_dlopen+:} false; then :
10953   $as_echo_n "(cached) " >&6
10954 else
10955   ac_check_lib_save_LIBS=$LIBS
10956 LIBS="-lsvld  $LIBS"
10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h.  */
10959
10960 /* Override any GCC internal prototype to avoid an error.
10961    Use char because int might match the return type of a GCC
10962    builtin and then its argument prototype would still apply.  */
10963 #ifdef __cplusplus
10964 extern "C"
10965 #endif
10966 char dlopen ();
10967 int
10968 main ()
10969 {
10970 return dlopen ();
10971   ;
10972   return 0;
10973 }
10974 _ACEOF
10975 if ac_fn_c_try_link "$LINENO"; then :
10976   ac_cv_lib_svld_dlopen=yes
10977 else
10978   ac_cv_lib_svld_dlopen=no
10979 fi
10980 rm -f core conftest.err conftest.$ac_objext \
10981     conftest$ac_exeext conftest.$ac_ext
10982 LIBS=$ac_check_lib_save_LIBS
10983 fi
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10985 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10986 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10987   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10988 else
10989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10990 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10991 if ${ac_cv_lib_dld_dld_link+:} false; then :
10992   $as_echo_n "(cached) " >&6
10993 else
10994   ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-ldld  $LIBS"
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h.  */
10998
10999 /* Override any GCC internal prototype to avoid an error.
11000    Use char because int might match the return type of a GCC
11001    builtin and then its argument prototype would still apply.  */
11002 #ifdef __cplusplus
11003 extern "C"
11004 #endif
11005 char dld_link ();
11006 int
11007 main ()
11008 {
11009 return dld_link ();
11010   ;
11011   return 0;
11012 }
11013 _ACEOF
11014 if ac_fn_c_try_link "$LINENO"; then :
11015   ac_cv_lib_dld_dld_link=yes
11016 else
11017   ac_cv_lib_dld_dld_link=no
11018 fi
11019 rm -f core conftest.err conftest.$ac_objext \
11020     conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_lib_save_LIBS
11022 fi
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11024 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11025 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11026   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11027 fi
11028
11029
11030 fi
11031
11032
11033 fi
11034
11035
11036 fi
11037
11038
11039 fi
11040
11041
11042 fi
11043
11044     ;;
11045   esac
11046
11047   if test "x$lt_cv_dlopen" != xno; then
11048     enable_dlopen=yes
11049   else
11050     enable_dlopen=no
11051   fi
11052
11053   case $lt_cv_dlopen in
11054   dlopen)
11055     save_CPPFLAGS="$CPPFLAGS"
11056     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11057
11058     save_LDFLAGS="$LDFLAGS"
11059     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11060
11061     save_LIBS="$LIBS"
11062     LIBS="$lt_cv_dlopen_libs $LIBS"
11063
11064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11065 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11066 if ${lt_cv_dlopen_self+:} false; then :
11067   $as_echo_n "(cached) " >&6
11068 else
11069           if test "$cross_compiling" = yes; then :
11070   lt_cv_dlopen_self=cross
11071 else
11072   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11073   lt_status=$lt_dlunknown
11074   cat > conftest.$ac_ext <<_LT_EOF
11075 #line $LINENO "configure"
11076 #include "confdefs.h"
11077
11078 #if HAVE_DLFCN_H
11079 #include <dlfcn.h>
11080 #endif
11081
11082 #include <stdio.h>
11083
11084 #ifdef RTLD_GLOBAL
11085 #  define LT_DLGLOBAL           RTLD_GLOBAL
11086 #else
11087 #  ifdef DL_GLOBAL
11088 #    define LT_DLGLOBAL         DL_GLOBAL
11089 #  else
11090 #    define LT_DLGLOBAL         0
11091 #  endif
11092 #endif
11093
11094 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11095    find out it does not work in some platform. */
11096 #ifndef LT_DLLAZY_OR_NOW
11097 #  ifdef RTLD_LAZY
11098 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11099 #  else
11100 #    ifdef DL_LAZY
11101 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11102 #    else
11103 #      ifdef RTLD_NOW
11104 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11105 #      else
11106 #        ifdef DL_NOW
11107 #          define LT_DLLAZY_OR_NOW      DL_NOW
11108 #        else
11109 #          define LT_DLLAZY_OR_NOW      0
11110 #        endif
11111 #      endif
11112 #    endif
11113 #  endif
11114 #endif
11115
11116 /* When -fvisbility=hidden is used, assume the code has been annotated
11117    correspondingly for the symbols needed.  */
11118 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11119 int fnord () __attribute__((visibility("default")));
11120 #endif
11121
11122 int fnord () { return 42; }
11123 int main ()
11124 {
11125   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11126   int status = $lt_dlunknown;
11127
11128   if (self)
11129     {
11130       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11131       else
11132         {
11133           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11134           else puts (dlerror ());
11135         }
11136       /* dlclose (self); */
11137     }
11138   else
11139     puts (dlerror ());
11140
11141   return status;
11142 }
11143 _LT_EOF
11144   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11145   (eval $ac_link) 2>&5
11146   ac_status=$?
11147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11148   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11149     (./conftest; exit; ) >&5 2>/dev/null
11150     lt_status=$?
11151     case x$lt_status in
11152       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11153       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11154       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11155     esac
11156   else :
11157     # compilation failed
11158     lt_cv_dlopen_self=no
11159   fi
11160 fi
11161 rm -fr conftest*
11162
11163
11164 fi
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11166 $as_echo "$lt_cv_dlopen_self" >&6; }
11167
11168     if test "x$lt_cv_dlopen_self" = xyes; then
11169       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11170       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11171 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11172 if ${lt_cv_dlopen_self_static+:} false; then :
11173   $as_echo_n "(cached) " >&6
11174 else
11175           if test "$cross_compiling" = yes; then :
11176   lt_cv_dlopen_self_static=cross
11177 else
11178   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11179   lt_status=$lt_dlunknown
11180   cat > conftest.$ac_ext <<_LT_EOF
11181 #line $LINENO "configure"
11182 #include "confdefs.h"
11183
11184 #if HAVE_DLFCN_H
11185 #include <dlfcn.h>
11186 #endif
11187
11188 #include <stdio.h>
11189
11190 #ifdef RTLD_GLOBAL
11191 #  define LT_DLGLOBAL           RTLD_GLOBAL
11192 #else
11193 #  ifdef DL_GLOBAL
11194 #    define LT_DLGLOBAL         DL_GLOBAL
11195 #  else
11196 #    define LT_DLGLOBAL         0
11197 #  endif
11198 #endif
11199
11200 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11201    find out it does not work in some platform. */
11202 #ifndef LT_DLLAZY_OR_NOW
11203 #  ifdef RTLD_LAZY
11204 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11205 #  else
11206 #    ifdef DL_LAZY
11207 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11208 #    else
11209 #      ifdef RTLD_NOW
11210 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11211 #      else
11212 #        ifdef DL_NOW
11213 #          define LT_DLLAZY_OR_NOW      DL_NOW
11214 #        else
11215 #          define LT_DLLAZY_OR_NOW      0
11216 #        endif
11217 #      endif
11218 #    endif
11219 #  endif
11220 #endif
11221
11222 /* When -fvisbility=hidden is used, assume the code has been annotated
11223    correspondingly for the symbols needed.  */
11224 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11225 int fnord () __attribute__((visibility("default")));
11226 #endif
11227
11228 int fnord () { return 42; }
11229 int main ()
11230 {
11231   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11232   int status = $lt_dlunknown;
11233
11234   if (self)
11235     {
11236       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11237       else
11238         {
11239           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11240           else puts (dlerror ());
11241         }
11242       /* dlclose (self); */
11243     }
11244   else
11245     puts (dlerror ());
11246
11247   return status;
11248 }
11249 _LT_EOF
11250   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11251   (eval $ac_link) 2>&5
11252   ac_status=$?
11253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11254   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11255     (./conftest; exit; ) >&5 2>/dev/null
11256     lt_status=$?
11257     case x$lt_status in
11258       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11259       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11260       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11261     esac
11262   else :
11263     # compilation failed
11264     lt_cv_dlopen_self_static=no
11265   fi
11266 fi
11267 rm -fr conftest*
11268
11269
11270 fi
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11272 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11273     fi
11274
11275     CPPFLAGS="$save_CPPFLAGS"
11276     LDFLAGS="$save_LDFLAGS"
11277     LIBS="$save_LIBS"
11278     ;;
11279   esac
11280
11281   case $lt_cv_dlopen_self in
11282   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11283   *) enable_dlopen_self=unknown ;;
11284   esac
11285
11286   case $lt_cv_dlopen_self_static in
11287   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11288   *) enable_dlopen_self_static=unknown ;;
11289   esac
11290 fi
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308 striplib=
11309 old_striplib=
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11311 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11312 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11313   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11314   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11316 $as_echo "yes" >&6; }
11317 else
11318 # FIXME - insert some real tests, host_os isn't really good enough
11319   case $host_os in
11320   darwin*)
11321     if test -n "$STRIP" ; then
11322       striplib="$STRIP -x"
11323       old_striplib="$STRIP -S"
11324       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11325 $as_echo "yes" >&6; }
11326     else
11327       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11329     fi
11330     ;;
11331   *)
11332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 $as_echo "no" >&6; }
11334     ;;
11335   esac
11336 fi
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349   # Report which library types will actually be built
11350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11351 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11353 $as_echo "$can_build_shared" >&6; }
11354
11355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11356 $as_echo_n "checking whether to build shared libraries... " >&6; }
11357   test "$can_build_shared" = "no" && enable_shared=no
11358
11359   # On AIX, shared libraries and static libraries use the same namespace, and
11360   # are all built from PIC.
11361   case $host_os in
11362   aix3*)
11363     test "$enable_shared" = yes && enable_static=no
11364     if test -n "$RANLIB"; then
11365       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11366       postinstall_cmds='$RANLIB $lib'
11367     fi
11368     ;;
11369
11370   aix[4-9]*)
11371     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11372       test "$enable_shared" = yes && enable_static=no
11373     fi
11374     ;;
11375   esac
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11377 $as_echo "$enable_shared" >&6; }
11378
11379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11380 $as_echo_n "checking whether to build static libraries... " >&6; }
11381   # Make sure either enable_shared or enable_static is yes.
11382   test "$enable_shared" = yes || enable_static=yes
11383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11384 $as_echo "$enable_static" >&6; }
11385
11386
11387
11388
11389 fi
11390 ac_ext=c
11391 ac_cpp='$CPP $CPPFLAGS'
11392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11395
11396 CC="$lt_save_CC"
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412         ac_config_commands="$ac_config_commands libtool"
11413
11414
11415
11416
11417 # Only expand once:
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11429         if test -n "$ac_tool_prefix"; then
11430   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11431 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11433 $as_echo_n "checking for $ac_word... " >&6; }
11434 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11435   $as_echo_n "(cached) " >&6
11436 else
11437   case $PKG_CONFIG in
11438   [\\/]* | ?:[\\/]*)
11439   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11440   ;;
11441   *)
11442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443 for as_dir in $PATH
11444 do
11445   IFS=$as_save_IFS
11446   test -z "$as_dir" && as_dir=.
11447     for ac_exec_ext in '' $ac_executable_extensions; do
11448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11449     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11451     break 2
11452   fi
11453 done
11454   done
11455 IFS=$as_save_IFS
11456
11457   ;;
11458 esac
11459 fi
11460 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11461 if test -n "$PKG_CONFIG"; then
11462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11463 $as_echo "$PKG_CONFIG" >&6; }
11464 else
11465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466 $as_echo "no" >&6; }
11467 fi
11468
11469
11470 fi
11471 if test -z "$ac_cv_path_PKG_CONFIG"; then
11472   ac_pt_PKG_CONFIG=$PKG_CONFIG
11473   # Extract the first word of "pkg-config", so it can be a program name with args.
11474 set dummy pkg-config; ac_word=$2
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11476 $as_echo_n "checking for $ac_word... " >&6; }
11477 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11478   $as_echo_n "(cached) " >&6
11479 else
11480   case $ac_pt_PKG_CONFIG in
11481   [\\/]* | ?:[\\/]*)
11482   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11483   ;;
11484   *)
11485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486 for as_dir in $PATH
11487 do
11488   IFS=$as_save_IFS
11489   test -z "$as_dir" && as_dir=.
11490     for ac_exec_ext in '' $ac_executable_extensions; do
11491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11492     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11494     break 2
11495   fi
11496 done
11497   done
11498 IFS=$as_save_IFS
11499
11500   ;;
11501 esac
11502 fi
11503 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11504 if test -n "$ac_pt_PKG_CONFIG"; then
11505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11506 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11507 else
11508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 $as_echo "no" >&6; }
11510 fi
11511
11512   if test "x$ac_pt_PKG_CONFIG" = x; then
11513     PKG_CONFIG=""
11514   else
11515     case $cross_compiling:$ac_tool_warned in
11516 yes:)
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11519 ac_tool_warned=yes ;;
11520 esac
11521     PKG_CONFIG=$ac_pt_PKG_CONFIG
11522   fi
11523 else
11524   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11525 fi
11526
11527 fi
11528 if test -n "$PKG_CONFIG"; then
11529         _pkg_min_version=0.9.0
11530         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11531 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11532         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11533                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11534 $as_echo "yes" >&6; }
11535         else
11536                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11538                 PKG_CONFIG=""
11539         fi
11540 fi
11541
11542
11543 pkg_failed=no
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND" >&5
11545 $as_echo_n "checking for WAYLAND... " >&6; }
11546
11547 if test -n "$WAYLAND_CFLAGS"; then
11548     pkg_cv_WAYLAND_CFLAGS="$WAYLAND_CFLAGS"
11549  elif test -n "$PKG_CONFIG"; then
11550     if test -n "$PKG_CONFIG" && \
11551     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.2.0\""; } >&5
11552   ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.2.0") 2>&5
11553   ac_status=$?
11554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11555   test $ac_status = 0; }; then
11556   pkg_cv_WAYLAND_CFLAGS=`$PKG_CONFIG --cflags "wayland-client >= 1.2.0" 2>/dev/null`
11557                       test "x$?" != "x0" && pkg_failed=yes
11558 else
11559   pkg_failed=yes
11560 fi
11561  else
11562     pkg_failed=untried
11563 fi
11564 if test -n "$WAYLAND_LIBS"; then
11565     pkg_cv_WAYLAND_LIBS="$WAYLAND_LIBS"
11566  elif test -n "$PKG_CONFIG"; then
11567     if test -n "$PKG_CONFIG" && \
11568     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.2.0\""; } >&5
11569   ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.2.0") 2>&5
11570   ac_status=$?
11571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11572   test $ac_status = 0; }; then
11573   pkg_cv_WAYLAND_LIBS=`$PKG_CONFIG --libs "wayland-client >= 1.2.0" 2>/dev/null`
11574                       test "x$?" != "x0" && pkg_failed=yes
11575 else
11576   pkg_failed=yes
11577 fi
11578  else
11579     pkg_failed=untried
11580 fi
11581
11582
11583
11584 if test $pkg_failed = yes; then
11585         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586 $as_echo "no" >&6; }
11587
11588 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11589         _pkg_short_errors_supported=yes
11590 else
11591         _pkg_short_errors_supported=no
11592 fi
11593         if test $_pkg_short_errors_supported = yes; then
11594                 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-client >= 1.2.0" 2>&1`
11595         else
11596                 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-client >= 1.2.0" 2>&1`
11597         fi
11598         # Put the nasty error message in config.log where it belongs
11599         echo "$WAYLAND_PKG_ERRORS" >&5
11600
11601         as_fn_error $? "Package requirements (wayland-client >= 1.2.0) were not met:
11602
11603 $WAYLAND_PKG_ERRORS
11604
11605 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11606 installed software in a non-standard prefix.
11607
11608 Alternatively, you may set the environment variables WAYLAND_CFLAGS
11609 and WAYLAND_LIBS to avoid the need to call pkg-config.
11610 See the pkg-config man page for more details." "$LINENO" 5
11611 elif test $pkg_failed = untried; then
11612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613 $as_echo "no" >&6; }
11614         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11616 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11617 is in your PATH or set the PKG_CONFIG environment variable to the full
11618 path to pkg-config.
11619
11620 Alternatively, you may set the environment variables WAYLAND_CFLAGS
11621 and WAYLAND_LIBS to avoid the need to call pkg-config.
11622 See the pkg-config man page for more details.
11623
11624 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11625 See \`config.log' for more details" "$LINENO" 5; }
11626 else
11627         WAYLAND_CFLAGS=$pkg_cv_WAYLAND_CFLAGS
11628         WAYLAND_LIBS=$pkg_cv_WAYLAND_LIBS
11629         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11630 $as_echo "yes" >&6; }
11631
11632 fi
11633
11634 pkg_failed=no
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EFL" >&5
11636 $as_echo_n "checking for EFL... " >&6; }
11637
11638 if test -n "$EFL_CFLAGS"; then
11639     pkg_cv_EFL_CFLAGS="$EFL_CFLAGS"
11640  elif test -n "$PKG_CONFIG"; then
11641     if test -n "$PKG_CONFIG" && \
11642     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina evas ecore ecore-evas ecore-wayland edje\""; } >&5
11643   ($PKG_CONFIG --exists --print-errors "eina evas ecore ecore-evas ecore-wayland edje") 2>&5
11644   ac_status=$?
11645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11646   test $ac_status = 0; }; then
11647   pkg_cv_EFL_CFLAGS=`$PKG_CONFIG --cflags "eina evas ecore ecore-evas ecore-wayland edje" 2>/dev/null`
11648                       test "x$?" != "x0" && pkg_failed=yes
11649 else
11650   pkg_failed=yes
11651 fi
11652  else
11653     pkg_failed=untried
11654 fi
11655 if test -n "$EFL_LIBS"; then
11656     pkg_cv_EFL_LIBS="$EFL_LIBS"
11657  elif test -n "$PKG_CONFIG"; then
11658     if test -n "$PKG_CONFIG" && \
11659     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina evas ecore ecore-evas ecore-wayland edje\""; } >&5
11660   ($PKG_CONFIG --exists --print-errors "eina evas ecore ecore-evas ecore-wayland edje") 2>&5
11661   ac_status=$?
11662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11663   test $ac_status = 0; }; then
11664   pkg_cv_EFL_LIBS=`$PKG_CONFIG --libs "eina evas ecore ecore-evas ecore-wayland edje" 2>/dev/null`
11665                       test "x$?" != "x0" && pkg_failed=yes
11666 else
11667   pkg_failed=yes
11668 fi
11669  else
11670     pkg_failed=untried
11671 fi
11672
11673
11674
11675 if test $pkg_failed = yes; then
11676         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11677 $as_echo "no" >&6; }
11678
11679 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11680         _pkg_short_errors_supported=yes
11681 else
11682         _pkg_short_errors_supported=no
11683 fi
11684         if test $_pkg_short_errors_supported = yes; then
11685                 EFL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "eina evas ecore ecore-evas ecore-wayland edje" 2>&1`
11686         else
11687                 EFL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "eina evas ecore ecore-evas ecore-wayland edje" 2>&1`
11688         fi
11689         # Put the nasty error message in config.log where it belongs
11690         echo "$EFL_PKG_ERRORS" >&5
11691
11692         as_fn_error $? "Package requirements (eina evas ecore ecore-evas ecore-wayland edje) were not met:
11693
11694 $EFL_PKG_ERRORS
11695
11696 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11697 installed software in a non-standard prefix.
11698
11699 Alternatively, you may set the environment variables EFL_CFLAGS
11700 and EFL_LIBS to avoid the need to call pkg-config.
11701 See the pkg-config man page for more details." "$LINENO" 5
11702 elif test $pkg_failed = untried; then
11703         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704 $as_echo "no" >&6; }
11705         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11707 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11708 is in your PATH or set the PKG_CONFIG environment variable to the full
11709 path to pkg-config.
11710
11711 Alternatively, you may set the environment variables EFL_CFLAGS
11712 and EFL_LIBS to avoid the need to call pkg-config.
11713 See the pkg-config man page for more details.
11714
11715 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11716 See \`config.log' for more details" "$LINENO" 5; }
11717 else
11718         EFL_CFLAGS=$pkg_cv_EFL_CFLAGS
11719         EFL_LIBS=$pkg_cv_EFL_LIBS
11720         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11721 $as_echo "yes" >&6; }
11722
11723 fi
11724
11725
11726 # Check whether --with-edje-cc was given.
11727 if test "${with_edje_cc+set}" = set; then :
11728   withval=$with_edje_cc; EDJE_CC_PATH=${withval}
11729 else
11730   EDJE_CC_PATH=$($PKG_CONFIG --variable=prefix edje)/bin/edje_cc
11731 fi
11732
11733
11734
11735
11736 pkg_failed=no
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
11738 $as_echo_n "checking for IBUS... " >&6; }
11739
11740 if test -n "$IBUS_CFLAGS"; then
11741     pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
11742  elif test -n "$PKG_CONFIG"; then
11743     if test -n "$PKG_CONFIG" && \
11744     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eldbus eet efreet\""; } >&5
11745   ($PKG_CONFIG --exists --print-errors "eldbus eet efreet") 2>&5
11746   ac_status=$?
11747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11748   test $ac_status = 0; }; then
11749   pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "eldbus eet efreet" 2>/dev/null`
11750                       test "x$?" != "x0" && pkg_failed=yes
11751 else
11752   pkg_failed=yes
11753 fi
11754  else
11755     pkg_failed=untried
11756 fi
11757 if test -n "$IBUS_LIBS"; then
11758     pkg_cv_IBUS_LIBS="$IBUS_LIBS"
11759  elif test -n "$PKG_CONFIG"; then
11760     if test -n "$PKG_CONFIG" && \
11761     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eldbus eet efreet\""; } >&5
11762   ($PKG_CONFIG --exists --print-errors "eldbus eet efreet") 2>&5
11763   ac_status=$?
11764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11765   test $ac_status = 0; }; then
11766   pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "eldbus eet efreet" 2>/dev/null`
11767                       test "x$?" != "x0" && pkg_failed=yes
11768 else
11769   pkg_failed=yes
11770 fi
11771  else
11772     pkg_failed=untried
11773 fi
11774
11775
11776
11777 if test $pkg_failed = yes; then
11778         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779 $as_echo "no" >&6; }
11780
11781 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11782         _pkg_short_errors_supported=yes
11783 else
11784         _pkg_short_errors_supported=no
11785 fi
11786         if test $_pkg_short_errors_supported = yes; then
11787                 IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "eldbus eet efreet" 2>&1`
11788         else
11789                 IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "eldbus eet efreet" 2>&1`
11790         fi
11791         # Put the nasty error message in config.log where it belongs
11792         echo "$IBUS_PKG_ERRORS" >&5
11793
11794         as_fn_error $? "Package requirements (eldbus eet efreet) were not met:
11795
11796 $IBUS_PKG_ERRORS
11797
11798 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11799 installed software in a non-standard prefix.
11800
11801 Alternatively, you may set the environment variables IBUS_CFLAGS
11802 and IBUS_LIBS to avoid the need to call pkg-config.
11803 See the pkg-config man page for more details." "$LINENO" 5
11804 elif test $pkg_failed = untried; then
11805         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11807         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11809 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11810 is in your PATH or set the PKG_CONFIG environment variable to the full
11811 path to pkg-config.
11812
11813 Alternatively, you may set the environment variables IBUS_CFLAGS
11814 and IBUS_LIBS to avoid the need to call pkg-config.
11815 See the pkg-config man page for more details.
11816
11817 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11818 See \`config.log' for more details" "$LINENO" 5; }
11819 else
11820         IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
11821         IBUS_LIBS=$pkg_cv_IBUS_LIBS
11822         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11823 $as_echo "yes" >&6; }
11824
11825 fi
11826 # Extract the first word of "ibus", so it can be a program name with args.
11827 set dummy ibus; ac_word=$2
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11829 $as_echo_n "checking for $ac_word... " >&6; }
11830 if ${ac_cv_prog_have_ibus+:} false; then :
11831   $as_echo_n "(cached) " >&6
11832 else
11833   if test -n "$have_ibus"; then
11834   ac_cv_prog_have_ibus="$have_ibus" # Let the user override the test.
11835 else
11836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837 for as_dir in $PATH
11838 do
11839   IFS=$as_save_IFS
11840   test -z "$as_dir" && as_dir=.
11841     for ac_exec_ext in '' $ac_executable_extensions; do
11842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11843     ac_cv_prog_have_ibus="yes"
11844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11845     break 2
11846   fi
11847 done
11848   done
11849 IFS=$as_save_IFS
11850
11851   test -z "$ac_cv_prog_have_ibus" && ac_cv_prog_have_ibus="no"
11852 fi
11853 fi
11854 have_ibus=$ac_cv_prog_have_ibus
11855 if test -n "$have_ibus"; then
11856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ibus" >&5
11857 $as_echo "$have_ibus" >&6; }
11858 else
11859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11860 $as_echo "no" >&6; }
11861 fi
11862
11863
11864
11865 if  test "x$have ibus" = "xno" ; then :
11866    as_fn_error $? "The ibus executable was not found." "$LINENO" 5
11867 fi
11868
11869 IBUS_ADDR=`ibus address > /dev/null 2>&1`
11870 if  test $? -ne 0 ; then :
11871    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The ibus executable does not support 'address' argument." >&5
11872 $as_echo "$as_me: WARNING: The ibus executable does not support 'address' argument." >&2;}
11873 fi
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11884         if test -n "$ac_tool_prefix"; then
11885   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11886 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11888 $as_echo_n "checking for $ac_word... " >&6; }
11889 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11890   $as_echo_n "(cached) " >&6
11891 else
11892   case $PKG_CONFIG in
11893   [\\/]* | ?:[\\/]*)
11894   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11895   ;;
11896   *)
11897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898 for as_dir in $PATH
11899 do
11900   IFS=$as_save_IFS
11901   test -z "$as_dir" && as_dir=.
11902     for ac_exec_ext in '' $ac_executable_extensions; do
11903   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11904     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906     break 2
11907   fi
11908 done
11909   done
11910 IFS=$as_save_IFS
11911
11912   ;;
11913 esac
11914 fi
11915 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11916 if test -n "$PKG_CONFIG"; then
11917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11918 $as_echo "$PKG_CONFIG" >&6; }
11919 else
11920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 $as_echo "no" >&6; }
11922 fi
11923
11924
11925 fi
11926 if test -z "$ac_cv_path_PKG_CONFIG"; then
11927   ac_pt_PKG_CONFIG=$PKG_CONFIG
11928   # Extract the first word of "pkg-config", so it can be a program name with args.
11929 set dummy pkg-config; ac_word=$2
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11931 $as_echo_n "checking for $ac_word... " >&6; }
11932 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11933   $as_echo_n "(cached) " >&6
11934 else
11935   case $ac_pt_PKG_CONFIG in
11936   [\\/]* | ?:[\\/]*)
11937   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11938   ;;
11939   *)
11940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941 for as_dir in $PATH
11942 do
11943   IFS=$as_save_IFS
11944   test -z "$as_dir" && as_dir=.
11945     for ac_exec_ext in '' $ac_executable_extensions; do
11946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11947     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11949     break 2
11950   fi
11951 done
11952   done
11953 IFS=$as_save_IFS
11954
11955   ;;
11956 esac
11957 fi
11958 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11959 if test -n "$ac_pt_PKG_CONFIG"; then
11960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11961 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11962 else
11963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11965 fi
11966
11967   if test "x$ac_pt_PKG_CONFIG" = x; then
11968     PKG_CONFIG=""
11969   else
11970     case $cross_compiling:$ac_tool_warned in
11971 yes:)
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11974 ac_tool_warned=yes ;;
11975 esac
11976     PKG_CONFIG=$ac_pt_PKG_CONFIG
11977   fi
11978 else
11979   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11980 fi
11981
11982 fi
11983 if test -n "$PKG_CONFIG"; then
11984         _pkg_min_version=0.9.0
11985         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11986 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11987         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11988                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11989 $as_echo "yes" >&6; }
11990         else
11991                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11993                 PKG_CONFIG=""
11994         fi
11995 fi
11996
11997
11998 pkg_failed=no
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5
12000 $as_echo_n "checking for WAYLAND_SCANNER... " >&6; }
12001
12002 if test -n "$WAYLAND_SCANNER_CFLAGS"; then
12003     pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS"
12004  elif test -n "$PKG_CONFIG"; then
12005     if test -n "$PKG_CONFIG" && \
12006     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5
12007   ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5
12008   ac_status=$?
12009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12010   test $ac_status = 0; }; then
12011   pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland-scanner" 2>/dev/null`
12012                       test "x$?" != "x0" && pkg_failed=yes
12013 else
12014   pkg_failed=yes
12015 fi
12016  else
12017     pkg_failed=untried
12018 fi
12019 if test -n "$WAYLAND_SCANNER_LIBS"; then
12020     pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS"
12021  elif test -n "$PKG_CONFIG"; then
12022     if test -n "$PKG_CONFIG" && \
12023     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5
12024   ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5
12025   ac_status=$?
12026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12027   test $ac_status = 0; }; then
12028   pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland-scanner" 2>/dev/null`
12029                       test "x$?" != "x0" && pkg_failed=yes
12030 else
12031   pkg_failed=yes
12032 fi
12033  else
12034     pkg_failed=untried
12035 fi
12036
12037
12038
12039 if test $pkg_failed = yes; then
12040         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12042
12043 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12044         _pkg_short_errors_supported=yes
12045 else
12046         _pkg_short_errors_supported=no
12047 fi
12048         if test $_pkg_short_errors_supported = yes; then
12049                 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-scanner" 2>&1`
12050         else
12051                 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-scanner" 2>&1`
12052         fi
12053         # Put the nasty error message in config.log where it belongs
12054         echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5
12055
12056         as_fn_error $? "Package requirements (wayland-scanner) were not met:
12057
12058 $WAYLAND_SCANNER_PKG_ERRORS
12059
12060 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12061 installed software in a non-standard prefix.
12062
12063 Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS
12064 and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config.
12065 See the pkg-config man page for more details." "$LINENO" 5
12066 elif test $pkg_failed = untried; then
12067         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12069         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12071 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12072 is in your PATH or set the PKG_CONFIG environment variable to the full
12073 path to pkg-config.
12074
12075 Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS
12076 and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config.
12077 See the pkg-config man page for more details.
12078
12079 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12080 See \`config.log' for more details" "$LINENO" 5; }
12081 else
12082         WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS
12083         WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS
12084         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12085 $as_echo "yes" >&6; }
12086
12087 fi
12088
12089     wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
12090
12091
12092     wayland_scanner_rules=`$PKG_CONFIG --variable=pkgdatadir wayland-scanner`/wayland-scanner.mk
12093
12094
12095     wayland_protocoldir='$(top_srcdir)/protocol'
12096
12097
12098
12099 CFLAGS="$CFLAGS -Wextra -Wno-unused-parameter"
12100
12101
12102 CXXFLAGS="$CXXFLAGS -Wextra -Wno-unused-parameter"
12103
12104
12105 ac_config_files="$ac_config_files Makefile src/Makefile data/themes/Makefile protocol/Makefile"
12106
12107 cat >confcache <<\_ACEOF
12108 # This file is a shell script that caches the results of configure
12109 # tests run on this system so they can be shared between configure
12110 # scripts and configure runs, see configure's option --config-cache.
12111 # It is not useful on other systems.  If it contains results you don't
12112 # want to keep, you may remove or edit it.
12113 #
12114 # config.status only pays attention to the cache file if you give it
12115 # the --recheck option to rerun configure.
12116 #
12117 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12118 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12119 # following values.
12120
12121 _ACEOF
12122
12123 # The following way of writing the cache mishandles newlines in values,
12124 # but we know of no workaround that is simple, portable, and efficient.
12125 # So, we kill variables containing newlines.
12126 # Ultrix sh set writes to stderr and can't be redirected directly,
12127 # and sets the high bit in the cache file unless we assign to the vars.
12128 (
12129   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12130     eval ac_val=\$$ac_var
12131     case $ac_val in #(
12132     *${as_nl}*)
12133       case $ac_var in #(
12134       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12135 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12136       esac
12137       case $ac_var in #(
12138       _ | IFS | as_nl) ;; #(
12139       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12140       *) { eval $ac_var=; unset $ac_var;} ;;
12141       esac ;;
12142     esac
12143   done
12144
12145   (set) 2>&1 |
12146     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12147     *${as_nl}ac_space=\ *)
12148       # `set' does not quote correctly, so add quotes: double-quote
12149       # substitution turns \\\\ into \\, and sed turns \\ into \.
12150       sed -n \
12151         "s/'/'\\\\''/g;
12152           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12153       ;; #(
12154     *)
12155       # `set' quotes correctly as required by POSIX, so do not add quotes.
12156       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12157       ;;
12158     esac |
12159     sort
12160 ) |
12161   sed '
12162      /^ac_cv_env_/b end
12163      t clear
12164      :clear
12165      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12166      t end
12167      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12168      :end' >>confcache
12169 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12170   if test -w "$cache_file"; then
12171     if test "x$cache_file" != "x/dev/null"; then
12172       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12173 $as_echo "$as_me: updating cache $cache_file" >&6;}
12174       if test ! -f "$cache_file" || test -h "$cache_file"; then
12175         cat confcache >"$cache_file"
12176       else
12177         case $cache_file in #(
12178         */* | ?:*)
12179           mv -f confcache "$cache_file"$$ &&
12180           mv -f "$cache_file"$$ "$cache_file" ;; #(
12181         *)
12182           mv -f confcache "$cache_file" ;;
12183         esac
12184       fi
12185     fi
12186   else
12187     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12188 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12189   fi
12190 fi
12191 rm -f confcache
12192
12193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12194 # Let make expand exec_prefix.
12195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12196
12197 DEFS=-DHAVE_CONFIG_H
12198
12199 ac_libobjs=
12200 ac_ltlibobjs=
12201 U=
12202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12203   # 1. Remove the extension, and $U if already installed.
12204   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12205   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12206   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12207   #    will be set to the directory where LIBOBJS objects are built.
12208   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12209   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12210 done
12211 LIBOBJS=$ac_libobjs
12212
12213 LTLIBOBJS=$ac_ltlibobjs
12214
12215
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12217 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12218    if test -n "$am_sleep_pid"; then
12219      # Hide warnings about reused PIDs.
12220      wait $am_sleep_pid 2>/dev/null
12221    fi
12222    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12223 $as_echo "done" >&6; }
12224  if test -n "$EXEEXT"; then
12225   am__EXEEXT_TRUE=
12226   am__EXEEXT_FALSE='#'
12227 else
12228   am__EXEEXT_TRUE='#'
12229   am__EXEEXT_FALSE=
12230 fi
12231
12232 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12233   as_fn_error $? "conditional \"AMDEP\" was never defined.
12234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12235 fi
12236 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12237   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12239 fi
12240
12241 : "${CONFIG_STATUS=./config.status}"
12242 ac_write_fail=0
12243 ac_clean_files_save=$ac_clean_files
12244 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12246 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12247 as_write_fail=0
12248 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12249 #! $SHELL
12250 # Generated by $as_me.
12251 # Run this file to recreate the current configuration.
12252 # Compiler output produced by configure, useful for debugging
12253 # configure, is in config.log if it exists.
12254
12255 debug=false
12256 ac_cs_recheck=false
12257 ac_cs_silent=false
12258
12259 SHELL=\${CONFIG_SHELL-$SHELL}
12260 export SHELL
12261 _ASEOF
12262 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12263 ## -------------------- ##
12264 ## M4sh Initialization. ##
12265 ## -------------------- ##
12266
12267 # Be more Bourne compatible
12268 DUALCASE=1; export DUALCASE # for MKS sh
12269 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12270   emulate sh
12271   NULLCMD=:
12272   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12273   # is contrary to our usage.  Disable this feature.
12274   alias -g '${1+"$@"}'='"$@"'
12275   setopt NO_GLOB_SUBST
12276 else
12277   case `(set -o) 2>/dev/null` in #(
12278   *posix*) :
12279     set -o posix ;; #(
12280   *) :
12281      ;;
12282 esac
12283 fi
12284
12285
12286 as_nl='
12287 '
12288 export as_nl
12289 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12290 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12291 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12292 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12293 # Prefer a ksh shell builtin over an external printf program on Solaris,
12294 # but without wasting forks for bash or zsh.
12295 if test -z "$BASH_VERSION$ZSH_VERSION" \
12296     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12297   as_echo='print -r --'
12298   as_echo_n='print -rn --'
12299 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12300   as_echo='printf %s\n'
12301   as_echo_n='printf %s'
12302 else
12303   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12304     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12305     as_echo_n='/usr/ucb/echo -n'
12306   else
12307     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12308     as_echo_n_body='eval
12309       arg=$1;
12310       case $arg in #(
12311       *"$as_nl"*)
12312         expr "X$arg" : "X\\(.*\\)$as_nl";
12313         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12314       esac;
12315       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12316     '
12317     export as_echo_n_body
12318     as_echo_n='sh -c $as_echo_n_body as_echo'
12319   fi
12320   export as_echo_body
12321   as_echo='sh -c $as_echo_body as_echo'
12322 fi
12323
12324 # The user is always right.
12325 if test "${PATH_SEPARATOR+set}" != set; then
12326   PATH_SEPARATOR=:
12327   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12328     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12329       PATH_SEPARATOR=';'
12330   }
12331 fi
12332
12333
12334 # IFS
12335 # We need space, tab and new line, in precisely that order.  Quoting is
12336 # there to prevent editors from complaining about space-tab.
12337 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12338 # splitting by setting IFS to empty value.)
12339 IFS=" ""        $as_nl"
12340
12341 # Find who we are.  Look in the path if we contain no directory separator.
12342 as_myself=
12343 case $0 in #((
12344   *[\\/]* ) as_myself=$0 ;;
12345   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346 for as_dir in $PATH
12347 do
12348   IFS=$as_save_IFS
12349   test -z "$as_dir" && as_dir=.
12350     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12351   done
12352 IFS=$as_save_IFS
12353
12354      ;;
12355 esac
12356 # We did not find ourselves, most probably we were run as `sh COMMAND'
12357 # in which case we are not to be found in the path.
12358 if test "x$as_myself" = x; then
12359   as_myself=$0
12360 fi
12361 if test ! -f "$as_myself"; then
12362   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12363   exit 1
12364 fi
12365
12366 # Unset variables that we do not need and which cause bugs (e.g. in
12367 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12368 # suppresses any "Segmentation fault" message there.  '((' could
12369 # trigger a bug in pdksh 5.2.14.
12370 for as_var in BASH_ENV ENV MAIL MAILPATH
12371 do eval test x\${$as_var+set} = xset \
12372   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12373 done
12374 PS1='$ '
12375 PS2='> '
12376 PS4='+ '
12377
12378 # NLS nuisances.
12379 LC_ALL=C
12380 export LC_ALL
12381 LANGUAGE=C
12382 export LANGUAGE
12383
12384 # CDPATH.
12385 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12386
12387
12388 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12389 # ----------------------------------------
12390 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12391 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12392 # script with STATUS, using 1 if that was 0.
12393 as_fn_error ()
12394 {
12395   as_status=$1; test $as_status -eq 0 && as_status=1
12396   if test "$4"; then
12397     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12398     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12399   fi
12400   $as_echo "$as_me: error: $2" >&2
12401   as_fn_exit $as_status
12402 } # as_fn_error
12403
12404
12405 # as_fn_set_status STATUS
12406 # -----------------------
12407 # Set $? to STATUS, without forking.
12408 as_fn_set_status ()
12409 {
12410   return $1
12411 } # as_fn_set_status
12412
12413 # as_fn_exit STATUS
12414 # -----------------
12415 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12416 as_fn_exit ()
12417 {
12418   set +e
12419   as_fn_set_status $1
12420   exit $1
12421 } # as_fn_exit
12422
12423 # as_fn_unset VAR
12424 # ---------------
12425 # Portably unset VAR.
12426 as_fn_unset ()
12427 {
12428   { eval $1=; unset $1;}
12429 }
12430 as_unset=as_fn_unset
12431 # as_fn_append VAR VALUE
12432 # ----------------------
12433 # Append the text in VALUE to the end of the definition contained in VAR. Take
12434 # advantage of any shell optimizations that allow amortized linear growth over
12435 # repeated appends, instead of the typical quadratic growth present in naive
12436 # implementations.
12437 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12438   eval 'as_fn_append ()
12439   {
12440     eval $1+=\$2
12441   }'
12442 else
12443   as_fn_append ()
12444   {
12445     eval $1=\$$1\$2
12446   }
12447 fi # as_fn_append
12448
12449 # as_fn_arith ARG...
12450 # ------------------
12451 # Perform arithmetic evaluation on the ARGs, and store the result in the
12452 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12453 # must be portable across $(()) and expr.
12454 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12455   eval 'as_fn_arith ()
12456   {
12457     as_val=$(( $* ))
12458   }'
12459 else
12460   as_fn_arith ()
12461   {
12462     as_val=`expr "$@" || test $? -eq 1`
12463   }
12464 fi # as_fn_arith
12465
12466
12467 if expr a : '\(a\)' >/dev/null 2>&1 &&
12468    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12469   as_expr=expr
12470 else
12471   as_expr=false
12472 fi
12473
12474 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12475   as_basename=basename
12476 else
12477   as_basename=false
12478 fi
12479
12480 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12481   as_dirname=dirname
12482 else
12483   as_dirname=false
12484 fi
12485
12486 as_me=`$as_basename -- "$0" ||
12487 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12488          X"$0" : 'X\(//\)$' \| \
12489          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12490 $as_echo X/"$0" |
12491     sed '/^.*\/\([^/][^/]*\)\/*$/{
12492             s//\1/
12493             q
12494           }
12495           /^X\/\(\/\/\)$/{
12496             s//\1/
12497             q
12498           }
12499           /^X\/\(\/\).*/{
12500             s//\1/
12501             q
12502           }
12503           s/.*/./; q'`
12504
12505 # Avoid depending upon Character Ranges.
12506 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12507 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12508 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12509 as_cr_digits='0123456789'
12510 as_cr_alnum=$as_cr_Letters$as_cr_digits
12511
12512 ECHO_C= ECHO_N= ECHO_T=
12513 case `echo -n x` in #(((((
12514 -n*)
12515   case `echo 'xy\c'` in
12516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12517   xy)  ECHO_C='\c';;
12518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12519        ECHO_T=' ';;
12520   esac;;
12521 *)
12522   ECHO_N='-n';;
12523 esac
12524
12525 rm -f conf$$ conf$$.exe conf$$.file
12526 if test -d conf$$.dir; then
12527   rm -f conf$$.dir/conf$$.file
12528 else
12529   rm -f conf$$.dir
12530   mkdir conf$$.dir 2>/dev/null
12531 fi
12532 if (echo >conf$$.file) 2>/dev/null; then
12533   if ln -s conf$$.file conf$$ 2>/dev/null; then
12534     as_ln_s='ln -s'
12535     # ... but there are two gotchas:
12536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12538     # In both cases, we have to default to `cp -pR'.
12539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12540       as_ln_s='cp -pR'
12541   elif ln conf$$.file conf$$ 2>/dev/null; then
12542     as_ln_s=ln
12543   else
12544     as_ln_s='cp -pR'
12545   fi
12546 else
12547   as_ln_s='cp -pR'
12548 fi
12549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12550 rmdir conf$$.dir 2>/dev/null
12551
12552
12553 # as_fn_mkdir_p
12554 # -------------
12555 # Create "$as_dir" as a directory, including parents if necessary.
12556 as_fn_mkdir_p ()
12557 {
12558
12559   case $as_dir in #(
12560   -*) as_dir=./$as_dir;;
12561   esac
12562   test -d "$as_dir" || eval $as_mkdir_p || {
12563     as_dirs=
12564     while :; do
12565       case $as_dir in #(
12566       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12567       *) as_qdir=$as_dir;;
12568       esac
12569       as_dirs="'$as_qdir' $as_dirs"
12570       as_dir=`$as_dirname -- "$as_dir" ||
12571 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12572          X"$as_dir" : 'X\(//\)[^/]' \| \
12573          X"$as_dir" : 'X\(//\)$' \| \
12574          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12575 $as_echo X"$as_dir" |
12576     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12577             s//\1/
12578             q
12579           }
12580           /^X\(\/\/\)[^/].*/{
12581             s//\1/
12582             q
12583           }
12584           /^X\(\/\/\)$/{
12585             s//\1/
12586             q
12587           }
12588           /^X\(\/\).*/{
12589             s//\1/
12590             q
12591           }
12592           s/.*/./; q'`
12593       test -d "$as_dir" && break
12594     done
12595     test -z "$as_dirs" || eval "mkdir $as_dirs"
12596   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12597
12598
12599 } # as_fn_mkdir_p
12600 if mkdir -p . 2>/dev/null; then
12601   as_mkdir_p='mkdir -p "$as_dir"'
12602 else
12603   test -d ./-p && rmdir ./-p
12604   as_mkdir_p=false
12605 fi
12606
12607
12608 # as_fn_executable_p FILE
12609 # -----------------------
12610 # Test if FILE is an executable regular file.
12611 as_fn_executable_p ()
12612 {
12613   test -f "$1" && test -x "$1"
12614 } # as_fn_executable_p
12615 as_test_x='test -x'
12616 as_executable_p=as_fn_executable_p
12617
12618 # Sed expression to map a string onto a valid CPP name.
12619 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12620
12621 # Sed expression to map a string onto a valid variable name.
12622 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12623
12624
12625 exec 6>&1
12626 ## ----------------------------------- ##
12627 ## Main body of $CONFIG_STATUS script. ##
12628 ## ----------------------------------- ##
12629 _ASEOF
12630 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12631
12632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12633 # Save the log message, to keep $0 and so on meaningful, and to
12634 # report actual input values of CONFIG_FILES etc. instead of their
12635 # values after options handling.
12636 ac_log="
12637 This file was extended by weekeyboard $as_me 0.0.2, which was
12638 generated by GNU Autoconf 2.69.  Invocation command line was
12639
12640   CONFIG_FILES    = $CONFIG_FILES
12641   CONFIG_HEADERS  = $CONFIG_HEADERS
12642   CONFIG_LINKS    = $CONFIG_LINKS
12643   CONFIG_COMMANDS = $CONFIG_COMMANDS
12644   $ $0 $@
12645
12646 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12647 "
12648
12649 _ACEOF
12650
12651 case $ac_config_files in *"
12652 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12653 esac
12654
12655 case $ac_config_headers in *"
12656 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12657 esac
12658
12659
12660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12661 # Files that config.status was made for.
12662 config_files="$ac_config_files"
12663 config_headers="$ac_config_headers"
12664 config_commands="$ac_config_commands"
12665
12666 _ACEOF
12667
12668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12669 ac_cs_usage="\
12670 \`$as_me' instantiates files and other configuration actions
12671 from templates according to the current configuration.  Unless the files
12672 and actions are specified as TAGs, all are instantiated by default.
12673
12674 Usage: $0 [OPTION]... [TAG]...
12675
12676   -h, --help       print this help, then exit
12677   -V, --version    print version number and configuration settings, then exit
12678       --config     print configuration, then exit
12679   -q, --quiet, --silent
12680                    do not print progress messages
12681   -d, --debug      don't remove temporary files
12682       --recheck    update $as_me by reconfiguring in the same conditions
12683       --file=FILE[:TEMPLATE]
12684                    instantiate the configuration file FILE
12685       --header=FILE[:TEMPLATE]
12686                    instantiate the configuration header FILE
12687
12688 Configuration files:
12689 $config_files
12690
12691 Configuration headers:
12692 $config_headers
12693
12694 Configuration commands:
12695 $config_commands
12696
12697 Report bugs to the package provider."
12698
12699 _ACEOF
12700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12701 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12702 ac_cs_version="\\
12703 weekeyboard config.status 0.0.2
12704 configured by $0, generated by GNU Autoconf 2.69,
12705   with options \\"\$ac_cs_config\\"
12706
12707 Copyright (C) 2012 Free Software Foundation, Inc.
12708 This config.status script is free software; the Free Software Foundation
12709 gives unlimited permission to copy, distribute and modify it."
12710
12711 ac_pwd='$ac_pwd'
12712 srcdir='$srcdir'
12713 INSTALL='$INSTALL'
12714 MKDIR_P='$MKDIR_P'
12715 AWK='$AWK'
12716 test -n "\$AWK" || AWK=awk
12717 _ACEOF
12718
12719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12720 # The default lists apply if the user does not specify any file.
12721 ac_need_defaults=:
12722 while test $# != 0
12723 do
12724   case $1 in
12725   --*=?*)
12726     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12727     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12728     ac_shift=:
12729     ;;
12730   --*=)
12731     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12732     ac_optarg=
12733     ac_shift=:
12734     ;;
12735   *)
12736     ac_option=$1
12737     ac_optarg=$2
12738     ac_shift=shift
12739     ;;
12740   esac
12741
12742   case $ac_option in
12743   # Handling of the options.
12744   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12745     ac_cs_recheck=: ;;
12746   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12747     $as_echo "$ac_cs_version"; exit ;;
12748   --config | --confi | --conf | --con | --co | --c )
12749     $as_echo "$ac_cs_config"; exit ;;
12750   --debug | --debu | --deb | --de | --d | -d )
12751     debug=: ;;
12752   --file | --fil | --fi | --f )
12753     $ac_shift
12754     case $ac_optarg in
12755     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12756     '') as_fn_error $? "missing file argument" ;;
12757     esac
12758     as_fn_append CONFIG_FILES " '$ac_optarg'"
12759     ac_need_defaults=false;;
12760   --header | --heade | --head | --hea )
12761     $ac_shift
12762     case $ac_optarg in
12763     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12764     esac
12765     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12766     ac_need_defaults=false;;
12767   --he | --h)
12768     # Conflict between --help and --header
12769     as_fn_error $? "ambiguous option: \`$1'
12770 Try \`$0 --help' for more information.";;
12771   --help | --hel | -h )
12772     $as_echo "$ac_cs_usage"; exit ;;
12773   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12774   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12775     ac_cs_silent=: ;;
12776
12777   # This is an error.
12778   -*) as_fn_error $? "unrecognized option: \`$1'
12779 Try \`$0 --help' for more information." ;;
12780
12781   *) as_fn_append ac_config_targets " $1"
12782      ac_need_defaults=false ;;
12783
12784   esac
12785   shift
12786 done
12787
12788 ac_configure_extra_args=
12789
12790 if $ac_cs_silent; then
12791   exec 6>/dev/null
12792   ac_configure_extra_args="$ac_configure_extra_args --silent"
12793 fi
12794
12795 _ACEOF
12796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12797 if \$ac_cs_recheck; then
12798   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12799   shift
12800   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12801   CONFIG_SHELL='$SHELL'
12802   export CONFIG_SHELL
12803   exec "\$@"
12804 fi
12805
12806 _ACEOF
12807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12808 exec 5>>config.log
12809 {
12810   echo
12811   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12812 ## Running $as_me. ##
12813 _ASBOX
12814   $as_echo "$ac_log"
12815 } >&5
12816
12817 _ACEOF
12818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12819 #
12820 # INIT-COMMANDS
12821 #
12822 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12823
12824
12825 # The HP-UX ksh and POSIX shell print the target directory to stdout
12826 # if CDPATH is set.
12827 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12828
12829 sed_quote_subst='$sed_quote_subst'
12830 double_quote_subst='$double_quote_subst'
12831 delay_variable_subst='$delay_variable_subst'
12832 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12833 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12834 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12835 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12836 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12837 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12838 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12839 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12840 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12841 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12842 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12843 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12844 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12845 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12846 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12847 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12848 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12849 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12850 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12851 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12852 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12853 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12854 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12855 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12856 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12857 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12858 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12859 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12860 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12861 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12862 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12863 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12864 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12865 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12866 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12867 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12868 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12869 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12870 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12871 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12872 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12873 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12874 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12875 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12876 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12877 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12878 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12879 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12880 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12881 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12882 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12883 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12884 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12885 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12886 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12887 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12888 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"`'
12889 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12890 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12891 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12892 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12893 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12894 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12895 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12896 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12897 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12898 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12899 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12900 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12901 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12902 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12903 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12904 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12905 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12906 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12907 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12908 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12909 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12910 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12911 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12912 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12913 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12914 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12915 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12916 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12917 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12918 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12919 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12920 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12921 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12922 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12923 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12924 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12925 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12926 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12927 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12928 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12929 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12930 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12931 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12932 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12933 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12934 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12935 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12936 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12937 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12938 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12939 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12940 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12941 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12942 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12943 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12944 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12945 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12946 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12947 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12948 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12949 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12950 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12951 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12952 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12953 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12954 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12955 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12956 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12957 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12958 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12959 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12960 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12961 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12962
12963 LTCC='$LTCC'
12964 LTCFLAGS='$LTCFLAGS'
12965 compiler='$compiler_DEFAULT'
12966
12967 # A function that is used when there is no print builtin or printf.
12968 func_fallback_echo ()
12969 {
12970   eval 'cat <<_LTECHO_EOF
12971 \$1
12972 _LTECHO_EOF'
12973 }
12974
12975 # Quote evaled strings.
12976 for var in SHELL \
12977 ECHO \
12978 PATH_SEPARATOR \
12979 SED \
12980 GREP \
12981 EGREP \
12982 FGREP \
12983 LD \
12984 NM \
12985 LN_S \
12986 lt_SP2NL \
12987 lt_NL2SP \
12988 reload_flag \
12989 OBJDUMP \
12990 deplibs_check_method \
12991 file_magic_cmd \
12992 file_magic_glob \
12993 want_nocaseglob \
12994 DLLTOOL \
12995 sharedlib_from_linklib_cmd \
12996 AR \
12997 AR_FLAGS \
12998 archiver_list_spec \
12999 STRIP \
13000 RANLIB \
13001 CC \
13002 CFLAGS \
13003 compiler \
13004 lt_cv_sys_global_symbol_pipe \
13005 lt_cv_sys_global_symbol_to_cdecl \
13006 lt_cv_sys_global_symbol_to_c_name_address \
13007 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13008 nm_file_list_spec \
13009 lt_prog_compiler_no_builtin_flag \
13010 lt_prog_compiler_pic \
13011 lt_prog_compiler_wl \
13012 lt_prog_compiler_static \
13013 lt_cv_prog_compiler_c_o \
13014 need_locks \
13015 MANIFEST_TOOL \
13016 DSYMUTIL \
13017 NMEDIT \
13018 LIPO \
13019 OTOOL \
13020 OTOOL64 \
13021 shrext_cmds \
13022 export_dynamic_flag_spec \
13023 whole_archive_flag_spec \
13024 compiler_needs_object \
13025 with_gnu_ld \
13026 allow_undefined_flag \
13027 no_undefined_flag \
13028 hardcode_libdir_flag_spec \
13029 hardcode_libdir_separator \
13030 exclude_expsyms \
13031 include_expsyms \
13032 file_list_spec \
13033 variables_saved_for_relink \
13034 libname_spec \
13035 library_names_spec \
13036 soname_spec \
13037 install_override_mode \
13038 finish_eval \
13039 old_striplib \
13040 striplib; do
13041     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13042     *[\\\\\\\`\\"\\\$]*)
13043       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13044       ;;
13045     *)
13046       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13047       ;;
13048     esac
13049 done
13050
13051 # Double-quote double-evaled strings.
13052 for var in reload_cmds \
13053 old_postinstall_cmds \
13054 old_postuninstall_cmds \
13055 old_archive_cmds \
13056 extract_expsyms_cmds \
13057 old_archive_from_new_cmds \
13058 old_archive_from_expsyms_cmds \
13059 archive_cmds \
13060 archive_expsym_cmds \
13061 module_cmds \
13062 module_expsym_cmds \
13063 export_symbols_cmds \
13064 prelink_cmds \
13065 postlink_cmds \
13066 postinstall_cmds \
13067 postuninstall_cmds \
13068 finish_cmds \
13069 sys_lib_search_path_spec \
13070 sys_lib_dlsearch_path_spec; do
13071     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13072     *[\\\\\\\`\\"\\\$]*)
13073       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13074       ;;
13075     *)
13076       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13077       ;;
13078     esac
13079 done
13080
13081 ac_aux_dir='$ac_aux_dir'
13082 xsi_shell='$xsi_shell'
13083 lt_shell_append='$lt_shell_append'
13084
13085 # See if we are running on zsh, and set the options which allow our
13086 # commands through without removal of \ escapes INIT.
13087 if test -n "\${ZSH_VERSION+set}" ; then
13088    setopt NO_GLOB_SUBST
13089 fi
13090
13091
13092     PACKAGE='$PACKAGE'
13093     VERSION='$VERSION'
13094     TIMESTAMP='$TIMESTAMP'
13095     RM='$RM'
13096     ofile='$ofile'
13097
13098
13099
13100
13101 _ACEOF
13102
13103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13104
13105 # Handling of arguments.
13106 for ac_config_target in $ac_config_targets
13107 do
13108   case $ac_config_target in
13109     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13110     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13111     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13112     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13113     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13114     "data/themes/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/Makefile" ;;
13115     "protocol/Makefile") CONFIG_FILES="$CONFIG_FILES protocol/Makefile" ;;
13116
13117   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13118   esac
13119 done
13120
13121
13122 # If the user did not use the arguments to specify the items to instantiate,
13123 # then the envvar interface is used.  Set only those that are not.
13124 # We use the long form for the default assignment because of an extremely
13125 # bizarre bug on SunOS 4.1.3.
13126 if $ac_need_defaults; then
13127   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13128   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13129   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13130 fi
13131
13132 # Have a temporary directory for convenience.  Make it in the build tree
13133 # simply because there is no reason against having it here, and in addition,
13134 # creating and moving files from /tmp can sometimes cause problems.
13135 # Hook for its removal unless debugging.
13136 # Note that there is a small window in which the directory will not be cleaned:
13137 # after its creation but before its name has been assigned to `$tmp'.
13138 $debug ||
13139 {
13140   tmp= ac_tmp=
13141   trap 'exit_status=$?
13142   : "${ac_tmp:=$tmp}"
13143   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13144 ' 0
13145   trap 'as_fn_exit 1' 1 2 13 15
13146 }
13147 # Create a (secure) tmp directory for tmp files.
13148
13149 {
13150   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13151   test -d "$tmp"
13152 }  ||
13153 {
13154   tmp=./conf$$-$RANDOM
13155   (umask 077 && mkdir "$tmp")
13156 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13157 ac_tmp=$tmp
13158
13159 # Set up the scripts for CONFIG_FILES section.
13160 # No need to generate them if there are no CONFIG_FILES.
13161 # This happens for instance with `./config.status config.h'.
13162 if test -n "$CONFIG_FILES"; then
13163
13164 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
13165   ac_cs_awk_getline=:
13166   ac_cs_awk_pipe_init=
13167   ac_cs_awk_read_file='
13168       while ((getline aline < (F[key])) > 0)
13169         print(aline)
13170       close(F[key])'
13171   ac_cs_awk_pipe_fini=
13172 else
13173   ac_cs_awk_getline=false
13174   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
13175   ac_cs_awk_read_file='
13176       print "|#_!!_#|"
13177       print "cat " F[key] " &&"
13178       '$ac_cs_awk_pipe_init
13179   # The final `:' finishes the AND list.
13180   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
13181 fi
13182 ac_cr=`echo X | tr X '\015'`
13183 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13184 # But we know of no other shell where ac_cr would be empty at this
13185 # point, so we can use a bashism as a fallback.
13186 if test "x$ac_cr" = x; then
13187   eval ac_cr=\$\'\\r\'
13188 fi
13189 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13190 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13191   ac_cs_awk_cr='\\r'
13192 else
13193   ac_cs_awk_cr=$ac_cr
13194 fi
13195
13196 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13197 _ACEOF
13198
13199 # Create commands to substitute file output variables.
13200 {
13201   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
13202   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
13203   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
13204   echo "_ACAWK" &&
13205   echo "_ACEOF"
13206 } >conf$$files.sh &&
13207 . ./conf$$files.sh ||
13208   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13209 rm -f conf$$files.sh
13210
13211 {
13212   echo "cat >conf$$subs.awk <<_ACEOF" &&
13213   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13214   echo "_ACEOF"
13215 } >conf$$subs.sh ||
13216   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13217 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13218 ac_delim='%!_!# '
13219 for ac_last_try in false false false false false :; do
13220   . ./conf$$subs.sh ||
13221     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13222
13223   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13224   if test $ac_delim_n = $ac_delim_num; then
13225     break
13226   elif $ac_last_try; then
13227     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13228   else
13229     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13230   fi
13231 done
13232 rm -f conf$$subs.sh
13233
13234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13235 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13236 _ACEOF
13237 sed -n '
13238 h
13239 s/^/S["/; s/!.*/"]=/
13240 p
13241 g
13242 s/^[^!]*!//
13243 :repl
13244 t repl
13245 s/'"$ac_delim"'$//
13246 t delim
13247 :nl
13248 h
13249 s/\(.\{148\}\)..*/\1/
13250 t more1
13251 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13252 p
13253 n
13254 b repl
13255 :more1
13256 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13257 p
13258 g
13259 s/.\{148\}//
13260 t nl
13261 :delim
13262 h
13263 s/\(.\{148\}\)..*/\1/
13264 t more2
13265 s/["\\]/\\&/g; s/^/"/; s/$/"/
13266 p
13267 b
13268 :more2
13269 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13270 p
13271 g
13272 s/.\{148\}//
13273 t delim
13274 ' <conf$$subs.awk | sed '
13275 /^[^""]/{
13276   N
13277   s/\n//
13278 }
13279 ' >>$CONFIG_STATUS || ac_write_fail=1
13280 rm -f conf$$subs.awk
13281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13282 _ACAWK
13283 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13284   for (key in S) S_is_set[key] = 1
13285   FS = "\a"
13286   \$ac_cs_awk_pipe_init
13287 }
13288 {
13289   line = $ 0
13290   nfields = split(line, field, "@")
13291   substed = 0
13292   len = length(field[1])
13293   for (i = 2; i < nfields; i++) {
13294     key = field[i]
13295     keylen = length(key)
13296     if (S_is_set[key]) {
13297       value = S[key]
13298       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13299       len += length(value) + length(field[++i])
13300       substed = 1
13301     } else
13302       len += 1 + keylen
13303   }
13304   if (nfields == 3 && !substed) {
13305     key = field[2]
13306     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
13307       \$ac_cs_awk_read_file
13308       next
13309     }
13310   }
13311   print line
13312 }
13313 \$ac_cs_awk_pipe_fini
13314 _ACAWK
13315 _ACEOF
13316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13317 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13318   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13319 else
13320   cat
13321 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13322   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13323 _ACEOF
13324
13325 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13326 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13327 # trailing colons and then remove the whole line if VPATH becomes empty
13328 # (actually we leave an empty line to preserve line numbers).
13329 if test "x$srcdir" = x.; then
13330   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13331 h
13332 s///
13333 s/^/:/
13334 s/[      ]*$/:/
13335 s/:\$(srcdir):/:/g
13336 s/:\${srcdir}:/:/g
13337 s/:@srcdir@:/:/g
13338 s/^:*//
13339 s/:*$//
13340 x
13341 s/\(=[   ]*\).*/\1/
13342 G
13343 s/\n//
13344 s/^[^=]*=[       ]*$//
13345 }'
13346 fi
13347
13348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13349 fi # test -n "$CONFIG_FILES"
13350
13351 # Set up the scripts for CONFIG_HEADERS section.
13352 # No need to generate them if there are no CONFIG_HEADERS.
13353 # This happens for instance with `./config.status Makefile'.
13354 if test -n "$CONFIG_HEADERS"; then
13355 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13356 BEGIN {
13357 _ACEOF
13358
13359 # Transform confdefs.h into an awk script `defines.awk', embedded as
13360 # here-document in config.status, that substitutes the proper values into
13361 # config.h.in to produce config.h.
13362
13363 # Create a delimiter string that does not exist in confdefs.h, to ease
13364 # handling of long lines.
13365 ac_delim='%!_!# '
13366 for ac_last_try in false false :; do
13367   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13368   if test -z "$ac_tt"; then
13369     break
13370   elif $ac_last_try; then
13371     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13372   else
13373     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13374   fi
13375 done
13376
13377 # For the awk script, D is an array of macro values keyed by name,
13378 # likewise P contains macro parameters if any.  Preserve backslash
13379 # newline sequences.
13380
13381 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13382 sed -n '
13383 s/.\{148\}/&'"$ac_delim"'/g
13384 t rset
13385 :rset
13386 s/^[     ]*#[    ]*define[       ][      ]*/ /
13387 t def
13388 d
13389 :def
13390 s/\\$//
13391 t bsnl
13392 s/["\\]/\\&/g
13393 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13394 D["\1"]=" \3"/p
13395 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13396 d
13397 :bsnl
13398 s/["\\]/\\&/g
13399 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13400 D["\1"]=" \3\\\\\\n"\\/p
13401 t cont
13402 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13403 t cont
13404 d
13405 :cont
13406 n
13407 s/.\{148\}/&'"$ac_delim"'/g
13408 t clear
13409 :clear
13410 s/\\$//
13411 t bsnlc
13412 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13413 d
13414 :bsnlc
13415 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13416 b cont
13417 ' <confdefs.h | sed '
13418 s/'"$ac_delim"'/"\\\
13419 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13420
13421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13422   for (key in D) D_is_set[key] = 1
13423   FS = "\a"
13424 }
13425 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13426   line = \$ 0
13427   split(line, arg, " ")
13428   if (arg[1] == "#") {
13429     defundef = arg[2]
13430     mac1 = arg[3]
13431   } else {
13432     defundef = substr(arg[1], 2)
13433     mac1 = arg[2]
13434   }
13435   split(mac1, mac2, "(") #)
13436   macro = mac2[1]
13437   prefix = substr(line, 1, index(line, defundef) - 1)
13438   if (D_is_set[macro]) {
13439     # Preserve the white space surrounding the "#".
13440     print prefix "define", macro P[macro] D[macro]
13441     next
13442   } else {
13443     # Replace #undef with comments.  This is necessary, for example,
13444     # in the case of _POSIX_SOURCE, which is predefined and required
13445     # on some systems where configure will not decide to define it.
13446     if (defundef == "undef") {
13447       print "/*", prefix defundef, macro, "*/"
13448       next
13449     }
13450   }
13451 }
13452 { print }
13453 _ACAWK
13454 _ACEOF
13455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13456   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13457 fi # test -n "$CONFIG_HEADERS"
13458
13459
13460 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13461 shift
13462 for ac_tag
13463 do
13464   case $ac_tag in
13465   :[FHLC]) ac_mode=$ac_tag; continue;;
13466   esac
13467   case $ac_mode$ac_tag in
13468   :[FHL]*:*);;
13469   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13470   :[FH]-) ac_tag=-:-;;
13471   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13472   esac
13473   ac_save_IFS=$IFS
13474   IFS=:
13475   set x $ac_tag
13476   IFS=$ac_save_IFS
13477   shift
13478   ac_file=$1
13479   shift
13480
13481   case $ac_mode in
13482   :L) ac_source=$1;;
13483   :[FH])
13484     ac_file_inputs=
13485     for ac_f
13486     do
13487       case $ac_f in
13488       -) ac_f="$ac_tmp/stdin";;
13489       *) # Look for the file first in the build tree, then in the source tree
13490          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13491          # because $ac_f cannot contain `:'.
13492          test -f "$ac_f" ||
13493            case $ac_f in
13494            [\\/$]*) false;;
13495            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13496            esac ||
13497            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13498       esac
13499       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13500       as_fn_append ac_file_inputs " '$ac_f'"
13501     done
13502
13503     # Let's still pretend it is `configure' which instantiates (i.e., don't
13504     # use $as_me), people would be surprised to read:
13505     #    /* config.h.  Generated by config.status.  */
13506     configure_input='Generated from '`
13507           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13508         `' by configure.'
13509     if test x"$ac_file" != x-; then
13510       configure_input="$ac_file.  $configure_input"
13511       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13512 $as_echo "$as_me: creating $ac_file" >&6;}
13513     fi
13514     # Neutralize special characters interpreted by sed in replacement strings.
13515     case $configure_input in #(
13516     *\&* | *\|* | *\\* )
13517        ac_sed_conf_input=`$as_echo "$configure_input" |
13518        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13519     *) ac_sed_conf_input=$configure_input;;
13520     esac
13521
13522     case $ac_tag in
13523     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13524       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13525     esac
13526     ;;
13527   esac
13528
13529   ac_dir=`$as_dirname -- "$ac_file" ||
13530 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13531          X"$ac_file" : 'X\(//\)[^/]' \| \
13532          X"$ac_file" : 'X\(//\)$' \| \
13533          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13534 $as_echo X"$ac_file" |
13535     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13536             s//\1/
13537             q
13538           }
13539           /^X\(\/\/\)[^/].*/{
13540             s//\1/
13541             q
13542           }
13543           /^X\(\/\/\)$/{
13544             s//\1/
13545             q
13546           }
13547           /^X\(\/\).*/{
13548             s//\1/
13549             q
13550           }
13551           s/.*/./; q'`
13552   as_dir="$ac_dir"; as_fn_mkdir_p
13553   ac_builddir=.
13554
13555 case "$ac_dir" in
13556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13557 *)
13558   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13559   # A ".." for each directory in $ac_dir_suffix.
13560   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13561   case $ac_top_builddir_sub in
13562   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13563   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13564   esac ;;
13565 esac
13566 ac_abs_top_builddir=$ac_pwd
13567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13568 # for backward compatibility:
13569 ac_top_builddir=$ac_top_build_prefix
13570
13571 case $srcdir in
13572   .)  # We are building in place.
13573     ac_srcdir=.
13574     ac_top_srcdir=$ac_top_builddir_sub
13575     ac_abs_top_srcdir=$ac_pwd ;;
13576   [\\/]* | ?:[\\/]* )  # Absolute name.
13577     ac_srcdir=$srcdir$ac_dir_suffix;
13578     ac_top_srcdir=$srcdir
13579     ac_abs_top_srcdir=$srcdir ;;
13580   *) # Relative name.
13581     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13582     ac_top_srcdir=$ac_top_build_prefix$srcdir
13583     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13584 esac
13585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13586
13587
13588   case $ac_mode in
13589   :F)
13590   #
13591   # CONFIG_FILE
13592   #
13593
13594   case $INSTALL in
13595   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13596   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13597   esac
13598   ac_MKDIR_P=$MKDIR_P
13599   case $MKDIR_P in
13600   [\\/$]* | ?:[\\/]* ) ;;
13601   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13602   esac
13603 _ACEOF
13604
13605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13606 # If the template does not know about datarootdir, expand it.
13607 # FIXME: This hack should be removed a few years after 2.60.
13608 ac_datarootdir_hack=; ac_datarootdir_seen=
13609 ac_sed_dataroot='
13610 /datarootdir/ {
13611   p
13612   q
13613 }
13614 /@datadir@/p
13615 /@docdir@/p
13616 /@infodir@/p
13617 /@localedir@/p
13618 /@mandir@/p'
13619 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13620 *datarootdir*) ac_datarootdir_seen=yes;;
13621 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13622   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13623 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13624 _ACEOF
13625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13626   ac_datarootdir_hack='
13627   s&@datadir@&$datadir&g
13628   s&@docdir@&$docdir&g
13629   s&@infodir@&$infodir&g
13630   s&@localedir@&$localedir&g
13631   s&@mandir@&$mandir&g
13632   s&\\\${datarootdir}&$datarootdir&g' ;;
13633 esac
13634 _ACEOF
13635
13636 # Neutralize VPATH when `$srcdir' = `.'.
13637 # Shell code in configure.ac might set extrasub.
13638 # FIXME: do we really want to maintain this feature?
13639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13640 ac_sed_extra="$ac_vpsub
13641 $extrasub
13642 _ACEOF
13643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13644 :t
13645 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13646 s|@configure_input@|$ac_sed_conf_input|;t t
13647 s&@top_builddir@&$ac_top_builddir_sub&;t t
13648 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13649 s&@srcdir@&$ac_srcdir&;t t
13650 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13651 s&@top_srcdir@&$ac_top_srcdir&;t t
13652 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13653 s&@builddir@&$ac_builddir&;t t
13654 s&@abs_builddir@&$ac_abs_builddir&;t t
13655 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13656 s&@INSTALL@&$ac_INSTALL&;t t
13657 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13658 $ac_datarootdir_hack
13659 "
13660 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
13661 if $ac_cs_awk_getline; then
13662   $AWK -f "$ac_tmp/subs.awk"
13663 else
13664   $AWK -f "$ac_tmp/subs.awk" | $SHELL
13665 fi \
13666   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13667
13668 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13669   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13670   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13671       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13672   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13673 which seems to be undefined.  Please make sure it is defined" >&5
13674 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13675 which seems to be undefined.  Please make sure it is defined" >&2;}
13676
13677   rm -f "$ac_tmp/stdin"
13678   case $ac_file in
13679   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13680   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13681   esac \
13682   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13683  ;;
13684   :H)
13685   #
13686   # CONFIG_HEADER
13687   #
13688   if test x"$ac_file" != x-; then
13689     {
13690       $as_echo "/* $configure_input  */" \
13691       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13692     } >"$ac_tmp/config.h" \
13693       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13694     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13695       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13696 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13697     else
13698       rm -f "$ac_file"
13699       mv "$ac_tmp/config.h" "$ac_file" \
13700         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13701     fi
13702   else
13703     $as_echo "/* $configure_input  */" \
13704       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13705       || as_fn_error $? "could not create -" "$LINENO" 5
13706   fi
13707 # Compute "$ac_file"'s index in $config_headers.
13708 _am_arg="$ac_file"
13709 _am_stamp_count=1
13710 for _am_header in $config_headers :; do
13711   case $_am_header in
13712     $_am_arg | $_am_arg:* )
13713       break ;;
13714     * )
13715       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13716   esac
13717 done
13718 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13719 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13720          X"$_am_arg" : 'X\(//\)[^/]' \| \
13721          X"$_am_arg" : 'X\(//\)$' \| \
13722          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13723 $as_echo X"$_am_arg" |
13724     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13725             s//\1/
13726             q
13727           }
13728           /^X\(\/\/\)[^/].*/{
13729             s//\1/
13730             q
13731           }
13732           /^X\(\/\/\)$/{
13733             s//\1/
13734             q
13735           }
13736           /^X\(\/\).*/{
13737             s//\1/
13738             q
13739           }
13740           s/.*/./; q'`/stamp-h$_am_stamp_count
13741  ;;
13742
13743   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13744 $as_echo "$as_me: executing $ac_file commands" >&6;}
13745  ;;
13746   esac
13747
13748
13749   case $ac_file$ac_mode in
13750     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13751   # Older Autoconf quotes --file arguments for eval, but not when files
13752   # are listed without --file.  Let's play safe and only enable the eval
13753   # if we detect the quoting.
13754   case $CONFIG_FILES in
13755   *\'*) eval set x "$CONFIG_FILES" ;;
13756   *)   set x $CONFIG_FILES ;;
13757   esac
13758   shift
13759   for mf
13760   do
13761     # Strip MF so we end up with the name of the file.
13762     mf=`echo "$mf" | sed -e 's/:.*$//'`
13763     # Check whether this is an Automake generated Makefile or not.
13764     # We used to match only the files named 'Makefile.in', but
13765     # some people rename them; so instead we look at the file content.
13766     # Grep'ing the first line is not enough: some people post-process
13767     # each Makefile.in and add a new line on top of each file to say so.
13768     # Grep'ing the whole file is not good either: AIX grep has a line
13769     # limit of 2048, but all sed's we know have understand at least 4000.
13770     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13771       dirpart=`$as_dirname -- "$mf" ||
13772 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13773          X"$mf" : 'X\(//\)[^/]' \| \
13774          X"$mf" : 'X\(//\)$' \| \
13775          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13776 $as_echo X"$mf" |
13777     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13778             s//\1/
13779             q
13780           }
13781           /^X\(\/\/\)[^/].*/{
13782             s//\1/
13783             q
13784           }
13785           /^X\(\/\/\)$/{
13786             s//\1/
13787             q
13788           }
13789           /^X\(\/\).*/{
13790             s//\1/
13791             q
13792           }
13793           s/.*/./; q'`
13794     else
13795       continue
13796     fi
13797     # Extract the definition of DEPDIR, am__include, and am__quote
13798     # from the Makefile without running 'make'.
13799     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13800     test -z "$DEPDIR" && continue
13801     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13802     test -z "$am__include" && continue
13803     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13804     # Find all dependency output files, they are included files with
13805     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13806     # simplest approach to changing $(DEPDIR) to its actual value in the
13807     # expansion.
13808     for file in `sed -n "
13809       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13810          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13811       # Make sure the directory exists.
13812       test -f "$dirpart/$file" && continue
13813       fdir=`$as_dirname -- "$file" ||
13814 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13815          X"$file" : 'X\(//\)[^/]' \| \
13816          X"$file" : 'X\(//\)$' \| \
13817          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13818 $as_echo X"$file" |
13819     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13820             s//\1/
13821             q
13822           }
13823           /^X\(\/\/\)[^/].*/{
13824             s//\1/
13825             q
13826           }
13827           /^X\(\/\/\)$/{
13828             s//\1/
13829             q
13830           }
13831           /^X\(\/\).*/{
13832             s//\1/
13833             q
13834           }
13835           s/.*/./; q'`
13836       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13837       # echo "creating $dirpart/$file"
13838       echo '# dummy' > "$dirpart/$file"
13839     done
13840   done
13841 }
13842  ;;
13843     "libtool":C)
13844
13845     # See if we are running on zsh, and set the options which allow our
13846     # commands through without removal of \ escapes.
13847     if test -n "${ZSH_VERSION+set}" ; then
13848       setopt NO_GLOB_SUBST
13849     fi
13850
13851     cfgfile="${ofile}T"
13852     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13853     $RM "$cfgfile"
13854
13855     cat <<_LT_EOF >> "$cfgfile"
13856 #! $SHELL
13857
13858 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13859 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13860 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13861 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13862 #
13863 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13864 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13865 #                 Foundation, Inc.
13866 #   Written by Gordon Matzigkeit, 1996
13867 #
13868 #   This file is part of GNU Libtool.
13869 #
13870 # GNU Libtool is free software; you can redistribute it and/or
13871 # modify it under the terms of the GNU General Public License as
13872 # published by the Free Software Foundation; either version 2 of
13873 # the License, or (at your option) any later version.
13874 #
13875 # As a special exception to the GNU General Public License,
13876 # if you distribute this file as part of a program or library that
13877 # is built using GNU Libtool, you may include this file under the
13878 # same distribution terms that you use for the rest of that program.
13879 #
13880 # GNU Libtool is distributed in the hope that it will be useful,
13881 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13882 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13883 # GNU General Public License for more details.
13884 #
13885 # You should have received a copy of the GNU General Public License
13886 # along with GNU Libtool; see the file COPYING.  If not, a copy
13887 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13888 # obtained by writing to the Free Software Foundation, Inc.,
13889 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13890
13891
13892 # The names of the tagged configurations supported by this script.
13893 available_tags=""
13894
13895 # ### BEGIN LIBTOOL CONFIG
13896
13897 # Which release of libtool.m4 was used?
13898 macro_version=$macro_version
13899 macro_revision=$macro_revision
13900
13901 # Whether or not to build static libraries.
13902 build_old_libs=$enable_static
13903
13904 # Whether or not to build shared libraries.
13905 build_libtool_libs=$enable_shared
13906
13907 # What type of objects to build.
13908 pic_mode=$pic_mode
13909
13910 # Whether or not to optimize for fast installation.
13911 fast_install=$enable_fast_install
13912
13913 # Shell to use when invoking shell scripts.
13914 SHELL=$lt_SHELL
13915
13916 # An echo program that protects backslashes.
13917 ECHO=$lt_ECHO
13918
13919 # The PATH separator for the build system.
13920 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13921
13922 # The host system.
13923 host_alias=$host_alias
13924 host=$host
13925 host_os=$host_os
13926
13927 # The build system.
13928 build_alias=$build_alias
13929 build=$build
13930 build_os=$build_os
13931
13932 # A sed program that does not truncate output.
13933 SED=$lt_SED
13934
13935 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13936 Xsed="\$SED -e 1s/^X//"
13937
13938 # A grep program that handles long lines.
13939 GREP=$lt_GREP
13940
13941 # An ERE matcher.
13942 EGREP=$lt_EGREP
13943
13944 # A literal string matcher.
13945 FGREP=$lt_FGREP
13946
13947 # A BSD- or MS-compatible name lister.
13948 NM=$lt_NM
13949
13950 # Whether we need soft or hard links.
13951 LN_S=$lt_LN_S
13952
13953 # What is the maximum length of a command?
13954 max_cmd_len=$max_cmd_len
13955
13956 # Object file suffix (normally "o").
13957 objext=$ac_objext
13958
13959 # Executable file suffix (normally "").
13960 exeext=$exeext
13961
13962 # whether the shell understands "unset".
13963 lt_unset=$lt_unset
13964
13965 # turn spaces into newlines.
13966 SP2NL=$lt_lt_SP2NL
13967
13968 # turn newlines into spaces.
13969 NL2SP=$lt_lt_NL2SP
13970
13971 # convert \$build file names to \$host format.
13972 to_host_file_cmd=$lt_cv_to_host_file_cmd
13973
13974 # convert \$build files to toolchain format.
13975 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13976
13977 # An object symbol dumper.
13978 OBJDUMP=$lt_OBJDUMP
13979
13980 # Method to check whether dependent libraries are shared objects.
13981 deplibs_check_method=$lt_deplibs_check_method
13982
13983 # Command to use when deplibs_check_method = "file_magic".
13984 file_magic_cmd=$lt_file_magic_cmd
13985
13986 # How to find potential files when deplibs_check_method = "file_magic".
13987 file_magic_glob=$lt_file_magic_glob
13988
13989 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13990 want_nocaseglob=$lt_want_nocaseglob
13991
13992 # DLL creation program.
13993 DLLTOOL=$lt_DLLTOOL
13994
13995 # Command to associate shared and link libraries.
13996 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13997
13998 # The archiver.
13999 AR=$lt_AR
14000
14001 # Flags to create an archive.
14002 AR_FLAGS=$lt_AR_FLAGS
14003
14004 # How to feed a file listing to the archiver.
14005 archiver_list_spec=$lt_archiver_list_spec
14006
14007 # A symbol stripping program.
14008 STRIP=$lt_STRIP
14009
14010 # Commands used to install an old-style archive.
14011 RANLIB=$lt_RANLIB
14012 old_postinstall_cmds=$lt_old_postinstall_cmds
14013 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14014
14015 # Whether to use a lock for old archive extraction.
14016 lock_old_archive_extraction=$lock_old_archive_extraction
14017
14018 # A C compiler.
14019 LTCC=$lt_CC
14020
14021 # LTCC compiler flags.
14022 LTCFLAGS=$lt_CFLAGS
14023
14024 # Take the output of nm and produce a listing of raw symbols and C names.
14025 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14026
14027 # Transform the output of nm in a proper C declaration.
14028 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14029
14030 # Transform the output of nm in a C name address pair.
14031 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14032
14033 # Transform the output of nm in a C name address pair when lib prefix is needed.
14034 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14035
14036 # Specify filename containing input files for \$NM.
14037 nm_file_list_spec=$lt_nm_file_list_spec
14038
14039 # The root where to search for dependent libraries,and in which our libraries should be installed.
14040 lt_sysroot=$lt_sysroot
14041
14042 # The name of the directory that contains temporary libtool files.
14043 objdir=$objdir
14044
14045 # Used to examine libraries when file_magic_cmd begins with "file".
14046 MAGIC_CMD=$MAGIC_CMD
14047
14048 # Must we lock files when doing compilation?
14049 need_locks=$lt_need_locks
14050
14051 # Manifest tool.
14052 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14053
14054 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14055 DSYMUTIL=$lt_DSYMUTIL
14056
14057 # Tool to change global to local symbols on Mac OS X.
14058 NMEDIT=$lt_NMEDIT
14059
14060 # Tool to manipulate fat objects and archives on Mac OS X.
14061 LIPO=$lt_LIPO
14062
14063 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14064 OTOOL=$lt_OTOOL
14065
14066 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14067 OTOOL64=$lt_OTOOL64
14068
14069 # Old archive suffix (normally "a").
14070 libext=$libext
14071
14072 # Shared library suffix (normally ".so").
14073 shrext_cmds=$lt_shrext_cmds
14074
14075 # The commands to extract the exported symbol list from a shared archive.
14076 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14077
14078 # Variables whose values should be saved in libtool wrapper scripts and
14079 # restored at link time.
14080 variables_saved_for_relink=$lt_variables_saved_for_relink
14081
14082 # Do we need the "lib" prefix for modules?
14083 need_lib_prefix=$need_lib_prefix
14084
14085 # Do we need a version for libraries?
14086 need_version=$need_version
14087
14088 # Library versioning type.
14089 version_type=$version_type
14090
14091 # Shared library runtime path variable.
14092 runpath_var=$runpath_var
14093
14094 # Shared library path variable.
14095 shlibpath_var=$shlibpath_var
14096
14097 # Is shlibpath searched before the hard-coded library search path?
14098 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14099
14100 # Format of library name prefix.
14101 libname_spec=$lt_libname_spec
14102
14103 # List of archive names.  First name is the real one, the rest are links.
14104 # The last name is the one that the linker finds with -lNAME
14105 library_names_spec=$lt_library_names_spec
14106
14107 # The coded name of the library, if different from the real name.
14108 soname_spec=$lt_soname_spec
14109
14110 # Permission mode override for installation of shared libraries.
14111 install_override_mode=$lt_install_override_mode
14112
14113 # Command to use after installation of a shared archive.
14114 postinstall_cmds=$lt_postinstall_cmds
14115
14116 # Command to use after uninstallation of a shared archive.
14117 postuninstall_cmds=$lt_postuninstall_cmds
14118
14119 # Commands used to finish a libtool library installation in a directory.
14120 finish_cmds=$lt_finish_cmds
14121
14122 # As "finish_cmds", except a single script fragment to be evaled but
14123 # not shown.
14124 finish_eval=$lt_finish_eval
14125
14126 # Whether we should hardcode library paths into libraries.
14127 hardcode_into_libs=$hardcode_into_libs
14128
14129 # Compile-time system search path for libraries.
14130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14131
14132 # Run-time system search path for libraries.
14133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14134
14135 # Whether dlopen is supported.
14136 dlopen_support=$enable_dlopen
14137
14138 # Whether dlopen of programs is supported.
14139 dlopen_self=$enable_dlopen_self
14140
14141 # Whether dlopen of statically linked programs is supported.
14142 dlopen_self_static=$enable_dlopen_self_static
14143
14144 # Commands to strip libraries.
14145 old_striplib=$lt_old_striplib
14146 striplib=$lt_striplib
14147
14148
14149 # The linker used to build libraries.
14150 LD=$lt_LD
14151
14152 # How to create reloadable object files.
14153 reload_flag=$lt_reload_flag
14154 reload_cmds=$lt_reload_cmds
14155
14156 # Commands used to build an old-style archive.
14157 old_archive_cmds=$lt_old_archive_cmds
14158
14159 # A language specific compiler.
14160 CC=$lt_compiler
14161
14162 # Is the compiler the GNU compiler?
14163 with_gcc=$GCC
14164
14165 # Compiler flag to turn off builtin functions.
14166 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14167
14168 # Additional compiler flags for building library objects.
14169 pic_flag=$lt_lt_prog_compiler_pic
14170
14171 # How to pass a linker flag through the compiler.
14172 wl=$lt_lt_prog_compiler_wl
14173
14174 # Compiler flag to prevent dynamic linking.
14175 link_static_flag=$lt_lt_prog_compiler_static
14176
14177 # Does compiler simultaneously support -c and -o options?
14178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14179
14180 # Whether or not to add -lc for building shared libraries.
14181 build_libtool_need_lc=$archive_cmds_need_lc
14182
14183 # Whether or not to disallow shared libs when runtime libs are static.
14184 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14185
14186 # Compiler flag to allow reflexive dlopens.
14187 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14188
14189 # Compiler flag to generate shared objects directly from archives.
14190 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14191
14192 # Whether the compiler copes with passing no objects directly.
14193 compiler_needs_object=$lt_compiler_needs_object
14194
14195 # Create an old-style archive from a shared archive.
14196 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14197
14198 # Create a temporary old-style archive to link instead of a shared archive.
14199 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14200
14201 # Commands used to build a shared archive.
14202 archive_cmds=$lt_archive_cmds
14203 archive_expsym_cmds=$lt_archive_expsym_cmds
14204
14205 # Commands used to build a loadable module if different from building
14206 # a shared archive.
14207 module_cmds=$lt_module_cmds
14208 module_expsym_cmds=$lt_module_expsym_cmds
14209
14210 # Whether we are building with GNU ld or not.
14211 with_gnu_ld=$lt_with_gnu_ld
14212
14213 # Flag that allows shared libraries with undefined symbols to be built.
14214 allow_undefined_flag=$lt_allow_undefined_flag
14215
14216 # Flag that enforces no undefined symbols.
14217 no_undefined_flag=$lt_no_undefined_flag
14218
14219 # Flag to hardcode \$libdir into a binary during linking.
14220 # This must work even if \$libdir does not exist
14221 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14222
14223 # Whether we need a single "-rpath" flag with a separated argument.
14224 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14225
14226 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14227 # DIR into the resulting binary.
14228 hardcode_direct=$hardcode_direct
14229
14230 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14231 # DIR into the resulting binary and the resulting library dependency is
14232 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14233 # library is relocated.
14234 hardcode_direct_absolute=$hardcode_direct_absolute
14235
14236 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14237 # into the resulting binary.
14238 hardcode_minus_L=$hardcode_minus_L
14239
14240 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14241 # into the resulting binary.
14242 hardcode_shlibpath_var=$hardcode_shlibpath_var
14243
14244 # Set to "yes" if building a shared library automatically hardcodes DIR
14245 # into the library and all subsequent libraries and executables linked
14246 # against it.
14247 hardcode_automatic=$hardcode_automatic
14248
14249 # Set to yes if linker adds runtime paths of dependent libraries
14250 # to runtime path list.
14251 inherit_rpath=$inherit_rpath
14252
14253 # Whether libtool must link a program against all its dependency libraries.
14254 link_all_deplibs=$link_all_deplibs
14255
14256 # Set to "yes" if exported symbols are required.
14257 always_export_symbols=$always_export_symbols
14258
14259 # The commands to list exported symbols.
14260 export_symbols_cmds=$lt_export_symbols_cmds
14261
14262 # Symbols that should not be listed in the preloaded symbols.
14263 exclude_expsyms=$lt_exclude_expsyms
14264
14265 # Symbols that must always be exported.
14266 include_expsyms=$lt_include_expsyms
14267
14268 # Commands necessary for linking programs (against libraries) with templates.
14269 prelink_cmds=$lt_prelink_cmds
14270
14271 # Commands necessary for finishing linking programs.
14272 postlink_cmds=$lt_postlink_cmds
14273
14274 # Specify filename containing input files.
14275 file_list_spec=$lt_file_list_spec
14276
14277 # How to hardcode a shared library path into an executable.
14278 hardcode_action=$hardcode_action
14279
14280 # ### END LIBTOOL CONFIG
14281
14282 _LT_EOF
14283
14284   case $host_os in
14285   aix3*)
14286     cat <<\_LT_EOF >> "$cfgfile"
14287 # AIX sometimes has problems with the GCC collect2 program.  For some
14288 # reason, if we set the COLLECT_NAMES environment variable, the problems
14289 # vanish in a puff of smoke.
14290 if test "X${COLLECT_NAMES+set}" != Xset; then
14291   COLLECT_NAMES=
14292   export COLLECT_NAMES
14293 fi
14294 _LT_EOF
14295     ;;
14296   esac
14297
14298
14299 ltmain="$ac_aux_dir/ltmain.sh"
14300
14301
14302   # We use sed instead of cat because bash on DJGPP gets confused if
14303   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14304   # text mode, it properly converts lines to CR/LF.  This bash problem
14305   # is reportedly fixed, but why not run on old versions too?
14306   sed '$q' "$ltmain" >> "$cfgfile" \
14307      || (rm -f "$cfgfile"; exit 1)
14308
14309   if test x"$xsi_shell" = xyes; then
14310   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14311 func_dirname ()\
14312 {\
14313 \    case ${1} in\
14314 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14315 \      *  ) func_dirname_result="${3}" ;;\
14316 \    esac\
14317 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14318   && mv -f "$cfgfile.tmp" "$cfgfile" \
14319     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14320 test 0 -eq $? || _lt_function_replace_fail=:
14321
14322
14323   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14324 func_basename ()\
14325 {\
14326 \    func_basename_result="${1##*/}"\
14327 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14328   && mv -f "$cfgfile.tmp" "$cfgfile" \
14329     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14330 test 0 -eq $? || _lt_function_replace_fail=:
14331
14332
14333   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14334 func_dirname_and_basename ()\
14335 {\
14336 \    case ${1} in\
14337 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14338 \      *  ) func_dirname_result="${3}" ;;\
14339 \    esac\
14340 \    func_basename_result="${1##*/}"\
14341 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14342   && mv -f "$cfgfile.tmp" "$cfgfile" \
14343     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14344 test 0 -eq $? || _lt_function_replace_fail=:
14345
14346
14347   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14348 func_stripname ()\
14349 {\
14350 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14351 \    # positional parameters, so assign one to ordinary parameter first.\
14352 \    func_stripname_result=${3}\
14353 \    func_stripname_result=${func_stripname_result#"${1}"}\
14354 \    func_stripname_result=${func_stripname_result%"${2}"}\
14355 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14356   && mv -f "$cfgfile.tmp" "$cfgfile" \
14357     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14358 test 0 -eq $? || _lt_function_replace_fail=:
14359
14360
14361   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14362 func_split_long_opt ()\
14363 {\
14364 \    func_split_long_opt_name=${1%%=*}\
14365 \    func_split_long_opt_arg=${1#*=}\
14366 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14367   && mv -f "$cfgfile.tmp" "$cfgfile" \
14368     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14369 test 0 -eq $? || _lt_function_replace_fail=:
14370
14371
14372   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14373 func_split_short_opt ()\
14374 {\
14375 \    func_split_short_opt_arg=${1#??}\
14376 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14377 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14378   && mv -f "$cfgfile.tmp" "$cfgfile" \
14379     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14380 test 0 -eq $? || _lt_function_replace_fail=:
14381
14382
14383   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14384 func_lo2o ()\
14385 {\
14386 \    case ${1} in\
14387 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14388 \      *)    func_lo2o_result=${1} ;;\
14389 \    esac\
14390 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14391   && mv -f "$cfgfile.tmp" "$cfgfile" \
14392     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14393 test 0 -eq $? || _lt_function_replace_fail=:
14394
14395
14396   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14397 func_xform ()\
14398 {\
14399     func_xform_result=${1%.*}.lo\
14400 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14401   && mv -f "$cfgfile.tmp" "$cfgfile" \
14402     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14403 test 0 -eq $? || _lt_function_replace_fail=:
14404
14405
14406   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14407 func_arith ()\
14408 {\
14409     func_arith_result=$(( $* ))\
14410 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14411   && mv -f "$cfgfile.tmp" "$cfgfile" \
14412     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14413 test 0 -eq $? || _lt_function_replace_fail=:
14414
14415
14416   sed -e '/^func_len ()$/,/^} # func_len /c\
14417 func_len ()\
14418 {\
14419     func_len_result=${#1}\
14420 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14421   && mv -f "$cfgfile.tmp" "$cfgfile" \
14422     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14423 test 0 -eq $? || _lt_function_replace_fail=:
14424
14425 fi
14426
14427 if test x"$lt_shell_append" = xyes; then
14428   sed -e '/^func_append ()$/,/^} # func_append /c\
14429 func_append ()\
14430 {\
14431     eval "${1}+=\\${2}"\
14432 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14433   && mv -f "$cfgfile.tmp" "$cfgfile" \
14434     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14435 test 0 -eq $? || _lt_function_replace_fail=:
14436
14437
14438   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14439 func_append_quoted ()\
14440 {\
14441 \    func_quote_for_eval "${2}"\
14442 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14443 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14444   && mv -f "$cfgfile.tmp" "$cfgfile" \
14445     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14446 test 0 -eq $? || _lt_function_replace_fail=:
14447
14448
14449   # Save a `func_append' function call where possible by direct use of '+='
14450   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14451     && mv -f "$cfgfile.tmp" "$cfgfile" \
14452       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14453   test 0 -eq $? || _lt_function_replace_fail=:
14454 else
14455   # Save a `func_append' function call even when '+=' is not available
14456   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14457     && mv -f "$cfgfile.tmp" "$cfgfile" \
14458       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14459   test 0 -eq $? || _lt_function_replace_fail=:
14460 fi
14461
14462 if test x"$_lt_function_replace_fail" = x":"; then
14463   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14464 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14465 fi
14466
14467
14468    mv -f "$cfgfile" "$ofile" ||
14469     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14470   chmod +x "$ofile"
14471
14472  ;;
14473
14474   esac
14475 done # for ac_tag
14476
14477
14478 as_fn_exit 0
14479 _ACEOF
14480 ac_clean_files=$ac_clean_files_save
14481
14482 test $ac_write_fail = 0 ||
14483   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14484
14485
14486 # configure is writing to config.log, and then calls config.status.
14487 # config.status does its own redirection, appending to config.log.
14488 # Unfortunately, on DOS this fails, as config.log is still kept open
14489 # by configure, so config.status won't be able to write to it; its
14490 # output is simply discarded.  So we exec the FD to /dev/null,
14491 # effectively closing config.log, so it can be properly (re)opened and
14492 # appended to by config.status.  When coming back to configure, we
14493 # need to make the FD available again.
14494 if test "$no_create" != yes; then
14495   ac_cs_success=:
14496   ac_config_status_args=
14497   test "$silent" = yes &&
14498     ac_config_status_args="$ac_config_status_args --quiet"
14499   exec 5>/dev/null
14500   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14501   exec 5>>config.log
14502   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14503   # would make configure fail if this is the last instruction.
14504   $ac_cs_success || as_fn_exit 1
14505 fi
14506 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14507   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14508 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14509 fi
14510