Initial commit of vpp code.
[vpp.git] / sample-plugin / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sample_plugin 1.0.
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
200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || 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='sample_plugin'
589 PACKAGE_TARNAME='sample_plugin'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='sample_plugin 1.0'
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 WITH_PLUGIN_TOOLKIT_FALSE
636 WITH_PLUGIN_TOOLKIT_TRUE
637 TOOLKIT_INCLUDE
638 am__fastdepCCAS_FALSE
639 am__fastdepCCAS_TRUE
640 CCASDEPMODE
641 CCASFLAGS
642 CCAS
643 CPP
644 OTOOL64
645 OTOOL
646 LIPO
647 NMEDIT
648 DSYMUTIL
649 MANIFEST_TOOL
650 RANLIB
651 ac_ct_AR
652 AR
653 DLLTOOL
654 OBJDUMP
655 LN_S
656 NM
657 ac_ct_DUMPBIN
658 DUMPBIN
659 LD
660 FGREP
661 EGREP
662 GREP
663 SED
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 am__nodep
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 LIBTOOL
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 AM_DEFAULT_V
693 AM_V
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
699 AWK
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_silent_rules
759 enable_shared
760 enable_static
761 with_pic
762 enable_fast_install
763 enable_dependency_tracking
764 with_gnu_ld
765 with_sysroot
766 enable_libtool_lock
767 with_plugin_toolkit
768 '
769       ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CPP
778 CCAS
779 CCASFLAGS'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834   # If the previous option needs an argument, assign it.
835   if test -n "$ac_prev"; then
836     eval $ac_prev=\$ac_option
837     ac_prev=
838     continue
839   fi
840
841   case $ac_option in
842   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843   *=)   ac_optarg= ;;
844   *)    ac_optarg=yes ;;
845   esac
846
847   # Accept the important Cygnus configure options, so we can diagnose typos.
848
849   case $ac_dashdash$ac_option in
850   --)
851     ac_dashdash=yes ;;
852
853   -bindir | --bindir | --bindi | --bind | --bin | --bi)
854     ac_prev=bindir ;;
855   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856     bindir=$ac_optarg ;;
857
858   -build | --build | --buil | --bui | --bu)
859     ac_prev=build_alias ;;
860   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861     build_alias=$ac_optarg ;;
862
863   -cache-file | --cache-file | --cache-fil | --cache-fi \
864   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865     ac_prev=cache_file ;;
866   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868     cache_file=$ac_optarg ;;
869
870   --config-cache | -C)
871     cache_file=config.cache ;;
872
873   -datadir | --datadir | --datadi | --datad)
874     ac_prev=datadir ;;
875   -datadir=* | --datadir=* | --datadi=* | --datad=*)
876     datadir=$ac_optarg ;;
877
878   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879   | --dataroo | --dataro | --datar)
880     ac_prev=datarootdir ;;
881   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883     datarootdir=$ac_optarg ;;
884
885   -disable-* | --disable-*)
886     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887     # Reject names that are not valid shell variable names.
888     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889       as_fn_error $? "invalid feature name: $ac_useropt"
890     ac_useropt_orig=$ac_useropt
891     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892     case $ac_user_opts in
893       *"
894 "enable_$ac_useropt"
895 "*) ;;
896       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897          ac_unrecognized_sep=', ';;
898     esac
899     eval enable_$ac_useropt=no ;;
900
901   -docdir | --docdir | --docdi | --doc | --do)
902     ac_prev=docdir ;;
903   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904     docdir=$ac_optarg ;;
905
906   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907     ac_prev=dvidir ;;
908   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909     dvidir=$ac_optarg ;;
910
911   -enable-* | --enable-*)
912     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913     # Reject names that are not valid shell variable names.
914     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915       as_fn_error $? "invalid feature name: $ac_useropt"
916     ac_useropt_orig=$ac_useropt
917     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918     case $ac_user_opts in
919       *"
920 "enable_$ac_useropt"
921 "*) ;;
922       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923          ac_unrecognized_sep=', ';;
924     esac
925     eval enable_$ac_useropt=\$ac_optarg ;;
926
927   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929   | --exec | --exe | --ex)
930     ac_prev=exec_prefix ;;
931   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933   | --exec=* | --exe=* | --ex=*)
934     exec_prefix=$ac_optarg ;;
935
936   -gas | --gas | --ga | --g)
937     # Obsolete; use --with-gas.
938     with_gas=yes ;;
939
940   -help | --help | --hel | --he | -h)
941     ac_init_help=long ;;
942   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943     ac_init_help=recursive ;;
944   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945     ac_init_help=short ;;
946
947   -host | --host | --hos | --ho)
948     ac_prev=host_alias ;;
949   -host=* | --host=* | --hos=* | --ho=*)
950     host_alias=$ac_optarg ;;
951
952   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953     ac_prev=htmldir ;;
954   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955   | --ht=*)
956     htmldir=$ac_optarg ;;
957
958   -includedir | --includedir | --includedi | --included | --include \
959   | --includ | --inclu | --incl | --inc)
960     ac_prev=includedir ;;
961   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962   | --includ=* | --inclu=* | --incl=* | --inc=*)
963     includedir=$ac_optarg ;;
964
965   -infodir | --infodir | --infodi | --infod | --info | --inf)
966     ac_prev=infodir ;;
967   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968     infodir=$ac_optarg ;;
969
970   -libdir | --libdir | --libdi | --libd)
971     ac_prev=libdir ;;
972   -libdir=* | --libdir=* | --libdi=* | --libd=*)
973     libdir=$ac_optarg ;;
974
975   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976   | --libexe | --libex | --libe)
977     ac_prev=libexecdir ;;
978   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979   | --libexe=* | --libex=* | --libe=*)
980     libexecdir=$ac_optarg ;;
981
982   -localedir | --localedir | --localedi | --localed | --locale)
983     ac_prev=localedir ;;
984   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985     localedir=$ac_optarg ;;
986
987   -localstatedir | --localstatedir | --localstatedi | --localstated \
988   | --localstate | --localstat | --localsta | --localst | --locals)
989     ac_prev=localstatedir ;;
990   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992     localstatedir=$ac_optarg ;;
993
994   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995     ac_prev=mandir ;;
996   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997     mandir=$ac_optarg ;;
998
999   -nfp | --nfp | --nf)
1000     # Obsolete; use --without-fp.
1001     with_fp=no ;;
1002
1003   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004   | --no-cr | --no-c | -n)
1005     no_create=yes ;;
1006
1007   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009     no_recursion=yes ;;
1010
1011   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013   | --oldin | --oldi | --old | --ol | --o)
1014     ac_prev=oldincludedir ;;
1015   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018     oldincludedir=$ac_optarg ;;
1019
1020   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021     ac_prev=prefix ;;
1022   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023     prefix=$ac_optarg ;;
1024
1025   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026   | --program-pre | --program-pr | --program-p)
1027     ac_prev=program_prefix ;;
1028   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030     program_prefix=$ac_optarg ;;
1031
1032   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033   | --program-suf | --program-su | --program-s)
1034     ac_prev=program_suffix ;;
1035   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037     program_suffix=$ac_optarg ;;
1038
1039   -program-transform-name | --program-transform-name \
1040   | --program-transform-nam | --program-transform-na \
1041   | --program-transform-n | --program-transform- \
1042   | --program-transform | --program-transfor \
1043   | --program-transfo | --program-transf \
1044   | --program-trans | --program-tran \
1045   | --progr-tra | --program-tr | --program-t)
1046     ac_prev=program_transform_name ;;
1047   -program-transform-name=* | --program-transform-name=* \
1048   | --program-transform-nam=* | --program-transform-na=* \
1049   | --program-transform-n=* | --program-transform-=* \
1050   | --program-transform=* | --program-transfor=* \
1051   | --program-transfo=* | --program-transf=* \
1052   | --program-trans=* | --program-tran=* \
1053   | --progr-tra=* | --program-tr=* | --program-t=*)
1054     program_transform_name=$ac_optarg ;;
1055
1056   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057     ac_prev=pdfdir ;;
1058   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059     pdfdir=$ac_optarg ;;
1060
1061   -psdir | --psdir | --psdi | --psd | --ps)
1062     ac_prev=psdir ;;
1063   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064     psdir=$ac_optarg ;;
1065
1066   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067   | -silent | --silent | --silen | --sile | --sil)
1068     silent=yes ;;
1069
1070   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071     ac_prev=sbindir ;;
1072   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073   | --sbi=* | --sb=*)
1074     sbindir=$ac_optarg ;;
1075
1076   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078   | --sharedst | --shareds | --shared | --share | --shar \
1079   | --sha | --sh)
1080     ac_prev=sharedstatedir ;;
1081   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084   | --sha=* | --sh=*)
1085     sharedstatedir=$ac_optarg ;;
1086
1087   -site | --site | --sit)
1088     ac_prev=site ;;
1089   -site=* | --site=* | --sit=*)
1090     site=$ac_optarg ;;
1091
1092   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093     ac_prev=srcdir ;;
1094   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095     srcdir=$ac_optarg ;;
1096
1097   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098   | --syscon | --sysco | --sysc | --sys | --sy)
1099     ac_prev=sysconfdir ;;
1100   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102     sysconfdir=$ac_optarg ;;
1103
1104   -target | --target | --targe | --targ | --tar | --ta | --t)
1105     ac_prev=target_alias ;;
1106   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107     target_alias=$ac_optarg ;;
1108
1109   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110     verbose=yes ;;
1111
1112   -version | --version | --versio | --versi | --vers | -V)
1113     ac_init_version=: ;;
1114
1115   -with-* | --with-*)
1116     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117     # Reject names that are not valid shell variable names.
1118     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119       as_fn_error $? "invalid package name: $ac_useropt"
1120     ac_useropt_orig=$ac_useropt
1121     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122     case $ac_user_opts in
1123       *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127          ac_unrecognized_sep=', ';;
1128     esac
1129     eval with_$ac_useropt=\$ac_optarg ;;
1130
1131   -without-* | --without-*)
1132     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133     # Reject names that are not valid shell variable names.
1134     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135       as_fn_error $? "invalid package name: $ac_useropt"
1136     ac_useropt_orig=$ac_useropt
1137     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138     case $ac_user_opts in
1139       *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143          ac_unrecognized_sep=', ';;
1144     esac
1145     eval with_$ac_useropt=no ;;
1146
1147   --x)
1148     # Obsolete; use --with-x.
1149     with_x=yes ;;
1150
1151   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152   | --x-incl | --x-inc | --x-in | --x-i)
1153     ac_prev=x_includes ;;
1154   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156     x_includes=$ac_optarg ;;
1157
1158   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160     ac_prev=x_libraries ;;
1161   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163     x_libraries=$ac_optarg ;;
1164
1165   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1167     ;;
1168
1169   *=*)
1170     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171     # Reject names that are not valid shell variable names.
1172     case $ac_envvar in #(
1173       '' | [0-9]* | *[!_$as_cr_alnum]* )
1174       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175     esac
1176     eval $ac_envvar=\$ac_optarg
1177     export $ac_envvar ;;
1178
1179   *)
1180     # FIXME: should be removed in autoconf 3.0.
1181     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185     ;;
1186
1187   esac
1188 done
1189
1190 if test -n "$ac_prev"; then
1191   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192   as_fn_error $? "missing argument to $ac_option"
1193 fi
1194
1195 if test -n "$ac_unrecognized_opts"; then
1196   case $enable_option_checking in
1197     no) ;;
1198     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200   esac
1201 fi
1202
1203 # Check all directory arguments for consistency.
1204 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205                 datadir sysconfdir sharedstatedir localstatedir includedir \
1206                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207                 libdir localedir mandir
1208 do
1209   eval ac_val=\$$ac_var
1210   # Remove trailing slashes.
1211   case $ac_val in
1212     */ )
1213       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214       eval $ac_var=\$ac_val;;
1215   esac
1216   # Be sure to have absolute directory names.
1217   case $ac_val in
1218     [\\/$]* | ?:[\\/]* )  continue;;
1219     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220   esac
1221   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 done
1223
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1230
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233   if test "x$build_alias" = x; then
1234     cross_compiling=maybe
1235   elif test "x$build_alias" != "x$host_alias"; then
1236     cross_compiling=yes
1237   fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249   as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251   as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256   ac_srcdir_defaulted=yes
1257   # Try the directory containing this script, then the parent directory.
1258   ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260          X"$as_myself" : 'X\(//\)[^/]' \| \
1261          X"$as_myself" : 'X\(//\)$' \| \
1262          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)[^/].*/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\).*/{
1277             s//\1/
1278             q
1279           }
1280           s/.*/./; q'`
1281   srcdir=$ac_confdir
1282   if test ! -r "$srcdir/$ac_unique_file"; then
1283     srcdir=..
1284   fi
1285 else
1286   ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295         pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298   srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_env_${ac_var}_value=\$${ac_var}
1309   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317   # Omit some internal or obsolete options to make the list less imposing.
1318   # This message is too long to be a string in the A/UX 3.1 sh.
1319   cat <<_ACEOF
1320 \`configure' configures sample_plugin 1.0 to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330   -h, --help              display this help and exit
1331       --help=short        display options specific to this package
1332       --help=recursive    display the short help of all the included packages
1333   -V, --version           display version information and exit
1334   -q, --quiet, --silent   do not print \`checking ...' messages
1335       --cache-file=FILE   cache test results in FILE [disabled]
1336   -C, --config-cache      alias for \`--cache-file=config.cache'
1337   -n, --no-create         do not create output files
1338       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341   --prefix=PREFIX         install architecture-independent files in PREFIX
1342                           [$ac_default_prefix]
1343   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                           [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354   --bindir=DIR            user executables [EPREFIX/bin]
1355   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1356   --libexecdir=DIR        program executables [EPREFIX/libexec]
1357   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1358   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1359   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1360   --libdir=DIR            object code libraries [EPREFIX/lib]
1361   --includedir=DIR        C header files [PREFIX/include]
1362   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1363   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1364   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1365   --infodir=DIR           info documentation [DATAROOTDIR/info]
1366   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1367   --mandir=DIR            man documentation [DATAROOTDIR/man]
1368   --docdir=DIR            documentation root [DATAROOTDIR/doc/sample_plugin]
1369   --htmldir=DIR           html documentation [DOCDIR]
1370   --dvidir=DIR            dvi documentation [DOCDIR]
1371   --pdfdir=DIR            pdf documentation [DOCDIR]
1372   --psdir=DIR             ps documentation [DOCDIR]
1373 _ACEOF
1374
1375   cat <<\_ACEOF
1376
1377 Program names:
1378   --program-prefix=PREFIX            prepend PREFIX to installed program names
1379   --program-suffix=SUFFIX            append SUFFIX to installed program names
1380   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1381
1382 System types:
1383   --build=BUILD     configure for building on BUILD [guessed]
1384   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389   case $ac_init_help in
1390      short | recursive ) echo "Configuration of sample_plugin 1.0:";;
1391    esac
1392   cat <<\_ACEOF
1393
1394 Optional Features:
1395   --disable-option-checking  ignore unrecognized --enable/--with options
1396   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398   --enable-silent-rules   less verbose build output (undo: "make V=1")
1399   --disable-silent-rules  verbose build output (undo: "make V=0")
1400   --enable-shared[=PKGS]  build shared libraries [default=yes]
1401   --enable-static[=PKGS]  build static libraries [default=yes]
1402   --enable-fast-install[=PKGS]
1403                           optimize for fast installation [default=yes]
1404   --enable-dependency-tracking
1405                           do not reject slow dependency extractors
1406   --disable-dependency-tracking
1407                           speeds up one-time build
1408   --disable-libtool-lock  avoid locking (might break parallel builds)
1409
1410 Optional Packages:
1411   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1412   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1413   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1414                           both]
1415   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1416   --with-sysroot=DIR Search for dependent libraries within DIR
1417                         (or the compiler's sysroot if not specified).
1418   --with-plugin-toolkit   build using the vpp toolkit
1419
1420 Some influential environment variables:
1421   CC          C compiler command
1422   CFLAGS      C compiler flags
1423   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1424               nonstandard directory <lib dir>
1425   LIBS        libraries to pass to the linker, e.g. -l<library>
1426   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427               you have headers in a nonstandard directory <include dir>
1428   CPP         C preprocessor
1429   CCAS        assembler compiler command (defaults to CC)
1430   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1431
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1434
1435 Report bugs to the package provider.
1436 _ACEOF
1437 ac_status=$?
1438 fi
1439
1440 if test "$ac_init_help" = "recursive"; then
1441   # If there are subdirs, report their specific --help.
1442   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443     test -d "$ac_dir" ||
1444       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445       continue
1446     ac_builddir=.
1447
1448 case "$ac_dir" in
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *)
1451   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452   # A ".." for each directory in $ac_dir_suffix.
1453   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454   case $ac_top_builddir_sub in
1455   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457   esac ;;
1458 esac
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1463
1464 case $srcdir in
1465   .)  # We are building in place.
1466     ac_srcdir=.
1467     ac_top_srcdir=$ac_top_builddir_sub
1468     ac_abs_top_srcdir=$ac_pwd ;;
1469   [\\/]* | ?:[\\/]* )  # Absolute name.
1470     ac_srcdir=$srcdir$ac_dir_suffix;
1471     ac_top_srcdir=$srcdir
1472     ac_abs_top_srcdir=$srcdir ;;
1473   *) # Relative name.
1474     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475     ac_top_srcdir=$ac_top_build_prefix$srcdir
1476     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 esac
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480     cd "$ac_dir" || { ac_status=$?; continue; }
1481     # Check for guested configure.
1482     if test -f "$ac_srcdir/configure.gnu"; then
1483       echo &&
1484       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485     elif test -f "$ac_srcdir/configure"; then
1486       echo &&
1487       $SHELL "$ac_srcdir/configure" --help=recursive
1488     else
1489       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490     fi || ac_status=$?
1491     cd "$ac_pwd" || { ac_status=$?; break; }
1492   done
1493 fi
1494
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1497   cat <<\_ACEOF
1498 sample_plugin configure 1.0
1499 generated by GNU Autoconf 2.69
1500
1501 Copyright (C) 2012 Free Software Foundation, Inc.
1502 This configure script is free software; the Free Software Foundation
1503 gives unlimited permission to copy, distribute and modify it.
1504 _ACEOF
1505   exit
1506 fi
1507
1508 ## ------------------------ ##
1509 ## Autoconf initialization. ##
1510 ## ------------------------ ##
1511
1512 # ac_fn_c_try_compile LINENO
1513 # --------------------------
1514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1515 ac_fn_c_try_compile ()
1516 {
1517   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518   rm -f conftest.$ac_objext
1519   if { { ac_try="$ac_compile"
1520 case "(($ac_try" in
1521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522   *) ac_try_echo=$ac_try;;
1523 esac
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526   (eval "$ac_compile") 2>conftest.err
1527   ac_status=$?
1528   if test -s conftest.err; then
1529     grep -v '^ *+' conftest.err >conftest.er1
1530     cat conftest.er1 >&5
1531     mv -f conftest.er1 conftest.err
1532   fi
1533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534   test $ac_status = 0; } && {
1535          test -z "$ac_c_werror_flag" ||
1536          test ! -s conftest.err
1537        } && test -s conftest.$ac_objext; then :
1538   ac_retval=0
1539 else
1540   $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1542
1543         ac_retval=1
1544 fi
1545   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546   as_fn_set_status $ac_retval
1547
1548 } # ac_fn_c_try_compile
1549
1550 # ac_fn_c_try_link LINENO
1551 # -----------------------
1552 # Try to link conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_link ()
1554 {
1555   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556   rm -f conftest.$ac_objext conftest$ac_exeext
1557   if { { ac_try="$ac_link"
1558 case "(($ac_try" in
1559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560   *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564   (eval "$ac_link") 2>conftest.err
1565   ac_status=$?
1566   if test -s conftest.err; then
1567     grep -v '^ *+' conftest.err >conftest.er1
1568     cat conftest.er1 >&5
1569     mv -f conftest.er1 conftest.err
1570   fi
1571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572   test $ac_status = 0; } && {
1573          test -z "$ac_c_werror_flag" ||
1574          test ! -s conftest.err
1575        } && test -s conftest$ac_exeext && {
1576          test "$cross_compiling" = yes ||
1577          test -x conftest$ac_exeext
1578        }; then :
1579   ac_retval=0
1580 else
1581   $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584         ac_retval=1
1585 fi
1586   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588   # interfere with the next link command; also delete a directory that is
1589   # left behind by Apple's compiler.  We do this before executing the actions.
1590   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592   as_fn_set_status $ac_retval
1593
1594 } # ac_fn_c_try_link
1595
1596 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists and can be compiled using the include files in
1599 # INCLUDES, setting the cache variable VAR accordingly.
1600 ac_fn_c_check_header_compile ()
1601 {
1602   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \${$3+:} false; then :
1606   $as_echo_n "(cached) " >&6
1607 else
1608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h.  */
1610 $4
1611 #include <$2>
1612 _ACEOF
1613 if ac_fn_c_try_compile "$LINENO"; then :
1614   eval "$3=yes"
1615 else
1616   eval "$3=no"
1617 fi
1618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619 fi
1620 eval ac_res=\$$3
1621                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622 $as_echo "$ac_res" >&6; }
1623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624
1625 } # ac_fn_c_check_header_compile
1626
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_cpp ()
1631 {
1632   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633   if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 case "(($ac_try" in
1635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636   *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641   ac_status=$?
1642   if test -s conftest.err; then
1643     grep -v '^ *+' conftest.err >conftest.er1
1644     cat conftest.er1 >&5
1645     mv -f conftest.er1 conftest.err
1646   fi
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } > conftest.i && {
1649          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650          test ! -s conftest.err
1651        }; then :
1652   ac_retval=0
1653 else
1654   $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657     ac_retval=1
1658 fi
1659   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660   as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_cpp
1663
1664 # ac_fn_c_try_run LINENO
1665 # ----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667 # that executables *can* be run.
1668 ac_fn_c_try_run ()
1669 {
1670   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671   if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674   *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678   (eval "$ac_link") 2>&5
1679   ac_status=$?
1680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682   { { case "(($ac_try" in
1683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684   *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688   (eval "$ac_try") 2>&5
1689   ac_status=$?
1690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691   test $ac_status = 0; }; }; then :
1692   ac_retval=0
1693 else
1694   $as_echo "$as_me: program exited with status $ac_status" >&5
1695        $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698        ac_retval=$ac_status
1699 fi
1700   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702   as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_run
1705
1706 # ac_fn_c_check_func LINENO FUNC VAR
1707 # ----------------------------------
1708 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1709 ac_fn_c_check_func ()
1710 {
1711   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715   $as_echo_n "(cached) " >&6
1716 else
1717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h.  */
1719 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1721 #define $2 innocuous_$2
1722
1723 /* System header to define __stub macros and hopefully few prototypes,
1724     which can conflict with char $2 (); below.
1725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726     <limits.h> exists even on freestanding compilers.  */
1727
1728 #ifdef __STDC__
1729 # include <limits.h>
1730 #else
1731 # include <assert.h>
1732 #endif
1733
1734 #undef $2
1735
1736 /* Override any GCC internal prototype to avoid an error.
1737    Use char because int might match the return type of a GCC
1738    builtin and then its argument prototype would still apply.  */
1739 #ifdef __cplusplus
1740 extern "C"
1741 #endif
1742 char $2 ();
1743 /* The GNU C library defines this for functions which it implements
1744     to always fail with ENOSYS.  Some functions are actually named
1745     something starting with __ and the normal name is an alias.  */
1746 #if defined __stub_$2 || defined __stub___$2
1747 choke me
1748 #endif
1749
1750 int
1751 main ()
1752 {
1753 return $2 ();
1754   ;
1755   return 0;
1756 }
1757 _ACEOF
1758 if ac_fn_c_try_link "$LINENO"; then :
1759   eval "$3=yes"
1760 else
1761   eval "$3=no"
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext \
1764     conftest$ac_exeext conftest.$ac_ext
1765 fi
1766 eval ac_res=\$$3
1767                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771 } # ac_fn_c_check_func
1772 cat >config.log <<_ACEOF
1773 This file contains any messages produced by compilers while
1774 running configure, to aid debugging if configure makes a mistake.
1775
1776 It was created by sample_plugin $as_me 1.0, which was
1777 generated by GNU Autoconf 2.69.  Invocation command line was
1778
1779   $ $0 $@
1780
1781 _ACEOF
1782 exec 5>>config.log
1783 {
1784 cat <<_ASUNAME
1785 ## --------- ##
1786 ## Platform. ##
1787 ## --------- ##
1788
1789 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1790 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1791 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1792 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1793 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1794
1795 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1796 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1797
1798 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1799 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1800 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1801 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1802 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1803 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1804 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1805
1806 _ASUNAME
1807
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 for as_dir in $PATH
1810 do
1811   IFS=$as_save_IFS
1812   test -z "$as_dir" && as_dir=.
1813     $as_echo "PATH: $as_dir"
1814   done
1815 IFS=$as_save_IFS
1816
1817 } >&5
1818
1819 cat >&5 <<_ACEOF
1820
1821
1822 ## ----------- ##
1823 ## Core tests. ##
1824 ## ----------- ##
1825
1826 _ACEOF
1827
1828
1829 # Keep a trace of the command line.
1830 # Strip out --no-create and --no-recursion so they do not pile up.
1831 # Strip out --silent because we don't want to record it for future runs.
1832 # Also quote any args containing shell meta-characters.
1833 # Make two passes to allow for proper duplicate-argument suppression.
1834 ac_configure_args=
1835 ac_configure_args0=
1836 ac_configure_args1=
1837 ac_must_keep_next=false
1838 for ac_pass in 1 2
1839 do
1840   for ac_arg
1841   do
1842     case $ac_arg in
1843     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1844     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1845     | -silent | --silent | --silen | --sile | --sil)
1846       continue ;;
1847     *\'*)
1848       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1849     esac
1850     case $ac_pass in
1851     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1852     2)
1853       as_fn_append ac_configure_args1 " '$ac_arg'"
1854       if test $ac_must_keep_next = true; then
1855         ac_must_keep_next=false # Got value, back to normal.
1856       else
1857         case $ac_arg in
1858           *=* | --config-cache | -C | -disable-* | --disable-* \
1859           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1860           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1861           | -with-* | --with-* | -without-* | --without-* | --x)
1862             case "$ac_configure_args0 " in
1863               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1864             esac
1865             ;;
1866           -* ) ac_must_keep_next=true ;;
1867         esac
1868       fi
1869       as_fn_append ac_configure_args " '$ac_arg'"
1870       ;;
1871     esac
1872   done
1873 done
1874 { ac_configure_args0=; unset ac_configure_args0;}
1875 { ac_configure_args1=; unset ac_configure_args1;}
1876
1877 # When interrupted or exit'd, cleanup temporary files, and complete
1878 # config.log.  We remove comments because anyway the quotes in there
1879 # would cause problems or look ugly.
1880 # WARNING: Use '\'' to represent an apostrophe within the trap.
1881 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1882 trap 'exit_status=$?
1883   # Save into config.log some information that might help in debugging.
1884   {
1885     echo
1886
1887     $as_echo "## ---------------- ##
1888 ## Cache variables. ##
1889 ## ---------------- ##"
1890     echo
1891     # The following way of writing the cache mishandles newlines in values,
1892 (
1893   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1894     eval ac_val=\$$ac_var
1895     case $ac_val in #(
1896     *${as_nl}*)
1897       case $ac_var in #(
1898       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1899 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1900       esac
1901       case $ac_var in #(
1902       _ | IFS | as_nl) ;; #(
1903       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1904       *) { eval $ac_var=; unset $ac_var;} ;;
1905       esac ;;
1906     esac
1907   done
1908   (set) 2>&1 |
1909     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1910     *${as_nl}ac_space=\ *)
1911       sed -n \
1912         "s/'\''/'\''\\\\'\'''\''/g;
1913           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1914       ;; #(
1915     *)
1916       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1917       ;;
1918     esac |
1919     sort
1920 )
1921     echo
1922
1923     $as_echo "## ----------------- ##
1924 ## Output variables. ##
1925 ## ----------------- ##"
1926     echo
1927     for ac_var in $ac_subst_vars
1928     do
1929       eval ac_val=\$$ac_var
1930       case $ac_val in
1931       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1932       esac
1933       $as_echo "$ac_var='\''$ac_val'\''"
1934     done | sort
1935     echo
1936
1937     if test -n "$ac_subst_files"; then
1938       $as_echo "## ------------------- ##
1939 ## File substitutions. ##
1940 ## ------------------- ##"
1941       echo
1942       for ac_var in $ac_subst_files
1943       do
1944         eval ac_val=\$$ac_var
1945         case $ac_val in
1946         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1947         esac
1948         $as_echo "$ac_var='\''$ac_val'\''"
1949       done | sort
1950       echo
1951     fi
1952
1953     if test -s confdefs.h; then
1954       $as_echo "## ----------- ##
1955 ## confdefs.h. ##
1956 ## ----------- ##"
1957       echo
1958       cat confdefs.h
1959       echo
1960     fi
1961     test "$ac_signal" != 0 &&
1962       $as_echo "$as_me: caught signal $ac_signal"
1963     $as_echo "$as_me: exit $exit_status"
1964   } >&5
1965   rm -f core *.core core.conftest.* &&
1966     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1967     exit $exit_status
1968 ' 0
1969 for ac_signal in 1 2 13 15; do
1970   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1971 done
1972 ac_signal=0
1973
1974 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1975 rm -f -r conftest* confdefs.h
1976
1977 $as_echo "/* confdefs.h */" > confdefs.h
1978
1979 # Predefined preprocessor variables.
1980
1981 cat >>confdefs.h <<_ACEOF
1982 #define PACKAGE_NAME "$PACKAGE_NAME"
1983 _ACEOF
1984
1985 cat >>confdefs.h <<_ACEOF
1986 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1987 _ACEOF
1988
1989 cat >>confdefs.h <<_ACEOF
1990 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1991 _ACEOF
1992
1993 cat >>confdefs.h <<_ACEOF
1994 #define PACKAGE_STRING "$PACKAGE_STRING"
1995 _ACEOF
1996
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1999 _ACEOF
2000
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE_URL "$PACKAGE_URL"
2003 _ACEOF
2004
2005
2006 # Let the site file select an alternate cache file if it wants to.
2007 # Prefer an explicitly selected file to automatically selected ones.
2008 ac_site_file1=NONE
2009 ac_site_file2=NONE
2010 if test -n "$CONFIG_SITE"; then
2011   # We do not want a PATH search for config.site.
2012   case $CONFIG_SITE in #((
2013     -*)  ac_site_file1=./$CONFIG_SITE;;
2014     */*) ac_site_file1=$CONFIG_SITE;;
2015     *)   ac_site_file1=./$CONFIG_SITE;;
2016   esac
2017 elif test "x$prefix" != xNONE; then
2018   ac_site_file1=$prefix/share/config.site
2019   ac_site_file2=$prefix/etc/config.site
2020 else
2021   ac_site_file1=$ac_default_prefix/share/config.site
2022   ac_site_file2=$ac_default_prefix/etc/config.site
2023 fi
2024 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2025 do
2026   test "x$ac_site_file" = xNONE && continue
2027   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2028     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2029 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2030     sed 's/^/| /' "$ac_site_file" >&5
2031     . "$ac_site_file" \
2032       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2034 as_fn_error $? "failed to load site script $ac_site_file
2035 See \`config.log' for more details" "$LINENO" 5; }
2036   fi
2037 done
2038
2039 if test -r "$cache_file"; then
2040   # Some versions of bash will fail to source /dev/null (special files
2041   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2042   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2043     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2044 $as_echo "$as_me: loading cache $cache_file" >&6;}
2045     case $cache_file in
2046       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2047       *)                      . "./$cache_file";;
2048     esac
2049   fi
2050 else
2051   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2052 $as_echo "$as_me: creating cache $cache_file" >&6;}
2053   >$cache_file
2054 fi
2055
2056 # Check that the precious variables saved in the cache have kept the same
2057 # value.
2058 ac_cache_corrupted=false
2059 for ac_var in $ac_precious_vars; do
2060   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2061   eval ac_new_set=\$ac_env_${ac_var}_set
2062   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2063   eval ac_new_val=\$ac_env_${ac_var}_value
2064   case $ac_old_set,$ac_new_set in
2065     set,)
2066       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2067 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2068       ac_cache_corrupted=: ;;
2069     ,set)
2070       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2071 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2072       ac_cache_corrupted=: ;;
2073     ,);;
2074     *)
2075       if test "x$ac_old_val" != "x$ac_new_val"; then
2076         # differences in whitespace do not lead to failure.
2077         ac_old_val_w=`echo x $ac_old_val`
2078         ac_new_val_w=`echo x $ac_new_val`
2079         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2080           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2081 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2082           ac_cache_corrupted=:
2083         else
2084           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2085 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2086           eval $ac_var=\$ac_old_val
2087         fi
2088         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2089 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2090         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2091 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2092       fi;;
2093   esac
2094   # Pass precious variables to config.status.
2095   if test "$ac_new_set" = set; then
2096     case $ac_new_val in
2097     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2098     *) ac_arg=$ac_var=$ac_new_val ;;
2099     esac
2100     case " $ac_configure_args " in
2101       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2102       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2103     esac
2104   fi
2105 done
2106 if $ac_cache_corrupted; then
2107   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2109   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2110 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2111   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2112 fi
2113 ## -------------------- ##
2114 ## Main body of script. ##
2115 ## -------------------- ##
2116
2117 ac_ext=c
2118 ac_cpp='$CPP $CPPFLAGS'
2119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2122
2123
2124 am__api_version='1.14'
2125
2126 ac_aux_dir=
2127 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2128   if test -f "$ac_dir/install-sh"; then
2129     ac_aux_dir=$ac_dir
2130     ac_install_sh="$ac_aux_dir/install-sh -c"
2131     break
2132   elif test -f "$ac_dir/install.sh"; then
2133     ac_aux_dir=$ac_dir
2134     ac_install_sh="$ac_aux_dir/install.sh -c"
2135     break
2136   elif test -f "$ac_dir/shtool"; then
2137     ac_aux_dir=$ac_dir
2138     ac_install_sh="$ac_aux_dir/shtool install -c"
2139     break
2140   fi
2141 done
2142 if test -z "$ac_aux_dir"; then
2143   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2144 fi
2145
2146 # These three variables are undocumented and unsupported,
2147 # and are intended to be withdrawn in a future Autoconf release.
2148 # They can cause serious problems if a builder's source tree is in a directory
2149 # whose full name contains unusual characters.
2150 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2151 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2152 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2153
2154
2155 # Find a good install program.  We prefer a C program (faster),
2156 # so one script is as good as another.  But avoid the broken or
2157 # incompatible versions:
2158 # SysV /etc/install, /usr/sbin/install
2159 # SunOS /usr/etc/install
2160 # IRIX /sbin/install
2161 # AIX /bin/install
2162 # AmigaOS /C/install, which installs bootblocks on floppy discs
2163 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2164 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2165 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2166 # OS/2's system install, which has a completely different semantic
2167 # ./install, which can be erroneously created by make from ./install.sh.
2168 # Reject install programs that cannot install multiple files.
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2170 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2171 if test -z "$INSTALL"; then
2172 if ${ac_cv_path_install+:} false; then :
2173   $as_echo_n "(cached) " >&6
2174 else
2175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178   IFS=$as_save_IFS
2179   test -z "$as_dir" && as_dir=.
2180     # Account for people who put trailing slashes in PATH elements.
2181 case $as_dir/ in #((
2182   ./ | .// | /[cC]/* | \
2183   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2184   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2185   /usr/ucb/* ) ;;
2186   *)
2187     # OSF1 and SCO ODT 3.0 have their own names for install.
2188     # Don't use installbsd from OSF since it installs stuff as root
2189     # by default.
2190     for ac_prog in ginstall scoinst install; do
2191       for ac_exec_ext in '' $ac_executable_extensions; do
2192         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2193           if test $ac_prog = install &&
2194             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2195             # AIX install.  It has an incompatible calling convention.
2196             :
2197           elif test $ac_prog = install &&
2198             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2199             # program-specific install script used by HP pwplus--don't use.
2200             :
2201           else
2202             rm -rf conftest.one conftest.two conftest.dir
2203             echo one > conftest.one
2204             echo two > conftest.two
2205             mkdir conftest.dir
2206             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2207               test -s conftest.one && test -s conftest.two &&
2208               test -s conftest.dir/conftest.one &&
2209               test -s conftest.dir/conftest.two
2210             then
2211               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2212               break 3
2213             fi
2214           fi
2215         fi
2216       done
2217     done
2218     ;;
2219 esac
2220
2221   done
2222 IFS=$as_save_IFS
2223
2224 rm -rf conftest.one conftest.two conftest.dir
2225
2226 fi
2227   if test "${ac_cv_path_install+set}" = set; then
2228     INSTALL=$ac_cv_path_install
2229   else
2230     # As a last resort, use the slow shell script.  Don't cache a
2231     # value for INSTALL within a source directory, because that will
2232     # break other packages using the cache if that directory is
2233     # removed, or if the value is a relative name.
2234     INSTALL=$ac_install_sh
2235   fi
2236 fi
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2238 $as_echo "$INSTALL" >&6; }
2239
2240 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2241 # It thinks the first close brace ends the variable substitution.
2242 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2243
2244 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2245
2246 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2247
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2249 $as_echo_n "checking whether build environment is sane... " >&6; }
2250 # Reject unsafe characters in $srcdir or the absolute working directory
2251 # name.  Accept space and tab only in the latter.
2252 am_lf='
2253 '
2254 case `pwd` in
2255   *[\\\"\#\$\&\'\`$am_lf]*)
2256     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2257 esac
2258 case $srcdir in
2259   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2260     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2261 esac
2262
2263 # Do 'set' in a subshell so we don't clobber the current shell's
2264 # arguments.  Must try -L first in case configure is actually a
2265 # symlink; some systems play weird games with the mod time of symlinks
2266 # (eg FreeBSD returns the mod time of the symlink's containing
2267 # directory).
2268 if (
2269    am_has_slept=no
2270    for am_try in 1 2; do
2271      echo "timestamp, slept: $am_has_slept" > conftest.file
2272      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2273      if test "$*" = "X"; then
2274         # -L didn't work.
2275         set X `ls -t "$srcdir/configure" conftest.file`
2276      fi
2277      if test "$*" != "X $srcdir/configure conftest.file" \
2278         && test "$*" != "X conftest.file $srcdir/configure"; then
2279
2280         # If neither matched, then we have a broken ls.  This can happen
2281         # if, for instance, CONFIG_SHELL is bash and it inherits a
2282         # broken ls alias from the environment.  This has actually
2283         # happened.  Such a system could not be considered "sane".
2284         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2285   alias in your environment" "$LINENO" 5
2286      fi
2287      if test "$2" = conftest.file || test $am_try -eq 2; then
2288        break
2289      fi
2290      # Just in case.
2291      sleep 1
2292      am_has_slept=yes
2293    done
2294    test "$2" = conftest.file
2295    )
2296 then
2297    # Ok.
2298    :
2299 else
2300    as_fn_error $? "newly created file is older than distributed files!
2301 Check your system clock" "$LINENO" 5
2302 fi
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2304 $as_echo "yes" >&6; }
2305 # If we didn't sleep, we still need to ensure time stamps of config.status and
2306 # generated files are strictly newer.
2307 am_sleep_pid=
2308 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2309   ( sleep 1 ) &
2310   am_sleep_pid=$!
2311 fi
2312
2313 rm -f conftest.file
2314
2315 test "$program_prefix" != NONE &&
2316   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2317 # Use a double $ so make ignores it.
2318 test "$program_suffix" != NONE &&
2319   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2320 # Double any \ or $.
2321 # By default was `s,x,x', remove it if useless.
2322 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2323 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2324
2325 # expand $ac_aux_dir to an absolute path
2326 am_aux_dir=`cd $ac_aux_dir && pwd`
2327
2328 if test x"${MISSING+set}" != xset; then
2329   case $am_aux_dir in
2330   *\ * | *\     *)
2331     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2332   *)
2333     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2334   esac
2335 fi
2336 # Use eval to expand $SHELL
2337 if eval "$MISSING --is-lightweight"; then
2338   am_missing_run="$MISSING "
2339 else
2340   am_missing_run=
2341   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2342 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2343 fi
2344
2345 if test x"${install_sh}" != xset; then
2346   case $am_aux_dir in
2347   *\ * | *\     *)
2348     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2349   *)
2350     install_sh="\${SHELL} $am_aux_dir/install-sh"
2351   esac
2352 fi
2353
2354 # Installed binaries are usually stripped using 'strip' when the user
2355 # run "make install-strip".  However 'strip' might not be the right
2356 # tool to use in cross-compilation environments, therefore Automake
2357 # will honor the 'STRIP' environment variable to overrule this program.
2358 if test "$cross_compiling" != no; then
2359   if test -n "$ac_tool_prefix"; then
2360   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2361 set dummy ${ac_tool_prefix}strip; ac_word=$2
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2363 $as_echo_n "checking for $ac_word... " >&6; }
2364 if ${ac_cv_prog_STRIP+:} false; then :
2365   $as_echo_n "(cached) " >&6
2366 else
2367   if test -n "$STRIP"; then
2368   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2372 do
2373   IFS=$as_save_IFS
2374   test -z "$as_dir" && as_dir=.
2375     for ac_exec_ext in '' $ac_executable_extensions; do
2376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2377     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2379     break 2
2380   fi
2381 done
2382   done
2383 IFS=$as_save_IFS
2384
2385 fi
2386 fi
2387 STRIP=$ac_cv_prog_STRIP
2388 if test -n "$STRIP"; then
2389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2390 $as_echo "$STRIP" >&6; }
2391 else
2392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2393 $as_echo "no" >&6; }
2394 fi
2395
2396
2397 fi
2398 if test -z "$ac_cv_prog_STRIP"; then
2399   ac_ct_STRIP=$STRIP
2400   # Extract the first word of "strip", so it can be a program name with args.
2401 set dummy strip; ac_word=$2
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2403 $as_echo_n "checking for $ac_word... " >&6; }
2404 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2405   $as_echo_n "(cached) " >&6
2406 else
2407   if test -n "$ac_ct_STRIP"; then
2408   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2409 else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2412 do
2413   IFS=$as_save_IFS
2414   test -z "$as_dir" && as_dir=.
2415     for ac_exec_ext in '' $ac_executable_extensions; do
2416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417     ac_cv_prog_ac_ct_STRIP="strip"
2418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2419     break 2
2420   fi
2421 done
2422   done
2423 IFS=$as_save_IFS
2424
2425 fi
2426 fi
2427 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2428 if test -n "$ac_ct_STRIP"; then
2429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2430 $as_echo "$ac_ct_STRIP" >&6; }
2431 else
2432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2433 $as_echo "no" >&6; }
2434 fi
2435
2436   if test "x$ac_ct_STRIP" = x; then
2437     STRIP=":"
2438   else
2439     case $cross_compiling:$ac_tool_warned in
2440 yes:)
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2443 ac_tool_warned=yes ;;
2444 esac
2445     STRIP=$ac_ct_STRIP
2446   fi
2447 else
2448   STRIP="$ac_cv_prog_STRIP"
2449 fi
2450
2451 fi
2452 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2453
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2455 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2456 if test -z "$MKDIR_P"; then
2457   if ${ac_cv_path_mkdir+:} false; then :
2458   $as_echo_n "(cached) " >&6
2459 else
2460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2462 do
2463   IFS=$as_save_IFS
2464   test -z "$as_dir" && as_dir=.
2465     for ac_prog in mkdir gmkdir; do
2466          for ac_exec_ext in '' $ac_executable_extensions; do
2467            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2468            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2469              'mkdir (GNU coreutils) '* | \
2470              'mkdir (coreutils) '* | \
2471              'mkdir (fileutils) '4.1*)
2472                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2473                break 3;;
2474            esac
2475          done
2476        done
2477   done
2478 IFS=$as_save_IFS
2479
2480 fi
2481
2482   test -d ./--version && rmdir ./--version
2483   if test "${ac_cv_path_mkdir+set}" = set; then
2484     MKDIR_P="$ac_cv_path_mkdir -p"
2485   else
2486     # As a last resort, use the slow shell script.  Don't cache a
2487     # value for MKDIR_P within a source directory, because that will
2488     # break other packages using the cache if that directory is
2489     # removed, or if the value is a relative name.
2490     MKDIR_P="$ac_install_sh -d"
2491   fi
2492 fi
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2494 $as_echo "$MKDIR_P" >&6; }
2495
2496 for ac_prog in gawk mawk nawk awk
2497 do
2498   # Extract the first word of "$ac_prog", so it can be a program name with args.
2499 set dummy $ac_prog; ac_word=$2
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if ${ac_cv_prog_AWK+:} false; then :
2503   $as_echo_n "(cached) " >&6
2504 else
2505   if test -n "$AWK"; then
2506   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511   IFS=$as_save_IFS
2512   test -z "$as_dir" && as_dir=.
2513     for ac_exec_ext in '' $ac_executable_extensions; do
2514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515     ac_cv_prog_AWK="$ac_prog"
2516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517     break 2
2518   fi
2519 done
2520   done
2521 IFS=$as_save_IFS
2522
2523 fi
2524 fi
2525 AWK=$ac_cv_prog_AWK
2526 if test -n "$AWK"; then
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2528 $as_echo "$AWK" >&6; }
2529 else
2530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2532 fi
2533
2534
2535   test -n "$AWK" && break
2536 done
2537
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2539 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2540 set x ${MAKE-make}
2541 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2542 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2543   $as_echo_n "(cached) " >&6
2544 else
2545   cat >conftest.make <<\_ACEOF
2546 SHELL = /bin/sh
2547 all:
2548         @echo '@@@%%%=$(MAKE)=@@@%%%'
2549 _ACEOF
2550 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2551 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2552   *@@@%%%=?*=@@@%%%*)
2553     eval ac_cv_prog_make_${ac_make}_set=yes;;
2554   *)
2555     eval ac_cv_prog_make_${ac_make}_set=no;;
2556 esac
2557 rm -f conftest.make
2558 fi
2559 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2561 $as_echo "yes" >&6; }
2562   SET_MAKE=
2563 else
2564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565 $as_echo "no" >&6; }
2566   SET_MAKE="MAKE=${MAKE-make}"
2567 fi
2568
2569 rm -rf .tst 2>/dev/null
2570 mkdir .tst 2>/dev/null
2571 if test -d .tst; then
2572   am__leading_dot=.
2573 else
2574   am__leading_dot=_
2575 fi
2576 rmdir .tst 2>/dev/null
2577
2578 # Check whether --enable-silent-rules was given.
2579 if test "${enable_silent_rules+set}" = set; then :
2580   enableval=$enable_silent_rules;
2581 fi
2582
2583 case $enable_silent_rules in # (((
2584   yes) AM_DEFAULT_VERBOSITY=0;;
2585    no) AM_DEFAULT_VERBOSITY=1;;
2586     *) AM_DEFAULT_VERBOSITY=1;;
2587 esac
2588 am_make=${MAKE-make}
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2590 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2591 if ${am_cv_make_support_nested_variables+:} false; then :
2592   $as_echo_n "(cached) " >&6
2593 else
2594   if $as_echo 'TRUE=$(BAR$(V))
2595 BAR0=false
2596 BAR1=true
2597 V=1
2598 am__doit:
2599         @$(TRUE)
2600 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2601   am_cv_make_support_nested_variables=yes
2602 else
2603   am_cv_make_support_nested_variables=no
2604 fi
2605 fi
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2607 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2608 if test $am_cv_make_support_nested_variables = yes; then
2609     AM_V='$(V)'
2610   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2611 else
2612   AM_V=$AM_DEFAULT_VERBOSITY
2613   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2614 fi
2615 AM_BACKSLASH='\'
2616
2617 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2618   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2619   # is not polluted with repeated "-I."
2620   am__isrc=' -I$(srcdir)'
2621   # test to see if srcdir already configured
2622   if test -f $srcdir/config.status; then
2623     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2624   fi
2625 fi
2626
2627 # test whether we have cygpath
2628 if test -z "$CYGPATH_W"; then
2629   if (cygpath --version) >/dev/null 2>/dev/null; then
2630     CYGPATH_W='cygpath -w'
2631   else
2632     CYGPATH_W=echo
2633   fi
2634 fi
2635
2636
2637 # Define the identity of the package.
2638  PACKAGE='sample_plugin'
2639  VERSION='1.0'
2640
2641
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE "$PACKAGE"
2644 _ACEOF
2645
2646
2647 cat >>confdefs.h <<_ACEOF
2648 #define VERSION "$VERSION"
2649 _ACEOF
2650
2651 # Some tools Automake needs.
2652
2653 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2654
2655
2656 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2657
2658
2659 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2660
2661
2662 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2663
2664
2665 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2666
2667 # For better backward compatibility.  To be removed once Automake 1.9.x
2668 # dies out for good.  For more background, see:
2669 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2670 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2671 mkdir_p='$(MKDIR_P)'
2672
2673 # We need awk for the "check" target.  The system "awk" is bad on
2674 # some platforms.
2675 # Always define AMTAR for backward compatibility.  Yes, it's still used
2676 # in the wild :-(  We should find a proper way to deprecate it ...
2677 AMTAR='$${TAR-tar}'
2678
2679
2680 # We'll loop over all known methods to create a tar archive until one works.
2681 _am_tools='gnutar  pax cpio none'
2682
2683 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2684
2685
2686
2687
2688
2689
2690 # POSIX will say in a future version that running "rm -f" with no argument
2691 # is OK; and we want to be able to make that assumption in our Makefile
2692 # recipes.  So use an aggressive probe to check that the usage we want is
2693 # actually supported "in the wild" to an acceptable degree.
2694 # See automake bug#10828.
2695 # To make any issue more visible, cause the running configure to be aborted
2696 # by default if the 'rm' program in use doesn't match our expectations; the
2697 # user can still override this though.
2698 if rm -f && rm -fr && rm -rf; then : OK; else
2699   cat >&2 <<'END'
2700 Oops!
2701
2702 Your 'rm' program seems unable to run without file operands specified
2703 on the command line, even when the '-f' option is present.  This is contrary
2704 to the behaviour of most rm programs out there, and not conforming with
2705 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2706
2707 Please tell bug-automake@gnu.org about your system, including the value
2708 of your $PATH and any error possibly output before this message.  This
2709 can help us improve future automake versions.
2710
2711 END
2712   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2713     echo 'Configuration will proceed anyway, since you have set the' >&2
2714     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2715     echo >&2
2716   else
2717     cat >&2 <<'END'
2718 Aborting the configuration process, to ensure you take notice of the issue.
2719
2720 You can download and install GNU coreutils to get an 'rm' implementation
2721 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2722
2723 If you want to complete the configuration process using your problematic
2724 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2725 to "yes", and re-run configure.
2726
2727 END
2728     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2729   fi
2730 fi
2731
2732 case `pwd` in
2733   *\ * | *\     *)
2734     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2735 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2736 esac
2737
2738
2739
2740 macro_version='2.4.2'
2741 macro_revision='1.3337'
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755 ltmain="$ac_aux_dir/ltmain.sh"
2756
2757 # Make sure we can run config.sub.
2758 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2759   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2760
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2762 $as_echo_n "checking build system type... " >&6; }
2763 if ${ac_cv_build+:} false; then :
2764   $as_echo_n "(cached) " >&6
2765 else
2766   ac_build_alias=$build_alias
2767 test "x$ac_build_alias" = x &&
2768   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2769 test "x$ac_build_alias" = x &&
2770   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2771 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2772   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2773
2774 fi
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2776 $as_echo "$ac_cv_build" >&6; }
2777 case $ac_cv_build in
2778 *-*-*) ;;
2779 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2780 esac
2781 build=$ac_cv_build
2782 ac_save_IFS=$IFS; IFS='-'
2783 set x $ac_cv_build
2784 shift
2785 build_cpu=$1
2786 build_vendor=$2
2787 shift; shift
2788 # Remember, the first character of IFS is used to create $*,
2789 # except with old shells:
2790 build_os=$*
2791 IFS=$ac_save_IFS
2792 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2793
2794
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2796 $as_echo_n "checking host system type... " >&6; }
2797 if ${ac_cv_host+:} false; then :
2798   $as_echo_n "(cached) " >&6
2799 else
2800   if test "x$host_alias" = x; then
2801   ac_cv_host=$ac_cv_build
2802 else
2803   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2804     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2805 fi
2806
2807 fi
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2809 $as_echo "$ac_cv_host" >&6; }
2810 case $ac_cv_host in
2811 *-*-*) ;;
2812 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2813 esac
2814 host=$ac_cv_host
2815 ac_save_IFS=$IFS; IFS='-'
2816 set x $ac_cv_host
2817 shift
2818 host_cpu=$1
2819 host_vendor=$2
2820 shift; shift
2821 # Remember, the first character of IFS is used to create $*,
2822 # except with old shells:
2823 host_os=$*
2824 IFS=$ac_save_IFS
2825 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2826
2827
2828 # Backslashify metacharacters that are still active within
2829 # double-quoted strings.
2830 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2831
2832 # Same as above, but do not quote variable references.
2833 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2834
2835 # Sed substitution to delay expansion of an escaped shell variable in a
2836 # double_quote_subst'ed string.
2837 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2838
2839 # Sed substitution to delay expansion of an escaped single quote.
2840 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2841
2842 # Sed substitution to avoid accidental globbing in evaled expressions
2843 no_glob_subst='s/\*/\\\*/g'
2844
2845 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2846 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2847 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2848
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2850 $as_echo_n "checking how to print strings... " >&6; }
2851 # Test print first, because it will be a builtin if present.
2852 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2853    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2854   ECHO='print -r --'
2855 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2856   ECHO='printf %s\n'
2857 else
2858   # Use this function as a fallback that always works.
2859   func_fallback_echo ()
2860   {
2861     eval 'cat <<_LTECHO_EOF
2862 $1
2863 _LTECHO_EOF'
2864   }
2865   ECHO='func_fallback_echo'
2866 fi
2867
2868 # func_echo_all arg...
2869 # Invoke $ECHO with all args, space-separated.
2870 func_echo_all ()
2871 {
2872     $ECHO ""
2873 }
2874
2875 case "$ECHO" in
2876   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2877 $as_echo "printf" >&6; } ;;
2878   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2879 $as_echo "print -r" >&6; } ;;
2880   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2881 $as_echo "cat" >&6; } ;;
2882 esac
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897 DEPDIR="${am__leading_dot}deps"
2898
2899 ac_config_commands="$ac_config_commands depfiles"
2900
2901
2902 am_make=${MAKE-make}
2903 cat > confinc << 'END'
2904 am__doit:
2905         @echo this is the am__doit target
2906 .PHONY: am__doit
2907 END
2908 # If we don't find an include directive, just comment out the code.
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2910 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2911 am__include="#"
2912 am__quote=
2913 _am_result=none
2914 # First try GNU make style include.
2915 echo "include confinc" > confmf
2916 # Ignore all kinds of additional output from 'make'.
2917 case `$am_make -s -f confmf 2> /dev/null` in #(
2918 *the\ am__doit\ target*)
2919   am__include=include
2920   am__quote=
2921   _am_result=GNU
2922   ;;
2923 esac
2924 # Now try BSD make style include.
2925 if test "$am__include" = "#"; then
2926    echo '.include "confinc"' > confmf
2927    case `$am_make -s -f confmf 2> /dev/null` in #(
2928    *the\ am__doit\ target*)
2929      am__include=.include
2930      am__quote="\""
2931      _am_result=BSD
2932      ;;
2933    esac
2934 fi
2935
2936
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2938 $as_echo "$_am_result" >&6; }
2939 rm -f confinc confmf
2940
2941 # Check whether --enable-dependency-tracking was given.
2942 if test "${enable_dependency_tracking+set}" = set; then :
2943   enableval=$enable_dependency_tracking;
2944 fi
2945
2946 if test "x$enable_dependency_tracking" != xno; then
2947   am_depcomp="$ac_aux_dir/depcomp"
2948   AMDEPBACKSLASH='\'
2949   am__nodep='_no'
2950 fi
2951  if test "x$enable_dependency_tracking" != xno; then
2952   AMDEP_TRUE=
2953   AMDEP_FALSE='#'
2954 else
2955   AMDEP_TRUE='#'
2956   AMDEP_FALSE=
2957 fi
2958
2959
2960 ac_ext=c
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 if test -n "$ac_tool_prefix"; then
2966   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_CC+:} false; then :
2971   $as_echo_n "(cached) " >&6
2972 else
2973   if test -n "$CC"; then
2974   ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979   IFS=$as_save_IFS
2980   test -z "$as_dir" && as_dir=.
2981     for ac_exec_ext in '' $ac_executable_extensions; do
2982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985     break 2
2986   fi
2987 done
2988   done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 CC=$ac_cv_prog_CC
2994 if test -n "$CC"; then
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2997 else
2998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002
3003 fi
3004 if test -z "$ac_cv_prog_CC"; then
3005   ac_ct_CC=$CC
3006   # Extract the first word of "gcc", so it can be a program name with args.
3007 set dummy gcc; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3011   $as_echo_n "(cached) " >&6
3012 else
3013   if test -n "$ac_ct_CC"; then
3014   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019   IFS=$as_save_IFS
3020   test -z "$as_dir" && as_dir=.
3021     for ac_exec_ext in '' $ac_executable_extensions; do
3022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023     ac_cv_prog_ac_ct_CC="gcc"
3024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025     break 2
3026   fi
3027 done
3028   done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3034 if test -n "$ac_ct_CC"; then
3035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3036 $as_echo "$ac_ct_CC" >&6; }
3037 else
3038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3040 fi
3041
3042   if test "x$ac_ct_CC" = x; then
3043     CC=""
3044   else
3045     case $cross_compiling:$ac_tool_warned in
3046 yes:)
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049 ac_tool_warned=yes ;;
3050 esac
3051     CC=$ac_ct_CC
3052   fi
3053 else
3054   CC="$ac_cv_prog_CC"
3055 fi
3056
3057 if test -z "$CC"; then
3058           if test -n "$ac_tool_prefix"; then
3059     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3060 set dummy ${ac_tool_prefix}cc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_CC+:} false; then :
3064   $as_echo_n "(cached) " >&6
3065 else
3066   if test -n "$CC"; then
3067   ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072   IFS=$as_save_IFS
3073   test -z "$as_dir" && as_dir=.
3074     for ac_exec_ext in '' $ac_executable_extensions; do
3075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076     ac_cv_prog_CC="${ac_tool_prefix}cc"
3077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078     break 2
3079   fi
3080 done
3081   done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 CC=$ac_cv_prog_CC
3087 if test -n "$CC"; then
3088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089 $as_echo "$CC" >&6; }
3090 else
3091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095
3096   fi
3097 fi
3098 if test -z "$CC"; then
3099   # Extract the first word of "cc", so it can be a program name with args.
3100 set dummy cc; ac_word=$2
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 $as_echo_n "checking for $ac_word... " >&6; }
3103 if ${ac_cv_prog_CC+:} false; then :
3104   $as_echo_n "(cached) " >&6
3105 else
3106   if test -n "$CC"; then
3107   ac_cv_prog_CC="$CC" # Let the user override the test.
3108 else
3109   ac_prog_rejected=no
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113   IFS=$as_save_IFS
3114   test -z "$as_dir" && as_dir=.
3115     for ac_exec_ext in '' $ac_executable_extensions; do
3116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3118        ac_prog_rejected=yes
3119        continue
3120      fi
3121     ac_cv_prog_CC="cc"
3122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123     break 2
3124   fi
3125 done
3126   done
3127 IFS=$as_save_IFS
3128
3129 if test $ac_prog_rejected = yes; then
3130   # We found a bogon in the path, so make sure we never use it.
3131   set dummy $ac_cv_prog_CC
3132   shift
3133   if test $# != 0; then
3134     # We chose a different compiler from the bogus one.
3135     # However, it has the same basename, so the bogon will be chosen
3136     # first if we set CC to just the basename; use the full file name.
3137     shift
3138     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3139   fi
3140 fi
3141 fi
3142 fi
3143 CC=$ac_cv_prog_CC
3144 if test -n "$CC"; then
3145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3146 $as_echo "$CC" >&6; }
3147 else
3148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 fi
3151
3152
3153 fi
3154 if test -z "$CC"; then
3155   if test -n "$ac_tool_prefix"; then
3156   for ac_prog in cl.exe
3157   do
3158     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_prog_CC+:} false; then :
3163   $as_echo_n "(cached) " >&6
3164 else
3165   if test -n "$CC"; then
3166   ac_cv_prog_CC="$CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171   IFS=$as_save_IFS
3172   test -z "$as_dir" && as_dir=.
3173     for ac_exec_ext in '' $ac_executable_extensions; do
3174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177     break 2
3178   fi
3179 done
3180   done
3181 IFS=$as_save_IFS
3182
3183 fi
3184 fi
3185 CC=$ac_cv_prog_CC
3186 if test -n "$CC"; then
3187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3188 $as_echo "$CC" >&6; }
3189 else
3190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194
3195     test -n "$CC" && break
3196   done
3197 fi
3198 if test -z "$CC"; then
3199   ac_ct_CC=$CC
3200   for ac_prog in cl.exe
3201 do
3202   # Extract the first word of "$ac_prog", so it can be a program name with args.
3203 set dummy $ac_prog; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3207   $as_echo_n "(cached) " >&6
3208 else
3209   if test -n "$ac_ct_CC"; then
3210   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215   IFS=$as_save_IFS
3216   test -z "$as_dir" && as_dir=.
3217     for ac_exec_ext in '' $ac_executable_extensions; do
3218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219     ac_cv_prog_ac_ct_CC="$ac_prog"
3220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221     break 2
3222   fi
3223 done
3224   done
3225 IFS=$as_save_IFS
3226
3227 fi
3228 fi
3229 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3230 if test -n "$ac_ct_CC"; then
3231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3232 $as_echo "$ac_ct_CC" >&6; }
3233 else
3234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 fi
3237
3238
3239   test -n "$ac_ct_CC" && break
3240 done
3241
3242   if test "x$ac_ct_CC" = x; then
3243     CC=""
3244   else
3245     case $cross_compiling:$ac_tool_warned in
3246 yes:)
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3249 ac_tool_warned=yes ;;
3250 esac
3251     CC=$ac_ct_CC
3252   fi
3253 fi
3254
3255 fi
3256
3257
3258 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error $? "no acceptable C compiler found in \$PATH
3261 See \`config.log' for more details" "$LINENO" 5; }
3262
3263 # Provide some information about the compiler.
3264 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3265 set X $ac_compile
3266 ac_compiler=$2
3267 for ac_option in --version -v -V -qversion; do
3268   { { ac_try="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
3276   ac_status=$?
3277   if test -s conftest.err; then
3278     sed '10a\
3279 ... rest of stderr output deleted ...
3280          10q' conftest.err >conftest.er1
3281     cat conftest.er1 >&5
3282   fi
3283   rm -f conftest.er1 conftest.err
3284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285   test $ac_status = 0; }
3286 done
3287
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h.  */
3290
3291 int
3292 main ()
3293 {
3294
3295   ;
3296   return 0;
3297 }
3298 _ACEOF
3299 ac_clean_files_save=$ac_clean_files
3300 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3301 # Try to create an executable without -o first, disregard a.out.
3302 # It will help us diagnose broken compilers, and finding out an intuition
3303 # of exeext.
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3305 $as_echo_n "checking whether the C compiler works... " >&6; }
3306 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3307
3308 # The possible output files:
3309 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3310
3311 ac_rmfiles=
3312 for ac_file in $ac_files
3313 do
3314   case $ac_file in
3315     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3316     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3317   esac
3318 done
3319 rm -f $ac_rmfiles
3320
3321 if { { ac_try="$ac_link_default"
3322 case "(($ac_try" in
3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324   *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328   (eval "$ac_link_default") 2>&5
3329   ac_status=$?
3330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331   test $ac_status = 0; }; then :
3332   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3333 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3334 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3335 # so that the user can short-circuit this test for compilers unknown to
3336 # Autoconf.
3337 for ac_file in $ac_files ''
3338 do
3339   test -f "$ac_file" || continue
3340   case $ac_file in
3341     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3342         ;;
3343     [ab].out )
3344         # We found the default executable, but exeext='' is most
3345         # certainly right.
3346         break;;
3347     *.* )
3348         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3349         then :; else
3350            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3351         fi
3352         # We set ac_cv_exeext here because the later test for it is not
3353         # safe: cross compilers may not add the suffix if given an `-o'
3354         # argument, so we may need to know it at that point already.
3355         # Even if this section looks crufty: it has the advantage of
3356         # actually working.
3357         break;;
3358     * )
3359         break;;
3360   esac
3361 done
3362 test "$ac_cv_exeext" = no && ac_cv_exeext=
3363
3364 else
3365   ac_file=''
3366 fi
3367 if test -z "$ac_file"; then :
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 $as_echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error 77 "C compiler cannot create executables
3376 See \`config.log' for more details" "$LINENO" 5; }
3377 else
3378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3379 $as_echo "yes" >&6; }
3380 fi
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3382 $as_echo_n "checking for C compiler default output file name... " >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3384 $as_echo "$ac_file" >&6; }
3385 ac_exeext=$ac_cv_exeext
3386
3387 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3388 ac_clean_files=$ac_clean_files_save
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3390 $as_echo_n "checking for suffix of executables... " >&6; }
3391 if { { ac_try="$ac_link"
3392 case "(($ac_try" in
3393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394   *) ac_try_echo=$ac_try;;
3395 esac
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398   (eval "$ac_link") 2>&5
3399   ac_status=$?
3400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401   test $ac_status = 0; }; then :
3402   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3403 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3404 # work properly (i.e., refer to `conftest.exe'), while it won't with
3405 # `rm'.
3406 for ac_file in conftest.exe conftest conftest.*; do
3407   test -f "$ac_file" || continue
3408   case $ac_file in
3409     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3410     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3411           break;;
3412     * ) break;;
3413   esac
3414 done
3415 else
3416   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3419 See \`config.log' for more details" "$LINENO" 5; }
3420 fi
3421 rm -f conftest conftest$ac_cv_exeext
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3423 $as_echo "$ac_cv_exeext" >&6; }
3424
3425 rm -f conftest.$ac_ext
3426 EXEEXT=$ac_cv_exeext
3427 ac_exeext=$EXEEXT
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h.  */
3430 #include <stdio.h>
3431 int
3432 main ()
3433 {
3434 FILE *f = fopen ("conftest.out", "w");
3435  return ferror (f) || fclose (f) != 0;
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 ac_clean_files="$ac_clean_files conftest.out"
3442 # Check that the compiler produces executables we can run.  If not, either
3443 # the compiler is broken, or we cross compile.
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3445 $as_echo_n "checking whether we are cross compiling... " >&6; }
3446 if test "$cross_compiling" != yes; then
3447   { { ac_try="$ac_link"
3448 case "(($ac_try" in
3449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450   *) ac_try_echo=$ac_try;;
3451 esac
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 $as_echo "$ac_try_echo"; } >&5
3454   (eval "$ac_link") 2>&5
3455   ac_status=$?
3456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457   test $ac_status = 0; }
3458   if { ac_try='./conftest$ac_cv_exeext'
3459   { { case "(($ac_try" in
3460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461   *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465   (eval "$ac_try") 2>&5
3466   ac_status=$?
3467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468   test $ac_status = 0; }; }; then
3469     cross_compiling=no
3470   else
3471     if test "$cross_compiling" = maybe; then
3472         cross_compiling=yes
3473     else
3474         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476 as_fn_error $? "cannot run C compiled programs.
3477 If you meant to cross compile, use \`--host'.
3478 See \`config.log' for more details" "$LINENO" 5; }
3479     fi
3480   fi
3481 fi
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3483 $as_echo "$cross_compiling" >&6; }
3484
3485 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3486 ac_clean_files=$ac_clean_files_save
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3488 $as_echo_n "checking for suffix of object files... " >&6; }
3489 if ${ac_cv_objext+:} false; then :
3490   $as_echo_n "(cached) " >&6
3491 else
3492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h.  */
3494
3495 int
3496 main ()
3497 {
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 rm -f conftest.o conftest.obj
3504 if { { ac_try="$ac_compile"
3505 case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511   (eval "$ac_compile") 2>&5
3512   ac_status=$?
3513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514   test $ac_status = 0; }; then :
3515   for ac_file in conftest.o conftest.obj conftest.*; do
3516   test -f "$ac_file" || continue;
3517   case $ac_file in
3518     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3519     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3520        break;;
3521   esac
3522 done
3523 else
3524   $as_echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error $? "cannot compute suffix of object files: cannot compile
3530 See \`config.log' for more details" "$LINENO" 5; }
3531 fi
3532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3533 fi
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3535 $as_echo "$ac_cv_objext" >&6; }
3536 OBJEXT=$ac_cv_objext
3537 ac_objext=$OBJEXT
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3539 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3540 if ${ac_cv_c_compiler_gnu+:} false; then :
3541   $as_echo_n "(cached) " >&6
3542 else
3543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h.  */
3545
3546 int
3547 main ()
3548 {
3549 #ifndef __GNUC__
3550        choke me
3551 #endif
3552
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 if ac_fn_c_try_compile "$LINENO"; then :
3558   ac_compiler_gnu=yes
3559 else
3560   ac_compiler_gnu=no
3561 fi
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3564
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3567 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3568 if test $ac_compiler_gnu = yes; then
3569   GCC=yes
3570 else
3571   GCC=
3572 fi
3573 ac_test_CFLAGS=${CFLAGS+set}
3574 ac_save_CFLAGS=$CFLAGS
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3576 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3577 if ${ac_cv_prog_cc_g+:} false; then :
3578   $as_echo_n "(cached) " >&6
3579 else
3580   ac_save_c_werror_flag=$ac_c_werror_flag
3581    ac_c_werror_flag=yes
3582    ac_cv_prog_cc_g=no
3583    CFLAGS="-g"
3584    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h.  */
3586
3587 int
3588 main ()
3589 {
3590
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 if ac_fn_c_try_compile "$LINENO"; then :
3596   ac_cv_prog_cc_g=yes
3597 else
3598   CFLAGS=""
3599       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h.  */
3601
3602 int
3603 main ()
3604 {
3605
3606   ;
3607   return 0;
3608 }
3609 _ACEOF
3610 if ac_fn_c_try_compile "$LINENO"; then :
3611
3612 else
3613   ac_c_werror_flag=$ac_save_c_werror_flag
3614          CFLAGS="-g"
3615          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h.  */
3617
3618 int
3619 main ()
3620 {
3621
3622   ;
3623   return 0;
3624 }
3625 _ACEOF
3626 if ac_fn_c_try_compile "$LINENO"; then :
3627   ac_cv_prog_cc_g=yes
3628 fi
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 fi
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 fi
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634    ac_c_werror_flag=$ac_save_c_werror_flag
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3637 $as_echo "$ac_cv_prog_cc_g" >&6; }
3638 if test "$ac_test_CFLAGS" = set; then
3639   CFLAGS=$ac_save_CFLAGS
3640 elif test $ac_cv_prog_cc_g = yes; then
3641   if test "$GCC" = yes; then
3642     CFLAGS="-g -O2"
3643   else
3644     CFLAGS="-g"
3645   fi
3646 else
3647   if test "$GCC" = yes; then
3648     CFLAGS="-O2"
3649   else
3650     CFLAGS=
3651   fi
3652 fi
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3654 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3655 if ${ac_cv_prog_cc_c89+:} false; then :
3656   $as_echo_n "(cached) " >&6
3657 else
3658   ac_cv_prog_cc_c89=no
3659 ac_save_CC=$CC
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h.  */
3662 #include <stdarg.h>
3663 #include <stdio.h>
3664 struct stat;
3665 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3666 struct buf { int x; };
3667 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3668 static char *e (p, i)
3669      char **p;
3670      int i;
3671 {
3672   return p[i];
3673 }
3674 static char *f (char * (*g) (char **, int), char **p, ...)
3675 {
3676   char *s;
3677   va_list v;
3678   va_start (v,p);
3679   s = g (p, va_arg (v,int));
3680   va_end (v);
3681   return s;
3682 }
3683
3684 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3685    function prototypes and stuff, but not '\xHH' hex character constants.
3686    These don't provoke an error unfortunately, instead are silently treated
3687    as 'x'.  The following induces an error, until -std is added to get
3688    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3689    array size at least.  It's necessary to write '\x00'==0 to get something
3690    that's true only with -std.  */
3691 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3692
3693 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3694    inside strings and character constants.  */
3695 #define FOO(x) 'x'
3696 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3697
3698 int test (int i, double x);
3699 struct s1 {int (*f) (int a);};
3700 struct s2 {int (*f) (double a);};
3701 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3702 int argc;
3703 char **argv;
3704 int
3705 main ()
3706 {
3707 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3708   ;
3709   return 0;
3710 }
3711 _ACEOF
3712 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3713         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3714 do
3715   CC="$ac_save_CC $ac_arg"
3716   if ac_fn_c_try_compile "$LINENO"; then :
3717   ac_cv_prog_cc_c89=$ac_arg
3718 fi
3719 rm -f core conftest.err conftest.$ac_objext
3720   test "x$ac_cv_prog_cc_c89" != "xno" && break
3721 done
3722 rm -f conftest.$ac_ext
3723 CC=$ac_save_CC
3724
3725 fi
3726 # AC_CACHE_VAL
3727 case "x$ac_cv_prog_cc_c89" in
3728   x)
3729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3730 $as_echo "none needed" >&6; } ;;
3731   xno)
3732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3733 $as_echo "unsupported" >&6; } ;;
3734   *)
3735     CC="$CC $ac_cv_prog_cc_c89"
3736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3737 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3738 esac
3739 if test "x$ac_cv_prog_cc_c89" != xno; then :
3740
3741 fi
3742
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3755 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3756 if ${am_cv_prog_cc_c_o+:} false; then :
3757   $as_echo_n "(cached) " >&6
3758 else
3759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h.  */
3761
3762 int
3763 main ()
3764 {
3765
3766   ;
3767   return 0;
3768 }
3769 _ACEOF
3770   # Make sure it works both with $CC and with simple cc.
3771   # Following AC_PROG_CC_C_O, we do the test twice because some
3772   # compilers refuse to overwrite an existing .o file with -o,
3773   # though they will create one.
3774   am_cv_prog_cc_c_o=yes
3775   for am_i in 1 2; do
3776     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3777    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3778    ac_status=$?
3779    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780    (exit $ac_status); } \
3781          && test -f conftest2.$ac_objext; then
3782       : OK
3783     else
3784       am_cv_prog_cc_c_o=no
3785       break
3786     fi
3787   done
3788   rm -f core conftest*
3789   unset am_i
3790 fi
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3792 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3793 if test "$am_cv_prog_cc_c_o" != yes; then
3794    # Losing compiler, so override with the script.
3795    # FIXME: It is wrong to rewrite CC.
3796    # But if we don't then we get into trouble of one sort or another.
3797    # A longer-term fix would be to have automake use am__CC in this case,
3798    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3799    CC="$am_aux_dir/compile $CC"
3800 fi
3801 ac_ext=c
3802 ac_cpp='$CPP $CPPFLAGS'
3803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806
3807
3808 depcc="$CC"   am_compiler_list=
3809
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3811 $as_echo_n "checking dependency style of $depcc... " >&6; }
3812 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3813   $as_echo_n "(cached) " >&6
3814 else
3815   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3816   # We make a subdir and do the tests there.  Otherwise we can end up
3817   # making bogus files that we don't know about and never remove.  For
3818   # instance it was reported that on HP-UX the gcc test will end up
3819   # making a dummy file named 'D' -- because '-MD' means "put the output
3820   # in D".
3821   rm -rf conftest.dir
3822   mkdir conftest.dir
3823   # Copy depcomp to subdir because otherwise we won't find it if we're
3824   # using a relative directory.
3825   cp "$am_depcomp" conftest.dir
3826   cd conftest.dir
3827   # We will build objects and dependencies in a subdirectory because
3828   # it helps to detect inapplicable dependency modes.  For instance
3829   # both Tru64's cc and ICC support -MD to output dependencies as a
3830   # side effect of compilation, but ICC will put the dependencies in
3831   # the current directory while Tru64 will put them in the object
3832   # directory.
3833   mkdir sub
3834
3835   am_cv_CC_dependencies_compiler_type=none
3836   if test "$am_compiler_list" = ""; then
3837      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3838   fi
3839   am__universal=false
3840   case " $depcc " in #(
3841      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3842      esac
3843
3844   for depmode in $am_compiler_list; do
3845     # Setup a source with many dependencies, because some compilers
3846     # like to wrap large dependency lists on column 80 (with \), and
3847     # we should not choose a depcomp mode which is confused by this.
3848     #
3849     # We need to recreate these files for each test, as the compiler may
3850     # overwrite some of them when testing with obscure command lines.
3851     # This happens at least with the AIX C compiler.
3852     : > sub/conftest.c
3853     for i in 1 2 3 4 5 6; do
3854       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3855       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3856       # Solaris 10 /bin/sh.
3857       echo '/* dummy */' > sub/conftst$i.h
3858     done
3859     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3860
3861     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3862     # mode.  It turns out that the SunPro C++ compiler does not properly
3863     # handle '-M -o', and we need to detect this.  Also, some Intel
3864     # versions had trouble with output in subdirs.
3865     am__obj=sub/conftest.${OBJEXT-o}
3866     am__minus_obj="-o $am__obj"
3867     case $depmode in
3868     gcc)
3869       # This depmode causes a compiler race in universal mode.
3870       test "$am__universal" = false || continue
3871       ;;
3872     nosideeffect)
3873       # After this tag, mechanisms are not by side-effect, so they'll
3874       # only be used when explicitly requested.
3875       if test "x$enable_dependency_tracking" = xyes; then
3876         continue
3877       else
3878         break
3879       fi
3880       ;;
3881     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3882       # This compiler won't grok '-c -o', but also, the minuso test has
3883       # not run yet.  These depmodes are late enough in the game, and
3884       # so weak that their functioning should not be impacted.
3885       am__obj=conftest.${OBJEXT-o}
3886       am__minus_obj=
3887       ;;
3888     none) break ;;
3889     esac
3890     if depmode=$depmode \
3891        source=sub/conftest.c object=$am__obj \
3892        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3893        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3894          >/dev/null 2>conftest.err &&
3895        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3896        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3897        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3898        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3899       # icc doesn't choke on unknown options, it will just issue warnings
3900       # or remarks (even with -Werror).  So we grep stderr for any message
3901       # that says an option was ignored or not supported.
3902       # When given -MP, icc 7.0 and 7.1 complain thusly:
3903       #   icc: Command line warning: ignoring option '-M'; no argument required
3904       # The diagnosis changed in icc 8.0:
3905       #   icc: Command line remark: option '-MP' not supported
3906       if (grep 'ignoring option' conftest.err ||
3907           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3908         am_cv_CC_dependencies_compiler_type=$depmode
3909         break
3910       fi
3911     fi
3912   done
3913
3914   cd ..
3915   rm -rf conftest.dir
3916 else
3917   am_cv_CC_dependencies_compiler_type=none
3918 fi
3919
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3922 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3923 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3924
3925  if
3926   test "x$enable_dependency_tracking" != xno \
3927   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3928   am__fastdepCC_TRUE=
3929   am__fastdepCC_FALSE='#'
3930 else
3931   am__fastdepCC_TRUE='#'
3932   am__fastdepCC_FALSE=
3933 fi
3934
3935
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3937 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3938 if ${ac_cv_path_SED+:} false; then :
3939   $as_echo_n "(cached) " >&6
3940 else
3941             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3942      for ac_i in 1 2 3 4 5 6 7; do
3943        ac_script="$ac_script$as_nl$ac_script"
3944      done
3945      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3946      { ac_script=; unset ac_script;}
3947      if test -z "$SED"; then
3948   ac_path_SED_found=false
3949   # Loop through the user's path and test for each of PROGNAME-LIST
3950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3952 do
3953   IFS=$as_save_IFS
3954   test -z "$as_dir" && as_dir=.
3955     for ac_prog in sed gsed; do
3956     for ac_exec_ext in '' $ac_executable_extensions; do
3957       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3958       as_fn_executable_p "$ac_path_SED" || continue
3959 # Check for GNU ac_path_SED and select it if it is found.
3960   # Check for GNU $ac_path_SED
3961 case `"$ac_path_SED" --version 2>&1` in
3962 *GNU*)
3963   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3964 *)
3965   ac_count=0
3966   $as_echo_n 0123456789 >"conftest.in"
3967   while :
3968   do
3969     cat "conftest.in" "conftest.in" >"conftest.tmp"
3970     mv "conftest.tmp" "conftest.in"
3971     cp "conftest.in" "conftest.nl"
3972     $as_echo '' >> "conftest.nl"
3973     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3974     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3975     as_fn_arith $ac_count + 1 && ac_count=$as_val
3976     if test $ac_count -gt ${ac_path_SED_max-0}; then
3977       # Best one so far, save it but keep looking for a better one
3978       ac_cv_path_SED="$ac_path_SED"
3979       ac_path_SED_max=$ac_count
3980     fi
3981     # 10*(2^10) chars as input seems more than enough
3982     test $ac_count -gt 10 && break
3983   done
3984   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3985 esac
3986
3987       $ac_path_SED_found && break 3
3988     done
3989   done
3990   done
3991 IFS=$as_save_IFS
3992   if test -z "$ac_cv_path_SED"; then
3993     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3994   fi
3995 else
3996   ac_cv_path_SED=$SED
3997 fi
3998
3999 fi
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4001 $as_echo "$ac_cv_path_SED" >&6; }
4002  SED="$ac_cv_path_SED"
4003   rm -f conftest.sed
4004
4005 test -z "$SED" && SED=sed
4006 Xsed="$SED -e 1s/^X//"
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4019 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4020 if ${ac_cv_path_GREP+:} false; then :
4021   $as_echo_n "(cached) " >&6
4022 else
4023   if test -z "$GREP"; then
4024   ac_path_GREP_found=false
4025   # Loop through the user's path and test for each of PROGNAME-LIST
4026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4028 do
4029   IFS=$as_save_IFS
4030   test -z "$as_dir" && as_dir=.
4031     for ac_prog in grep ggrep; do
4032     for ac_exec_ext in '' $ac_executable_extensions; do
4033       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4034       as_fn_executable_p "$ac_path_GREP" || continue
4035 # Check for GNU ac_path_GREP and select it if it is found.
4036   # Check for GNU $ac_path_GREP
4037 case `"$ac_path_GREP" --version 2>&1` in
4038 *GNU*)
4039   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4040 *)
4041   ac_count=0
4042   $as_echo_n 0123456789 >"conftest.in"
4043   while :
4044   do
4045     cat "conftest.in" "conftest.in" >"conftest.tmp"
4046     mv "conftest.tmp" "conftest.in"
4047     cp "conftest.in" "conftest.nl"
4048     $as_echo 'GREP' >> "conftest.nl"
4049     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051     as_fn_arith $ac_count + 1 && ac_count=$as_val
4052     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4053       # Best one so far, save it but keep looking for a better one
4054       ac_cv_path_GREP="$ac_path_GREP"
4055       ac_path_GREP_max=$ac_count
4056     fi
4057     # 10*(2^10) chars as input seems more than enough
4058     test $ac_count -gt 10 && break
4059   done
4060   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4061 esac
4062
4063       $ac_path_GREP_found && break 3
4064     done
4065   done
4066   done
4067 IFS=$as_save_IFS
4068   if test -z "$ac_cv_path_GREP"; then
4069     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4070   fi
4071 else
4072   ac_cv_path_GREP=$GREP
4073 fi
4074
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4077 $as_echo "$ac_cv_path_GREP" >&6; }
4078  GREP="$ac_cv_path_GREP"
4079
4080
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4082 $as_echo_n "checking for egrep... " >&6; }
4083 if ${ac_cv_path_EGREP+:} false; then :
4084   $as_echo_n "(cached) " >&6
4085 else
4086   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4087    then ac_cv_path_EGREP="$GREP -E"
4088    else
4089      if test -z "$EGREP"; then
4090   ac_path_EGREP_found=false
4091   # Loop through the user's path and test for each of PROGNAME-LIST
4092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097     for ac_prog in egrep; do
4098     for ac_exec_ext in '' $ac_executable_extensions; do
4099       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4100       as_fn_executable_p "$ac_path_EGREP" || continue
4101 # Check for GNU ac_path_EGREP and select it if it is found.
4102   # Check for GNU $ac_path_EGREP
4103 case `"$ac_path_EGREP" --version 2>&1` in
4104 *GNU*)
4105   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4106 *)
4107   ac_count=0
4108   $as_echo_n 0123456789 >"conftest.in"
4109   while :
4110   do
4111     cat "conftest.in" "conftest.in" >"conftest.tmp"
4112     mv "conftest.tmp" "conftest.in"
4113     cp "conftest.in" "conftest.nl"
4114     $as_echo 'EGREP' >> "conftest.nl"
4115     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4116     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4117     as_fn_arith $ac_count + 1 && ac_count=$as_val
4118     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4119       # Best one so far, save it but keep looking for a better one
4120       ac_cv_path_EGREP="$ac_path_EGREP"
4121       ac_path_EGREP_max=$ac_count
4122     fi
4123     # 10*(2^10) chars as input seems more than enough
4124     test $ac_count -gt 10 && break
4125   done
4126   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4127 esac
4128
4129       $ac_path_EGREP_found && break 3
4130     done
4131   done
4132   done
4133 IFS=$as_save_IFS
4134   if test -z "$ac_cv_path_EGREP"; then
4135     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4136   fi
4137 else
4138   ac_cv_path_EGREP=$EGREP
4139 fi
4140
4141    fi
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4144 $as_echo "$ac_cv_path_EGREP" >&6; }
4145  EGREP="$ac_cv_path_EGREP"
4146
4147
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4149 $as_echo_n "checking for fgrep... " >&6; }
4150 if ${ac_cv_path_FGREP+:} false; then :
4151   $as_echo_n "(cached) " >&6
4152 else
4153   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4154    then ac_cv_path_FGREP="$GREP -F"
4155    else
4156      if test -z "$FGREP"; then
4157   ac_path_FGREP_found=false
4158   # Loop through the user's path and test for each of PROGNAME-LIST
4159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4161 do
4162   IFS=$as_save_IFS
4163   test -z "$as_dir" && as_dir=.
4164     for ac_prog in fgrep; do
4165     for ac_exec_ext in '' $ac_executable_extensions; do
4166       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4167       as_fn_executable_p "$ac_path_FGREP" || continue
4168 # Check for GNU ac_path_FGREP and select it if it is found.
4169   # Check for GNU $ac_path_FGREP
4170 case `"$ac_path_FGREP" --version 2>&1` in
4171 *GNU*)
4172   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4173 *)
4174   ac_count=0
4175   $as_echo_n 0123456789 >"conftest.in"
4176   while :
4177   do
4178     cat "conftest.in" "conftest.in" >"conftest.tmp"
4179     mv "conftest.tmp" "conftest.in"
4180     cp "conftest.in" "conftest.nl"
4181     $as_echo 'FGREP' >> "conftest.nl"
4182     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4183     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4184     as_fn_arith $ac_count + 1 && ac_count=$as_val
4185     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4186       # Best one so far, save it but keep looking for a better one
4187       ac_cv_path_FGREP="$ac_path_FGREP"
4188       ac_path_FGREP_max=$ac_count
4189     fi
4190     # 10*(2^10) chars as input seems more than enough
4191     test $ac_count -gt 10 && break
4192   done
4193   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4194 esac
4195
4196       $ac_path_FGREP_found && break 3
4197     done
4198   done
4199   done
4200 IFS=$as_save_IFS
4201   if test -z "$ac_cv_path_FGREP"; then
4202     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4203   fi
4204 else
4205   ac_cv_path_FGREP=$FGREP
4206 fi
4207
4208    fi
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4211 $as_echo "$ac_cv_path_FGREP" >&6; }
4212  FGREP="$ac_cv_path_FGREP"
4213
4214
4215 test -z "$GREP" && GREP=grep
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235 # Check whether --with-gnu-ld was given.
4236 if test "${with_gnu_ld+set}" = set; then :
4237   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4238 else
4239   with_gnu_ld=no
4240 fi
4241
4242 ac_prog=ld
4243 if test "$GCC" = yes; then
4244   # Check if gcc -print-prog-name=ld gives a path.
4245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4246 $as_echo_n "checking for ld used by $CC... " >&6; }
4247   case $host in
4248   *-*-mingw*)
4249     # gcc leaves a trailing carriage return which upsets mingw
4250     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4251   *)
4252     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4253   esac
4254   case $ac_prog in
4255     # Accept absolute paths.
4256     [\\/]* | ?:[\\/]*)
4257       re_direlt='/[^/][^/]*/\.\./'
4258       # Canonicalize the pathname of ld
4259       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4260       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4261         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4262       done
4263       test -z "$LD" && LD="$ac_prog"
4264       ;;
4265   "")
4266     # If it fails, then pretend we aren't using GCC.
4267     ac_prog=ld
4268     ;;
4269   *)
4270     # If it is relative, then search for the first ld in PATH.
4271     with_gnu_ld=unknown
4272     ;;
4273   esac
4274 elif test "$with_gnu_ld" = yes; then
4275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4276 $as_echo_n "checking for GNU ld... " >&6; }
4277 else
4278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4279 $as_echo_n "checking for non-GNU ld... " >&6; }
4280 fi
4281 if ${lt_cv_path_LD+:} false; then :
4282   $as_echo_n "(cached) " >&6
4283 else
4284   if test -z "$LD"; then
4285   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4286   for ac_dir in $PATH; do
4287     IFS="$lt_save_ifs"
4288     test -z "$ac_dir" && ac_dir=.
4289     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4290       lt_cv_path_LD="$ac_dir/$ac_prog"
4291       # Check to see if the program is GNU ld.  I'd rather use --version,
4292       # but apparently some variants of GNU ld only accept -v.
4293       # Break only if it was the GNU/non-GNU ld that we prefer.
4294       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4295       *GNU* | *'with BFD'*)
4296         test "$with_gnu_ld" != no && break
4297         ;;
4298       *)
4299         test "$with_gnu_ld" != yes && break
4300         ;;
4301       esac
4302     fi
4303   done
4304   IFS="$lt_save_ifs"
4305 else
4306   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4307 fi
4308 fi
4309
4310 LD="$lt_cv_path_LD"
4311 if test -n "$LD"; then
4312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4313 $as_echo "$LD" >&6; }
4314 else
4315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4317 fi
4318 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4320 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4321 if ${lt_cv_prog_gnu_ld+:} false; then :
4322   $as_echo_n "(cached) " >&6
4323 else
4324   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4325 case `$LD -v 2>&1 </dev/null` in
4326 *GNU* | *'with BFD'*)
4327   lt_cv_prog_gnu_ld=yes
4328   ;;
4329 *)
4330   lt_cv_prog_gnu_ld=no
4331   ;;
4332 esac
4333 fi
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4335 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4336 with_gnu_ld=$lt_cv_prog_gnu_ld
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4347 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4348 if ${lt_cv_path_NM+:} false; then :
4349   $as_echo_n "(cached) " >&6
4350 else
4351   if test -n "$NM"; then
4352   # Let the user override the test.
4353   lt_cv_path_NM="$NM"
4354 else
4355   lt_nm_to_check="${ac_tool_prefix}nm"
4356   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4357     lt_nm_to_check="$lt_nm_to_check nm"
4358   fi
4359   for lt_tmp_nm in $lt_nm_to_check; do
4360     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4361     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4362       IFS="$lt_save_ifs"
4363       test -z "$ac_dir" && ac_dir=.
4364       tmp_nm="$ac_dir/$lt_tmp_nm"
4365       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4366         # Check to see if the nm accepts a BSD-compat flag.
4367         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4368         #   nm: unknown option "B" ignored
4369         # Tru64's nm complains that /dev/null is an invalid object file
4370         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4371         */dev/null* | *'Invalid file or object type'*)
4372           lt_cv_path_NM="$tmp_nm -B"
4373           break
4374           ;;
4375         *)
4376           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4377           */dev/null*)
4378             lt_cv_path_NM="$tmp_nm -p"
4379             break
4380             ;;
4381           *)
4382             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4383             continue # so that we can try to find one that supports BSD flags
4384             ;;
4385           esac
4386           ;;
4387         esac
4388       fi
4389     done
4390     IFS="$lt_save_ifs"
4391   done
4392   : ${lt_cv_path_NM=no}
4393 fi
4394 fi
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4396 $as_echo "$lt_cv_path_NM" >&6; }
4397 if test "$lt_cv_path_NM" != "no"; then
4398   NM="$lt_cv_path_NM"
4399 else
4400   # Didn't find any BSD compatible name lister, look for dumpbin.
4401   if test -n "$DUMPBIN"; then :
4402     # Let the user override the test.
4403   else
4404     if test -n "$ac_tool_prefix"; then
4405   for ac_prog in dumpbin "link -dump"
4406   do
4407     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4408 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4410 $as_echo_n "checking for $ac_word... " >&6; }
4411 if ${ac_cv_prog_DUMPBIN+:} false; then :
4412   $as_echo_n "(cached) " >&6
4413 else
4414   if test -n "$DUMPBIN"; then
4415   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422     for ac_exec_ext in '' $ac_executable_extensions; do
4423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426     break 2
4427   fi
4428 done
4429   done
4430 IFS=$as_save_IFS
4431
4432 fi
4433 fi
4434 DUMPBIN=$ac_cv_prog_DUMPBIN
4435 if test -n "$DUMPBIN"; then
4436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4437 $as_echo "$DUMPBIN" >&6; }
4438 else
4439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440 $as_echo "no" >&6; }
4441 fi
4442
4443
4444     test -n "$DUMPBIN" && break
4445   done
4446 fi
4447 if test -z "$DUMPBIN"; then
4448   ac_ct_DUMPBIN=$DUMPBIN
4449   for ac_prog in dumpbin "link -dump"
4450 do
4451   # Extract the first word of "$ac_prog", so it can be a program name with args.
4452 set dummy $ac_prog; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4456   $as_echo_n "(cached) " >&6
4457 else
4458   if test -n "$ac_ct_DUMPBIN"; then
4459   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464   IFS=$as_save_IFS
4465   test -z "$as_dir" && as_dir=.
4466     for ac_exec_ext in '' $ac_executable_extensions; do
4467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470     break 2
4471   fi
4472 done
4473   done
4474 IFS=$as_save_IFS
4475
4476 fi
4477 fi
4478 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4479 if test -n "$ac_ct_DUMPBIN"; then
4480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4481 $as_echo "$ac_ct_DUMPBIN" >&6; }
4482 else
4483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4485 fi
4486
4487
4488   test -n "$ac_ct_DUMPBIN" && break
4489 done
4490
4491   if test "x$ac_ct_DUMPBIN" = x; then
4492     DUMPBIN=":"
4493   else
4494     case $cross_compiling:$ac_tool_warned in
4495 yes:)
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4498 ac_tool_warned=yes ;;
4499 esac
4500     DUMPBIN=$ac_ct_DUMPBIN
4501   fi
4502 fi
4503
4504     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4505     *COFF*)
4506       DUMPBIN="$DUMPBIN -symbols"
4507       ;;
4508     *)
4509       DUMPBIN=:
4510       ;;
4511     esac
4512   fi
4513
4514   if test "$DUMPBIN" != ":"; then
4515     NM="$DUMPBIN"
4516   fi
4517 fi
4518 test -z "$NM" && NM=nm
4519
4520
4521
4522
4523
4524
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4526 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4527 if ${lt_cv_nm_interface+:} false; then :
4528   $as_echo_n "(cached) " >&6
4529 else
4530   lt_cv_nm_interface="BSD nm"
4531   echo "int some_variable = 0;" > conftest.$ac_ext
4532   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4533   (eval "$ac_compile" 2>conftest.err)
4534   cat conftest.err >&5
4535   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4536   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4537   cat conftest.err >&5
4538   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4539   cat conftest.out >&5
4540   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4541     lt_cv_nm_interface="MS dumpbin"
4542   fi
4543   rm -f conftest*
4544 fi
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4546 $as_echo "$lt_cv_nm_interface" >&6; }
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4549 $as_echo_n "checking whether ln -s works... " >&6; }
4550 LN_S=$as_ln_s
4551 if test "$LN_S" = "ln -s"; then
4552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553 $as_echo "yes" >&6; }
4554 else
4555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4556 $as_echo "no, using $LN_S" >&6; }
4557 fi
4558
4559 # find the maximum length of command line arguments
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4561 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4562 if ${lt_cv_sys_max_cmd_len+:} false; then :
4563   $as_echo_n "(cached) " >&6
4564 else
4565     i=0
4566   teststring="ABCD"
4567
4568   case $build_os in
4569   msdosdjgpp*)
4570     # On DJGPP, this test can blow up pretty badly due to problems in libc
4571     # (any single argument exceeding 2000 bytes causes a buffer overrun
4572     # during glob expansion).  Even if it were fixed, the result of this
4573     # check would be larger than it should be.
4574     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4575     ;;
4576
4577   gnu*)
4578     # Under GNU Hurd, this test is not required because there is
4579     # no limit to the length of command line arguments.
4580     # Libtool will interpret -1 as no limit whatsoever
4581     lt_cv_sys_max_cmd_len=-1;
4582     ;;
4583
4584   cygwin* | mingw* | cegcc*)
4585     # On Win9x/ME, this test blows up -- it succeeds, but takes
4586     # about 5 minutes as the teststring grows exponentially.
4587     # Worse, since 9x/ME are not pre-emptively multitasking,
4588     # you end up with a "frozen" computer, even though with patience
4589     # the test eventually succeeds (with a max line length of 256k).
4590     # Instead, let's just punt: use the minimum linelength reported by
4591     # all of the supported platforms: 8192 (on NT/2K/XP).
4592     lt_cv_sys_max_cmd_len=8192;
4593     ;;
4594
4595   mint*)
4596     # On MiNT this can take a long time and run out of memory.
4597     lt_cv_sys_max_cmd_len=8192;
4598     ;;
4599
4600   amigaos*)
4601     # On AmigaOS with pdksh, this test takes hours, literally.
4602     # So we just punt and use a minimum line length of 8192.
4603     lt_cv_sys_max_cmd_len=8192;
4604     ;;
4605
4606   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4607     # This has been around since 386BSD, at least.  Likely further.
4608     if test -x /sbin/sysctl; then
4609       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4610     elif test -x /usr/sbin/sysctl; then
4611       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4612     else
4613       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4614     fi
4615     # And add a safety zone
4616     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4617     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4618     ;;
4619
4620   interix*)
4621     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4622     lt_cv_sys_max_cmd_len=196608
4623     ;;
4624
4625   os2*)
4626     # The test takes a long time on OS/2.
4627     lt_cv_sys_max_cmd_len=8192
4628     ;;
4629
4630   osf*)
4631     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4632     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4633     # nice to cause kernel panics so lets avoid the loop below.
4634     # First set a reasonable default.
4635     lt_cv_sys_max_cmd_len=16384
4636     #
4637     if test -x /sbin/sysconfig; then
4638       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4639         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4640       esac
4641     fi
4642     ;;
4643   sco3.2v5*)
4644     lt_cv_sys_max_cmd_len=102400
4645     ;;
4646   sysv5* | sco5v6* | sysv4.2uw2*)
4647     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4648     if test -n "$kargmax"; then
4649       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4650     else
4651       lt_cv_sys_max_cmd_len=32768
4652     fi
4653     ;;
4654   *)
4655     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4656     if test -n "$lt_cv_sys_max_cmd_len" && \
4657         test undefined != "$lt_cv_sys_max_cmd_len"; then
4658       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4659       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4660     else
4661       # Make teststring a little bigger before we do anything with it.
4662       # a 1K string should be a reasonable start.
4663       for i in 1 2 3 4 5 6 7 8 ; do
4664         teststring=$teststring$teststring
4665       done
4666       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4667       # If test is not a shell built-in, we'll probably end up computing a
4668       # maximum length that is only half of the actual maximum length, but
4669       # we can't tell.
4670       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4671                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4672               test $i != 17 # 1/2 MB should be enough
4673       do
4674         i=`expr $i + 1`
4675         teststring=$teststring$teststring
4676       done
4677       # Only check the string length outside the loop.
4678       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4679       teststring=
4680       # Add a significant safety factor because C++ compilers can tack on
4681       # massive amounts of additional arguments before passing them to the
4682       # linker.  It appears as though 1/2 is a usable value.
4683       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4684     fi
4685     ;;
4686   esac
4687
4688 fi
4689
4690 if test -n $lt_cv_sys_max_cmd_len ; then
4691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4692 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4693 else
4694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4695 $as_echo "none" >&6; }
4696 fi
4697 max_cmd_len=$lt_cv_sys_max_cmd_len
4698
4699
4700
4701
4702
4703
4704 : ${CP="cp -f"}
4705 : ${MV="mv -f"}
4706 : ${RM="rm -f"}
4707
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4709 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4710 # Try some XSI features
4711 xsi_shell=no
4712 ( _lt_dummy="a/b/c"
4713   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4714       = c,a/b,b/c, \
4715     && eval 'test $(( 1 + 1 )) -eq 2 \
4716     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4717   && xsi_shell=yes
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4719 $as_echo "$xsi_shell" >&6; }
4720
4721
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4723 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4724 lt_shell_append=no
4725 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4726     >/dev/null 2>&1 \
4727   && lt_shell_append=yes
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4729 $as_echo "$lt_shell_append" >&6; }
4730
4731
4732 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4733   lt_unset=unset
4734 else
4735   lt_unset=false
4736 fi
4737
4738
4739
4740
4741
4742 # test EBCDIC or ASCII
4743 case `echo X|tr X '\101'` in
4744  A) # ASCII based system
4745     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4746   lt_SP2NL='tr \040 \012'
4747   lt_NL2SP='tr \015\012 \040\040'
4748   ;;
4749  *) # EBCDIC based system
4750   lt_SP2NL='tr \100 \n'
4751   lt_NL2SP='tr \r\n \100\100'
4752   ;;
4753 esac
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4764 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4765 if ${lt_cv_to_host_file_cmd+:} false; then :
4766   $as_echo_n "(cached) " >&6
4767 else
4768   case $host in
4769   *-*-mingw* )
4770     case $build in
4771       *-*-mingw* ) # actually msys
4772         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4773         ;;
4774       *-*-cygwin* )
4775         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4776         ;;
4777       * ) # otherwise, assume *nix
4778         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4779         ;;
4780     esac
4781     ;;
4782   *-*-cygwin* )
4783     case $build in
4784       *-*-mingw* ) # actually msys
4785         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4786         ;;
4787       *-*-cygwin* )
4788         lt_cv_to_host_file_cmd=func_convert_file_noop
4789         ;;
4790       * ) # otherwise, assume *nix
4791         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4792         ;;
4793     esac
4794     ;;
4795   * ) # unhandled hosts (and "normal" native builds)
4796     lt_cv_to_host_file_cmd=func_convert_file_noop
4797     ;;
4798 esac
4799
4800 fi
4801
4802 to_host_file_cmd=$lt_cv_to_host_file_cmd
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4804 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4805
4806
4807
4808
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4811 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4812 if ${lt_cv_to_tool_file_cmd+:} false; then :
4813   $as_echo_n "(cached) " >&6
4814 else
4815   #assume ordinary cross tools, or native build.
4816 lt_cv_to_tool_file_cmd=func_convert_file_noop
4817 case $host in
4818   *-*-mingw* )
4819     case $build in
4820       *-*-mingw* ) # actually msys
4821         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4822         ;;
4823     esac
4824     ;;
4825 esac
4826
4827 fi
4828
4829 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4831 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4832
4833
4834
4835
4836
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4838 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4839 if ${lt_cv_ld_reload_flag+:} false; then :
4840   $as_echo_n "(cached) " >&6
4841 else
4842   lt_cv_ld_reload_flag='-r'
4843 fi
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4845 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4846 reload_flag=$lt_cv_ld_reload_flag
4847 case $reload_flag in
4848 "" | " "*) ;;
4849 *) reload_flag=" $reload_flag" ;;
4850 esac
4851 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4852 case $host_os in
4853   cygwin* | mingw* | pw32* | cegcc*)
4854     if test "$GCC" != yes; then
4855       reload_cmds=false
4856     fi
4857     ;;
4858   darwin*)
4859     if test "$GCC" = yes; then
4860       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4861     else
4862       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4863     fi
4864     ;;
4865 esac
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875 if test -n "$ac_tool_prefix"; then
4876   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4877 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if ${ac_cv_prog_OBJDUMP+:} false; then :
4881   $as_echo_n "(cached) " >&6
4882 else
4883   if test -n "$OBJDUMP"; then
4884   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889   IFS=$as_save_IFS
4890   test -z "$as_dir" && as_dir=.
4891     for ac_exec_ext in '' $ac_executable_extensions; do
4892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895     break 2
4896   fi
4897 done
4898   done
4899 IFS=$as_save_IFS
4900
4901 fi
4902 fi
4903 OBJDUMP=$ac_cv_prog_OBJDUMP
4904 if test -n "$OBJDUMP"; then
4905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4906 $as_echo "$OBJDUMP" >&6; }
4907 else
4908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4910 fi
4911
4912
4913 fi
4914 if test -z "$ac_cv_prog_OBJDUMP"; then
4915   ac_ct_OBJDUMP=$OBJDUMP
4916   # Extract the first word of "objdump", so it can be a program name with args.
4917 set dummy objdump; ac_word=$2
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 $as_echo_n "checking for $ac_word... " >&6; }
4920 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4921   $as_echo_n "(cached) " >&6
4922 else
4923   if test -n "$ac_ct_OBJDUMP"; then
4924   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929   IFS=$as_save_IFS
4930   test -z "$as_dir" && as_dir=.
4931     for ac_exec_ext in '' $ac_executable_extensions; do
4932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935     break 2
4936   fi
4937 done
4938   done
4939 IFS=$as_save_IFS
4940
4941 fi
4942 fi
4943 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4944 if test -n "$ac_ct_OBJDUMP"; then
4945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4946 $as_echo "$ac_ct_OBJDUMP" >&6; }
4947 else
4948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949 $as_echo "no" >&6; }
4950 fi
4951
4952   if test "x$ac_ct_OBJDUMP" = x; then
4953     OBJDUMP="false"
4954   else
4955     case $cross_compiling:$ac_tool_warned in
4956 yes:)
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4959 ac_tool_warned=yes ;;
4960 esac
4961     OBJDUMP=$ac_ct_OBJDUMP
4962   fi
4963 else
4964   OBJDUMP="$ac_cv_prog_OBJDUMP"
4965 fi
4966
4967 test -z "$OBJDUMP" && OBJDUMP=objdump
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4978 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4979 if ${lt_cv_deplibs_check_method+:} false; then :
4980   $as_echo_n "(cached) " >&6
4981 else
4982   lt_cv_file_magic_cmd='$MAGIC_CMD'
4983 lt_cv_file_magic_test_file=
4984 lt_cv_deplibs_check_method='unknown'
4985 # Need to set the preceding variable on all platforms that support
4986 # interlibrary dependencies.
4987 # 'none' -- dependencies not supported.
4988 # `unknown' -- same as none, but documents that we really don't know.
4989 # 'pass_all' -- all dependencies passed with no checks.
4990 # 'test_compile' -- check by making test program.
4991 # 'file_magic [[regex]]' -- check by looking for files in library path
4992 # which responds to the $file_magic_cmd with a given extended regex.
4993 # If you have `file' or equivalent on your system and you're not sure
4994 # whether `pass_all' will *always* work, you probably want this one.
4995
4996 case $host_os in
4997 aix[4-9]*)
4998   lt_cv_deplibs_check_method=pass_all
4999   ;;
5000
5001 beos*)
5002   lt_cv_deplibs_check_method=pass_all
5003   ;;
5004
5005 bsdi[45]*)
5006   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5007   lt_cv_file_magic_cmd='/usr/bin/file -L'
5008   lt_cv_file_magic_test_file=/shlib/libc.so
5009   ;;
5010
5011 cygwin*)
5012   # func_win32_libid is a shell function defined in ltmain.sh
5013   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5014   lt_cv_file_magic_cmd='func_win32_libid'
5015   ;;
5016
5017 mingw* | pw32*)
5018   # Base MSYS/MinGW do not provide the 'file' command needed by
5019   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5020   # unless we find 'file', for example because we are cross-compiling.
5021   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5022   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5023     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5024     lt_cv_file_magic_cmd='func_win32_libid'
5025   else
5026     # Keep this pattern in sync with the one in func_win32_libid.
5027     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5028     lt_cv_file_magic_cmd='$OBJDUMP -f'
5029   fi
5030   ;;
5031
5032 cegcc*)
5033   # use the weaker test based on 'objdump'. See mingw*.
5034   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5035   lt_cv_file_magic_cmd='$OBJDUMP -f'
5036   ;;
5037
5038 darwin* | rhapsody*)
5039   lt_cv_deplibs_check_method=pass_all
5040   ;;
5041
5042 freebsd* | dragonfly*)
5043   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5044     case $host_cpu in
5045     i*86 )
5046       # Not sure whether the presence of OpenBSD here was a mistake.
5047       # Let's accept both of them until this is cleared up.
5048       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5049       lt_cv_file_magic_cmd=/usr/bin/file
5050       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5051       ;;
5052     esac
5053   else
5054     lt_cv_deplibs_check_method=pass_all
5055   fi
5056   ;;
5057
5058 haiku*)
5059   lt_cv_deplibs_check_method=pass_all
5060   ;;
5061
5062 hpux10.20* | hpux11*)
5063   lt_cv_file_magic_cmd=/usr/bin/file
5064   case $host_cpu in
5065   ia64*)
5066     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5067     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5068     ;;
5069   hppa*64*)
5070     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]'
5071     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5072     ;;
5073   *)
5074     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5075     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5076     ;;
5077   esac
5078   ;;
5079
5080 interix[3-9]*)
5081   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5082   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5083   ;;
5084
5085 irix5* | irix6* | nonstopux*)
5086   case $LD in
5087   *-32|*"-32 ") libmagic=32-bit;;
5088   *-n32|*"-n32 ") libmagic=N32;;
5089   *-64|*"-64 ") libmagic=64-bit;;
5090   *) libmagic=never-match;;
5091   esac
5092   lt_cv_deplibs_check_method=pass_all
5093   ;;
5094
5095 # This must be glibc/ELF.
5096 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5097   lt_cv_deplibs_check_method=pass_all
5098   ;;
5099
5100 netbsd* | netbsdelf*-gnu)
5101   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5102     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5103   else
5104     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5105   fi
5106   ;;
5107
5108 newos6*)
5109   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5110   lt_cv_file_magic_cmd=/usr/bin/file
5111   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5112   ;;
5113
5114 *nto* | *qnx*)
5115   lt_cv_deplibs_check_method=pass_all
5116   ;;
5117
5118 openbsd*)
5119   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5120     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5121   else
5122     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5123   fi
5124   ;;
5125
5126 osf3* | osf4* | osf5*)
5127   lt_cv_deplibs_check_method=pass_all
5128   ;;
5129
5130 rdos*)
5131   lt_cv_deplibs_check_method=pass_all
5132   ;;
5133
5134 solaris*)
5135   lt_cv_deplibs_check_method=pass_all
5136   ;;
5137
5138 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5139   lt_cv_deplibs_check_method=pass_all
5140   ;;
5141
5142 sysv4 | sysv4.3*)
5143   case $host_vendor in
5144   motorola)
5145     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]'
5146     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5147     ;;
5148   ncr)
5149     lt_cv_deplibs_check_method=pass_all
5150     ;;
5151   sequent)
5152     lt_cv_file_magic_cmd='/bin/file'
5153     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5154     ;;
5155   sni)
5156     lt_cv_file_magic_cmd='/bin/file'
5157     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5158     lt_cv_file_magic_test_file=/lib/libc.so
5159     ;;
5160   siemens)
5161     lt_cv_deplibs_check_method=pass_all
5162     ;;
5163   pc)
5164     lt_cv_deplibs_check_method=pass_all
5165     ;;
5166   esac
5167   ;;
5168
5169 tpf*)
5170   lt_cv_deplibs_check_method=pass_all
5171   ;;
5172 esac
5173
5174 fi
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5176 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5177
5178 file_magic_glob=
5179 want_nocaseglob=no
5180 if test "$build" = "$host"; then
5181   case $host_os in
5182   mingw* | pw32*)
5183     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5184       want_nocaseglob=yes
5185     else
5186       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5187     fi
5188     ;;
5189   esac
5190 fi
5191
5192 file_magic_cmd=$lt_cv_file_magic_cmd
5193 deplibs_check_method=$lt_cv_deplibs_check_method
5194 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217 if test -n "$ac_tool_prefix"; then
5218   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5219 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_prog_DLLTOOL+:} false; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225   if test -n "$DLLTOOL"; then
5226   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231   IFS=$as_save_IFS
5232   test -z "$as_dir" && as_dir=.
5233     for ac_exec_ext in '' $ac_executable_extensions; do
5234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237     break 2
5238   fi
5239 done
5240   done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 DLLTOOL=$ac_cv_prog_DLLTOOL
5246 if test -n "$DLLTOOL"; then
5247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5248 $as_echo "$DLLTOOL" >&6; }
5249 else
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253
5254
5255 fi
5256 if test -z "$ac_cv_prog_DLLTOOL"; then
5257   ac_ct_DLLTOOL=$DLLTOOL
5258   # Extract the first word of "dlltool", so it can be a program name with args.
5259 set dummy dlltool; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265   if test -n "$ac_ct_DLLTOOL"; then
5266   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271   IFS=$as_save_IFS
5272   test -z "$as_dir" && as_dir=.
5273     for ac_exec_ext in '' $ac_executable_extensions; do
5274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277     break 2
5278   fi
5279 done
5280   done
5281 IFS=$as_save_IFS
5282
5283 fi
5284 fi
5285 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5286 if test -n "$ac_ct_DLLTOOL"; then
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5288 $as_echo "$ac_ct_DLLTOOL" >&6; }
5289 else
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5292 fi
5293
5294   if test "x$ac_ct_DLLTOOL" = x; then
5295     DLLTOOL="false"
5296   else
5297     case $cross_compiling:$ac_tool_warned in
5298 yes:)
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5301 ac_tool_warned=yes ;;
5302 esac
5303     DLLTOOL=$ac_ct_DLLTOOL
5304   fi
5305 else
5306   DLLTOOL="$ac_cv_prog_DLLTOOL"
5307 fi
5308
5309 test -z "$DLLTOOL" && DLLTOOL=dlltool
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5321 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5322 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5323   $as_echo_n "(cached) " >&6
5324 else
5325   lt_cv_sharedlib_from_linklib_cmd='unknown'
5326
5327 case $host_os in
5328 cygwin* | mingw* | pw32* | cegcc*)
5329   # two different shell functions defined in ltmain.sh
5330   # decide which to use based on capabilities of $DLLTOOL
5331   case `$DLLTOOL --help 2>&1` in
5332   *--identify-strict*)
5333     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5334     ;;
5335   *)
5336     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5337     ;;
5338   esac
5339   ;;
5340 *)
5341   # fallback: assume linklib IS sharedlib
5342   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5343   ;;
5344 esac
5345
5346 fi
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5348 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5349 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5350 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5351
5352
5353
5354
5355
5356
5357
5358
5359 if test -n "$ac_tool_prefix"; then
5360   for ac_prog in ar
5361   do
5362     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if ${ac_cv_prog_AR+:} false; then :
5367   $as_echo_n "(cached) " >&6
5368 else
5369   if test -n "$AR"; then
5370   ac_cv_prog_AR="$AR" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375   IFS=$as_save_IFS
5376   test -z "$as_dir" && as_dir=.
5377     for ac_exec_ext in '' $ac_executable_extensions; do
5378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381     break 2
5382   fi
5383 done
5384   done
5385 IFS=$as_save_IFS
5386
5387 fi
5388 fi
5389 AR=$ac_cv_prog_AR
5390 if test -n "$AR"; then
5391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5392 $as_echo "$AR" >&6; }
5393 else
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 fi
5397
5398
5399     test -n "$AR" && break
5400   done
5401 fi
5402 if test -z "$AR"; then
5403   ac_ct_AR=$AR
5404   for ac_prog in ar
5405 do
5406   # Extract the first word of "$ac_prog", so it can be a program name with args.
5407 set dummy $ac_prog; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5411   $as_echo_n "(cached) " >&6
5412 else
5413   if test -n "$ac_ct_AR"; then
5414   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5415 else
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419   IFS=$as_save_IFS
5420   test -z "$as_dir" && as_dir=.
5421     for ac_exec_ext in '' $ac_executable_extensions; do
5422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5423     ac_cv_prog_ac_ct_AR="$ac_prog"
5424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425     break 2
5426   fi
5427 done
5428   done
5429 IFS=$as_save_IFS
5430
5431 fi
5432 fi
5433 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5434 if test -n "$ac_ct_AR"; then
5435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5436 $as_echo "$ac_ct_AR" >&6; }
5437 else
5438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440 fi
5441
5442
5443   test -n "$ac_ct_AR" && break
5444 done
5445
5446   if test "x$ac_ct_AR" = x; then
5447     AR="false"
5448   else
5449     case $cross_compiling:$ac_tool_warned in
5450 yes:)
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5453 ac_tool_warned=yes ;;
5454 esac
5455     AR=$ac_ct_AR
5456   fi
5457 fi
5458
5459 : ${AR=ar}
5460 : ${AR_FLAGS=cru}
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5473 $as_echo_n "checking for archiver @FILE support... " >&6; }
5474 if ${lt_cv_ar_at_file+:} false; then :
5475   $as_echo_n "(cached) " >&6
5476 else
5477   lt_cv_ar_at_file=no
5478    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h.  */
5480
5481 int
5482 main ()
5483 {
5484
5485   ;
5486   return 0;
5487 }
5488 _ACEOF
5489 if ac_fn_c_try_compile "$LINENO"; then :
5490   echo conftest.$ac_objext > conftest.lst
5491       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5492       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5493   (eval $lt_ar_try) 2>&5
5494   ac_status=$?
5495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5496   test $ac_status = 0; }
5497       if test "$ac_status" -eq 0; then
5498         # Ensure the archiver fails upon bogus file names.
5499         rm -f conftest.$ac_objext libconftest.a
5500         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5501   (eval $lt_ar_try) 2>&5
5502   ac_status=$?
5503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5504   test $ac_status = 0; }
5505         if test "$ac_status" -ne 0; then
5506           lt_cv_ar_at_file=@
5507         fi
5508       fi
5509       rm -f conftest.* libconftest.a
5510
5511 fi
5512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513
5514 fi
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5516 $as_echo "$lt_cv_ar_at_file" >&6; }
5517
5518 if test "x$lt_cv_ar_at_file" = xno; then
5519   archiver_list_spec=
5520 else
5521   archiver_list_spec=$lt_cv_ar_at_file
5522 fi
5523
5524
5525
5526
5527
5528
5529
5530 if test -n "$ac_tool_prefix"; then
5531   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5532 set dummy ${ac_tool_prefix}strip; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_STRIP+:} false; then :
5536   $as_echo_n "(cached) " >&6
5537 else
5538   if test -n "$STRIP"; then
5539   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544   IFS=$as_save_IFS
5545   test -z "$as_dir" && as_dir=.
5546     for ac_exec_ext in '' $ac_executable_extensions; do
5547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550     break 2
5551   fi
5552 done
5553   done
5554 IFS=$as_save_IFS
5555
5556 fi
5557 fi
5558 STRIP=$ac_cv_prog_STRIP
5559 if test -n "$STRIP"; then
5560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5561 $as_echo "$STRIP" >&6; }
5562 else
5563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5565 fi
5566
5567
5568 fi
5569 if test -z "$ac_cv_prog_STRIP"; then
5570   ac_ct_STRIP=$STRIP
5571   # Extract the first word of "strip", so it can be a program name with args.
5572 set dummy strip; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   if test -n "$ac_ct_STRIP"; then
5579   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584   IFS=$as_save_IFS
5585   test -z "$as_dir" && as_dir=.
5586     for ac_exec_ext in '' $ac_executable_extensions; do
5587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588     ac_cv_prog_ac_ct_STRIP="strip"
5589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590     break 2
5591   fi
5592 done
5593   done
5594 IFS=$as_save_IFS
5595
5596 fi
5597 fi
5598 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5599 if test -n "$ac_ct_STRIP"; then
5600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5601 $as_echo "$ac_ct_STRIP" >&6; }
5602 else
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5605 fi
5606
5607   if test "x$ac_ct_STRIP" = x; then
5608     STRIP=":"
5609   else
5610     case $cross_compiling:$ac_tool_warned in
5611 yes:)
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5614 ac_tool_warned=yes ;;
5615 esac
5616     STRIP=$ac_ct_STRIP
5617   fi
5618 else
5619   STRIP="$ac_cv_prog_STRIP"
5620 fi
5621
5622 test -z "$STRIP" && STRIP=:
5623
5624
5625
5626
5627
5628
5629 if test -n "$ac_tool_prefix"; then
5630   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if ${ac_cv_prog_RANLIB+:} false; then :
5635   $as_echo_n "(cached) " >&6
5636 else
5637   if test -n "$RANLIB"; then
5638   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5642 do
5643   IFS=$as_save_IFS
5644   test -z "$as_dir" && as_dir=.
5645     for ac_exec_ext in '' $ac_executable_extensions; do
5646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649     break 2
5650   fi
5651 done
5652   done
5653 IFS=$as_save_IFS
5654
5655 fi
5656 fi
5657 RANLIB=$ac_cv_prog_RANLIB
5658 if test -n "$RANLIB"; then
5659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5660 $as_echo "$RANLIB" >&6; }
5661 else
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5664 fi
5665
5666
5667 fi
5668 if test -z "$ac_cv_prog_RANLIB"; then
5669   ac_ct_RANLIB=$RANLIB
5670   # Extract the first word of "ranlib", so it can be a program name with args.
5671 set dummy ranlib; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5675   $as_echo_n "(cached) " >&6
5676 else
5677   if test -n "$ac_ct_RANLIB"; then
5678   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5679 else
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5682 do
5683   IFS=$as_save_IFS
5684   test -z "$as_dir" && as_dir=.
5685     for ac_exec_ext in '' $ac_executable_extensions; do
5686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687     ac_cv_prog_ac_ct_RANLIB="ranlib"
5688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689     break 2
5690   fi
5691 done
5692   done
5693 IFS=$as_save_IFS
5694
5695 fi
5696 fi
5697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5698 if test -n "$ac_ct_RANLIB"; then
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5700 $as_echo "$ac_ct_RANLIB" >&6; }
5701 else
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5704 fi
5705
5706   if test "x$ac_ct_RANLIB" = x; then
5707     RANLIB=":"
5708   else
5709     case $cross_compiling:$ac_tool_warned in
5710 yes:)
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5713 ac_tool_warned=yes ;;
5714 esac
5715     RANLIB=$ac_ct_RANLIB
5716   fi
5717 else
5718   RANLIB="$ac_cv_prog_RANLIB"
5719 fi
5720
5721 test -z "$RANLIB" && RANLIB=:
5722
5723
5724
5725
5726
5727
5728 # Determine commands to create old-style static archives.
5729 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5730 old_postinstall_cmds='chmod 644 $oldlib'
5731 old_postuninstall_cmds=
5732
5733 if test -n "$RANLIB"; then
5734   case $host_os in
5735   openbsd*)
5736     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5737     ;;
5738   *)
5739     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5740     ;;
5741   esac
5742   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5743 fi
5744
5745 case $host_os in
5746   darwin*)
5747     lock_old_archive_extraction=yes ;;
5748   *)
5749     lock_old_archive_extraction=no ;;
5750 esac
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790 # If no C compiler was specified, use CC.
5791 LTCC=${LTCC-"$CC"}
5792
5793 # If no C compiler flags were specified, use CFLAGS.
5794 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5795
5796 # Allow CC to be a program name with arguments.
5797 compiler=$CC
5798
5799
5800 # Check for command to grab the raw symbol name followed by C symbol from nm.
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5802 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5803 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5804   $as_echo_n "(cached) " >&6
5805 else
5806
5807 # These are sane defaults that work on at least a few old systems.
5808 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5809
5810 # Character class describing NM global symbol codes.
5811 symcode='[BCDEGRST]'
5812
5813 # Regexp to match symbols that can be accessed directly from C.
5814 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5815
5816 # Define system-specific variables.
5817 case $host_os in
5818 aix*)
5819   symcode='[BCDT]'
5820   ;;
5821 cygwin* | mingw* | pw32* | cegcc*)
5822   symcode='[ABCDGISTW]'
5823   ;;
5824 hpux*)
5825   if test "$host_cpu" = ia64; then
5826     symcode='[ABCDEGRST]'
5827   fi
5828   ;;
5829 irix* | nonstopux*)
5830   symcode='[BCDEGRST]'
5831   ;;
5832 osf*)
5833   symcode='[BCDEGQRST]'
5834   ;;
5835 solaris*)
5836   symcode='[BDRT]'
5837   ;;
5838 sco3.2v5*)
5839   symcode='[DT]'
5840   ;;
5841 sysv4.2uw2*)
5842   symcode='[DT]'
5843   ;;
5844 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5845   symcode='[ABDT]'
5846   ;;
5847 sysv4)
5848   symcode='[DFNSTU]'
5849   ;;
5850 esac
5851
5852 # If we're using GNU nm, then use its standard symbol codes.
5853 case `$NM -V 2>&1` in
5854 *GNU* | *'with BFD'*)
5855   symcode='[ABCDGIRSTW]' ;;
5856 esac
5857
5858 # Transform an extracted symbol line into a proper C declaration.
5859 # Some systems (esp. on ia64) link data and code symbols differently,
5860 # so use this general approach.
5861 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5862
5863 # Transform an extracted symbol line into symbol name and symbol address
5864 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5865 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'"
5866
5867 # Handle CRLF in mingw tool chain
5868 opt_cr=
5869 case $build_os in
5870 mingw*)
5871   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5872   ;;
5873 esac
5874
5875 # Try without a prefix underscore, then with it.
5876 for ac_symprfx in "" "_"; do
5877
5878   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5879   symxfrm="\\1 $ac_symprfx\\2 \\2"
5880
5881   # Write the raw and C identifiers.
5882   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5883     # Fake it for dumpbin and say T for any non-static function
5884     # and D for any global variable.
5885     # Also find C++ and __fastcall symbols from MSVC++,
5886     # which start with @ or ?.
5887     lt_cv_sys_global_symbol_pipe="$AWK '"\
5888 "     {last_section=section; section=\$ 3};"\
5889 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5890 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5891 "     \$ 0!~/External *\|/{next};"\
5892 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5893 "     {if(hide[section]) next};"\
5894 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5895 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5896 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5897 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5898 "     ' prfx=^$ac_symprfx"
5899   else
5900     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5901   fi
5902   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5903
5904   # Check to see that the pipe works correctly.
5905   pipe_works=no
5906
5907   rm -f conftest*
5908   cat > conftest.$ac_ext <<_LT_EOF
5909 #ifdef __cplusplus
5910 extern "C" {
5911 #endif
5912 char nm_test_var;
5913 void nm_test_func(void);
5914 void nm_test_func(void){}
5915 #ifdef __cplusplus
5916 }
5917 #endif
5918 int main(){nm_test_var='a';nm_test_func();return(0);}
5919 _LT_EOF
5920
5921   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5922   (eval $ac_compile) 2>&5
5923   ac_status=$?
5924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5925   test $ac_status = 0; }; then
5926     # Now try to grab the symbols.
5927     nlist=conftest.nm
5928     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5929   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5930   ac_status=$?
5931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5932   test $ac_status = 0; } && test -s "$nlist"; then
5933       # Try sorting and uniquifying the output.
5934       if sort "$nlist" | uniq > "$nlist"T; then
5935         mv -f "$nlist"T "$nlist"
5936       else
5937         rm -f "$nlist"T
5938       fi
5939
5940       # Make sure that we snagged all the symbols we need.
5941       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5942         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5943           cat <<_LT_EOF > conftest.$ac_ext
5944 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5945 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5946 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5947    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5948 # define LT_DLSYM_CONST
5949 #elif defined(__osf__)
5950 /* This system does not cope well with relocations in const data.  */
5951 # define LT_DLSYM_CONST
5952 #else
5953 # define LT_DLSYM_CONST const
5954 #endif
5955
5956 #ifdef __cplusplus
5957 extern "C" {
5958 #endif
5959
5960 _LT_EOF
5961           # Now generate the symbol file.
5962           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5963
5964           cat <<_LT_EOF >> conftest.$ac_ext
5965
5966 /* The mapping between symbol names and symbols.  */
5967 LT_DLSYM_CONST struct {
5968   const char *name;
5969   void       *address;
5970 }
5971 lt__PROGRAM__LTX_preloaded_symbols[] =
5972 {
5973   { "@PROGRAM@", (void *) 0 },
5974 _LT_EOF
5975           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5976           cat <<\_LT_EOF >> conftest.$ac_ext
5977   {0, (void *) 0}
5978 };
5979
5980 /* This works around a problem in FreeBSD linker */
5981 #ifdef FREEBSD_WORKAROUND
5982 static const void *lt_preloaded_setup() {
5983   return lt__PROGRAM__LTX_preloaded_symbols;
5984 }
5985 #endif
5986
5987 #ifdef __cplusplus
5988 }
5989 #endif
5990 _LT_EOF
5991           # Now try linking the two files.
5992           mv conftest.$ac_objext conftstm.$ac_objext
5993           lt_globsym_save_LIBS=$LIBS
5994           lt_globsym_save_CFLAGS=$CFLAGS
5995           LIBS="conftstm.$ac_objext"
5996           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5997           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5998   (eval $ac_link) 2>&5
5999   ac_status=$?
6000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6001   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6002             pipe_works=yes
6003           fi
6004           LIBS=$lt_globsym_save_LIBS
6005           CFLAGS=$lt_globsym_save_CFLAGS
6006         else
6007           echo "cannot find nm_test_func in $nlist" >&5
6008         fi
6009       else
6010         echo "cannot find nm_test_var in $nlist" >&5
6011       fi
6012     else
6013       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6014     fi
6015   else
6016     echo "$progname: failed program was:" >&5
6017     cat conftest.$ac_ext >&5
6018   fi
6019   rm -rf conftest* conftst*
6020
6021   # Do not use the global_symbol_pipe unless it works.
6022   if test "$pipe_works" = yes; then
6023     break
6024   else
6025     lt_cv_sys_global_symbol_pipe=
6026   fi
6027 done
6028
6029 fi
6030
6031 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6032   lt_cv_sys_global_symbol_to_cdecl=
6033 fi
6034 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6036 $as_echo "failed" >&6; }
6037 else
6038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6039 $as_echo "ok" >&6; }
6040 fi
6041
6042 # Response file support.
6043 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6044   nm_file_list_spec='@'
6045 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6046   nm_file_list_spec='@'
6047 fi
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6076 $as_echo_n "checking for sysroot... " >&6; }
6077
6078 # Check whether --with-sysroot was given.
6079 if test "${with_sysroot+set}" = set; then :
6080   withval=$with_sysroot;
6081 else
6082   with_sysroot=no
6083 fi
6084
6085
6086 lt_sysroot=
6087 case ${with_sysroot} in #(
6088  yes)
6089    if test "$GCC" = yes; then
6090      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6091    fi
6092    ;; #(
6093  /*)
6094    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6095    ;; #(
6096  no|'')
6097    ;; #(
6098  *)
6099    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6100 $as_echo "${with_sysroot}" >&6; }
6101    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6102    ;;
6103 esac
6104
6105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6106 $as_echo "${lt_sysroot:-no}" >&6; }
6107
6108
6109
6110
6111
6112 # Check whether --enable-libtool-lock was given.
6113 if test "${enable_libtool_lock+set}" = set; then :
6114   enableval=$enable_libtool_lock;
6115 fi
6116
6117 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6118
6119 # Some flags need to be propagated to the compiler or linker for good
6120 # libtool support.
6121 case $host in
6122 ia64-*-hpux*)
6123   # Find out which ABI we are using.
6124   echo 'int i;' > conftest.$ac_ext
6125   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6126   (eval $ac_compile) 2>&5
6127   ac_status=$?
6128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6129   test $ac_status = 0; }; then
6130     case `/usr/bin/file conftest.$ac_objext` in
6131       *ELF-32*)
6132         HPUX_IA64_MODE="32"
6133         ;;
6134       *ELF-64*)
6135         HPUX_IA64_MODE="64"
6136         ;;
6137     esac
6138   fi
6139   rm -rf conftest*
6140   ;;
6141 *-*-irix6*)
6142   # Find out which ABI we are using.
6143   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6144   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6145   (eval $ac_compile) 2>&5
6146   ac_status=$?
6147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6148   test $ac_status = 0; }; then
6149     if test "$lt_cv_prog_gnu_ld" = yes; then
6150       case `/usr/bin/file conftest.$ac_objext` in
6151         *32-bit*)
6152           LD="${LD-ld} -melf32bsmip"
6153           ;;
6154         *N32*)
6155           LD="${LD-ld} -melf32bmipn32"
6156           ;;
6157         *64-bit*)
6158           LD="${LD-ld} -melf64bmip"
6159         ;;
6160       esac
6161     else
6162       case `/usr/bin/file conftest.$ac_objext` in
6163         *32-bit*)
6164           LD="${LD-ld} -32"
6165           ;;
6166         *N32*)
6167           LD="${LD-ld} -n32"
6168           ;;
6169         *64-bit*)
6170           LD="${LD-ld} -64"
6171           ;;
6172       esac
6173     fi
6174   fi
6175   rm -rf conftest*
6176   ;;
6177
6178 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6179 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6180   # Find out which ABI we are using.
6181   echo 'int i;' > conftest.$ac_ext
6182   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6183   (eval $ac_compile) 2>&5
6184   ac_status=$?
6185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186   test $ac_status = 0; }; then
6187     case `/usr/bin/file conftest.o` in
6188       *32-bit*)
6189         case $host in
6190           x86_64-*kfreebsd*-gnu)
6191             LD="${LD-ld} -m elf_i386_fbsd"
6192             ;;
6193           x86_64-*linux*)
6194             case `/usr/bin/file conftest.o` in
6195               *x86-64*)
6196                 LD="${LD-ld} -m elf32_x86_64"
6197                 ;;
6198               *)
6199                 LD="${LD-ld} -m elf_i386"
6200                 ;;
6201             esac
6202             ;;
6203           powerpc64le-*)
6204             LD="${LD-ld} -m elf32lppclinux"
6205             ;;
6206           powerpc64-*)
6207             LD="${LD-ld} -m elf32ppclinux"
6208             ;;
6209           s390x-*linux*)
6210             LD="${LD-ld} -m elf_s390"
6211             ;;
6212           sparc64-*linux*)
6213             LD="${LD-ld} -m elf32_sparc"
6214             ;;
6215         esac
6216         ;;
6217       *64-bit*)
6218         case $host in
6219           x86_64-*kfreebsd*-gnu)
6220             LD="${LD-ld} -m elf_x86_64_fbsd"
6221             ;;
6222           x86_64-*linux*)
6223             LD="${LD-ld} -m elf_x86_64"
6224             ;;
6225           powerpcle-*)
6226             LD="${LD-ld} -m elf64lppc"
6227             ;;
6228           powerpc-*)
6229             LD="${LD-ld} -m elf64ppc"
6230             ;;
6231           s390*-*linux*|s390*-*tpf*)
6232             LD="${LD-ld} -m elf64_s390"
6233             ;;
6234           sparc*-*linux*)
6235             LD="${LD-ld} -m elf64_sparc"
6236             ;;
6237         esac
6238         ;;
6239     esac
6240   fi
6241   rm -rf conftest*
6242   ;;
6243
6244 *-*-sco3.2v5*)
6245   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6246   SAVE_CFLAGS="$CFLAGS"
6247   CFLAGS="$CFLAGS -belf"
6248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6249 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6250 if ${lt_cv_cc_needs_belf+:} false; then :
6251   $as_echo_n "(cached) " >&6
6252 else
6253   ac_ext=c
6254 ac_cpp='$CPP $CPPFLAGS'
6255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6258
6259      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h.  */
6261
6262 int
6263 main ()
6264 {
6265
6266   ;
6267   return 0;
6268 }
6269 _ACEOF
6270 if ac_fn_c_try_link "$LINENO"; then :
6271   lt_cv_cc_needs_belf=yes
6272 else
6273   lt_cv_cc_needs_belf=no
6274 fi
6275 rm -f core conftest.err conftest.$ac_objext \
6276     conftest$ac_exeext conftest.$ac_ext
6277      ac_ext=c
6278 ac_cpp='$CPP $CPPFLAGS'
6279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6282
6283 fi
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6285 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6286   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6287     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6288     CFLAGS="$SAVE_CFLAGS"
6289   fi
6290   ;;
6291 *-*solaris*)
6292   # Find out which ABI we are using.
6293   echo 'int i;' > conftest.$ac_ext
6294   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6295   (eval $ac_compile) 2>&5
6296   ac_status=$?
6297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6298   test $ac_status = 0; }; then
6299     case `/usr/bin/file conftest.o` in
6300     *64-bit*)
6301       case $lt_cv_prog_gnu_ld in
6302       yes*)
6303         case $host in
6304         i?86-*-solaris*)
6305           LD="${LD-ld} -m elf_x86_64"
6306           ;;
6307         sparc*-*-solaris*)
6308           LD="${LD-ld} -m elf64_sparc"
6309           ;;
6310         esac
6311         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6312         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6313           LD="${LD-ld}_sol2"
6314         fi
6315         ;;
6316       *)
6317         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6318           LD="${LD-ld} -64"
6319         fi
6320         ;;
6321       esac
6322       ;;
6323     esac
6324   fi
6325   rm -rf conftest*
6326   ;;
6327 esac
6328
6329 need_locks="$enable_libtool_lock"
6330
6331 if test -n "$ac_tool_prefix"; then
6332   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6333 set dummy ${ac_tool_prefix}mt; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6337   $as_echo_n "(cached) " >&6
6338 else
6339   if test -n "$MANIFEST_TOOL"; then
6340   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345   IFS=$as_save_IFS
6346   test -z "$as_dir" && as_dir=.
6347     for ac_exec_ext in '' $ac_executable_extensions; do
6348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351     break 2
6352   fi
6353 done
6354   done
6355 IFS=$as_save_IFS
6356
6357 fi
6358 fi
6359 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6360 if test -n "$MANIFEST_TOOL"; then
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6362 $as_echo "$MANIFEST_TOOL" >&6; }
6363 else
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6366 fi
6367
6368
6369 fi
6370 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6371   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6372   # Extract the first word of "mt", so it can be a program name with args.
6373 set dummy mt; ac_word=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6377   $as_echo_n "(cached) " >&6
6378 else
6379   if test -n "$ac_ct_MANIFEST_TOOL"; then
6380   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385   IFS=$as_save_IFS
6386   test -z "$as_dir" && as_dir=.
6387     for ac_exec_ext in '' $ac_executable_extensions; do
6388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391     break 2
6392   fi
6393 done
6394   done
6395 IFS=$as_save_IFS
6396
6397 fi
6398 fi
6399 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6400 if test -n "$ac_ct_MANIFEST_TOOL"; then
6401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6402 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6403 else
6404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6406 fi
6407
6408   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6409     MANIFEST_TOOL=":"
6410   else
6411     case $cross_compiling:$ac_tool_warned in
6412 yes:)
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415 ac_tool_warned=yes ;;
6416 esac
6417     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6418   fi
6419 else
6420   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6421 fi
6422
6423 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6425 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6426 if ${lt_cv_path_mainfest_tool+:} false; then :
6427   $as_echo_n "(cached) " >&6
6428 else
6429   lt_cv_path_mainfest_tool=no
6430   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6431   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6432   cat conftest.err >&5
6433   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6434     lt_cv_path_mainfest_tool=yes
6435   fi
6436   rm -f conftest*
6437 fi
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6439 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6440 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6441   MANIFEST_TOOL=:
6442 fi
6443
6444
6445
6446
6447
6448
6449   case $host_os in
6450     rhapsody* | darwin*)
6451     if test -n "$ac_tool_prefix"; then
6452   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6453 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6457   $as_echo_n "(cached) " >&6
6458 else
6459   if test -n "$DSYMUTIL"; then
6460   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6464 do
6465   IFS=$as_save_IFS
6466   test -z "$as_dir" && as_dir=.
6467     for ac_exec_ext in '' $ac_executable_extensions; do
6468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6469     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471     break 2
6472   fi
6473 done
6474   done
6475 IFS=$as_save_IFS
6476
6477 fi
6478 fi
6479 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6480 if test -n "$DSYMUTIL"; then
6481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6482 $as_echo "$DSYMUTIL" >&6; }
6483 else
6484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6486 fi
6487
6488
6489 fi
6490 if test -z "$ac_cv_prog_DSYMUTIL"; then
6491   ac_ct_DSYMUTIL=$DSYMUTIL
6492   # Extract the first word of "dsymutil", so it can be a program name with args.
6493 set dummy dsymutil; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6497   $as_echo_n "(cached) " >&6
6498 else
6499   if test -n "$ac_ct_DSYMUTIL"; then
6500   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6504 do
6505   IFS=$as_save_IFS
6506   test -z "$as_dir" && as_dir=.
6507     for ac_exec_ext in '' $ac_executable_extensions; do
6508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6509     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511     break 2
6512   fi
6513 done
6514   done
6515 IFS=$as_save_IFS
6516
6517 fi
6518 fi
6519 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6520 if test -n "$ac_ct_DSYMUTIL"; then
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6522 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6523 else
6524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6526 fi
6527
6528   if test "x$ac_ct_DSYMUTIL" = x; then
6529     DSYMUTIL=":"
6530   else
6531     case $cross_compiling:$ac_tool_warned in
6532 yes:)
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6535 ac_tool_warned=yes ;;
6536 esac
6537     DSYMUTIL=$ac_ct_DSYMUTIL
6538   fi
6539 else
6540   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6541 fi
6542
6543     if test -n "$ac_tool_prefix"; then
6544   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6545 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if ${ac_cv_prog_NMEDIT+:} false; then :
6549   $as_echo_n "(cached) " >&6
6550 else
6551   if test -n "$NMEDIT"; then
6552   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557   IFS=$as_save_IFS
6558   test -z "$as_dir" && as_dir=.
6559     for ac_exec_ext in '' $ac_executable_extensions; do
6560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563     break 2
6564   fi
6565 done
6566   done
6567 IFS=$as_save_IFS
6568
6569 fi
6570 fi
6571 NMEDIT=$ac_cv_prog_NMEDIT
6572 if test -n "$NMEDIT"; then
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6574 $as_echo "$NMEDIT" >&6; }
6575 else
6576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6578 fi
6579
6580
6581 fi
6582 if test -z "$ac_cv_prog_NMEDIT"; then
6583   ac_ct_NMEDIT=$NMEDIT
6584   # Extract the first word of "nmedit", so it can be a program name with args.
6585 set dummy nmedit; ac_word=$2
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6589   $as_echo_n "(cached) " >&6
6590 else
6591   if test -n "$ac_ct_NMEDIT"; then
6592   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6593 else
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597   IFS=$as_save_IFS
6598   test -z "$as_dir" && as_dir=.
6599     for ac_exec_ext in '' $ac_executable_extensions; do
6600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6601     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603     break 2
6604   fi
6605 done
6606   done
6607 IFS=$as_save_IFS
6608
6609 fi
6610 fi
6611 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6612 if test -n "$ac_ct_NMEDIT"; then
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6614 $as_echo "$ac_ct_NMEDIT" >&6; }
6615 else
6616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 $as_echo "no" >&6; }
6618 fi
6619
6620   if test "x$ac_ct_NMEDIT" = x; then
6621     NMEDIT=":"
6622   else
6623     case $cross_compiling:$ac_tool_warned in
6624 yes:)
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6627 ac_tool_warned=yes ;;
6628 esac
6629     NMEDIT=$ac_ct_NMEDIT
6630   fi
6631 else
6632   NMEDIT="$ac_cv_prog_NMEDIT"
6633 fi
6634
6635     if test -n "$ac_tool_prefix"; then
6636   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6637 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if ${ac_cv_prog_LIPO+:} false; then :
6641   $as_echo_n "(cached) " >&6
6642 else
6643   if test -n "$LIPO"; then
6644   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649   IFS=$as_save_IFS
6650   test -z "$as_dir" && as_dir=.
6651     for ac_exec_ext in '' $ac_executable_extensions; do
6652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6653     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655     break 2
6656   fi
6657 done
6658   done
6659 IFS=$as_save_IFS
6660
6661 fi
6662 fi
6663 LIPO=$ac_cv_prog_LIPO
6664 if test -n "$LIPO"; then
6665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6666 $as_echo "$LIPO" >&6; }
6667 else
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6670 fi
6671
6672
6673 fi
6674 if test -z "$ac_cv_prog_LIPO"; then
6675   ac_ct_LIPO=$LIPO
6676   # Extract the first word of "lipo", so it can be a program name with args.
6677 set dummy lipo; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6681   $as_echo_n "(cached) " >&6
6682 else
6683   if test -n "$ac_ct_LIPO"; then
6684   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689   IFS=$as_save_IFS
6690   test -z "$as_dir" && as_dir=.
6691     for ac_exec_ext in '' $ac_executable_extensions; do
6692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693     ac_cv_prog_ac_ct_LIPO="lipo"
6694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695     break 2
6696   fi
6697 done
6698   done
6699 IFS=$as_save_IFS
6700
6701 fi
6702 fi
6703 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6704 if test -n "$ac_ct_LIPO"; then
6705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6706 $as_echo "$ac_ct_LIPO" >&6; }
6707 else
6708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6710 fi
6711
6712   if test "x$ac_ct_LIPO" = x; then
6713     LIPO=":"
6714   else
6715     case $cross_compiling:$ac_tool_warned in
6716 yes:)
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6719 ac_tool_warned=yes ;;
6720 esac
6721     LIPO=$ac_ct_LIPO
6722   fi
6723 else
6724   LIPO="$ac_cv_prog_LIPO"
6725 fi
6726
6727     if test -n "$ac_tool_prefix"; then
6728   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6729 set dummy ${ac_tool_prefix}otool; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if ${ac_cv_prog_OTOOL+:} false; then :
6733   $as_echo_n "(cached) " >&6
6734 else
6735   if test -n "$OTOOL"; then
6736   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743     for ac_exec_ext in '' $ac_executable_extensions; do
6744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747     break 2
6748   fi
6749 done
6750   done
6751 IFS=$as_save_IFS
6752
6753 fi
6754 fi
6755 OTOOL=$ac_cv_prog_OTOOL
6756 if test -n "$OTOOL"; then
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6758 $as_echo "$OTOOL" >&6; }
6759 else
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6763
6764
6765 fi
6766 if test -z "$ac_cv_prog_OTOOL"; then
6767   ac_ct_OTOOL=$OTOOL
6768   # Extract the first word of "otool", so it can be a program name with args.
6769 set dummy otool; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6773   $as_echo_n "(cached) " >&6
6774 else
6775   if test -n "$ac_ct_OTOOL"; then
6776   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781   IFS=$as_save_IFS
6782   test -z "$as_dir" && as_dir=.
6783     for ac_exec_ext in '' $ac_executable_extensions; do
6784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785     ac_cv_prog_ac_ct_OTOOL="otool"
6786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787     break 2
6788   fi
6789 done
6790   done
6791 IFS=$as_save_IFS
6792
6793 fi
6794 fi
6795 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6796 if test -n "$ac_ct_OTOOL"; then
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6798 $as_echo "$ac_ct_OTOOL" >&6; }
6799 else
6800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6802 fi
6803
6804   if test "x$ac_ct_OTOOL" = x; then
6805     OTOOL=":"
6806   else
6807     case $cross_compiling:$ac_tool_warned in
6808 yes:)
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6811 ac_tool_warned=yes ;;
6812 esac
6813     OTOOL=$ac_ct_OTOOL
6814   fi
6815 else
6816   OTOOL="$ac_cv_prog_OTOOL"
6817 fi
6818
6819     if test -n "$ac_tool_prefix"; then
6820   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6821 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if ${ac_cv_prog_OTOOL64+:} false; then :
6825   $as_echo_n "(cached) " >&6
6826 else
6827   if test -n "$OTOOL64"; then
6828   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833   IFS=$as_save_IFS
6834   test -z "$as_dir" && as_dir=.
6835     for ac_exec_ext in '' $ac_executable_extensions; do
6836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6837     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839     break 2
6840   fi
6841 done
6842   done
6843 IFS=$as_save_IFS
6844
6845 fi
6846 fi
6847 OTOOL64=$ac_cv_prog_OTOOL64
6848 if test -n "$OTOOL64"; then
6849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6850 $as_echo "$OTOOL64" >&6; }
6851 else
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6854 fi
6855
6856
6857 fi
6858 if test -z "$ac_cv_prog_OTOOL64"; then
6859   ac_ct_OTOOL64=$OTOOL64
6860   # Extract the first word of "otool64", so it can be a program name with args.
6861 set dummy otool64; ac_word=$2
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863 $as_echo_n "checking for $ac_word... " >&6; }
6864 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6865   $as_echo_n "(cached) " >&6
6866 else
6867   if test -n "$ac_ct_OTOOL64"; then
6868   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6869 else
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6872 do
6873   IFS=$as_save_IFS
6874   test -z "$as_dir" && as_dir=.
6875     for ac_exec_ext in '' $ac_executable_extensions; do
6876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6877     ac_cv_prog_ac_ct_OTOOL64="otool64"
6878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879     break 2
6880   fi
6881 done
6882   done
6883 IFS=$as_save_IFS
6884
6885 fi
6886 fi
6887 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6888 if test -n "$ac_ct_OTOOL64"; then
6889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6890 $as_echo "$ac_ct_OTOOL64" >&6; }
6891 else
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6894 fi
6895
6896   if test "x$ac_ct_OTOOL64" = x; then
6897     OTOOL64=":"
6898   else
6899     case $cross_compiling:$ac_tool_warned in
6900 yes:)
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6903 ac_tool_warned=yes ;;
6904 esac
6905     OTOOL64=$ac_ct_OTOOL64
6906   fi
6907 else
6908   OTOOL64="$ac_cv_prog_OTOOL64"
6909 fi
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6938 $as_echo_n "checking for -single_module linker flag... " >&6; }
6939 if ${lt_cv_apple_cc_single_mod+:} false; then :
6940   $as_echo_n "(cached) " >&6
6941 else
6942   lt_cv_apple_cc_single_mod=no
6943       if test -z "${LT_MULTI_MODULE}"; then
6944         # By default we will add the -single_module flag. You can override
6945         # by either setting the environment variable LT_MULTI_MODULE
6946         # non-empty at configure time, or by adding -multi_module to the
6947         # link flags.
6948         rm -rf libconftest.dylib*
6949         echo "int foo(void){return 1;}" > conftest.c
6950         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6951 -dynamiclib -Wl,-single_module conftest.c" >&5
6952         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6953           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6954         _lt_result=$?
6955         # If there is a non-empty error log, and "single_module"
6956         # appears in it, assume the flag caused a linker warning
6957         if test -s conftest.err && $GREP single_module conftest.err; then
6958           cat conftest.err >&5
6959         # Otherwise, if the output was created with a 0 exit code from
6960         # the compiler, it worked.
6961         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6962           lt_cv_apple_cc_single_mod=yes
6963         else
6964           cat conftest.err >&5
6965         fi
6966         rm -rf libconftest.dylib*
6967         rm -f conftest.*
6968       fi
6969 fi
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6971 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6972
6973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6974 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6975 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6976   $as_echo_n "(cached) " >&6
6977 else
6978   lt_cv_ld_exported_symbols_list=no
6979       save_LDFLAGS=$LDFLAGS
6980       echo "_main" > conftest.sym
6981       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6982       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h.  */
6984
6985 int
6986 main ()
6987 {
6988
6989   ;
6990   return 0;
6991 }
6992 _ACEOF
6993 if ac_fn_c_try_link "$LINENO"; then :
6994   lt_cv_ld_exported_symbols_list=yes
6995 else
6996   lt_cv_ld_exported_symbols_list=no
6997 fi
6998 rm -f core conftest.err conftest.$ac_objext \
6999     conftest$ac_exeext conftest.$ac_ext
7000         LDFLAGS="$save_LDFLAGS"
7001
7002 fi
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7004 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7005
7006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7007 $as_echo_n "checking for -force_load linker flag... " >&6; }
7008 if ${lt_cv_ld_force_load+:} false; then :
7009   $as_echo_n "(cached) " >&6
7010 else
7011   lt_cv_ld_force_load=no
7012       cat > conftest.c << _LT_EOF
7013 int forced_loaded() { return 2;}
7014 _LT_EOF
7015       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7016       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7017       echo "$AR cru libconftest.a conftest.o" >&5
7018       $AR cru libconftest.a conftest.o 2>&5
7019       echo "$RANLIB libconftest.a" >&5
7020       $RANLIB libconftest.a 2>&5
7021       cat > conftest.c << _LT_EOF
7022 int main() { return 0;}
7023 _LT_EOF
7024       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7025       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7026       _lt_result=$?
7027       if test -s conftest.err && $GREP force_load conftest.err; then
7028         cat conftest.err >&5
7029       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7030         lt_cv_ld_force_load=yes
7031       else
7032         cat conftest.err >&5
7033       fi
7034         rm -f conftest.err libconftest.a conftest conftest.c
7035         rm -rf conftest.dSYM
7036
7037 fi
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7039 $as_echo "$lt_cv_ld_force_load" >&6; }
7040     case $host_os in
7041     rhapsody* | darwin1.[012])
7042       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7043     darwin1.*)
7044       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7045     darwin*) # darwin 5.x on
7046       # if running on 10.5 or later, the deployment target defaults
7047       # to the OS version, if on x86, and 10.4, the deployment
7048       # target defaults to 10.4. Don't you love it?
7049       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7050         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7051           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7052         10.[012]*)
7053           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7054         10.*)
7055           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7056       esac
7057     ;;
7058   esac
7059     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7060       _lt_dar_single_mod='$single_module'
7061     fi
7062     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7063       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7064     else
7065       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7066     fi
7067     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7068       _lt_dsymutil='~$DSYMUTIL $lib || :'
7069     else
7070       _lt_dsymutil=
7071     fi
7072     ;;
7073   esac
7074
7075 ac_ext=c
7076 ac_cpp='$CPP $CPPFLAGS'
7077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7081 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7082 # On Suns, sometimes $CPP names a directory.
7083 if test -n "$CPP" && test -d "$CPP"; then
7084   CPP=
7085 fi
7086 if test -z "$CPP"; then
7087   if ${ac_cv_prog_CPP+:} false; then :
7088   $as_echo_n "(cached) " >&6
7089 else
7090       # Double quotes because CPP needs to be expanded
7091     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7092     do
7093       ac_preproc_ok=false
7094 for ac_c_preproc_warn_flag in '' yes
7095 do
7096   # Use a header file that comes with gcc, so configuring glibc
7097   # with a fresh cross-compiler works.
7098   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7099   # <limits.h> exists even on freestanding compilers.
7100   # On the NeXT, cc -E runs the code through the compiler's parser,
7101   # not just through cpp. "Syntax error" is here to catch this case.
7102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h.  */
7104 #ifdef __STDC__
7105 # include <limits.h>
7106 #else
7107 # include <assert.h>
7108 #endif
7109                      Syntax error
7110 _ACEOF
7111 if ac_fn_c_try_cpp "$LINENO"; then :
7112
7113 else
7114   # Broken: fails on valid input.
7115 continue
7116 fi
7117 rm -f conftest.err conftest.i conftest.$ac_ext
7118
7119   # OK, works on sane cases.  Now check whether nonexistent headers
7120   # can be detected and how.
7121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h.  */
7123 #include <ac_nonexistent.h>
7124 _ACEOF
7125 if ac_fn_c_try_cpp "$LINENO"; then :
7126   # Broken: success on invalid input.
7127 continue
7128 else
7129   # Passes both tests.
7130 ac_preproc_ok=:
7131 break
7132 fi
7133 rm -f conftest.err conftest.i conftest.$ac_ext
7134
7135 done
7136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7137 rm -f conftest.i conftest.err conftest.$ac_ext
7138 if $ac_preproc_ok; then :
7139   break
7140 fi
7141
7142     done
7143     ac_cv_prog_CPP=$CPP
7144
7145 fi
7146   CPP=$ac_cv_prog_CPP
7147 else
7148   ac_cv_prog_CPP=$CPP
7149 fi
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7151 $as_echo "$CPP" >&6; }
7152 ac_preproc_ok=false
7153 for ac_c_preproc_warn_flag in '' yes
7154 do
7155   # Use a header file that comes with gcc, so configuring glibc
7156   # with a fresh cross-compiler works.
7157   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7158   # <limits.h> exists even on freestanding compilers.
7159   # On the NeXT, cc -E runs the code through the compiler's parser,
7160   # not just through cpp. "Syntax error" is here to catch this case.
7161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h.  */
7163 #ifdef __STDC__
7164 # include <limits.h>
7165 #else
7166 # include <assert.h>
7167 #endif
7168                      Syntax error
7169 _ACEOF
7170 if ac_fn_c_try_cpp "$LINENO"; then :
7171
7172 else
7173   # Broken: fails on valid input.
7174 continue
7175 fi
7176 rm -f conftest.err conftest.i conftest.$ac_ext
7177
7178   # OK, works on sane cases.  Now check whether nonexistent headers
7179   # can be detected and how.
7180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h.  */
7182 #include <ac_nonexistent.h>
7183 _ACEOF
7184 if ac_fn_c_try_cpp "$LINENO"; then :
7185   # Broken: success on invalid input.
7186 continue
7187 else
7188   # Passes both tests.
7189 ac_preproc_ok=:
7190 break
7191 fi
7192 rm -f conftest.err conftest.i conftest.$ac_ext
7193
7194 done
7195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7196 rm -f conftest.i conftest.err conftest.$ac_ext
7197 if $ac_preproc_ok; then :
7198
7199 else
7200   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7202 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7203 See \`config.log' for more details" "$LINENO" 5; }
7204 fi
7205
7206 ac_ext=c
7207 ac_cpp='$CPP $CPPFLAGS'
7208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7211
7212
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7214 $as_echo_n "checking for ANSI C header files... " >&6; }
7215 if ${ac_cv_header_stdc+:} false; then :
7216   $as_echo_n "(cached) " >&6
7217 else
7218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h.  */
7220 #include <stdlib.h>
7221 #include <stdarg.h>
7222 #include <string.h>
7223 #include <float.h>
7224
7225 int
7226 main ()
7227 {
7228
7229   ;
7230   return 0;
7231 }
7232 _ACEOF
7233 if ac_fn_c_try_compile "$LINENO"; then :
7234   ac_cv_header_stdc=yes
7235 else
7236   ac_cv_header_stdc=no
7237 fi
7238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7239
7240 if test $ac_cv_header_stdc = yes; then
7241   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h.  */
7244 #include <string.h>
7245
7246 _ACEOF
7247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7248   $EGREP "memchr" >/dev/null 2>&1; then :
7249
7250 else
7251   ac_cv_header_stdc=no
7252 fi
7253 rm -f conftest*
7254
7255 fi
7256
7257 if test $ac_cv_header_stdc = yes; then
7258   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h.  */
7261 #include <stdlib.h>
7262
7263 _ACEOF
7264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7265   $EGREP "free" >/dev/null 2>&1; then :
7266
7267 else
7268   ac_cv_header_stdc=no
7269 fi
7270 rm -f conftest*
7271
7272 fi
7273
7274 if test $ac_cv_header_stdc = yes; then
7275   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7276   if test "$cross_compiling" = yes; then :
7277   :
7278 else
7279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h.  */
7281 #include <ctype.h>
7282 #include <stdlib.h>
7283 #if ((' ' & 0x0FF) == 0x020)
7284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7286 #else
7287 # define ISLOWER(c) \
7288                    (('a' <= (c) && (c) <= 'i') \
7289                      || ('j' <= (c) && (c) <= 'r') \
7290                      || ('s' <= (c) && (c) <= 'z'))
7291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7292 #endif
7293
7294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7295 int
7296 main ()
7297 {
7298   int i;
7299   for (i = 0; i < 256; i++)
7300     if (XOR (islower (i), ISLOWER (i))
7301         || toupper (i) != TOUPPER (i))
7302       return 2;
7303   return 0;
7304 }
7305 _ACEOF
7306 if ac_fn_c_try_run "$LINENO"; then :
7307
7308 else
7309   ac_cv_header_stdc=no
7310 fi
7311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7312   conftest.$ac_objext conftest.beam conftest.$ac_ext
7313 fi
7314
7315 fi
7316 fi
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7318 $as_echo "$ac_cv_header_stdc" >&6; }
7319 if test $ac_cv_header_stdc = yes; then
7320
7321 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7322
7323 fi
7324
7325 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7326 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7327                   inttypes.h stdint.h unistd.h
7328 do :
7329   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7330 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7331 "
7332 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7333   cat >>confdefs.h <<_ACEOF
7334 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7335 _ACEOF
7336
7337 fi
7338
7339 done
7340
7341
7342 for ac_header in dlfcn.h
7343 do :
7344   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7345 "
7346 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7347   cat >>confdefs.h <<_ACEOF
7348 #define HAVE_DLFCN_H 1
7349 _ACEOF
7350
7351 fi
7352
7353 done
7354
7355
7356
7357
7358
7359 # Set options
7360
7361
7362
7363         enable_dlopen=no
7364
7365
7366   enable_win32_dll=no
7367
7368
7369             # Check whether --enable-shared was given.
7370 if test "${enable_shared+set}" = set; then :
7371   enableval=$enable_shared; p=${PACKAGE-default}
7372     case $enableval in
7373     yes) enable_shared=yes ;;
7374     no) enable_shared=no ;;
7375     *)
7376       enable_shared=no
7377       # Look at the argument we got.  We use all the common list separators.
7378       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7379       for pkg in $enableval; do
7380         IFS="$lt_save_ifs"
7381         if test "X$pkg" = "X$p"; then
7382           enable_shared=yes
7383         fi
7384       done
7385       IFS="$lt_save_ifs"
7386       ;;
7387     esac
7388 else
7389   enable_shared=yes
7390 fi
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400   # Check whether --enable-static was given.
7401 if test "${enable_static+set}" = set; then :
7402   enableval=$enable_static; p=${PACKAGE-default}
7403     case $enableval in
7404     yes) enable_static=yes ;;
7405     no) enable_static=no ;;
7406     *)
7407      enable_static=no
7408       # Look at the argument we got.  We use all the common list separators.
7409       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7410       for pkg in $enableval; do
7411         IFS="$lt_save_ifs"
7412         if test "X$pkg" = "X$p"; then
7413           enable_static=yes
7414         fi
7415       done
7416       IFS="$lt_save_ifs"
7417       ;;
7418     esac
7419 else
7420   enable_static=yes
7421 fi
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432 # Check whether --with-pic was given.
7433 if test "${with_pic+set}" = set; then :
7434   withval=$with_pic; lt_p=${PACKAGE-default}
7435     case $withval in
7436     yes|no) pic_mode=$withval ;;
7437     *)
7438       pic_mode=default
7439       # Look at the argument we got.  We use all the common list separators.
7440       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7441       for lt_pkg in $withval; do
7442         IFS="$lt_save_ifs"
7443         if test "X$lt_pkg" = "X$lt_p"; then
7444           pic_mode=yes
7445         fi
7446       done
7447       IFS="$lt_save_ifs"
7448       ;;
7449     esac
7450 else
7451   pic_mode=default
7452 fi
7453
7454
7455 test -z "$pic_mode" && pic_mode=default
7456
7457
7458
7459
7460
7461
7462
7463   # Check whether --enable-fast-install was given.
7464 if test "${enable_fast_install+set}" = set; then :
7465   enableval=$enable_fast_install; p=${PACKAGE-default}
7466     case $enableval in
7467     yes) enable_fast_install=yes ;;
7468     no) enable_fast_install=no ;;
7469     *)
7470       enable_fast_install=no
7471       # Look at the argument we got.  We use all the common list separators.
7472       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7473       for pkg in $enableval; do
7474         IFS="$lt_save_ifs"
7475         if test "X$pkg" = "X$p"; then
7476           enable_fast_install=yes
7477         fi
7478       done
7479       IFS="$lt_save_ifs"
7480       ;;
7481     esac
7482 else
7483   enable_fast_install=yes
7484 fi
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496 # This can be used to rebuild libtool when needed
7497 LIBTOOL_DEPS="$ltmain"
7498
7499 # Always use our own libtool.
7500 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531 test -z "$LN_S" && LN_S="ln -s"
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546 if test -n "${ZSH_VERSION+set}" ; then
7547    setopt NO_GLOB_SUBST
7548 fi
7549
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7551 $as_echo_n "checking for objdir... " >&6; }
7552 if ${lt_cv_objdir+:} false; then :
7553   $as_echo_n "(cached) " >&6
7554 else
7555   rm -f .libs 2>/dev/null
7556 mkdir .libs 2>/dev/null
7557 if test -d .libs; then
7558   lt_cv_objdir=.libs
7559 else
7560   # MS-DOS does not allow filenames that begin with a dot.
7561   lt_cv_objdir=_libs
7562 fi
7563 rmdir .libs 2>/dev/null
7564 fi
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7566 $as_echo "$lt_cv_objdir" >&6; }
7567 objdir=$lt_cv_objdir
7568
7569
7570
7571
7572
7573 cat >>confdefs.h <<_ACEOF
7574 #define LT_OBJDIR "$lt_cv_objdir/"
7575 _ACEOF
7576
7577
7578
7579
7580 case $host_os in
7581 aix3*)
7582   # AIX sometimes has problems with the GCC collect2 program.  For some
7583   # reason, if we set the COLLECT_NAMES environment variable, the problems
7584   # vanish in a puff of smoke.
7585   if test "X${COLLECT_NAMES+set}" != Xset; then
7586     COLLECT_NAMES=
7587     export COLLECT_NAMES
7588   fi
7589   ;;
7590 esac
7591
7592 # Global variables:
7593 ofile=libtool
7594 can_build_shared=yes
7595
7596 # All known linkers require a `.a' archive for static linking (except MSVC,
7597 # which needs '.lib').
7598 libext=a
7599
7600 with_gnu_ld="$lt_cv_prog_gnu_ld"
7601
7602 old_CC="$CC"
7603 old_CFLAGS="$CFLAGS"
7604
7605 # Set sane defaults for various variables
7606 test -z "$CC" && CC=cc
7607 test -z "$LTCC" && LTCC=$CC
7608 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7609 test -z "$LD" && LD=ld
7610 test -z "$ac_objext" && ac_objext=o
7611
7612 for cc_temp in $compiler""; do
7613   case $cc_temp in
7614     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7615     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7616     \-*) ;;
7617     *) break;;
7618   esac
7619 done
7620 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7621
7622
7623 # Only perform the check for file, if the check method requires it
7624 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7625 case $deplibs_check_method in
7626 file_magic*)
7627   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7629 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7630 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7631   $as_echo_n "(cached) " >&6
7632 else
7633   case $MAGIC_CMD in
7634 [\\/*] |  ?:[\\/]*)
7635   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7636   ;;
7637 *)
7638   lt_save_MAGIC_CMD="$MAGIC_CMD"
7639   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7640   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7641   for ac_dir in $ac_dummy; do
7642     IFS="$lt_save_ifs"
7643     test -z "$ac_dir" && ac_dir=.
7644     if test -f $ac_dir/${ac_tool_prefix}file; then
7645       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7646       if test -n "$file_magic_test_file"; then
7647         case $deplibs_check_method in
7648         "file_magic "*)
7649           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7650           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7651           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7652             $EGREP "$file_magic_regex" > /dev/null; then
7653             :
7654           else
7655             cat <<_LT_EOF 1>&2
7656
7657 *** Warning: the command libtool uses to detect shared libraries,
7658 *** $file_magic_cmd, produces output that libtool cannot recognize.
7659 *** The result is that libtool may fail to recognize shared libraries
7660 *** as such.  This will affect the creation of libtool libraries that
7661 *** depend on shared libraries, but programs linked with such libtool
7662 *** libraries will work regardless of this problem.  Nevertheless, you
7663 *** may want to report the problem to your system manager and/or to
7664 *** bug-libtool@gnu.org
7665
7666 _LT_EOF
7667           fi ;;
7668         esac
7669       fi
7670       break
7671     fi
7672   done
7673   IFS="$lt_save_ifs"
7674   MAGIC_CMD="$lt_save_MAGIC_CMD"
7675   ;;
7676 esac
7677 fi
7678
7679 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7680 if test -n "$MAGIC_CMD"; then
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7682 $as_echo "$MAGIC_CMD" >&6; }
7683 else
7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7686 fi
7687
7688
7689
7690
7691
7692 if test -z "$lt_cv_path_MAGIC_CMD"; then
7693   if test -n "$ac_tool_prefix"; then
7694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7695 $as_echo_n "checking for file... " >&6; }
7696 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7697   $as_echo_n "(cached) " >&6
7698 else
7699   case $MAGIC_CMD in
7700 [\\/*] |  ?:[\\/]*)
7701   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7702   ;;
7703 *)
7704   lt_save_MAGIC_CMD="$MAGIC_CMD"
7705   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7706   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7707   for ac_dir in $ac_dummy; do
7708     IFS="$lt_save_ifs"
7709     test -z "$ac_dir" && ac_dir=.
7710     if test -f $ac_dir/file; then
7711       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7712       if test -n "$file_magic_test_file"; then
7713         case $deplibs_check_method in
7714         "file_magic "*)
7715           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7716           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7717           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7718             $EGREP "$file_magic_regex" > /dev/null; then
7719             :
7720           else
7721             cat <<_LT_EOF 1>&2
7722
7723 *** Warning: the command libtool uses to detect shared libraries,
7724 *** $file_magic_cmd, produces output that libtool cannot recognize.
7725 *** The result is that libtool may fail to recognize shared libraries
7726 *** as such.  This will affect the creation of libtool libraries that
7727 *** depend on shared libraries, but programs linked with such libtool
7728 *** libraries will work regardless of this problem.  Nevertheless, you
7729 *** may want to report the problem to your system manager and/or to
7730 *** bug-libtool@gnu.org
7731
7732 _LT_EOF
7733           fi ;;
7734         esac
7735       fi
7736       break
7737     fi
7738   done
7739   IFS="$lt_save_ifs"
7740   MAGIC_CMD="$lt_save_MAGIC_CMD"
7741   ;;
7742 esac
7743 fi
7744
7745 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7746 if test -n "$MAGIC_CMD"; then
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7748 $as_echo "$MAGIC_CMD" >&6; }
7749 else
7750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7752 fi
7753
7754
7755   else
7756     MAGIC_CMD=:
7757   fi
7758 fi
7759
7760   fi
7761   ;;
7762 esac
7763
7764 # Use C for the default configuration in the libtool script
7765
7766 lt_save_CC="$CC"
7767 ac_ext=c
7768 ac_cpp='$CPP $CPPFLAGS'
7769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7772
7773
7774 # Source file extension for C test sources.
7775 ac_ext=c
7776
7777 # Object file extension for compiled C test sources.
7778 objext=o
7779 objext=$objext
7780
7781 # Code to be used in simple compile tests
7782 lt_simple_compile_test_code="int some_variable = 0;"
7783
7784 # Code to be used in simple link tests
7785 lt_simple_link_test_code='int main(){return(0);}'
7786
7787
7788
7789
7790
7791
7792
7793 # If no C compiler was specified, use CC.
7794 LTCC=${LTCC-"$CC"}
7795
7796 # If no C compiler flags were specified, use CFLAGS.
7797 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7798
7799 # Allow CC to be a program name with arguments.
7800 compiler=$CC
7801
7802 # Save the default compiler, since it gets overwritten when the other
7803 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7804 compiler_DEFAULT=$CC
7805
7806 # save warnings/boilerplate of simple test code
7807 ac_outfile=conftest.$ac_objext
7808 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7809 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7810 _lt_compiler_boilerplate=`cat conftest.err`
7811 $RM conftest*
7812
7813 ac_outfile=conftest.$ac_objext
7814 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7815 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7816 _lt_linker_boilerplate=`cat conftest.err`
7817 $RM -r conftest*
7818
7819
7820 if test -n "$compiler"; then
7821
7822 lt_prog_compiler_no_builtin_flag=
7823
7824 if test "$GCC" = yes; then
7825   case $cc_basename in
7826   nvcc*)
7827     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7828   *)
7829     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7830   esac
7831
7832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7833 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7834 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7835   $as_echo_n "(cached) " >&6
7836 else
7837   lt_cv_prog_compiler_rtti_exceptions=no
7838    ac_outfile=conftest.$ac_objext
7839    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7840    lt_compiler_flag="-fno-rtti -fno-exceptions"
7841    # Insert the option either (1) after the last *FLAGS variable, or
7842    # (2) before a word containing "conftest.", or (3) at the end.
7843    # Note that $ac_compile itself does not contain backslashes and begins
7844    # with a dollar sign (not a hyphen), so the echo should work correctly.
7845    # The option is referenced via a variable to avoid confusing sed.
7846    lt_compile=`echo "$ac_compile" | $SED \
7847    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7848    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7849    -e 's:$: $lt_compiler_flag:'`
7850    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7851    (eval "$lt_compile" 2>conftest.err)
7852    ac_status=$?
7853    cat conftest.err >&5
7854    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855    if (exit $ac_status) && test -s "$ac_outfile"; then
7856      # The compiler can only warn and ignore the option if not recognized
7857      # So say no if there are warnings other than the usual output.
7858      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7859      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7860      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7861        lt_cv_prog_compiler_rtti_exceptions=yes
7862      fi
7863    fi
7864    $RM conftest*
7865
7866 fi
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7868 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7869
7870 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7871     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7872 else
7873     :
7874 fi
7875
7876 fi
7877
7878
7879
7880
7881
7882
7883   lt_prog_compiler_wl=
7884 lt_prog_compiler_pic=
7885 lt_prog_compiler_static=
7886
7887
7888   if test "$GCC" = yes; then
7889     lt_prog_compiler_wl='-Wl,'
7890     lt_prog_compiler_static='-static'
7891
7892     case $host_os in
7893       aix*)
7894       # All AIX code is PIC.
7895       if test "$host_cpu" = ia64; then
7896         # AIX 5 now supports IA64 processor
7897         lt_prog_compiler_static='-Bstatic'
7898       fi
7899       ;;
7900
7901     amigaos*)
7902       case $host_cpu in
7903       powerpc)
7904             # see comment about AmigaOS4 .so support
7905             lt_prog_compiler_pic='-fPIC'
7906         ;;
7907       m68k)
7908             # FIXME: we need at least 68020 code to build shared libraries, but
7909             # adding the `-m68020' flag to GCC prevents building anything better,
7910             # like `-m68040'.
7911             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7912         ;;
7913       esac
7914       ;;
7915
7916     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7917       # PIC is the default for these OSes.
7918       ;;
7919
7920     mingw* | cygwin* | pw32* | os2* | cegcc*)
7921       # This hack is so that the source file can tell whether it is being
7922       # built for inclusion in a dll (and should export symbols for example).
7923       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7924       # (--disable-auto-import) libraries
7925       lt_prog_compiler_pic='-DDLL_EXPORT'
7926       ;;
7927
7928     darwin* | rhapsody*)
7929       # PIC is the default on this platform
7930       # Common symbols not allowed in MH_DYLIB files
7931       lt_prog_compiler_pic='-fno-common'
7932       ;;
7933
7934     haiku*)
7935       # PIC is the default for Haiku.
7936       # The "-static" flag exists, but is broken.
7937       lt_prog_compiler_static=
7938       ;;
7939
7940     hpux*)
7941       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7942       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7943       # sets the default TLS model and affects inlining.
7944       case $host_cpu in
7945       hppa*64*)
7946         # +Z the default
7947         ;;
7948       *)
7949         lt_prog_compiler_pic='-fPIC'
7950         ;;
7951       esac
7952       ;;
7953
7954     interix[3-9]*)
7955       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7956       # Instead, we relocate shared libraries at runtime.
7957       ;;
7958
7959     msdosdjgpp*)
7960       # Just because we use GCC doesn't mean we suddenly get shared libraries
7961       # on systems that don't support them.
7962       lt_prog_compiler_can_build_shared=no
7963       enable_shared=no
7964       ;;
7965
7966     *nto* | *qnx*)
7967       # QNX uses GNU C++, but need to define -shared option too, otherwise
7968       # it will coredump.
7969       lt_prog_compiler_pic='-fPIC -shared'
7970       ;;
7971
7972     sysv4*MP*)
7973       if test -d /usr/nec; then
7974         lt_prog_compiler_pic=-Kconform_pic
7975       fi
7976       ;;
7977
7978     *)
7979       lt_prog_compiler_pic='-fPIC'
7980       ;;
7981     esac
7982
7983     case $cc_basename in
7984     nvcc*) # Cuda Compiler Driver 2.2
7985       lt_prog_compiler_wl='-Xlinker '
7986       if test -n "$lt_prog_compiler_pic"; then
7987         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7988       fi
7989       ;;
7990     esac
7991   else
7992     # PORTME Check for flag to pass linker flags through the system compiler.
7993     case $host_os in
7994     aix*)
7995       lt_prog_compiler_wl='-Wl,'
7996       if test "$host_cpu" = ia64; then
7997         # AIX 5 now supports IA64 processor
7998         lt_prog_compiler_static='-Bstatic'
7999       else
8000         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8001       fi
8002       ;;
8003
8004     mingw* | cygwin* | pw32* | os2* | cegcc*)
8005       # This hack is so that the source file can tell whether it is being
8006       # built for inclusion in a dll (and should export symbols for example).
8007       lt_prog_compiler_pic='-DDLL_EXPORT'
8008       ;;
8009
8010     hpux9* | hpux10* | hpux11*)
8011       lt_prog_compiler_wl='-Wl,'
8012       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8013       # not for PA HP-UX.
8014       case $host_cpu in
8015       hppa*64*|ia64*)
8016         # +Z the default
8017         ;;
8018       *)
8019         lt_prog_compiler_pic='+Z'
8020         ;;
8021       esac
8022       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8023       lt_prog_compiler_static='${wl}-a ${wl}archive'
8024       ;;
8025
8026     irix5* | irix6* | nonstopux*)
8027       lt_prog_compiler_wl='-Wl,'
8028       # PIC (with -KPIC) is the default.
8029       lt_prog_compiler_static='-non_shared'
8030       ;;
8031
8032     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8033       case $cc_basename in
8034       # old Intel for x86_64 which still supported -KPIC.
8035       ecc*)
8036         lt_prog_compiler_wl='-Wl,'
8037         lt_prog_compiler_pic='-KPIC'
8038         lt_prog_compiler_static='-static'
8039         ;;
8040       # icc used to be incompatible with GCC.
8041       # ICC 10 doesn't accept -KPIC any more.
8042       icc* | ifort*)
8043         lt_prog_compiler_wl='-Wl,'
8044         lt_prog_compiler_pic='-fPIC'
8045         lt_prog_compiler_static='-static'
8046         ;;
8047       # Lahey Fortran 8.1.
8048       lf95*)
8049         lt_prog_compiler_wl='-Wl,'
8050         lt_prog_compiler_pic='--shared'
8051         lt_prog_compiler_static='--static'
8052         ;;
8053       nagfor*)
8054         # NAG Fortran compiler
8055         lt_prog_compiler_wl='-Wl,-Wl,,'
8056         lt_prog_compiler_pic='-PIC'
8057         lt_prog_compiler_static='-Bstatic'
8058         ;;
8059       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8060         # Portland Group compilers (*not* the Pentium gcc compiler,
8061         # which looks to be a dead project)
8062         lt_prog_compiler_wl='-Wl,'
8063         lt_prog_compiler_pic='-fpic'
8064         lt_prog_compiler_static='-Bstatic'
8065         ;;
8066       ccc*)
8067         lt_prog_compiler_wl='-Wl,'
8068         # All Alpha code is PIC.
8069         lt_prog_compiler_static='-non_shared'
8070         ;;
8071       xl* | bgxl* | bgf* | mpixl*)
8072         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8073         lt_prog_compiler_wl='-Wl,'
8074         lt_prog_compiler_pic='-qpic'
8075         lt_prog_compiler_static='-qstaticlink'
8076         ;;
8077       *)
8078         case `$CC -V 2>&1 | sed 5q` in
8079         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8080           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8081           lt_prog_compiler_pic='-KPIC'
8082           lt_prog_compiler_static='-Bstatic'
8083           lt_prog_compiler_wl=''
8084           ;;
8085         *Sun\ F* | *Sun*Fortran*)
8086           lt_prog_compiler_pic='-KPIC'
8087           lt_prog_compiler_static='-Bstatic'
8088           lt_prog_compiler_wl='-Qoption ld '
8089           ;;
8090         *Sun\ C*)
8091           # Sun C 5.9
8092           lt_prog_compiler_pic='-KPIC'
8093           lt_prog_compiler_static='-Bstatic'
8094           lt_prog_compiler_wl='-Wl,'
8095           ;;
8096         *Intel*\ [CF]*Compiler*)
8097           lt_prog_compiler_wl='-Wl,'
8098           lt_prog_compiler_pic='-fPIC'
8099           lt_prog_compiler_static='-static'
8100           ;;
8101         *Portland\ Group*)
8102           lt_prog_compiler_wl='-Wl,'
8103           lt_prog_compiler_pic='-fpic'
8104           lt_prog_compiler_static='-Bstatic'
8105           ;;
8106         esac
8107         ;;
8108       esac
8109       ;;
8110
8111     newsos6)
8112       lt_prog_compiler_pic='-KPIC'
8113       lt_prog_compiler_static='-Bstatic'
8114       ;;
8115
8116     *nto* | *qnx*)
8117       # QNX uses GNU C++, but need to define -shared option too, otherwise
8118       # it will coredump.
8119       lt_prog_compiler_pic='-fPIC -shared'
8120       ;;
8121
8122     osf3* | osf4* | osf5*)
8123       lt_prog_compiler_wl='-Wl,'
8124       # All OSF/1 code is PIC.
8125       lt_prog_compiler_static='-non_shared'
8126       ;;
8127
8128     rdos*)
8129       lt_prog_compiler_static='-non_shared'
8130       ;;
8131
8132     solaris*)
8133       lt_prog_compiler_pic='-KPIC'
8134       lt_prog_compiler_static='-Bstatic'
8135       case $cc_basename in
8136       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8137         lt_prog_compiler_wl='-Qoption ld ';;
8138       *)
8139         lt_prog_compiler_wl='-Wl,';;
8140       esac
8141       ;;
8142
8143     sunos4*)
8144       lt_prog_compiler_wl='-Qoption ld '
8145       lt_prog_compiler_pic='-PIC'
8146       lt_prog_compiler_static='-Bstatic'
8147       ;;
8148
8149     sysv4 | sysv4.2uw2* | sysv4.3*)
8150       lt_prog_compiler_wl='-Wl,'
8151       lt_prog_compiler_pic='-KPIC'
8152       lt_prog_compiler_static='-Bstatic'
8153       ;;
8154
8155     sysv4*MP*)
8156       if test -d /usr/nec ;then
8157         lt_prog_compiler_pic='-Kconform_pic'
8158         lt_prog_compiler_static='-Bstatic'
8159       fi
8160       ;;
8161
8162     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8163       lt_prog_compiler_wl='-Wl,'
8164       lt_prog_compiler_pic='-KPIC'
8165       lt_prog_compiler_static='-Bstatic'
8166       ;;
8167
8168     unicos*)
8169       lt_prog_compiler_wl='-Wl,'
8170       lt_prog_compiler_can_build_shared=no
8171       ;;
8172
8173     uts4*)
8174       lt_prog_compiler_pic='-pic'
8175       lt_prog_compiler_static='-Bstatic'
8176       ;;
8177
8178     *)
8179       lt_prog_compiler_can_build_shared=no
8180       ;;
8181     esac
8182   fi
8183
8184 case $host_os in
8185   # For platforms which do not support PIC, -DPIC is meaningless:
8186   *djgpp*)
8187     lt_prog_compiler_pic=
8188     ;;
8189   *)
8190     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8191     ;;
8192 esac
8193
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8195 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8196 if ${lt_cv_prog_compiler_pic+:} false; then :
8197   $as_echo_n "(cached) " >&6
8198 else
8199   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8200 fi
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8202 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8203 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8204
8205 #
8206 # Check to make sure the PIC flag actually works.
8207 #
8208 if test -n "$lt_prog_compiler_pic"; then
8209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8210 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8211 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8212   $as_echo_n "(cached) " >&6
8213 else
8214   lt_cv_prog_compiler_pic_works=no
8215    ac_outfile=conftest.$ac_objext
8216    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8217    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8218    # Insert the option either (1) after the last *FLAGS variable, or
8219    # (2) before a word containing "conftest.", or (3) at the end.
8220    # Note that $ac_compile itself does not contain backslashes and begins
8221    # with a dollar sign (not a hyphen), so the echo should work correctly.
8222    # The option is referenced via a variable to avoid confusing sed.
8223    lt_compile=`echo "$ac_compile" | $SED \
8224    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8225    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8226    -e 's:$: $lt_compiler_flag:'`
8227    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8228    (eval "$lt_compile" 2>conftest.err)
8229    ac_status=$?
8230    cat conftest.err >&5
8231    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232    if (exit $ac_status) && test -s "$ac_outfile"; then
8233      # The compiler can only warn and ignore the option if not recognized
8234      # So say no if there are warnings other than the usual output.
8235      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8236      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8237      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8238        lt_cv_prog_compiler_pic_works=yes
8239      fi
8240    fi
8241    $RM conftest*
8242
8243 fi
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8245 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8246
8247 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8248     case $lt_prog_compiler_pic in
8249      "" | " "*) ;;
8250      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8251      esac
8252 else
8253     lt_prog_compiler_pic=
8254      lt_prog_compiler_can_build_shared=no
8255 fi
8256
8257 fi
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269 #
8270 # Check to make sure the static flag actually works.
8271 #
8272 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8274 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8275 if ${lt_cv_prog_compiler_static_works+:} false; then :
8276   $as_echo_n "(cached) " >&6
8277 else
8278   lt_cv_prog_compiler_static_works=no
8279    save_LDFLAGS="$LDFLAGS"
8280    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8281    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8282    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8283      # The linker can only warn and ignore the option if not recognized
8284      # So say no if there are warnings
8285      if test -s conftest.err; then
8286        # Append any errors to the config.log.
8287        cat conftest.err 1>&5
8288        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8289        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8290        if diff conftest.exp conftest.er2 >/dev/null; then
8291          lt_cv_prog_compiler_static_works=yes
8292        fi
8293      else
8294        lt_cv_prog_compiler_static_works=yes
8295      fi
8296    fi
8297    $RM -r conftest*
8298    LDFLAGS="$save_LDFLAGS"
8299
8300 fi
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8302 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8303
8304 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8305     :
8306 else
8307     lt_prog_compiler_static=
8308 fi
8309
8310
8311
8312
8313
8314
8315
8316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8317 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8318 if ${lt_cv_prog_compiler_c_o+:} false; then :
8319   $as_echo_n "(cached) " >&6
8320 else
8321   lt_cv_prog_compiler_c_o=no
8322    $RM -r conftest 2>/dev/null
8323    mkdir conftest
8324    cd conftest
8325    mkdir out
8326    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8327
8328    lt_compiler_flag="-o out/conftest2.$ac_objext"
8329    # Insert the option either (1) after the last *FLAGS variable, or
8330    # (2) before a word containing "conftest.", or (3) at the end.
8331    # Note that $ac_compile itself does not contain backslashes and begins
8332    # with a dollar sign (not a hyphen), so the echo should work correctly.
8333    lt_compile=`echo "$ac_compile" | $SED \
8334    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8335    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8336    -e 's:$: $lt_compiler_flag:'`
8337    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8338    (eval "$lt_compile" 2>out/conftest.err)
8339    ac_status=$?
8340    cat out/conftest.err >&5
8341    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8343    then
8344      # The compiler can only warn and ignore the option if not recognized
8345      # So say no if there are warnings
8346      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8347      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8348      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8349        lt_cv_prog_compiler_c_o=yes
8350      fi
8351    fi
8352    chmod u+w . 2>&5
8353    $RM conftest*
8354    # SGI C++ compiler will create directory out/ii_files/ for
8355    # template instantiation
8356    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8357    $RM out/* && rmdir out
8358    cd ..
8359    $RM -r conftest
8360    $RM conftest*
8361
8362 fi
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8364 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8365
8366
8367
8368
8369
8370
8371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8372 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8373 if ${lt_cv_prog_compiler_c_o+:} false; then :
8374   $as_echo_n "(cached) " >&6
8375 else
8376   lt_cv_prog_compiler_c_o=no
8377    $RM -r conftest 2>/dev/null
8378    mkdir conftest
8379    cd conftest
8380    mkdir out
8381    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8382
8383    lt_compiler_flag="-o out/conftest2.$ac_objext"
8384    # Insert the option either (1) after the last *FLAGS variable, or
8385    # (2) before a word containing "conftest.", or (3) at the end.
8386    # Note that $ac_compile itself does not contain backslashes and begins
8387    # with a dollar sign (not a hyphen), so the echo should work correctly.
8388    lt_compile=`echo "$ac_compile" | $SED \
8389    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8390    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8391    -e 's:$: $lt_compiler_flag:'`
8392    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8393    (eval "$lt_compile" 2>out/conftest.err)
8394    ac_status=$?
8395    cat out/conftest.err >&5
8396    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8398    then
8399      # The compiler can only warn and ignore the option if not recognized
8400      # So say no if there are warnings
8401      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8402      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8403      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8404        lt_cv_prog_compiler_c_o=yes
8405      fi
8406    fi
8407    chmod u+w . 2>&5
8408    $RM conftest*
8409    # SGI C++ compiler will create directory out/ii_files/ for
8410    # template instantiation
8411    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8412    $RM out/* && rmdir out
8413    cd ..
8414    $RM -r conftest
8415    $RM conftest*
8416
8417 fi
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8419 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8420
8421
8422
8423
8424 hard_links="nottested"
8425 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8426   # do not overwrite the value of need_locks provided by the user
8427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8428 $as_echo_n "checking if we can lock with hard links... " >&6; }
8429   hard_links=yes
8430   $RM conftest*
8431   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8432   touch conftest.a
8433   ln conftest.a conftest.b 2>&5 || hard_links=no
8434   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8436 $as_echo "$hard_links" >&6; }
8437   if test "$hard_links" = no; then
8438     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8439 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8440     need_locks=warn
8441   fi
8442 else
8443   need_locks=no
8444 fi
8445
8446
8447
8448
8449
8450
8451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8452 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8453
8454   runpath_var=
8455   allow_undefined_flag=
8456   always_export_symbols=no
8457   archive_cmds=
8458   archive_expsym_cmds=
8459   compiler_needs_object=no
8460   enable_shared_with_static_runtimes=no
8461   export_dynamic_flag_spec=
8462   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8463   hardcode_automatic=no
8464   hardcode_direct=no
8465   hardcode_direct_absolute=no
8466   hardcode_libdir_flag_spec=
8467   hardcode_libdir_separator=
8468   hardcode_minus_L=no
8469   hardcode_shlibpath_var=unsupported
8470   inherit_rpath=no
8471   link_all_deplibs=unknown
8472   module_cmds=
8473   module_expsym_cmds=
8474   old_archive_from_new_cmds=
8475   old_archive_from_expsyms_cmds=
8476   thread_safe_flag_spec=
8477   whole_archive_flag_spec=
8478   # include_expsyms should be a list of space-separated symbols to be *always*
8479   # included in the symbol list
8480   include_expsyms=
8481   # exclude_expsyms can be an extended regexp of symbols to exclude
8482   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8483   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8484   # as well as any symbol that contains `d'.
8485   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8486   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8487   # platforms (ab)use it in PIC code, but their linkers get confused if
8488   # the symbol is explicitly referenced.  Since portable code cannot
8489   # rely on this symbol name, it's probably fine to never include it in
8490   # preloaded symbol tables.
8491   # Exclude shared library initialization/finalization symbols.
8492   extract_expsyms_cmds=
8493
8494   case $host_os in
8495   cygwin* | mingw* | pw32* | cegcc*)
8496     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8497     # When not using gcc, we currently assume that we are using
8498     # Microsoft Visual C++.
8499     if test "$GCC" != yes; then
8500       with_gnu_ld=no
8501     fi
8502     ;;
8503   interix*)
8504     # we just hope/assume this is gcc and not c89 (= MSVC++)
8505     with_gnu_ld=yes
8506     ;;
8507   openbsd*)
8508     with_gnu_ld=no
8509     ;;
8510   linux* | k*bsd*-gnu | gnu*)
8511     link_all_deplibs=no
8512     ;;
8513   esac
8514
8515   ld_shlibs=yes
8516
8517   # On some targets, GNU ld is compatible enough with the native linker
8518   # that we're better off using the native interface for both.
8519   lt_use_gnu_ld_interface=no
8520   if test "$with_gnu_ld" = yes; then
8521     case $host_os in
8522       aix*)
8523         # The AIX port of GNU ld has always aspired to compatibility
8524         # with the native linker.  However, as the warning in the GNU ld
8525         # block says, versions before 2.19.5* couldn't really create working
8526         # shared libraries, regardless of the interface used.
8527         case `$LD -v 2>&1` in
8528           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8529           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8530           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8531           *)
8532             lt_use_gnu_ld_interface=yes
8533             ;;
8534         esac
8535         ;;
8536       *)
8537         lt_use_gnu_ld_interface=yes
8538         ;;
8539     esac
8540   fi
8541
8542   if test "$lt_use_gnu_ld_interface" = yes; then
8543     # If archive_cmds runs LD, not CC, wlarc should be empty
8544     wlarc='${wl}'
8545
8546     # Set some defaults for GNU ld with shared library support. These
8547     # are reset later if shared libraries are not supported. Putting them
8548     # here allows them to be overridden if necessary.
8549     runpath_var=LD_RUN_PATH
8550     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8551     export_dynamic_flag_spec='${wl}--export-dynamic'
8552     # ancient GNU ld didn't support --whole-archive et. al.
8553     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8554       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8555     else
8556       whole_archive_flag_spec=
8557     fi
8558     supports_anon_versioning=no
8559     case `$LD -v 2>&1` in
8560       *GNU\ gold*) supports_anon_versioning=yes ;;
8561       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8562       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8563       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8564       *\ 2.11.*) ;; # other 2.11 versions
8565       *) supports_anon_versioning=yes ;;
8566     esac
8567
8568     # See if GNU ld supports shared libraries.
8569     case $host_os in
8570     aix[3-9]*)
8571       # On AIX/PPC, the GNU linker is very broken
8572       if test "$host_cpu" != ia64; then
8573         ld_shlibs=no
8574         cat <<_LT_EOF 1>&2
8575
8576 *** Warning: the GNU linker, at least up to release 2.19, is reported
8577 *** to be unable to reliably create shared libraries on AIX.
8578 *** Therefore, libtool is disabling shared libraries support.  If you
8579 *** really care for shared libraries, you may want to install binutils
8580 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8581 *** You will then need to restart the configuration process.
8582
8583 _LT_EOF
8584       fi
8585       ;;
8586
8587     amigaos*)
8588       case $host_cpu in
8589       powerpc)
8590             # see comment about AmigaOS4 .so support
8591             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8592             archive_expsym_cmds=''
8593         ;;
8594       m68k)
8595             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)'
8596             hardcode_libdir_flag_spec='-L$libdir'
8597             hardcode_minus_L=yes
8598         ;;
8599       esac
8600       ;;
8601
8602     beos*)
8603       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8604         allow_undefined_flag=unsupported
8605         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8606         # support --undefined.  This deserves some investigation.  FIXME
8607         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8608       else
8609         ld_shlibs=no
8610       fi
8611       ;;
8612
8613     cygwin* | mingw* | pw32* | cegcc*)
8614       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8615       # as there is no search path for DLLs.
8616       hardcode_libdir_flag_spec='-L$libdir'
8617       export_dynamic_flag_spec='${wl}--export-all-symbols'
8618       allow_undefined_flag=unsupported
8619       always_export_symbols=no
8620       enable_shared_with_static_runtimes=yes
8621       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'
8622       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8623
8624       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8625         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8626         # If the export-symbols file already is a .def file (1st line
8627         # is EXPORTS), use it as is; otherwise, prepend...
8628         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8629           cp $export_symbols $output_objdir/$soname.def;
8630         else
8631           echo EXPORTS > $output_objdir/$soname.def;
8632           cat $export_symbols >> $output_objdir/$soname.def;
8633         fi~
8634         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8635       else
8636         ld_shlibs=no
8637       fi
8638       ;;
8639
8640     haiku*)
8641       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8642       link_all_deplibs=yes
8643       ;;
8644
8645     interix[3-9]*)
8646       hardcode_direct=no
8647       hardcode_shlibpath_var=no
8648       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8649       export_dynamic_flag_spec='${wl}-E'
8650       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8651       # Instead, shared libraries are loaded at an image base (0x10000000 by
8652       # default) and relocated if they conflict, which is a slow very memory
8653       # consuming and fragmenting process.  To avoid this, we pick a random,
8654       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8655       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8656       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8657       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'
8658       ;;
8659
8660     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8661       tmp_diet=no
8662       if test "$host_os" = linux-dietlibc; then
8663         case $cc_basename in
8664           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8665         esac
8666       fi
8667       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8668          && test "$tmp_diet" = no
8669       then
8670         tmp_addflag=' $pic_flag'
8671         tmp_sharedflag='-shared'
8672         case $cc_basename,$host_cpu in
8673         pgcc*)                          # Portland Group C compiler
8674           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'
8675           tmp_addflag=' $pic_flag'
8676           ;;
8677         pgf77* | pgf90* | pgf95* | pgfortran*)
8678                                         # Portland Group f77 and f90 compilers
8679           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'
8680           tmp_addflag=' $pic_flag -Mnomain' ;;
8681         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8682           tmp_addflag=' -i_dynamic' ;;
8683         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8684           tmp_addflag=' -i_dynamic -nofor_main' ;;
8685         ifc* | ifort*)                  # Intel Fortran compiler
8686           tmp_addflag=' -nofor_main' ;;
8687         lf95*)                          # Lahey Fortran 8.1
8688           whole_archive_flag_spec=
8689           tmp_sharedflag='--shared' ;;
8690         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8691           tmp_sharedflag='-qmkshrobj'
8692           tmp_addflag= ;;
8693         nvcc*)  # Cuda Compiler Driver 2.2
8694           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'
8695           compiler_needs_object=yes
8696           ;;
8697         esac
8698         case `$CC -V 2>&1 | sed 5q` in
8699         *Sun\ C*)                       # Sun C 5.9
8700           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'
8701           compiler_needs_object=yes
8702           tmp_sharedflag='-G' ;;
8703         *Sun\ F*)                       # Sun Fortran 8.3
8704           tmp_sharedflag='-G' ;;
8705         esac
8706         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8707
8708         if test "x$supports_anon_versioning" = xyes; then
8709           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8710             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8711             echo "local: *; };" >> $output_objdir/$libname.ver~
8712             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8713         fi
8714
8715         case $cc_basename in
8716         xlf* | bgf* | bgxlf* | mpixlf*)
8717           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8718           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8719           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8720           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8721           if test "x$supports_anon_versioning" = xyes; then
8722             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8723               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8724               echo "local: *; };" >> $output_objdir/$libname.ver~
8725               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8726           fi
8727           ;;
8728         esac
8729       else
8730         ld_shlibs=no
8731       fi
8732       ;;
8733
8734     netbsd* | netbsdelf*-gnu)
8735       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8736         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8737         wlarc=
8738       else
8739         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8740         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8741       fi
8742       ;;
8743
8744     solaris*)
8745       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8746         ld_shlibs=no
8747         cat <<_LT_EOF 1>&2
8748
8749 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8750 *** create shared libraries on Solaris systems.  Therefore, libtool
8751 *** is disabling shared libraries support.  We urge you to upgrade GNU
8752 *** binutils to release 2.9.1 or newer.  Another option is to modify
8753 *** your PATH or compiler configuration so that the native linker is
8754 *** used, and then restart.
8755
8756 _LT_EOF
8757       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8758         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8759         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8760       else
8761         ld_shlibs=no
8762       fi
8763       ;;
8764
8765     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8766       case `$LD -v 2>&1` in
8767         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8768         ld_shlibs=no
8769         cat <<_LT_EOF 1>&2
8770
8771 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8772 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8773 *** is disabling shared libraries support.  We urge you to upgrade GNU
8774 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8775 *** your PATH or compiler configuration so that the native linker is
8776 *** used, and then restart.
8777
8778 _LT_EOF
8779         ;;
8780         *)
8781           # For security reasons, it is highly recommended that you always
8782           # use absolute paths for naming shared libraries, and exclude the
8783           # DT_RUNPATH tag from executables and libraries.  But doing so
8784           # requires that you compile everything twice, which is a pain.
8785           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8786             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8787             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8788             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8789           else
8790             ld_shlibs=no
8791           fi
8792         ;;
8793       esac
8794       ;;
8795
8796     sunos4*)
8797       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8798       wlarc=
8799       hardcode_direct=yes
8800       hardcode_shlibpath_var=no
8801       ;;
8802
8803     *)
8804       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8805         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8806         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8807       else
8808         ld_shlibs=no
8809       fi
8810       ;;
8811     esac
8812
8813     if test "$ld_shlibs" = no; then
8814       runpath_var=
8815       hardcode_libdir_flag_spec=
8816       export_dynamic_flag_spec=
8817       whole_archive_flag_spec=
8818     fi
8819   else
8820     # PORTME fill in a description of your system's linker (not GNU ld)
8821     case $host_os in
8822     aix3*)
8823       allow_undefined_flag=unsupported
8824       always_export_symbols=yes
8825       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'
8826       # Note: this linker hardcodes the directories in LIBPATH if there
8827       # are no directories specified by -L.
8828       hardcode_minus_L=yes
8829       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8830         # Neither direct hardcoding nor static linking is supported with a
8831         # broken collect2.
8832         hardcode_direct=unsupported
8833       fi
8834       ;;
8835
8836     aix[4-9]*)
8837       if test "$host_cpu" = ia64; then
8838         # On IA64, the linker does run time linking by default, so we don't
8839         # have to do anything special.
8840         aix_use_runtimelinking=no
8841         exp_sym_flag='-Bexport'
8842         no_entry_flag=""
8843       else
8844         # If we're using GNU nm, then we don't want the "-C" option.
8845         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8846         # Also, AIX nm treats weak defined symbols like other global
8847         # defined symbols, whereas GNU nm marks them as "W".
8848         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8849           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'
8850         else
8851           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'
8852         fi
8853         aix_use_runtimelinking=no
8854
8855         # Test if we are trying to use run time linking or normal
8856         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8857         # need to do runtime linking.
8858         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8859           for ld_flag in $LDFLAGS; do
8860           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8861             aix_use_runtimelinking=yes
8862             break
8863           fi
8864           done
8865           ;;
8866         esac
8867
8868         exp_sym_flag='-bexport'
8869         no_entry_flag='-bnoentry'
8870       fi
8871
8872       # When large executables or shared objects are built, AIX ld can
8873       # have problems creating the table of contents.  If linking a library
8874       # or program results in "error TOC overflow" add -mminimal-toc to
8875       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8876       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8877
8878       archive_cmds=''
8879       hardcode_direct=yes
8880       hardcode_direct_absolute=yes
8881       hardcode_libdir_separator=':'
8882       link_all_deplibs=yes
8883       file_list_spec='${wl}-f,'
8884
8885       if test "$GCC" = yes; then
8886         case $host_os in aix4.[012]|aix4.[012].*)
8887         # We only want to do this on AIX 4.2 and lower, the check
8888         # below for broken collect2 doesn't work under 4.3+
8889           collect2name=`${CC} -print-prog-name=collect2`
8890           if test -f "$collect2name" &&
8891            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8892           then
8893           # We have reworked collect2
8894           :
8895           else
8896           # We have old collect2
8897           hardcode_direct=unsupported
8898           # It fails to find uninstalled libraries when the uninstalled
8899           # path is not listed in the libpath.  Setting hardcode_minus_L
8900           # to unsupported forces relinking
8901           hardcode_minus_L=yes
8902           hardcode_libdir_flag_spec='-L$libdir'
8903           hardcode_libdir_separator=
8904           fi
8905           ;;
8906         esac
8907         shared_flag='-shared'
8908         if test "$aix_use_runtimelinking" = yes; then
8909           shared_flag="$shared_flag "'${wl}-G'
8910         fi
8911         link_all_deplibs=no
8912       else
8913         # not using gcc
8914         if test "$host_cpu" = ia64; then
8915         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8916         # chokes on -Wl,-G. The following line is correct:
8917           shared_flag='-G'
8918         else
8919           if test "$aix_use_runtimelinking" = yes; then
8920             shared_flag='${wl}-G'
8921           else
8922             shared_flag='${wl}-bM:SRE'
8923           fi
8924         fi
8925       fi
8926
8927       export_dynamic_flag_spec='${wl}-bexpall'
8928       # It seems that -bexpall does not export symbols beginning with
8929       # underscore (_), so it is better to generate a list of symbols to export.
8930       always_export_symbols=yes
8931       if test "$aix_use_runtimelinking" = yes; then
8932         # Warning - without using the other runtime loading flags (-brtl),
8933         # -berok will link without error, but may produce a broken library.
8934         allow_undefined_flag='-berok'
8935         # Determine the default libpath from the value encoded in an
8936         # empty executable.
8937         if test "${lt_cv_aix_libpath+set}" = set; then
8938   aix_libpath=$lt_cv_aix_libpath
8939 else
8940   if ${lt_cv_aix_libpath_+:} false; then :
8941   $as_echo_n "(cached) " >&6
8942 else
8943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h.  */
8945
8946 int
8947 main ()
8948 {
8949
8950   ;
8951   return 0;
8952 }
8953 _ACEOF
8954 if ac_fn_c_try_link "$LINENO"; then :
8955
8956   lt_aix_libpath_sed='
8957       /Import File Strings/,/^$/ {
8958           /^0/ {
8959               s/^0  *\([^ ]*\) *$/\1/
8960               p
8961           }
8962       }'
8963   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8964   # Check for a 64-bit object if we didn't find anything.
8965   if test -z "$lt_cv_aix_libpath_"; then
8966     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8967   fi
8968 fi
8969 rm -f core conftest.err conftest.$ac_objext \
8970     conftest$ac_exeext conftest.$ac_ext
8971   if test -z "$lt_cv_aix_libpath_"; then
8972     lt_cv_aix_libpath_="/usr/lib:/lib"
8973   fi
8974
8975 fi
8976
8977   aix_libpath=$lt_cv_aix_libpath_
8978 fi
8979
8980         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8981         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"
8982       else
8983         if test "$host_cpu" = ia64; then
8984           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8985           allow_undefined_flag="-z nodefs"
8986           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"
8987         else
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           # Warning - without using the other run time loading flags,
9035           # -berok will link without error, but may produce a broken library.
9036           no_undefined_flag=' ${wl}-bernotok'
9037           allow_undefined_flag=' ${wl}-berok'
9038           if test "$with_gnu_ld" = yes; then
9039             # We only use this code for GNU lds that support --whole-archive.
9040             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9041           else
9042             # Exported symbols can be pulled into shared objects from archives
9043             whole_archive_flag_spec='$convenience'
9044           fi
9045           archive_cmds_need_lc=yes
9046           # This is similar to how AIX traditionally builds its shared libraries.
9047           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'
9048         fi
9049       fi
9050       ;;
9051
9052     amigaos*)
9053       case $host_cpu in
9054       powerpc)
9055             # see comment about AmigaOS4 .so support
9056             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9057             archive_expsym_cmds=''
9058         ;;
9059       m68k)
9060             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)'
9061             hardcode_libdir_flag_spec='-L$libdir'
9062             hardcode_minus_L=yes
9063         ;;
9064       esac
9065       ;;
9066
9067     bsdi[45]*)
9068       export_dynamic_flag_spec=-rdynamic
9069       ;;
9070
9071     cygwin* | mingw* | pw32* | cegcc*)
9072       # When not using gcc, we currently assume that we are using
9073       # Microsoft Visual C++.
9074       # hardcode_libdir_flag_spec is actually meaningless, as there is
9075       # no search path for DLLs.
9076       case $cc_basename in
9077       cl*)
9078         # Native MSVC
9079         hardcode_libdir_flag_spec=' '
9080         allow_undefined_flag=unsupported
9081         always_export_symbols=yes
9082         file_list_spec='@'
9083         # Tell ltmain to make .lib files, not .a files.
9084         libext=lib
9085         # Tell ltmain to make .dll files, not .so files.
9086         shrext_cmds=".dll"
9087         # FIXME: Setting linknames here is a bad hack.
9088         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9089         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9090             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9091           else
9092             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9093           fi~
9094           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9095           linknames='
9096         # The linker will not automatically build a static lib if we build a DLL.
9097         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9098         enable_shared_with_static_runtimes=yes
9099         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9100         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9101         # Don't use ranlib
9102         old_postinstall_cmds='chmod 644 $oldlib'
9103         postlink_cmds='lt_outputfile="@OUTPUT@"~
9104           lt_tool_outputfile="@TOOL_OUTPUT@"~
9105           case $lt_outputfile in
9106             *.exe|*.EXE) ;;
9107             *)
9108               lt_outputfile="$lt_outputfile.exe"
9109               lt_tool_outputfile="$lt_tool_outputfile.exe"
9110               ;;
9111           esac~
9112           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9113             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9114             $RM "$lt_outputfile.manifest";
9115           fi'
9116         ;;
9117       *)
9118         # Assume MSVC wrapper
9119         hardcode_libdir_flag_spec=' '
9120         allow_undefined_flag=unsupported
9121         # Tell ltmain to make .lib files, not .a files.
9122         libext=lib
9123         # Tell ltmain to make .dll files, not .so files.
9124         shrext_cmds=".dll"
9125         # FIXME: Setting linknames here is a bad hack.
9126         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9127         # The linker will automatically build a .lib file if we build a DLL.
9128         old_archive_from_new_cmds='true'
9129         # FIXME: Should let the user specify the lib program.
9130         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9131         enable_shared_with_static_runtimes=yes
9132         ;;
9133       esac
9134       ;;
9135
9136     darwin* | rhapsody*)
9137
9138
9139   archive_cmds_need_lc=no
9140   hardcode_direct=no
9141   hardcode_automatic=yes
9142   hardcode_shlibpath_var=unsupported
9143   if test "$lt_cv_ld_force_load" = "yes"; then
9144     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\"`'
9145
9146   else
9147     whole_archive_flag_spec=''
9148   fi
9149   link_all_deplibs=yes
9150   allow_undefined_flag="$_lt_dar_allow_undefined"
9151   case $cc_basename in
9152      ifort*) _lt_dar_can_shared=yes ;;
9153      *) _lt_dar_can_shared=$GCC ;;
9154   esac
9155   if test "$_lt_dar_can_shared" = "yes"; then
9156     output_verbose_link_cmd=func_echo_all
9157     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9158     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9159     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}"
9160     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}"
9161
9162   else
9163   ld_shlibs=no
9164   fi
9165
9166       ;;
9167
9168     dgux*)
9169       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9170       hardcode_libdir_flag_spec='-L$libdir'
9171       hardcode_shlibpath_var=no
9172       ;;
9173
9174     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9175     # support.  Future versions do this automatically, but an explicit c++rt0.o
9176     # does not break anything, and helps significantly (at the cost of a little
9177     # extra space).
9178     freebsd2.2*)
9179       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9180       hardcode_libdir_flag_spec='-R$libdir'
9181       hardcode_direct=yes
9182       hardcode_shlibpath_var=no
9183       ;;
9184
9185     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9186     freebsd2.*)
9187       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9188       hardcode_direct=yes
9189       hardcode_minus_L=yes
9190       hardcode_shlibpath_var=no
9191       ;;
9192
9193     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9194     freebsd* | dragonfly*)
9195       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9196       hardcode_libdir_flag_spec='-R$libdir'
9197       hardcode_direct=yes
9198       hardcode_shlibpath_var=no
9199       ;;
9200
9201     hpux9*)
9202       if test "$GCC" = yes; then
9203         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'
9204       else
9205         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'
9206       fi
9207       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9208       hardcode_libdir_separator=:
9209       hardcode_direct=yes
9210
9211       # hardcode_minus_L: Not really in the search PATH,
9212       # but as the default location of the library.
9213       hardcode_minus_L=yes
9214       export_dynamic_flag_spec='${wl}-E'
9215       ;;
9216
9217     hpux10*)
9218       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9219         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9220       else
9221         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9222       fi
9223       if test "$with_gnu_ld" = no; then
9224         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9225         hardcode_libdir_separator=:
9226         hardcode_direct=yes
9227         hardcode_direct_absolute=yes
9228         export_dynamic_flag_spec='${wl}-E'
9229         # hardcode_minus_L: Not really in the search PATH,
9230         # but as the default location of the library.
9231         hardcode_minus_L=yes
9232       fi
9233       ;;
9234
9235     hpux11*)
9236       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9237         case $host_cpu in
9238         hppa*64*)
9239           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9240           ;;
9241         ia64*)
9242           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9243           ;;
9244         *)
9245           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9246           ;;
9247         esac
9248       else
9249         case $host_cpu in
9250         hppa*64*)
9251           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9252           ;;
9253         ia64*)
9254           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9255           ;;
9256         *)
9257
9258           # Older versions of the 11.00 compiler do not understand -b yet
9259           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9260           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9261 $as_echo_n "checking if $CC understands -b... " >&6; }
9262 if ${lt_cv_prog_compiler__b+:} false; then :
9263   $as_echo_n "(cached) " >&6
9264 else
9265   lt_cv_prog_compiler__b=no
9266    save_LDFLAGS="$LDFLAGS"
9267    LDFLAGS="$LDFLAGS -b"
9268    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9269    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9270      # The linker can only warn and ignore the option if not recognized
9271      # So say no if there are warnings
9272      if test -s conftest.err; then
9273        # Append any errors to the config.log.
9274        cat conftest.err 1>&5
9275        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9276        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9277        if diff conftest.exp conftest.er2 >/dev/null; then
9278          lt_cv_prog_compiler__b=yes
9279        fi
9280      else
9281        lt_cv_prog_compiler__b=yes
9282      fi
9283    fi
9284    $RM -r conftest*
9285    LDFLAGS="$save_LDFLAGS"
9286
9287 fi
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9289 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9290
9291 if test x"$lt_cv_prog_compiler__b" = xyes; then
9292     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9293 else
9294     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9295 fi
9296
9297           ;;
9298         esac
9299       fi
9300       if test "$with_gnu_ld" = no; then
9301         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9302         hardcode_libdir_separator=:
9303
9304         case $host_cpu in
9305         hppa*64*|ia64*)
9306           hardcode_direct=no
9307           hardcode_shlibpath_var=no
9308           ;;
9309         *)
9310           hardcode_direct=yes
9311           hardcode_direct_absolute=yes
9312           export_dynamic_flag_spec='${wl}-E'
9313
9314           # hardcode_minus_L: Not really in the search PATH,
9315           # but as the default location of the library.
9316           hardcode_minus_L=yes
9317           ;;
9318         esac
9319       fi
9320       ;;
9321
9322     irix5* | irix6* | nonstopux*)
9323       if test "$GCC" = yes; then
9324         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'
9325         # Try to use the -exported_symbol ld option, if it does not
9326         # work, assume that -exports_file does not work either and
9327         # implicitly export all symbols.
9328         # This should be the same for all languages, so no per-tag cache variable.
9329         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9330 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9331 if ${lt_cv_irix_exported_symbol+:} false; then :
9332   $as_echo_n "(cached) " >&6
9333 else
9334   save_LDFLAGS="$LDFLAGS"
9335            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9336            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h.  */
9338 int foo (void) { return 0; }
9339 _ACEOF
9340 if ac_fn_c_try_link "$LINENO"; then :
9341   lt_cv_irix_exported_symbol=yes
9342 else
9343   lt_cv_irix_exported_symbol=no
9344 fi
9345 rm -f core conftest.err conftest.$ac_objext \
9346     conftest$ac_exeext conftest.$ac_ext
9347            LDFLAGS="$save_LDFLAGS"
9348 fi
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9350 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9351         if test "$lt_cv_irix_exported_symbol" = yes; then
9352           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'
9353         fi
9354       else
9355         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'
9356         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'
9357       fi
9358       archive_cmds_need_lc='no'
9359       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9360       hardcode_libdir_separator=:
9361       inherit_rpath=yes
9362       link_all_deplibs=yes
9363       ;;
9364
9365     netbsd* | netbsdelf*-gnu)
9366       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9367         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9368       else
9369         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9370       fi
9371       hardcode_libdir_flag_spec='-R$libdir'
9372       hardcode_direct=yes
9373       hardcode_shlibpath_var=no
9374       ;;
9375
9376     newsos6)
9377       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9378       hardcode_direct=yes
9379       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9380       hardcode_libdir_separator=:
9381       hardcode_shlibpath_var=no
9382       ;;
9383
9384     *nto* | *qnx*)
9385       ;;
9386
9387     openbsd*)
9388       if test -f /usr/libexec/ld.so; then
9389         hardcode_direct=yes
9390         hardcode_shlibpath_var=no
9391         hardcode_direct_absolute=yes
9392         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9393           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9394           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9395           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9396           export_dynamic_flag_spec='${wl}-E'
9397         else
9398           case $host_os in
9399            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9400              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9401              hardcode_libdir_flag_spec='-R$libdir'
9402              ;;
9403            *)
9404              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9405              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9406              ;;
9407           esac
9408         fi
9409       else
9410         ld_shlibs=no
9411       fi
9412       ;;
9413
9414     os2*)
9415       hardcode_libdir_flag_spec='-L$libdir'
9416       hardcode_minus_L=yes
9417       allow_undefined_flag=unsupported
9418       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'
9419       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9420       ;;
9421
9422     osf3*)
9423       if test "$GCC" = yes; then
9424         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9425         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'
9426       else
9427         allow_undefined_flag=' -expect_unresolved \*'
9428         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'
9429       fi
9430       archive_cmds_need_lc='no'
9431       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9432       hardcode_libdir_separator=:
9433       ;;
9434
9435     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9436       if test "$GCC" = yes; then
9437         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9438         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'
9439         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9440       else
9441         allow_undefined_flag=' -expect_unresolved \*'
9442         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'
9443         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~
9444         $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'
9445
9446         # Both c and cxx compiler support -rpath directly
9447         hardcode_libdir_flag_spec='-rpath $libdir'
9448       fi
9449       archive_cmds_need_lc='no'
9450       hardcode_libdir_separator=:
9451       ;;
9452
9453     solaris*)
9454       no_undefined_flag=' -z defs'
9455       if test "$GCC" = yes; then
9456         wlarc='${wl}'
9457         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9458         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9459           $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'
9460       else
9461         case `$CC -V 2>&1` in
9462         *"Compilers 5.0"*)
9463           wlarc=''
9464           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9466           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9467           ;;
9468         *)
9469           wlarc='${wl}'
9470           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9471           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9472           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9473           ;;
9474         esac
9475       fi
9476       hardcode_libdir_flag_spec='-R$libdir'
9477       hardcode_shlibpath_var=no
9478       case $host_os in
9479       solaris2.[0-5] | solaris2.[0-5].*) ;;
9480       *)
9481         # The compiler driver will combine and reorder linker options,
9482         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9483         # but is careful enough not to reorder.
9484         # Supported since Solaris 2.6 (maybe 2.5.1?)
9485         if test "$GCC" = yes; then
9486           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9487         else
9488           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9489         fi
9490         ;;
9491       esac
9492       link_all_deplibs=yes
9493       ;;
9494
9495     sunos4*)
9496       if test "x$host_vendor" = xsequent; then
9497         # Use $CC to link under sequent, because it throws in some extra .o
9498         # files that make .init and .fini sections work.
9499         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9500       else
9501         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9502       fi
9503       hardcode_libdir_flag_spec='-L$libdir'
9504       hardcode_direct=yes
9505       hardcode_minus_L=yes
9506       hardcode_shlibpath_var=no
9507       ;;
9508
9509     sysv4)
9510       case $host_vendor in
9511         sni)
9512           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513           hardcode_direct=yes # is this really true???
9514         ;;
9515         siemens)
9516           ## LD is ld it makes a PLAMLIB
9517           ## CC just makes a GrossModule.
9518           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9519           reload_cmds='$CC -r -o $output$reload_objs'
9520           hardcode_direct=no
9521         ;;
9522         motorola)
9523           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9524           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9525         ;;
9526       esac
9527       runpath_var='LD_RUN_PATH'
9528       hardcode_shlibpath_var=no
9529       ;;
9530
9531     sysv4.3*)
9532       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9533       hardcode_shlibpath_var=no
9534       export_dynamic_flag_spec='-Bexport'
9535       ;;
9536
9537     sysv4*MP*)
9538       if test -d /usr/nec; then
9539         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9540         hardcode_shlibpath_var=no
9541         runpath_var=LD_RUN_PATH
9542         hardcode_runpath_var=yes
9543         ld_shlibs=yes
9544       fi
9545       ;;
9546
9547     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9548       no_undefined_flag='${wl}-z,text'
9549       archive_cmds_need_lc=no
9550       hardcode_shlibpath_var=no
9551       runpath_var='LD_RUN_PATH'
9552
9553       if test "$GCC" = yes; then
9554         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9555         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9556       else
9557         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9558         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9559       fi
9560       ;;
9561
9562     sysv5* | sco3.2v5* | sco5v6*)
9563       # Note: We can NOT use -z defs as we might desire, because we do not
9564       # link with -lc, and that would cause any symbols used from libc to
9565       # always be unresolved, which means just about no library would
9566       # ever link correctly.  If we're not using GNU ld we use -z text
9567       # though, which does catch some bad symbols but isn't as heavy-handed
9568       # as -z defs.
9569       no_undefined_flag='${wl}-z,text'
9570       allow_undefined_flag='${wl}-z,nodefs'
9571       archive_cmds_need_lc=no
9572       hardcode_shlibpath_var=no
9573       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9574       hardcode_libdir_separator=':'
9575       link_all_deplibs=yes
9576       export_dynamic_flag_spec='${wl}-Bexport'
9577       runpath_var='LD_RUN_PATH'
9578
9579       if test "$GCC" = yes; then
9580         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9581         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9582       else
9583         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9584         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9585       fi
9586       ;;
9587
9588     uts4*)
9589       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9590       hardcode_libdir_flag_spec='-L$libdir'
9591       hardcode_shlibpath_var=no
9592       ;;
9593
9594     *)
9595       ld_shlibs=no
9596       ;;
9597     esac
9598
9599     if test x$host_vendor = xsni; then
9600       case $host in
9601       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9602         export_dynamic_flag_spec='${wl}-Blargedynsym'
9603         ;;
9604       esac
9605     fi
9606   fi
9607
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9609 $as_echo "$ld_shlibs" >&6; }
9610 test "$ld_shlibs" = no && can_build_shared=no
9611
9612 with_gnu_ld=$with_gnu_ld
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628 #
9629 # Do we need to explicitly link libc?
9630 #
9631 case "x$archive_cmds_need_lc" in
9632 x|xyes)
9633   # Assume -lc should be added
9634   archive_cmds_need_lc=yes
9635
9636   if test "$enable_shared" = yes && test "$GCC" = yes; then
9637     case $archive_cmds in
9638     *'~'*)
9639       # FIXME: we may have to deal with multi-command sequences.
9640       ;;
9641     '$CC '*)
9642       # Test whether the compiler implicitly links with -lc since on some
9643       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9644       # to ld, don't add -lc before -lgcc.
9645       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9646 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9647 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9648   $as_echo_n "(cached) " >&6
9649 else
9650   $RM conftest*
9651         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9652
9653         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9654   (eval $ac_compile) 2>&5
9655   ac_status=$?
9656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9657   test $ac_status = 0; } 2>conftest.err; then
9658           soname=conftest
9659           lib=conftest
9660           libobjs=conftest.$ac_objext
9661           deplibs=
9662           wl=$lt_prog_compiler_wl
9663           pic_flag=$lt_prog_compiler_pic
9664           compiler_flags=-v
9665           linker_flags=-v
9666           verstring=
9667           output_objdir=.
9668           libname=conftest
9669           lt_save_allow_undefined_flag=$allow_undefined_flag
9670           allow_undefined_flag=
9671           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9672   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9673   ac_status=$?
9674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9675   test $ac_status = 0; }
9676           then
9677             lt_cv_archive_cmds_need_lc=no
9678           else
9679             lt_cv_archive_cmds_need_lc=yes
9680           fi
9681           allow_undefined_flag=$lt_save_allow_undefined_flag
9682         else
9683           cat conftest.err 1>&5
9684         fi
9685         $RM conftest*
9686
9687 fi
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9689 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9690       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9691       ;;
9692     esac
9693   fi
9694   ;;
9695 esac
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9849 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9850
9851 if test "$GCC" = yes; then
9852   case $host_os in
9853     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9854     *) lt_awk_arg="/^libraries:/" ;;
9855   esac
9856   case $host_os in
9857     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9858     *) lt_sed_strip_eq="s,=/,/,g" ;;
9859   esac
9860   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9861   case $lt_search_path_spec in
9862   *\;*)
9863     # if the path contains ";" then we assume it to be the separator
9864     # otherwise default to the standard path separator (i.e. ":") - it is
9865     # assumed that no part of a normal pathname contains ";" but that should
9866     # okay in the real world where ";" in dirpaths is itself problematic.
9867     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9868     ;;
9869   *)
9870     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9871     ;;
9872   esac
9873   # Ok, now we have the path, separated by spaces, we can step through it
9874   # and add multilib dir if necessary.
9875   lt_tmp_lt_search_path_spec=
9876   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9877   for lt_sys_path in $lt_search_path_spec; do
9878     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9879       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9880     else
9881       test -d "$lt_sys_path" && \
9882         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9883     fi
9884   done
9885   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9886 BEGIN {RS=" "; FS="/|\n";} {
9887   lt_foo="";
9888   lt_count=0;
9889   for (lt_i = NF; lt_i > 0; lt_i--) {
9890     if ($lt_i != "" && $lt_i != ".") {
9891       if ($lt_i == "..") {
9892         lt_count++;
9893       } else {
9894         if (lt_count == 0) {
9895           lt_foo="/" $lt_i lt_foo;
9896         } else {
9897           lt_count--;
9898         }
9899       }
9900     }
9901   }
9902   if (lt_foo != "") { lt_freq[lt_foo]++; }
9903   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9904 }'`
9905   # AWK program above erroneously prepends '/' to C:/dos/paths
9906   # for these hosts.
9907   case $host_os in
9908     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9909       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9910   esac
9911   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9912 else
9913   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9914 fi
9915 library_names_spec=
9916 libname_spec='lib$name'
9917 soname_spec=
9918 shrext_cmds=".so"
9919 postinstall_cmds=
9920 postuninstall_cmds=
9921 finish_cmds=
9922 finish_eval=
9923 shlibpath_var=
9924 shlibpath_overrides_runpath=unknown
9925 version_type=none
9926 dynamic_linker="$host_os ld.so"
9927 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9928 need_lib_prefix=unknown
9929 hardcode_into_libs=no
9930
9931 # when you set need_version to no, make sure it does not cause -set_version
9932 # flags to be left without arguments
9933 need_version=unknown
9934
9935 case $host_os in
9936 aix3*)
9937   version_type=linux # correct to gnu/linux during the next big refactor
9938   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9939   shlibpath_var=LIBPATH
9940
9941   # AIX 3 has no versioning support, so we append a major version to the name.
9942   soname_spec='${libname}${release}${shared_ext}$major'
9943   ;;
9944
9945 aix[4-9]*)
9946   version_type=linux # correct to gnu/linux during the next big refactor
9947   need_lib_prefix=no
9948   need_version=no
9949   hardcode_into_libs=yes
9950   if test "$host_cpu" = ia64; then
9951     # AIX 5 supports IA64
9952     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9953     shlibpath_var=LD_LIBRARY_PATH
9954   else
9955     # With GCC up to 2.95.x, collect2 would create an import file
9956     # for dependence libraries.  The import file would start with
9957     # the line `#! .'.  This would cause the generated library to
9958     # depend on `.', always an invalid library.  This was fixed in
9959     # development snapshots of GCC prior to 3.0.
9960     case $host_os in
9961       aix4 | aix4.[01] | aix4.[01].*)
9962       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9963            echo ' yes '
9964            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9965         :
9966       else
9967         can_build_shared=no
9968       fi
9969       ;;
9970     esac
9971     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9972     # soname into executable. Probably we can add versioning support to
9973     # collect2, so additional links can be useful in future.
9974     if test "$aix_use_runtimelinking" = yes; then
9975       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9976       # instead of lib<name>.a to let people know that these are not
9977       # typical AIX shared libraries.
9978       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979     else
9980       # We preserve .a as extension for shared libraries through AIX4.2
9981       # and later when we are not doing run time linking.
9982       library_names_spec='${libname}${release}.a $libname.a'
9983       soname_spec='${libname}${release}${shared_ext}$major'
9984     fi
9985     shlibpath_var=LIBPATH
9986   fi
9987   ;;
9988
9989 amigaos*)
9990   case $host_cpu in
9991   powerpc)
9992     # Since July 2007 AmigaOS4 officially supports .so libraries.
9993     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995     ;;
9996   m68k)
9997     library_names_spec='$libname.ixlibrary $libname.a'
9998     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9999     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'
10000     ;;
10001   esac
10002   ;;
10003
10004 beos*)
10005   library_names_spec='${libname}${shared_ext}'
10006   dynamic_linker="$host_os ld.so"
10007   shlibpath_var=LIBRARY_PATH
10008   ;;
10009
10010 bsdi[45]*)
10011   version_type=linux # correct to gnu/linux during the next big refactor
10012   need_version=no
10013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014   soname_spec='${libname}${release}${shared_ext}$major'
10015   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10016   shlibpath_var=LD_LIBRARY_PATH
10017   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10018   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10019   # the default ld.so.conf also contains /usr/contrib/lib and
10020   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10021   # libtool to hard-code these into programs
10022   ;;
10023
10024 cygwin* | mingw* | pw32* | cegcc*)
10025   version_type=windows
10026   shrext_cmds=".dll"
10027   need_version=no
10028   need_lib_prefix=no
10029
10030   case $GCC,$cc_basename in
10031   yes,*)
10032     # gcc
10033     library_names_spec='$libname.dll.a'
10034     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10035     postinstall_cmds='base_file=`basename \${file}`~
10036       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10037       dldir=$destdir/`dirname \$dlpath`~
10038       test -d \$dldir || mkdir -p \$dldir~
10039       $install_prog $dir/$dlname \$dldir/$dlname~
10040       chmod a+x \$dldir/$dlname~
10041       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10042         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10043       fi'
10044     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10045       dlpath=$dir/\$dldll~
10046        $RM \$dlpath'
10047     shlibpath_overrides_runpath=yes
10048
10049     case $host_os in
10050     cygwin*)
10051       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10052       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10053
10054       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10055       ;;
10056     mingw* | cegcc*)
10057       # MinGW DLLs use traditional 'lib' prefix
10058       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10059       ;;
10060     pw32*)
10061       # pw32 DLLs use 'pw' prefix rather than 'lib'
10062       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10063       ;;
10064     esac
10065     dynamic_linker='Win32 ld.exe'
10066     ;;
10067
10068   *,cl*)
10069     # Native MSVC
10070     libname_spec='$name'
10071     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10072     library_names_spec='${libname}.dll.lib'
10073
10074     case $build_os in
10075     mingw*)
10076       sys_lib_search_path_spec=
10077       lt_save_ifs=$IFS
10078       IFS=';'
10079       for lt_path in $LIB
10080       do
10081         IFS=$lt_save_ifs
10082         # Let DOS variable expansion print the short 8.3 style file name.
10083         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10084         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10085       done
10086       IFS=$lt_save_ifs
10087       # Convert to MSYS style.
10088       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10089       ;;
10090     cygwin*)
10091       # Convert to unix form, then to dos form, then back to unix form
10092       # but this time dos style (no spaces!) so that the unix form looks
10093       # like /cygdrive/c/PROGRA~1:/cygdr...
10094       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10095       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10096       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10097       ;;
10098     *)
10099       sys_lib_search_path_spec="$LIB"
10100       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10101         # It is most probably a Windows format PATH.
10102         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10103       else
10104         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10105       fi
10106       # FIXME: find the short name or the path components, as spaces are
10107       # common. (e.g. "Program Files" -> "PROGRA~1")
10108       ;;
10109     esac
10110
10111     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10112     postinstall_cmds='base_file=`basename \${file}`~
10113       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10114       dldir=$destdir/`dirname \$dlpath`~
10115       test -d \$dldir || mkdir -p \$dldir~
10116       $install_prog $dir/$dlname \$dldir/$dlname'
10117     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10118       dlpath=$dir/\$dldll~
10119        $RM \$dlpath'
10120     shlibpath_overrides_runpath=yes
10121     dynamic_linker='Win32 link.exe'
10122     ;;
10123
10124   *)
10125     # Assume MSVC wrapper
10126     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10127     dynamic_linker='Win32 ld.exe'
10128     ;;
10129   esac
10130   # FIXME: first we should search . and the directory the executable is in
10131   shlibpath_var=PATH
10132   ;;
10133
10134 darwin* | rhapsody*)
10135   dynamic_linker="$host_os dyld"
10136   version_type=darwin
10137   need_lib_prefix=no
10138   need_version=no
10139   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10140   soname_spec='${libname}${release}${major}$shared_ext'
10141   shlibpath_overrides_runpath=yes
10142   shlibpath_var=DYLD_LIBRARY_PATH
10143   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10144
10145   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10146   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10147   ;;
10148
10149 dgux*)
10150   version_type=linux # correct to gnu/linux during the next big refactor
10151   need_lib_prefix=no
10152   need_version=no
10153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10154   soname_spec='${libname}${release}${shared_ext}$major'
10155   shlibpath_var=LD_LIBRARY_PATH
10156   ;;
10157
10158 freebsd* | dragonfly*)
10159   # DragonFly does not have aout.  When/if they implement a new
10160   # versioning mechanism, adjust this.
10161   if test -x /usr/bin/objformat; then
10162     objformat=`/usr/bin/objformat`
10163   else
10164     case $host_os in
10165     freebsd[23].*) objformat=aout ;;
10166     *) objformat=elf ;;
10167     esac
10168   fi
10169   version_type=freebsd-$objformat
10170   case $version_type in
10171     freebsd-elf*)
10172       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10173       need_version=no
10174       need_lib_prefix=no
10175       ;;
10176     freebsd-*)
10177       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10178       need_version=yes
10179       ;;
10180   esac
10181   shlibpath_var=LD_LIBRARY_PATH
10182   case $host_os in
10183   freebsd2.*)
10184     shlibpath_overrides_runpath=yes
10185     ;;
10186   freebsd3.[01]* | freebsdelf3.[01]*)
10187     shlibpath_overrides_runpath=yes
10188     hardcode_into_libs=yes
10189     ;;
10190   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10191   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10192     shlibpath_overrides_runpath=no
10193     hardcode_into_libs=yes
10194     ;;
10195   *) # from 4.6 on, and DragonFly
10196     shlibpath_overrides_runpath=yes
10197     hardcode_into_libs=yes
10198     ;;
10199   esac
10200   ;;
10201
10202 haiku*)
10203   version_type=linux # correct to gnu/linux during the next big refactor
10204   need_lib_prefix=no
10205   need_version=no
10206   dynamic_linker="$host_os runtime_loader"
10207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10208   soname_spec='${libname}${release}${shared_ext}$major'
10209   shlibpath_var=LIBRARY_PATH
10210   shlibpath_overrides_runpath=yes
10211   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10212   hardcode_into_libs=yes
10213   ;;
10214
10215 hpux9* | hpux10* | hpux11*)
10216   # Give a soname corresponding to the major version so that dld.sl refuses to
10217   # link against other versions.
10218   version_type=sunos
10219   need_lib_prefix=no
10220   need_version=no
10221   case $host_cpu in
10222   ia64*)
10223     shrext_cmds='.so'
10224     hardcode_into_libs=yes
10225     dynamic_linker="$host_os dld.so"
10226     shlibpath_var=LD_LIBRARY_PATH
10227     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229     soname_spec='${libname}${release}${shared_ext}$major'
10230     if test "X$HPUX_IA64_MODE" = X32; then
10231       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10232     else
10233       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10234     fi
10235     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10236     ;;
10237   hppa*64*)
10238     shrext_cmds='.sl'
10239     hardcode_into_libs=yes
10240     dynamic_linker="$host_os dld.sl"
10241     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10242     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244     soname_spec='${libname}${release}${shared_ext}$major'
10245     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10246     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10247     ;;
10248   *)
10249     shrext_cmds='.sl'
10250     dynamic_linker="$host_os dld.sl"
10251     shlibpath_var=SHLIB_PATH
10252     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10253     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254     soname_spec='${libname}${release}${shared_ext}$major'
10255     ;;
10256   esac
10257   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10258   postinstall_cmds='chmod 555 $lib'
10259   # or fails outright, so override atomically:
10260   install_override_mode=555
10261   ;;
10262
10263 interix[3-9]*)
10264   version_type=linux # correct to gnu/linux during the next big refactor
10265   need_lib_prefix=no
10266   need_version=no
10267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10268   soname_spec='${libname}${release}${shared_ext}$major'
10269   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10270   shlibpath_var=LD_LIBRARY_PATH
10271   shlibpath_overrides_runpath=no
10272   hardcode_into_libs=yes
10273   ;;
10274
10275 irix5* | irix6* | nonstopux*)
10276   case $host_os in
10277     nonstopux*) version_type=nonstopux ;;
10278     *)
10279         if test "$lt_cv_prog_gnu_ld" = yes; then
10280                 version_type=linux # correct to gnu/linux during the next big refactor
10281         else
10282                 version_type=irix
10283         fi ;;
10284   esac
10285   need_lib_prefix=no
10286   need_version=no
10287   soname_spec='${libname}${release}${shared_ext}$major'
10288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10289   case $host_os in
10290   irix5* | nonstopux*)
10291     libsuff= shlibsuff=
10292     ;;
10293   *)
10294     case $LD in # libtool.m4 will add one of these switches to LD
10295     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10296       libsuff= shlibsuff= libmagic=32-bit;;
10297     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10298       libsuff=32 shlibsuff=N32 libmagic=N32;;
10299     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10300       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10301     *) libsuff= shlibsuff= libmagic=never-match;;
10302     esac
10303     ;;
10304   esac
10305   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10306   shlibpath_overrides_runpath=no
10307   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10308   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10309   hardcode_into_libs=yes
10310   ;;
10311
10312 # No shared lib support for Linux oldld, aout, or coff.
10313 linux*oldld* | linux*aout* | linux*coff*)
10314   dynamic_linker=no
10315   ;;
10316
10317 # This must be glibc/ELF.
10318 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10319   version_type=linux # correct to gnu/linux during the next big refactor
10320   need_lib_prefix=no
10321   need_version=no
10322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323   soname_spec='${libname}${release}${shared_ext}$major'
10324   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10325   shlibpath_var=LD_LIBRARY_PATH
10326   shlibpath_overrides_runpath=no
10327
10328   # Some binutils ld are patched to set DT_RUNPATH
10329   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10330   $as_echo_n "(cached) " >&6
10331 else
10332   lt_cv_shlibpath_overrides_runpath=no
10333     save_LDFLAGS=$LDFLAGS
10334     save_libdir=$libdir
10335     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10336          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10337     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h.  */
10339
10340 int
10341 main ()
10342 {
10343
10344   ;
10345   return 0;
10346 }
10347 _ACEOF
10348 if ac_fn_c_try_link "$LINENO"; then :
10349   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10350   lt_cv_shlibpath_overrides_runpath=yes
10351 fi
10352 fi
10353 rm -f core conftest.err conftest.$ac_objext \
10354     conftest$ac_exeext conftest.$ac_ext
10355     LDFLAGS=$save_LDFLAGS
10356     libdir=$save_libdir
10357
10358 fi
10359
10360   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10361
10362   # This implies no fast_install, which is unacceptable.
10363   # Some rework will be needed to allow for fast_install
10364   # before this can be enabled.
10365   hardcode_into_libs=yes
10366
10367   # Append ld.so.conf contents to the search path
10368   if test -f /etc/ld.so.conf; then
10369     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' ' '`
10370     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10371   fi
10372
10373   # We used to test for /lib/ld.so.1 and disable shared libraries on
10374   # powerpc, because MkLinux only supported shared libraries with the
10375   # GNU dynamic linker.  Since this was broken with cross compilers,
10376   # most powerpc-linux boxes support dynamic linking these days and
10377   # people can always --disable-shared, the test was removed, and we
10378   # assume the GNU/Linux dynamic linker is in use.
10379   dynamic_linker='GNU/Linux ld.so'
10380   ;;
10381
10382 netbsdelf*-gnu)
10383   version_type=linux
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   shlibpath_var=LD_LIBRARY_PATH
10389   shlibpath_overrides_runpath=no
10390   hardcode_into_libs=yes
10391   dynamic_linker='NetBSD ld.elf_so'
10392   ;;
10393
10394 netbsd*)
10395   version_type=sunos
10396   need_lib_prefix=no
10397   need_version=no
10398   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10399     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10400     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10401     dynamic_linker='NetBSD (a.out) ld.so'
10402   else
10403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10404     soname_spec='${libname}${release}${shared_ext}$major'
10405     dynamic_linker='NetBSD ld.elf_so'
10406   fi
10407   shlibpath_var=LD_LIBRARY_PATH
10408   shlibpath_overrides_runpath=yes
10409   hardcode_into_libs=yes
10410   ;;
10411
10412 newsos6)
10413   version_type=linux # correct to gnu/linux during the next big refactor
10414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10415   shlibpath_var=LD_LIBRARY_PATH
10416   shlibpath_overrides_runpath=yes
10417   ;;
10418
10419 *nto* | *qnx*)
10420   version_type=qnx
10421   need_lib_prefix=no
10422   need_version=no
10423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424   soname_spec='${libname}${release}${shared_ext}$major'
10425   shlibpath_var=LD_LIBRARY_PATH
10426   shlibpath_overrides_runpath=no
10427   hardcode_into_libs=yes
10428   dynamic_linker='ldqnx.so'
10429   ;;
10430
10431 openbsd*)
10432   version_type=sunos
10433   sys_lib_dlsearch_path_spec="/usr/lib"
10434   need_lib_prefix=no
10435   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10436   case $host_os in
10437     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10438     *)                          need_version=no  ;;
10439   esac
10440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10441   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10442   shlibpath_var=LD_LIBRARY_PATH
10443   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10444     case $host_os in
10445       openbsd2.[89] | openbsd2.[89].*)
10446         shlibpath_overrides_runpath=no
10447         ;;
10448       *)
10449         shlibpath_overrides_runpath=yes
10450         ;;
10451       esac
10452   else
10453     shlibpath_overrides_runpath=yes
10454   fi
10455   ;;
10456
10457 os2*)
10458   libname_spec='$name'
10459   shrext_cmds=".dll"
10460   need_lib_prefix=no
10461   library_names_spec='$libname${shared_ext} $libname.a'
10462   dynamic_linker='OS/2 ld.exe'
10463   shlibpath_var=LIBPATH
10464   ;;
10465
10466 osf3* | osf4* | osf5*)
10467   version_type=osf
10468   need_lib_prefix=no
10469   need_version=no
10470   soname_spec='${libname}${release}${shared_ext}$major'
10471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10472   shlibpath_var=LD_LIBRARY_PATH
10473   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10474   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10475   ;;
10476
10477 rdos*)
10478   dynamic_linker=no
10479   ;;
10480
10481 solaris*)
10482   version_type=linux # correct to gnu/linux during the next big refactor
10483   need_lib_prefix=no
10484   need_version=no
10485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486   soname_spec='${libname}${release}${shared_ext}$major'
10487   shlibpath_var=LD_LIBRARY_PATH
10488   shlibpath_overrides_runpath=yes
10489   hardcode_into_libs=yes
10490   # ldd complains unless libraries are executable
10491   postinstall_cmds='chmod +x $lib'
10492   ;;
10493
10494 sunos4*)
10495   version_type=sunos
10496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10497   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10498   shlibpath_var=LD_LIBRARY_PATH
10499   shlibpath_overrides_runpath=yes
10500   if test "$with_gnu_ld" = yes; then
10501     need_lib_prefix=no
10502   fi
10503   need_version=yes
10504   ;;
10505
10506 sysv4 | sysv4.3*)
10507   version_type=linux # correct to gnu/linux during the next big refactor
10508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509   soname_spec='${libname}${release}${shared_ext}$major'
10510   shlibpath_var=LD_LIBRARY_PATH
10511   case $host_vendor in
10512     sni)
10513       shlibpath_overrides_runpath=no
10514       need_lib_prefix=no
10515       runpath_var=LD_RUN_PATH
10516       ;;
10517     siemens)
10518       need_lib_prefix=no
10519       ;;
10520     motorola)
10521       need_lib_prefix=no
10522       need_version=no
10523       shlibpath_overrides_runpath=no
10524       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10525       ;;
10526   esac
10527   ;;
10528
10529 sysv4*MP*)
10530   if test -d /usr/nec ;then
10531     version_type=linux # correct to gnu/linux during the next big refactor
10532     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10533     soname_spec='$libname${shared_ext}.$major'
10534     shlibpath_var=LD_LIBRARY_PATH
10535   fi
10536   ;;
10537
10538 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10539   version_type=freebsd-elf
10540   need_lib_prefix=no
10541   need_version=no
10542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10543   soname_spec='${libname}${release}${shared_ext}$major'
10544   shlibpath_var=LD_LIBRARY_PATH
10545   shlibpath_overrides_runpath=yes
10546   hardcode_into_libs=yes
10547   if test "$with_gnu_ld" = yes; then
10548     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10549   else
10550     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10551     case $host_os in
10552       sco3.2v5*)
10553         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10554         ;;
10555     esac
10556   fi
10557   sys_lib_dlsearch_path_spec='/usr/lib'
10558   ;;
10559
10560 tpf*)
10561   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10562   version_type=linux # correct to gnu/linux during the next big refactor
10563   need_lib_prefix=no
10564   need_version=no
10565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10566   shlibpath_var=LD_LIBRARY_PATH
10567   shlibpath_overrides_runpath=no
10568   hardcode_into_libs=yes
10569   ;;
10570
10571 uts4*)
10572   version_type=linux # correct to gnu/linux during the next big refactor
10573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574   soname_spec='${libname}${release}${shared_ext}$major'
10575   shlibpath_var=LD_LIBRARY_PATH
10576   ;;
10577
10578 *)
10579   dynamic_linker=no
10580   ;;
10581 esac
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10583 $as_echo "$dynamic_linker" >&6; }
10584 test "$dynamic_linker" = no && can_build_shared=no
10585
10586 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10587 if test "$GCC" = yes; then
10588   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10589 fi
10590
10591 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10592   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10593 fi
10594 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10595   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10596 fi
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10690 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10691 hardcode_action=
10692 if test -n "$hardcode_libdir_flag_spec" ||
10693    test -n "$runpath_var" ||
10694    test "X$hardcode_automatic" = "Xyes" ; then
10695
10696   # We can hardcode non-existent directories.
10697   if test "$hardcode_direct" != no &&
10698      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10699      # have to relink, otherwise we might link with an installed library
10700      # when we should be linking with a yet-to-be-installed one
10701      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10702      test "$hardcode_minus_L" != no; then
10703     # Linking always hardcodes the temporary library directory.
10704     hardcode_action=relink
10705   else
10706     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10707     hardcode_action=immediate
10708   fi
10709 else
10710   # We cannot hardcode anything, or else we can only hardcode existing
10711   # directories.
10712   hardcode_action=unsupported
10713 fi
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10715 $as_echo "$hardcode_action" >&6; }
10716
10717 if test "$hardcode_action" = relink ||
10718    test "$inherit_rpath" = yes; then
10719   # Fast installation is not supported
10720   enable_fast_install=no
10721 elif test "$shlibpath_overrides_runpath" = yes ||
10722      test "$enable_shared" = no; then
10723   # Fast installation is not necessary
10724   enable_fast_install=needless
10725 fi
10726
10727
10728
10729
10730
10731
10732   if test "x$enable_dlopen" != xyes; then
10733   enable_dlopen=unknown
10734   enable_dlopen_self=unknown
10735   enable_dlopen_self_static=unknown
10736 else
10737   lt_cv_dlopen=no
10738   lt_cv_dlopen_libs=
10739
10740   case $host_os in
10741   beos*)
10742     lt_cv_dlopen="load_add_on"
10743     lt_cv_dlopen_libs=
10744     lt_cv_dlopen_self=yes
10745     ;;
10746
10747   mingw* | pw32* | cegcc*)
10748     lt_cv_dlopen="LoadLibrary"
10749     lt_cv_dlopen_libs=
10750     ;;
10751
10752   cygwin*)
10753     lt_cv_dlopen="dlopen"
10754     lt_cv_dlopen_libs=
10755     ;;
10756
10757   darwin*)
10758   # if libdl is installed we need to link against it
10759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10760 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10761 if ${ac_cv_lib_dl_dlopen+:} false; then :
10762   $as_echo_n "(cached) " >&6
10763 else
10764   ac_check_lib_save_LIBS=$LIBS
10765 LIBS="-ldl  $LIBS"
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h.  */
10768
10769 /* Override any GCC internal prototype to avoid an error.
10770    Use char because int might match the return type of a GCC
10771    builtin and then its argument prototype would still apply.  */
10772 #ifdef __cplusplus
10773 extern "C"
10774 #endif
10775 char dlopen ();
10776 int
10777 main ()
10778 {
10779 return dlopen ();
10780   ;
10781   return 0;
10782 }
10783 _ACEOF
10784 if ac_fn_c_try_link "$LINENO"; then :
10785   ac_cv_lib_dl_dlopen=yes
10786 else
10787   ac_cv_lib_dl_dlopen=no
10788 fi
10789 rm -f core conftest.err conftest.$ac_objext \
10790     conftest$ac_exeext conftest.$ac_ext
10791 LIBS=$ac_check_lib_save_LIBS
10792 fi
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10794 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10795 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10796   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10797 else
10798
10799     lt_cv_dlopen="dyld"
10800     lt_cv_dlopen_libs=
10801     lt_cv_dlopen_self=yes
10802
10803 fi
10804
10805     ;;
10806
10807   *)
10808     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10809 if test "x$ac_cv_func_shl_load" = xyes; then :
10810   lt_cv_dlopen="shl_load"
10811 else
10812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10813 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10814 if ${ac_cv_lib_dld_shl_load+:} false; then :
10815   $as_echo_n "(cached) " >&6
10816 else
10817   ac_check_lib_save_LIBS=$LIBS
10818 LIBS="-ldld  $LIBS"
10819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10820 /* end confdefs.h.  */
10821
10822 /* Override any GCC internal prototype to avoid an error.
10823    Use char because int might match the return type of a GCC
10824    builtin and then its argument prototype would still apply.  */
10825 #ifdef __cplusplus
10826 extern "C"
10827 #endif
10828 char shl_load ();
10829 int
10830 main ()
10831 {
10832 return shl_load ();
10833   ;
10834   return 0;
10835 }
10836 _ACEOF
10837 if ac_fn_c_try_link "$LINENO"; then :
10838   ac_cv_lib_dld_shl_load=yes
10839 else
10840   ac_cv_lib_dld_shl_load=no
10841 fi
10842 rm -f core conftest.err conftest.$ac_objext \
10843     conftest$ac_exeext conftest.$ac_ext
10844 LIBS=$ac_check_lib_save_LIBS
10845 fi
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10847 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10848 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10849   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10850 else
10851   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10852 if test "x$ac_cv_func_dlopen" = xyes; then :
10853   lt_cv_dlopen="dlopen"
10854 else
10855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10856 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10857 if ${ac_cv_lib_dl_dlopen+:} false; then :
10858   $as_echo_n "(cached) " >&6
10859 else
10860   ac_check_lib_save_LIBS=$LIBS
10861 LIBS="-ldl  $LIBS"
10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h.  */
10864
10865 /* Override any GCC internal prototype to avoid an error.
10866    Use char because int might match the return type of a GCC
10867    builtin and then its argument prototype would still apply.  */
10868 #ifdef __cplusplus
10869 extern "C"
10870 #endif
10871 char dlopen ();
10872 int
10873 main ()
10874 {
10875 return dlopen ();
10876   ;
10877   return 0;
10878 }
10879 _ACEOF
10880 if ac_fn_c_try_link "$LINENO"; then :
10881   ac_cv_lib_dl_dlopen=yes
10882 else
10883   ac_cv_lib_dl_dlopen=no
10884 fi
10885 rm -f core conftest.err conftest.$ac_objext \
10886     conftest$ac_exeext conftest.$ac_ext
10887 LIBS=$ac_check_lib_save_LIBS
10888 fi
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10890 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10891 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10892   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10893 else
10894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10895 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10896 if ${ac_cv_lib_svld_dlopen+:} false; then :
10897   $as_echo_n "(cached) " >&6
10898 else
10899   ac_check_lib_save_LIBS=$LIBS
10900 LIBS="-lsvld  $LIBS"
10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h.  */
10903
10904 /* Override any GCC internal prototype to avoid an error.
10905    Use char because int might match the return type of a GCC
10906    builtin and then its argument prototype would still apply.  */
10907 #ifdef __cplusplus
10908 extern "C"
10909 #endif
10910 char dlopen ();
10911 int
10912 main ()
10913 {
10914 return dlopen ();
10915   ;
10916   return 0;
10917 }
10918 _ACEOF
10919 if ac_fn_c_try_link "$LINENO"; then :
10920   ac_cv_lib_svld_dlopen=yes
10921 else
10922   ac_cv_lib_svld_dlopen=no
10923 fi
10924 rm -f core conftest.err conftest.$ac_objext \
10925     conftest$ac_exeext conftest.$ac_ext
10926 LIBS=$ac_check_lib_save_LIBS
10927 fi
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10929 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10930 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10931   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10932 else
10933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10934 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10935 if ${ac_cv_lib_dld_dld_link+:} false; then :
10936   $as_echo_n "(cached) " >&6
10937 else
10938   ac_check_lib_save_LIBS=$LIBS
10939 LIBS="-ldld  $LIBS"
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h.  */
10942
10943 /* Override any GCC internal prototype to avoid an error.
10944    Use char because int might match the return type of a GCC
10945    builtin and then its argument prototype would still apply.  */
10946 #ifdef __cplusplus
10947 extern "C"
10948 #endif
10949 char dld_link ();
10950 int
10951 main ()
10952 {
10953 return dld_link ();
10954   ;
10955   return 0;
10956 }
10957 _ACEOF
10958 if ac_fn_c_try_link "$LINENO"; then :
10959   ac_cv_lib_dld_dld_link=yes
10960 else
10961   ac_cv_lib_dld_dld_link=no
10962 fi
10963 rm -f core conftest.err conftest.$ac_objext \
10964     conftest$ac_exeext conftest.$ac_ext
10965 LIBS=$ac_check_lib_save_LIBS
10966 fi
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10968 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10969 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10970   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10971 fi
10972
10973
10974 fi
10975
10976
10977 fi
10978
10979
10980 fi
10981
10982
10983 fi
10984
10985
10986 fi
10987
10988     ;;
10989   esac
10990
10991   if test "x$lt_cv_dlopen" != xno; then
10992     enable_dlopen=yes
10993   else
10994     enable_dlopen=no
10995   fi
10996
10997   case $lt_cv_dlopen in
10998   dlopen)
10999     save_CPPFLAGS="$CPPFLAGS"
11000     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11001
11002     save_LDFLAGS="$LDFLAGS"
11003     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11004
11005     save_LIBS="$LIBS"
11006     LIBS="$lt_cv_dlopen_libs $LIBS"
11007
11008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11009 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11010 if ${lt_cv_dlopen_self+:} false; then :
11011   $as_echo_n "(cached) " >&6
11012 else
11013           if test "$cross_compiling" = yes; then :
11014   lt_cv_dlopen_self=cross
11015 else
11016   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11017   lt_status=$lt_dlunknown
11018   cat > conftest.$ac_ext <<_LT_EOF
11019 #line $LINENO "configure"
11020 #include "confdefs.h"
11021
11022 #if HAVE_DLFCN_H
11023 #include <dlfcn.h>
11024 #endif
11025
11026 #include <stdio.h>
11027
11028 #ifdef RTLD_GLOBAL
11029 #  define LT_DLGLOBAL           RTLD_GLOBAL
11030 #else
11031 #  ifdef DL_GLOBAL
11032 #    define LT_DLGLOBAL         DL_GLOBAL
11033 #  else
11034 #    define LT_DLGLOBAL         0
11035 #  endif
11036 #endif
11037
11038 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11039    find out it does not work in some platform. */
11040 #ifndef LT_DLLAZY_OR_NOW
11041 #  ifdef RTLD_LAZY
11042 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11043 #  else
11044 #    ifdef DL_LAZY
11045 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11046 #    else
11047 #      ifdef RTLD_NOW
11048 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11049 #      else
11050 #        ifdef DL_NOW
11051 #          define LT_DLLAZY_OR_NOW      DL_NOW
11052 #        else
11053 #          define LT_DLLAZY_OR_NOW      0
11054 #        endif
11055 #      endif
11056 #    endif
11057 #  endif
11058 #endif
11059
11060 /* When -fvisbility=hidden is used, assume the code has been annotated
11061    correspondingly for the symbols needed.  */
11062 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11063 int fnord () __attribute__((visibility("default")));
11064 #endif
11065
11066 int fnord () { return 42; }
11067 int main ()
11068 {
11069   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11070   int status = $lt_dlunknown;
11071
11072   if (self)
11073     {
11074       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11075       else
11076         {
11077           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11078           else puts (dlerror ());
11079         }
11080       /* dlclose (self); */
11081     }
11082   else
11083     puts (dlerror ());
11084
11085   return status;
11086 }
11087 _LT_EOF
11088   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11089   (eval $ac_link) 2>&5
11090   ac_status=$?
11091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11092   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11093     (./conftest; exit; ) >&5 2>/dev/null
11094     lt_status=$?
11095     case x$lt_status in
11096       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11097       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11098       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11099     esac
11100   else :
11101     # compilation failed
11102     lt_cv_dlopen_self=no
11103   fi
11104 fi
11105 rm -fr conftest*
11106
11107
11108 fi
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11110 $as_echo "$lt_cv_dlopen_self" >&6; }
11111
11112     if test "x$lt_cv_dlopen_self" = xyes; then
11113       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11114       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11115 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11116 if ${lt_cv_dlopen_self_static+:} false; then :
11117   $as_echo_n "(cached) " >&6
11118 else
11119           if test "$cross_compiling" = yes; then :
11120   lt_cv_dlopen_self_static=cross
11121 else
11122   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11123   lt_status=$lt_dlunknown
11124   cat > conftest.$ac_ext <<_LT_EOF
11125 #line $LINENO "configure"
11126 #include "confdefs.h"
11127
11128 #if HAVE_DLFCN_H
11129 #include <dlfcn.h>
11130 #endif
11131
11132 #include <stdio.h>
11133
11134 #ifdef RTLD_GLOBAL
11135 #  define LT_DLGLOBAL           RTLD_GLOBAL
11136 #else
11137 #  ifdef DL_GLOBAL
11138 #    define LT_DLGLOBAL         DL_GLOBAL
11139 #  else
11140 #    define LT_DLGLOBAL         0
11141 #  endif
11142 #endif
11143
11144 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11145    find out it does not work in some platform. */
11146 #ifndef LT_DLLAZY_OR_NOW
11147 #  ifdef RTLD_LAZY
11148 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11149 #  else
11150 #    ifdef DL_LAZY
11151 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11152 #    else
11153 #      ifdef RTLD_NOW
11154 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11155 #      else
11156 #        ifdef DL_NOW
11157 #          define LT_DLLAZY_OR_NOW      DL_NOW
11158 #        else
11159 #          define LT_DLLAZY_OR_NOW      0
11160 #        endif
11161 #      endif
11162 #    endif
11163 #  endif
11164 #endif
11165
11166 /* When -fvisbility=hidden is used, assume the code has been annotated
11167    correspondingly for the symbols needed.  */
11168 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11169 int fnord () __attribute__((visibility("default")));
11170 #endif
11171
11172 int fnord () { return 42; }
11173 int main ()
11174 {
11175   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11176   int status = $lt_dlunknown;
11177
11178   if (self)
11179     {
11180       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11181       else
11182         {
11183           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11184           else puts (dlerror ());
11185         }
11186       /* dlclose (self); */
11187     }
11188   else
11189     puts (dlerror ());
11190
11191   return status;
11192 }
11193 _LT_EOF
11194   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11195   (eval $ac_link) 2>&5
11196   ac_status=$?
11197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11198   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11199     (./conftest; exit; ) >&5 2>/dev/null
11200     lt_status=$?
11201     case x$lt_status in
11202       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11203       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11204       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11205     esac
11206   else :
11207     # compilation failed
11208     lt_cv_dlopen_self_static=no
11209   fi
11210 fi
11211 rm -fr conftest*
11212
11213
11214 fi
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11216 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11217     fi
11218
11219     CPPFLAGS="$save_CPPFLAGS"
11220     LDFLAGS="$save_LDFLAGS"
11221     LIBS="$save_LIBS"
11222     ;;
11223   esac
11224
11225   case $lt_cv_dlopen_self in
11226   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11227   *) enable_dlopen_self=unknown ;;
11228   esac
11229
11230   case $lt_cv_dlopen_self_static in
11231   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11232   *) enable_dlopen_self_static=unknown ;;
11233   esac
11234 fi
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252 striplib=
11253 old_striplib=
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11255 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11256 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11257   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11258   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11260 $as_echo "yes" >&6; }
11261 else
11262 # FIXME - insert some real tests, host_os isn't really good enough
11263   case $host_os in
11264   darwin*)
11265     if test -n "$STRIP" ; then
11266       striplib="$STRIP -x"
11267       old_striplib="$STRIP -S"
11268       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11269 $as_echo "yes" >&6; }
11270     else
11271       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11272 $as_echo "no" >&6; }
11273     fi
11274     ;;
11275   *)
11276     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; }
11278     ;;
11279   esac
11280 fi
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293   # Report which library types will actually be built
11294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11295 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11297 $as_echo "$can_build_shared" >&6; }
11298
11299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11300 $as_echo_n "checking whether to build shared libraries... " >&6; }
11301   test "$can_build_shared" = "no" && enable_shared=no
11302
11303   # On AIX, shared libraries and static libraries use the same namespace, and
11304   # are all built from PIC.
11305   case $host_os in
11306   aix3*)
11307     test "$enable_shared" = yes && enable_static=no
11308     if test -n "$RANLIB"; then
11309       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11310       postinstall_cmds='$RANLIB $lib'
11311     fi
11312     ;;
11313
11314   aix[4-9]*)
11315     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11316       test "$enable_shared" = yes && enable_static=no
11317     fi
11318     ;;
11319   esac
11320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11321 $as_echo "$enable_shared" >&6; }
11322
11323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11324 $as_echo_n "checking whether to build static libraries... " >&6; }
11325   # Make sure either enable_shared or enable_static is yes.
11326   test "$enable_shared" = yes || enable_static=yes
11327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11328 $as_echo "$enable_static" >&6; }
11329
11330
11331
11332
11333 fi
11334 ac_ext=c
11335 ac_cpp='$CPP $CPPFLAGS'
11336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11339
11340 CC="$lt_save_CC"
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356         ac_config_commands="$ac_config_commands libtool"
11357
11358
11359
11360
11361 # Only expand once:
11362
11363
11364 # By default we simply use the C compiler to build assembly code.
11365
11366 test "${CCAS+set}" = set || CCAS=$CC
11367 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11368
11369
11370
11371 depcc="$CCAS"   am_compiler_list=
11372
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11374 $as_echo_n "checking dependency style of $depcc... " >&6; }
11375 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
11376   $as_echo_n "(cached) " >&6
11377 else
11378   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11379   # We make a subdir and do the tests there.  Otherwise we can end up
11380   # making bogus files that we don't know about and never remove.  For
11381   # instance it was reported that on HP-UX the gcc test will end up
11382   # making a dummy file named 'D' -- because '-MD' means "put the output
11383   # in D".
11384   rm -rf conftest.dir
11385   mkdir conftest.dir
11386   # Copy depcomp to subdir because otherwise we won't find it if we're
11387   # using a relative directory.
11388   cp "$am_depcomp" conftest.dir
11389   cd conftest.dir
11390   # We will build objects and dependencies in a subdirectory because
11391   # it helps to detect inapplicable dependency modes.  For instance
11392   # both Tru64's cc and ICC support -MD to output dependencies as a
11393   # side effect of compilation, but ICC will put the dependencies in
11394   # the current directory while Tru64 will put them in the object
11395   # directory.
11396   mkdir sub
11397
11398   am_cv_CCAS_dependencies_compiler_type=none
11399   if test "$am_compiler_list" = ""; then
11400      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11401   fi
11402   am__universal=false
11403
11404
11405   for depmode in $am_compiler_list; do
11406     # Setup a source with many dependencies, because some compilers
11407     # like to wrap large dependency lists on column 80 (with \), and
11408     # we should not choose a depcomp mode which is confused by this.
11409     #
11410     # We need to recreate these files for each test, as the compiler may
11411     # overwrite some of them when testing with obscure command lines.
11412     # This happens at least with the AIX C compiler.
11413     : > sub/conftest.c
11414     for i in 1 2 3 4 5 6; do
11415       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11416       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11417       # Solaris 10 /bin/sh.
11418       echo '/* dummy */' > sub/conftst$i.h
11419     done
11420     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11421
11422     # We check with '-c' and '-o' for the sake of the "dashmstdout"
11423     # mode.  It turns out that the SunPro C++ compiler does not properly
11424     # handle '-M -o', and we need to detect this.  Also, some Intel
11425     # versions had trouble with output in subdirs.
11426     am__obj=sub/conftest.${OBJEXT-o}
11427     am__minus_obj="-o $am__obj"
11428     case $depmode in
11429     gcc)
11430       # This depmode causes a compiler race in universal mode.
11431       test "$am__universal" = false || continue
11432       ;;
11433     nosideeffect)
11434       # After this tag, mechanisms are not by side-effect, so they'll
11435       # only be used when explicitly requested.
11436       if test "x$enable_dependency_tracking" = xyes; then
11437         continue
11438       else
11439         break
11440       fi
11441       ;;
11442     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11443       # This compiler won't grok '-c -o', but also, the minuso test has
11444       # not run yet.  These depmodes are late enough in the game, and
11445       # so weak that their functioning should not be impacted.
11446       am__obj=conftest.${OBJEXT-o}
11447       am__minus_obj=
11448       ;;
11449     none) break ;;
11450     esac
11451     if depmode=$depmode \
11452        source=sub/conftest.c object=$am__obj \
11453        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11454        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11455          >/dev/null 2>conftest.err &&
11456        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11457        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11458        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11459        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11460       # icc doesn't choke on unknown options, it will just issue warnings
11461       # or remarks (even with -Werror).  So we grep stderr for any message
11462       # that says an option was ignored or not supported.
11463       # When given -MP, icc 7.0 and 7.1 complain thusly:
11464       #   icc: Command line warning: ignoring option '-M'; no argument required
11465       # The diagnosis changed in icc 8.0:
11466       #   icc: Command line remark: option '-MP' not supported
11467       if (grep 'ignoring option' conftest.err ||
11468           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11469         am_cv_CCAS_dependencies_compiler_type=$depmode
11470         break
11471       fi
11472     fi
11473   done
11474
11475   cd ..
11476   rm -rf conftest.dir
11477 else
11478   am_cv_CCAS_dependencies_compiler_type=none
11479 fi
11480
11481 fi
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11483 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11484 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11485
11486  if
11487   test "x$enable_dependency_tracking" != xno \
11488   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11489   am__fastdepCCAS_TRUE=
11490   am__fastdepCCAS_FALSE='#'
11491 else
11492   am__fastdepCCAS_TRUE='#'
11493   am__fastdepCCAS_FALSE=
11494 fi
11495
11496
11497 ac_ext=c
11498 ac_cpp='$CPP $CPPFLAGS'
11499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11502 if test -n "$ac_tool_prefix"; then
11503   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11504 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506 $as_echo_n "checking for $ac_word... " >&6; }
11507 if ${ac_cv_prog_CC+:} false; then :
11508   $as_echo_n "(cached) " >&6
11509 else
11510   if test -n "$CC"; then
11511   ac_cv_prog_CC="$CC" # Let the user override the test.
11512 else
11513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514 for as_dir in $PATH
11515 do
11516   IFS=$as_save_IFS
11517   test -z "$as_dir" && as_dir=.
11518     for ac_exec_ext in '' $ac_executable_extensions; do
11519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11520     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11522     break 2
11523   fi
11524 done
11525   done
11526 IFS=$as_save_IFS
11527
11528 fi
11529 fi
11530 CC=$ac_cv_prog_CC
11531 if test -n "$CC"; then
11532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11533 $as_echo "$CC" >&6; }
11534 else
11535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11537 fi
11538
11539
11540 fi
11541 if test -z "$ac_cv_prog_CC"; then
11542   ac_ct_CC=$CC
11543   # Extract the first word of "gcc", so it can be a program name with args.
11544 set dummy gcc; ac_word=$2
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11546 $as_echo_n "checking for $ac_word... " >&6; }
11547 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11548   $as_echo_n "(cached) " >&6
11549 else
11550   if test -n "$ac_ct_CC"; then
11551   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11552 else
11553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554 for as_dir in $PATH
11555 do
11556   IFS=$as_save_IFS
11557   test -z "$as_dir" && as_dir=.
11558     for ac_exec_ext in '' $ac_executable_extensions; do
11559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11560     ac_cv_prog_ac_ct_CC="gcc"
11561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11562     break 2
11563   fi
11564 done
11565   done
11566 IFS=$as_save_IFS
11567
11568 fi
11569 fi
11570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11571 if test -n "$ac_ct_CC"; then
11572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11573 $as_echo "$ac_ct_CC" >&6; }
11574 else
11575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576 $as_echo "no" >&6; }
11577 fi
11578
11579   if test "x$ac_ct_CC" = x; then
11580     CC=""
11581   else
11582     case $cross_compiling:$ac_tool_warned in
11583 yes:)
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11586 ac_tool_warned=yes ;;
11587 esac
11588     CC=$ac_ct_CC
11589   fi
11590 else
11591   CC="$ac_cv_prog_CC"
11592 fi
11593
11594 if test -z "$CC"; then
11595           if test -n "$ac_tool_prefix"; then
11596     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11597 set dummy ${ac_tool_prefix}cc; ac_word=$2
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11599 $as_echo_n "checking for $ac_word... " >&6; }
11600 if ${ac_cv_prog_CC+:} false; then :
11601   $as_echo_n "(cached) " >&6
11602 else
11603   if test -n "$CC"; then
11604   ac_cv_prog_CC="$CC" # Let the user override the test.
11605 else
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11608 do
11609   IFS=$as_save_IFS
11610   test -z "$as_dir" && as_dir=.
11611     for ac_exec_ext in '' $ac_executable_extensions; do
11612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11613     ac_cv_prog_CC="${ac_tool_prefix}cc"
11614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615     break 2
11616   fi
11617 done
11618   done
11619 IFS=$as_save_IFS
11620
11621 fi
11622 fi
11623 CC=$ac_cv_prog_CC
11624 if test -n "$CC"; then
11625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11626 $as_echo "$CC" >&6; }
11627 else
11628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11630 fi
11631
11632
11633   fi
11634 fi
11635 if test -z "$CC"; then
11636   # Extract the first word of "cc", so it can be a program name with args.
11637 set dummy cc; ac_word=$2
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 $as_echo_n "checking for $ac_word... " >&6; }
11640 if ${ac_cv_prog_CC+:} false; then :
11641   $as_echo_n "(cached) " >&6
11642 else
11643   if test -n "$CC"; then
11644   ac_cv_prog_CC="$CC" # Let the user override the test.
11645 else
11646   ac_prog_rejected=no
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11649 do
11650   IFS=$as_save_IFS
11651   test -z "$as_dir" && as_dir=.
11652     for ac_exec_ext in '' $ac_executable_extensions; do
11653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11654     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11655        ac_prog_rejected=yes
11656        continue
11657      fi
11658     ac_cv_prog_CC="cc"
11659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11660     break 2
11661   fi
11662 done
11663   done
11664 IFS=$as_save_IFS
11665
11666 if test $ac_prog_rejected = yes; then
11667   # We found a bogon in the path, so make sure we never use it.
11668   set dummy $ac_cv_prog_CC
11669   shift
11670   if test $# != 0; then
11671     # We chose a different compiler from the bogus one.
11672     # However, it has the same basename, so the bogon will be chosen
11673     # first if we set CC to just the basename; use the full file name.
11674     shift
11675     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11676   fi
11677 fi
11678 fi
11679 fi
11680 CC=$ac_cv_prog_CC
11681 if test -n "$CC"; then
11682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11683 $as_echo "$CC" >&6; }
11684 else
11685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686 $as_echo "no" >&6; }
11687 fi
11688
11689
11690 fi
11691 if test -z "$CC"; then
11692   if test -n "$ac_tool_prefix"; then
11693   for ac_prog in cl.exe
11694   do
11695     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698 $as_echo_n "checking for $ac_word... " >&6; }
11699 if ${ac_cv_prog_CC+:} false; then :
11700   $as_echo_n "(cached) " >&6
11701 else
11702   if test -n "$CC"; then
11703   ac_cv_prog_CC="$CC" # Let the user override the test.
11704 else
11705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706 for as_dir in $PATH
11707 do
11708   IFS=$as_save_IFS
11709   test -z "$as_dir" && as_dir=.
11710     for ac_exec_ext in '' $ac_executable_extensions; do
11711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11712     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11714     break 2
11715   fi
11716 done
11717   done
11718 IFS=$as_save_IFS
11719
11720 fi
11721 fi
11722 CC=$ac_cv_prog_CC
11723 if test -n "$CC"; then
11724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11725 $as_echo "$CC" >&6; }
11726 else
11727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728 $as_echo "no" >&6; }
11729 fi
11730
11731
11732     test -n "$CC" && break
11733   done
11734 fi
11735 if test -z "$CC"; then
11736   ac_ct_CC=$CC
11737   for ac_prog in cl.exe
11738 do
11739   # Extract the first word of "$ac_prog", so it can be a program name with args.
11740 set dummy $ac_prog; ac_word=$2
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11742 $as_echo_n "checking for $ac_word... " >&6; }
11743 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11744   $as_echo_n "(cached) " >&6
11745 else
11746   if test -n "$ac_ct_CC"; then
11747   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11748 else
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11751 do
11752   IFS=$as_save_IFS
11753   test -z "$as_dir" && as_dir=.
11754     for ac_exec_ext in '' $ac_executable_extensions; do
11755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11756     ac_cv_prog_ac_ct_CC="$ac_prog"
11757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758     break 2
11759   fi
11760 done
11761   done
11762 IFS=$as_save_IFS
11763
11764 fi
11765 fi
11766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11767 if test -n "$ac_ct_CC"; then
11768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11769 $as_echo "$ac_ct_CC" >&6; }
11770 else
11771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11772 $as_echo "no" >&6; }
11773 fi
11774
11775
11776   test -n "$ac_ct_CC" && break
11777 done
11778
11779   if test "x$ac_ct_CC" = x; then
11780     CC=""
11781   else
11782     case $cross_compiling:$ac_tool_warned in
11783 yes:)
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11786 ac_tool_warned=yes ;;
11787 esac
11788     CC=$ac_ct_CC
11789   fi
11790 fi
11791
11792 fi
11793
11794
11795 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11797 as_fn_error $? "no acceptable C compiler found in \$PATH
11798 See \`config.log' for more details" "$LINENO" 5; }
11799
11800 # Provide some information about the compiler.
11801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11802 set X $ac_compile
11803 ac_compiler=$2
11804 for ac_option in --version -v -V -qversion; do
11805   { { ac_try="$ac_compiler $ac_option >&5"
11806 case "(($ac_try" in
11807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808   *) ac_try_echo=$ac_try;;
11809 esac
11810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11811 $as_echo "$ac_try_echo"; } >&5
11812   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11813   ac_status=$?
11814   if test -s conftest.err; then
11815     sed '10a\
11816 ... rest of stderr output deleted ...
11817          10q' conftest.err >conftest.er1
11818     cat conftest.er1 >&5
11819   fi
11820   rm -f conftest.er1 conftest.err
11821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11822   test $ac_status = 0; }
11823 done
11824
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11826 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11827 if ${ac_cv_c_compiler_gnu+:} false; then :
11828   $as_echo_n "(cached) " >&6
11829 else
11830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11831 /* end confdefs.h.  */
11832
11833 int
11834 main ()
11835 {
11836 #ifndef __GNUC__
11837        choke me
11838 #endif
11839
11840   ;
11841   return 0;
11842 }
11843 _ACEOF
11844 if ac_fn_c_try_compile "$LINENO"; then :
11845   ac_compiler_gnu=yes
11846 else
11847   ac_compiler_gnu=no
11848 fi
11849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11850 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11851
11852 fi
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11854 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11855 if test $ac_compiler_gnu = yes; then
11856   GCC=yes
11857 else
11858   GCC=
11859 fi
11860 ac_test_CFLAGS=${CFLAGS+set}
11861 ac_save_CFLAGS=$CFLAGS
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11863 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11864 if ${ac_cv_prog_cc_g+:} false; then :
11865   $as_echo_n "(cached) " >&6
11866 else
11867   ac_save_c_werror_flag=$ac_c_werror_flag
11868    ac_c_werror_flag=yes
11869    ac_cv_prog_cc_g=no
11870    CFLAGS="-g"
11871    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h.  */
11873
11874 int
11875 main ()
11876 {
11877
11878   ;
11879   return 0;
11880 }
11881 _ACEOF
11882 if ac_fn_c_try_compile "$LINENO"; then :
11883   ac_cv_prog_cc_g=yes
11884 else
11885   CFLAGS=""
11886       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h.  */
11888
11889 int
11890 main ()
11891 {
11892
11893   ;
11894   return 0;
11895 }
11896 _ACEOF
11897 if ac_fn_c_try_compile "$LINENO"; then :
11898
11899 else
11900   ac_c_werror_flag=$ac_save_c_werror_flag
11901          CFLAGS="-g"
11902          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h.  */
11904
11905 int
11906 main ()
11907 {
11908
11909   ;
11910   return 0;
11911 }
11912 _ACEOF
11913 if ac_fn_c_try_compile "$LINENO"; then :
11914   ac_cv_prog_cc_g=yes
11915 fi
11916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917 fi
11918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11919 fi
11920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11921    ac_c_werror_flag=$ac_save_c_werror_flag
11922 fi
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11924 $as_echo "$ac_cv_prog_cc_g" >&6; }
11925 if test "$ac_test_CFLAGS" = set; then
11926   CFLAGS=$ac_save_CFLAGS
11927 elif test $ac_cv_prog_cc_g = yes; then
11928   if test "$GCC" = yes; then
11929     CFLAGS="-g -O2"
11930   else
11931     CFLAGS="-g"
11932   fi
11933 else
11934   if test "$GCC" = yes; then
11935     CFLAGS="-O2"
11936   else
11937     CFLAGS=
11938   fi
11939 fi
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11941 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11942 if ${ac_cv_prog_cc_c89+:} false; then :
11943   $as_echo_n "(cached) " >&6
11944 else
11945   ac_cv_prog_cc_c89=no
11946 ac_save_CC=$CC
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h.  */
11949 #include <stdarg.h>
11950 #include <stdio.h>
11951 struct stat;
11952 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11953 struct buf { int x; };
11954 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11955 static char *e (p, i)
11956      char **p;
11957      int i;
11958 {
11959   return p[i];
11960 }
11961 static char *f (char * (*g) (char **, int), char **p, ...)
11962 {
11963   char *s;
11964   va_list v;
11965   va_start (v,p);
11966   s = g (p, va_arg (v,int));
11967   va_end (v);
11968   return s;
11969 }
11970
11971 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11972    function prototypes and stuff, but not '\xHH' hex character constants.
11973    These don't provoke an error unfortunately, instead are silently treated
11974    as 'x'.  The following induces an error, until -std is added to get
11975    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11976    array size at least.  It's necessary to write '\x00'==0 to get something
11977    that's true only with -std.  */
11978 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11979
11980 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11981    inside strings and character constants.  */
11982 #define FOO(x) 'x'
11983 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11984
11985 int test (int i, double x);
11986 struct s1 {int (*f) (int a);};
11987 struct s2 {int (*f) (double a);};
11988 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11989 int argc;
11990 char **argv;
11991 int
11992 main ()
11993 {
11994 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11995   ;
11996   return 0;
11997 }
11998 _ACEOF
11999 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12000         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12001 do
12002   CC="$ac_save_CC $ac_arg"
12003   if ac_fn_c_try_compile "$LINENO"; then :
12004   ac_cv_prog_cc_c89=$ac_arg
12005 fi
12006 rm -f core conftest.err conftest.$ac_objext
12007   test "x$ac_cv_prog_cc_c89" != "xno" && break
12008 done
12009 rm -f conftest.$ac_ext
12010 CC=$ac_save_CC
12011
12012 fi
12013 # AC_CACHE_VAL
12014 case "x$ac_cv_prog_cc_c89" in
12015   x)
12016     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12017 $as_echo "none needed" >&6; } ;;
12018   xno)
12019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12020 $as_echo "unsupported" >&6; } ;;
12021   *)
12022     CC="$CC $ac_cv_prog_cc_c89"
12023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12024 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12025 esac
12026 if test "x$ac_cv_prog_cc_c89" != xno; then :
12027
12028 fi
12029
12030 ac_ext=c
12031 ac_cpp='$CPP $CPPFLAGS'
12032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12035
12036 ac_ext=c
12037 ac_cpp='$CPP $CPPFLAGS'
12038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12042 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12043 if ${am_cv_prog_cc_c_o+:} false; then :
12044   $as_echo_n "(cached) " >&6
12045 else
12046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h.  */
12048
12049 int
12050 main ()
12051 {
12052
12053   ;
12054   return 0;
12055 }
12056 _ACEOF
12057   # Make sure it works both with $CC and with simple cc.
12058   # Following AC_PROG_CC_C_O, we do the test twice because some
12059   # compilers refuse to overwrite an existing .o file with -o,
12060   # though they will create one.
12061   am_cv_prog_cc_c_o=yes
12062   for am_i in 1 2; do
12063     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12064    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12065    ac_status=$?
12066    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067    (exit $ac_status); } \
12068          && test -f conftest2.$ac_objext; then
12069       : OK
12070     else
12071       am_cv_prog_cc_c_o=no
12072       break
12073     fi
12074   done
12075   rm -f core conftest*
12076   unset am_i
12077 fi
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12079 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12080 if test "$am_cv_prog_cc_c_o" != yes; then
12081    # Losing compiler, so override with the script.
12082    # FIXME: It is wrong to rewrite CC.
12083    # But if we don't then we get into trouble of one sort or another.
12084    # A longer-term fix would be to have automake use am__CC in this case,
12085    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12086    CC="$am_aux_dir/compile $CC"
12087 fi
12088 ac_ext=c
12089 ac_cpp='$CPP $CPPFLAGS'
12090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12093
12094
12095 depcc="$CC"   am_compiler_list=
12096
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12098 $as_echo_n "checking dependency style of $depcc... " >&6; }
12099 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12100   $as_echo_n "(cached) " >&6
12101 else
12102   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12103   # We make a subdir and do the tests there.  Otherwise we can end up
12104   # making bogus files that we don't know about and never remove.  For
12105   # instance it was reported that on HP-UX the gcc test will end up
12106   # making a dummy file named 'D' -- because '-MD' means "put the output
12107   # in D".
12108   rm -rf conftest.dir
12109   mkdir conftest.dir
12110   # Copy depcomp to subdir because otherwise we won't find it if we're
12111   # using a relative directory.
12112   cp "$am_depcomp" conftest.dir
12113   cd conftest.dir
12114   # We will build objects and dependencies in a subdirectory because
12115   # it helps to detect inapplicable dependency modes.  For instance
12116   # both Tru64's cc and ICC support -MD to output dependencies as a
12117   # side effect of compilation, but ICC will put the dependencies in
12118   # the current directory while Tru64 will put them in the object
12119   # directory.
12120   mkdir sub
12121
12122   am_cv_CC_dependencies_compiler_type=none
12123   if test "$am_compiler_list" = ""; then
12124      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12125   fi
12126   am__universal=false
12127   case " $depcc " in #(
12128      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12129      esac
12130
12131   for depmode in $am_compiler_list; do
12132     # Setup a source with many dependencies, because some compilers
12133     # like to wrap large dependency lists on column 80 (with \), and
12134     # we should not choose a depcomp mode which is confused by this.
12135     #
12136     # We need to recreate these files for each test, as the compiler may
12137     # overwrite some of them when testing with obscure command lines.
12138     # This happens at least with the AIX C compiler.
12139     : > sub/conftest.c
12140     for i in 1 2 3 4 5 6; do
12141       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12142       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12143       # Solaris 10 /bin/sh.
12144       echo '/* dummy */' > sub/conftst$i.h
12145     done
12146     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12147
12148     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12149     # mode.  It turns out that the SunPro C++ compiler does not properly
12150     # handle '-M -o', and we need to detect this.  Also, some Intel
12151     # versions had trouble with output in subdirs.
12152     am__obj=sub/conftest.${OBJEXT-o}
12153     am__minus_obj="-o $am__obj"
12154     case $depmode in
12155     gcc)
12156       # This depmode causes a compiler race in universal mode.
12157       test "$am__universal" = false || continue
12158       ;;
12159     nosideeffect)
12160       # After this tag, mechanisms are not by side-effect, so they'll
12161       # only be used when explicitly requested.
12162       if test "x$enable_dependency_tracking" = xyes; then
12163         continue
12164       else
12165         break
12166       fi
12167       ;;
12168     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12169       # This compiler won't grok '-c -o', but also, the minuso test has
12170       # not run yet.  These depmodes are late enough in the game, and
12171       # so weak that their functioning should not be impacted.
12172       am__obj=conftest.${OBJEXT-o}
12173       am__minus_obj=
12174       ;;
12175     none) break ;;
12176     esac
12177     if depmode=$depmode \
12178        source=sub/conftest.c object=$am__obj \
12179        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12180        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12181          >/dev/null 2>conftest.err &&
12182        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12183        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12184        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12185        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12186       # icc doesn't choke on unknown options, it will just issue warnings
12187       # or remarks (even with -Werror).  So we grep stderr for any message
12188       # that says an option was ignored or not supported.
12189       # When given -MP, icc 7.0 and 7.1 complain thusly:
12190       #   icc: Command line warning: ignoring option '-M'; no argument required
12191       # The diagnosis changed in icc 8.0:
12192       #   icc: Command line remark: option '-MP' not supported
12193       if (grep 'ignoring option' conftest.err ||
12194           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12195         am_cv_CC_dependencies_compiler_type=$depmode
12196         break
12197       fi
12198     fi
12199   done
12200
12201   cd ..
12202   rm -rf conftest.dir
12203 else
12204   am_cv_CC_dependencies_compiler_type=none
12205 fi
12206
12207 fi
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12209 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12210 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12211
12212  if
12213   test "x$enable_dependency_tracking" != xno \
12214   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12215   am__fastdepCC_TRUE=
12216   am__fastdepCC_FALSE='#'
12217 else
12218   am__fastdepCC_TRUE='#'
12219   am__fastdepCC_FALSE=
12220 fi
12221
12222
12223
12224
12225
12226 # Check whether --with-plugin-toolkit was given.
12227 if test "${with_plugin_toolkit+set}" = set; then :
12228   withval=$with_plugin_toolkit; with_plugin_toolkit=${prefix}/include
12229 else
12230   with_plugin_toolkit=.
12231 fi
12232
12233
12234 TOOLKIT_INCLUDE=${with_plugin_toolkit}
12235
12236  if test "$with_plugin_toolkit" != "."; then
12237   WITH_PLUGIN_TOOLKIT_TRUE=
12238   WITH_PLUGIN_TOOLKIT_FALSE='#'
12239 else
12240   WITH_PLUGIN_TOOLKIT_TRUE='#'
12241   WITH_PLUGIN_TOOLKIT_FALSE=
12242 fi
12243
12244 ac_config_files="$ac_config_files Makefile"
12245
12246 cat >confcache <<\_ACEOF
12247 # This file is a shell script that caches the results of configure
12248 # tests run on this system so they can be shared between configure
12249 # scripts and configure runs, see configure's option --config-cache.
12250 # It is not useful on other systems.  If it contains results you don't
12251 # want to keep, you may remove or edit it.
12252 #
12253 # config.status only pays attention to the cache file if you give it
12254 # the --recheck option to rerun configure.
12255 #
12256 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12257 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12258 # following values.
12259
12260 _ACEOF
12261
12262 # The following way of writing the cache mishandles newlines in values,
12263 # but we know of no workaround that is simple, portable, and efficient.
12264 # So, we kill variables containing newlines.
12265 # Ultrix sh set writes to stderr and can't be redirected directly,
12266 # and sets the high bit in the cache file unless we assign to the vars.
12267 (
12268   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12269     eval ac_val=\$$ac_var
12270     case $ac_val in #(
12271     *${as_nl}*)
12272       case $ac_var in #(
12273       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12274 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12275       esac
12276       case $ac_var in #(
12277       _ | IFS | as_nl) ;; #(
12278       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12279       *) { eval $ac_var=; unset $ac_var;} ;;
12280       esac ;;
12281     esac
12282   done
12283
12284   (set) 2>&1 |
12285     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12286     *${as_nl}ac_space=\ *)
12287       # `set' does not quote correctly, so add quotes: double-quote
12288       # substitution turns \\\\ into \\, and sed turns \\ into \.
12289       sed -n \
12290         "s/'/'\\\\''/g;
12291           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12292       ;; #(
12293     *)
12294       # `set' quotes correctly as required by POSIX, so do not add quotes.
12295       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12296       ;;
12297     esac |
12298     sort
12299 ) |
12300   sed '
12301      /^ac_cv_env_/b end
12302      t clear
12303      :clear
12304      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12305      t end
12306      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12307      :end' >>confcache
12308 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12309   if test -w "$cache_file"; then
12310     if test "x$cache_file" != "x/dev/null"; then
12311       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12312 $as_echo "$as_me: updating cache $cache_file" >&6;}
12313       if test ! -f "$cache_file" || test -h "$cache_file"; then
12314         cat confcache >"$cache_file"
12315       else
12316         case $cache_file in #(
12317         */* | ?:*)
12318           mv -f confcache "$cache_file"$$ &&
12319           mv -f "$cache_file"$$ "$cache_file" ;; #(
12320         *)
12321           mv -f confcache "$cache_file" ;;
12322         esac
12323       fi
12324     fi
12325   else
12326     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12327 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12328   fi
12329 fi
12330 rm -f confcache
12331
12332 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12333 # Let make expand exec_prefix.
12334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12335
12336 # Transform confdefs.h into DEFS.
12337 # Protect against shell expansion while executing Makefile rules.
12338 # Protect against Makefile macro expansion.
12339 #
12340 # If the first sed substitution is executed (which looks for macros that
12341 # take arguments), then branch to the quote section.  Otherwise,
12342 # look for a macro that doesn't take arguments.
12343 ac_script='
12344 :mline
12345 /\\$/{
12346  N
12347  s,\\\n,,
12348  b mline
12349 }
12350 t clear
12351 :clear
12352 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
12353 t quote
12354 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
12355 t quote
12356 b any
12357 :quote
12358 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12359 s/\[/\\&/g
12360 s/\]/\\&/g
12361 s/\$/$$/g
12362 H
12363 :any
12364 ${
12365         g
12366         s/^\n//
12367         s/\n/ /g
12368         p
12369 }
12370 '
12371 DEFS=`sed -n "$ac_script" confdefs.h`
12372
12373
12374 ac_libobjs=
12375 ac_ltlibobjs=
12376 U=
12377 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12378   # 1. Remove the extension, and $U if already installed.
12379   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12380   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12381   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12382   #    will be set to the directory where LIBOBJS objects are built.
12383   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12384   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12385 done
12386 LIBOBJS=$ac_libobjs
12387
12388 LTLIBOBJS=$ac_ltlibobjs
12389
12390
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12392 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12393    if test -n "$am_sleep_pid"; then
12394      # Hide warnings about reused PIDs.
12395      wait $am_sleep_pid 2>/dev/null
12396    fi
12397    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12398 $as_echo "done" >&6; }
12399  if test -n "$EXEEXT"; then
12400   am__EXEEXT_TRUE=
12401   am__EXEEXT_FALSE='#'
12402 else
12403   am__EXEEXT_TRUE='#'
12404   am__EXEEXT_FALSE=
12405 fi
12406
12407 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12408   as_fn_error $? "conditional \"AMDEP\" was never defined.
12409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12410 fi
12411 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12412   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12414 fi
12415 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12416   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
12417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12418 fi
12419 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12420   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12422 fi
12423 if test -z "${WITH_PLUGIN_TOOLKIT_TRUE}" && test -z "${WITH_PLUGIN_TOOLKIT_FALSE}"; then
12424   as_fn_error $? "conditional \"WITH_PLUGIN_TOOLKIT\" was never defined.
12425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12426 fi
12427
12428 : "${CONFIG_STATUS=./config.status}"
12429 ac_write_fail=0
12430 ac_clean_files_save=$ac_clean_files
12431 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12433 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12434 as_write_fail=0
12435 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12436 #! $SHELL
12437 # Generated by $as_me.
12438 # Run this file to recreate the current configuration.
12439 # Compiler output produced by configure, useful for debugging
12440 # configure, is in config.log if it exists.
12441
12442 debug=false
12443 ac_cs_recheck=false
12444 ac_cs_silent=false
12445
12446 SHELL=\${CONFIG_SHELL-$SHELL}
12447 export SHELL
12448 _ASEOF
12449 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12450 ## -------------------- ##
12451 ## M4sh Initialization. ##
12452 ## -------------------- ##
12453
12454 # Be more Bourne compatible
12455 DUALCASE=1; export DUALCASE # for MKS sh
12456 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12457   emulate sh
12458   NULLCMD=:
12459   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12460   # is contrary to our usage.  Disable this feature.
12461   alias -g '${1+"$@"}'='"$@"'
12462   setopt NO_GLOB_SUBST
12463 else
12464   case `(set -o) 2>/dev/null` in #(
12465   *posix*) :
12466     set -o posix ;; #(
12467   *) :
12468      ;;
12469 esac
12470 fi
12471
12472
12473 as_nl='
12474 '
12475 export as_nl
12476 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12477 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12478 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12479 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12480 # Prefer a ksh shell builtin over an external printf program on Solaris,
12481 # but without wasting forks for bash or zsh.
12482 if test -z "$BASH_VERSION$ZSH_VERSION" \
12483     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12484   as_echo='print -r --'
12485   as_echo_n='print -rn --'
12486 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12487   as_echo='printf %s\n'
12488   as_echo_n='printf %s'
12489 else
12490   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12491     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12492     as_echo_n='/usr/ucb/echo -n'
12493   else
12494     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12495     as_echo_n_body='eval
12496       arg=$1;
12497       case $arg in #(
12498       *"$as_nl"*)
12499         expr "X$arg" : "X\\(.*\\)$as_nl";
12500         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12501       esac;
12502       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12503     '
12504     export as_echo_n_body
12505     as_echo_n='sh -c $as_echo_n_body as_echo'
12506   fi
12507   export as_echo_body
12508   as_echo='sh -c $as_echo_body as_echo'
12509 fi
12510
12511 # The user is always right.
12512 if test "${PATH_SEPARATOR+set}" != set; then
12513   PATH_SEPARATOR=:
12514   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12515     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12516       PATH_SEPARATOR=';'
12517   }
12518 fi
12519
12520
12521 # IFS
12522 # We need space, tab and new line, in precisely that order.  Quoting is
12523 # there to prevent editors from complaining about space-tab.
12524 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12525 # splitting by setting IFS to empty value.)
12526 IFS=" ""        $as_nl"
12527
12528 # Find who we are.  Look in the path if we contain no directory separator.
12529 as_myself=
12530 case $0 in #((
12531   *[\\/]* ) as_myself=$0 ;;
12532   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533 for as_dir in $PATH
12534 do
12535   IFS=$as_save_IFS
12536   test -z "$as_dir" && as_dir=.
12537     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12538   done
12539 IFS=$as_save_IFS
12540
12541      ;;
12542 esac
12543 # We did not find ourselves, most probably we were run as `sh COMMAND'
12544 # in which case we are not to be found in the path.
12545 if test "x$as_myself" = x; then
12546   as_myself=$0
12547 fi
12548 if test ! -f "$as_myself"; then
12549   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12550   exit 1
12551 fi
12552
12553 # Unset variables that we do not need and which cause bugs (e.g. in
12554 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12555 # suppresses any "Segmentation fault" message there.  '((' could
12556 # trigger a bug in pdksh 5.2.14.
12557 for as_var in BASH_ENV ENV MAIL MAILPATH
12558 do eval test x\${$as_var+set} = xset \
12559   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12560 done
12561 PS1='$ '
12562 PS2='> '
12563 PS4='+ '
12564
12565 # NLS nuisances.
12566 LC_ALL=C
12567 export LC_ALL
12568 LANGUAGE=C
12569 export LANGUAGE
12570
12571 # CDPATH.
12572 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12573
12574
12575 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12576 # ----------------------------------------
12577 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12578 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12579 # script with STATUS, using 1 if that was 0.
12580 as_fn_error ()
12581 {
12582   as_status=$1; test $as_status -eq 0 && as_status=1
12583   if test "$4"; then
12584     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12585     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12586   fi
12587   $as_echo "$as_me: error: $2" >&2
12588   as_fn_exit $as_status
12589 } # as_fn_error
12590
12591
12592 # as_fn_set_status STATUS
12593 # -----------------------
12594 # Set $? to STATUS, without forking.
12595 as_fn_set_status ()
12596 {
12597   return $1
12598 } # as_fn_set_status
12599
12600 # as_fn_exit STATUS
12601 # -----------------
12602 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12603 as_fn_exit ()
12604 {
12605   set +e
12606   as_fn_set_status $1
12607   exit $1
12608 } # as_fn_exit
12609
12610 # as_fn_unset VAR
12611 # ---------------
12612 # Portably unset VAR.
12613 as_fn_unset ()
12614 {
12615   { eval $1=; unset $1;}
12616 }
12617 as_unset=as_fn_unset
12618 # as_fn_append VAR VALUE
12619 # ----------------------
12620 # Append the text in VALUE to the end of the definition contained in VAR. Take
12621 # advantage of any shell optimizations that allow amortized linear growth over
12622 # repeated appends, instead of the typical quadratic growth present in naive
12623 # implementations.
12624 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12625   eval 'as_fn_append ()
12626   {
12627     eval $1+=\$2
12628   }'
12629 else
12630   as_fn_append ()
12631   {
12632     eval $1=\$$1\$2
12633   }
12634 fi # as_fn_append
12635
12636 # as_fn_arith ARG...
12637 # ------------------
12638 # Perform arithmetic evaluation on the ARGs, and store the result in the
12639 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12640 # must be portable across $(()) and expr.
12641 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12642   eval 'as_fn_arith ()
12643   {
12644     as_val=$(( $* ))
12645   }'
12646 else
12647   as_fn_arith ()
12648   {
12649     as_val=`expr "$@" || test $? -eq 1`
12650   }
12651 fi # as_fn_arith
12652
12653
12654 if expr a : '\(a\)' >/dev/null 2>&1 &&
12655    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12656   as_expr=expr
12657 else
12658   as_expr=false
12659 fi
12660
12661 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12662   as_basename=basename
12663 else
12664   as_basename=false
12665 fi
12666
12667 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12668   as_dirname=dirname
12669 else
12670   as_dirname=false
12671 fi
12672
12673 as_me=`$as_basename -- "$0" ||
12674 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12675          X"$0" : 'X\(//\)$' \| \
12676          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12677 $as_echo X/"$0" |
12678     sed '/^.*\/\([^/][^/]*\)\/*$/{
12679             s//\1/
12680             q
12681           }
12682           /^X\/\(\/\/\)$/{
12683             s//\1/
12684             q
12685           }
12686           /^X\/\(\/\).*/{
12687             s//\1/
12688             q
12689           }
12690           s/.*/./; q'`
12691
12692 # Avoid depending upon Character Ranges.
12693 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12694 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12695 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12696 as_cr_digits='0123456789'
12697 as_cr_alnum=$as_cr_Letters$as_cr_digits
12698
12699 ECHO_C= ECHO_N= ECHO_T=
12700 case `echo -n x` in #(((((
12701 -n*)
12702   case `echo 'xy\c'` in
12703   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12704   xy)  ECHO_C='\c';;
12705   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12706        ECHO_T=' ';;
12707   esac;;
12708 *)
12709   ECHO_N='-n';;
12710 esac
12711
12712 rm -f conf$$ conf$$.exe conf$$.file
12713 if test -d conf$$.dir; then
12714   rm -f conf$$.dir/conf$$.file
12715 else
12716   rm -f conf$$.dir
12717   mkdir conf$$.dir 2>/dev/null
12718 fi
12719 if (echo >conf$$.file) 2>/dev/null; then
12720   if ln -s conf$$.file conf$$ 2>/dev/null; then
12721     as_ln_s='ln -s'
12722     # ... but there are two gotchas:
12723     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12724     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12725     # In both cases, we have to default to `cp -pR'.
12726     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12727       as_ln_s='cp -pR'
12728   elif ln conf$$.file conf$$ 2>/dev/null; then
12729     as_ln_s=ln
12730   else
12731     as_ln_s='cp -pR'
12732   fi
12733 else
12734   as_ln_s='cp -pR'
12735 fi
12736 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12737 rmdir conf$$.dir 2>/dev/null
12738
12739
12740 # as_fn_mkdir_p
12741 # -------------
12742 # Create "$as_dir" as a directory, including parents if necessary.
12743 as_fn_mkdir_p ()
12744 {
12745
12746   case $as_dir in #(
12747   -*) as_dir=./$as_dir;;
12748   esac
12749   test -d "$as_dir" || eval $as_mkdir_p || {
12750     as_dirs=
12751     while :; do
12752       case $as_dir in #(
12753       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12754       *) as_qdir=$as_dir;;
12755       esac
12756       as_dirs="'$as_qdir' $as_dirs"
12757       as_dir=`$as_dirname -- "$as_dir" ||
12758 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12759          X"$as_dir" : 'X\(//\)[^/]' \| \
12760          X"$as_dir" : 'X\(//\)$' \| \
12761          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12762 $as_echo X"$as_dir" |
12763     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12764             s//\1/
12765             q
12766           }
12767           /^X\(\/\/\)[^/].*/{
12768             s//\1/
12769             q
12770           }
12771           /^X\(\/\/\)$/{
12772             s//\1/
12773             q
12774           }
12775           /^X\(\/\).*/{
12776             s//\1/
12777             q
12778           }
12779           s/.*/./; q'`
12780       test -d "$as_dir" && break
12781     done
12782     test -z "$as_dirs" || eval "mkdir $as_dirs"
12783   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12784
12785
12786 } # as_fn_mkdir_p
12787 if mkdir -p . 2>/dev/null; then
12788   as_mkdir_p='mkdir -p "$as_dir"'
12789 else
12790   test -d ./-p && rmdir ./-p
12791   as_mkdir_p=false
12792 fi
12793
12794
12795 # as_fn_executable_p FILE
12796 # -----------------------
12797 # Test if FILE is an executable regular file.
12798 as_fn_executable_p ()
12799 {
12800   test -f "$1" && test -x "$1"
12801 } # as_fn_executable_p
12802 as_test_x='test -x'
12803 as_executable_p=as_fn_executable_p
12804
12805 # Sed expression to map a string onto a valid CPP name.
12806 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12807
12808 # Sed expression to map a string onto a valid variable name.
12809 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12810
12811
12812 exec 6>&1
12813 ## ----------------------------------- ##
12814 ## Main body of $CONFIG_STATUS script. ##
12815 ## ----------------------------------- ##
12816 _ASEOF
12817 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12818
12819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12820 # Save the log message, to keep $0 and so on meaningful, and to
12821 # report actual input values of CONFIG_FILES etc. instead of their
12822 # values after options handling.
12823 ac_log="
12824 This file was extended by sample_plugin $as_me 1.0, which was
12825 generated by GNU Autoconf 2.69.  Invocation command line was
12826
12827   CONFIG_FILES    = $CONFIG_FILES
12828   CONFIG_HEADERS  = $CONFIG_HEADERS
12829   CONFIG_LINKS    = $CONFIG_LINKS
12830   CONFIG_COMMANDS = $CONFIG_COMMANDS
12831   $ $0 $@
12832
12833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12834 "
12835
12836 _ACEOF
12837
12838 case $ac_config_files in *"
12839 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12840 esac
12841
12842
12843
12844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12845 # Files that config.status was made for.
12846 config_files="$ac_config_files"
12847 config_commands="$ac_config_commands"
12848
12849 _ACEOF
12850
12851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12852 ac_cs_usage="\
12853 \`$as_me' instantiates files and other configuration actions
12854 from templates according to the current configuration.  Unless the files
12855 and actions are specified as TAGs, all are instantiated by default.
12856
12857 Usage: $0 [OPTION]... [TAG]...
12858
12859   -h, --help       print this help, then exit
12860   -V, --version    print version number and configuration settings, then exit
12861       --config     print configuration, then exit
12862   -q, --quiet, --silent
12863                    do not print progress messages
12864   -d, --debug      don't remove temporary files
12865       --recheck    update $as_me by reconfiguring in the same conditions
12866       --file=FILE[:TEMPLATE]
12867                    instantiate the configuration file FILE
12868
12869 Configuration files:
12870 $config_files
12871
12872 Configuration commands:
12873 $config_commands
12874
12875 Report bugs to the package provider."
12876
12877 _ACEOF
12878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12879 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12880 ac_cs_version="\\
12881 sample_plugin config.status 1.0
12882 configured by $0, generated by GNU Autoconf 2.69,
12883   with options \\"\$ac_cs_config\\"
12884
12885 Copyright (C) 2012 Free Software Foundation, Inc.
12886 This config.status script is free software; the Free Software Foundation
12887 gives unlimited permission to copy, distribute and modify it."
12888
12889 ac_pwd='$ac_pwd'
12890 srcdir='$srcdir'
12891 INSTALL='$INSTALL'
12892 MKDIR_P='$MKDIR_P'
12893 AWK='$AWK'
12894 test -n "\$AWK" || AWK=awk
12895 _ACEOF
12896
12897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12898 # The default lists apply if the user does not specify any file.
12899 ac_need_defaults=:
12900 while test $# != 0
12901 do
12902   case $1 in
12903   --*=?*)
12904     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12905     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12906     ac_shift=:
12907     ;;
12908   --*=)
12909     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12910     ac_optarg=
12911     ac_shift=:
12912     ;;
12913   *)
12914     ac_option=$1
12915     ac_optarg=$2
12916     ac_shift=shift
12917     ;;
12918   esac
12919
12920   case $ac_option in
12921   # Handling of the options.
12922   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12923     ac_cs_recheck=: ;;
12924   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12925     $as_echo "$ac_cs_version"; exit ;;
12926   --config | --confi | --conf | --con | --co | --c )
12927     $as_echo "$ac_cs_config"; exit ;;
12928   --debug | --debu | --deb | --de | --d | -d )
12929     debug=: ;;
12930   --file | --fil | --fi | --f )
12931     $ac_shift
12932     case $ac_optarg in
12933     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12934     '') as_fn_error $? "missing file argument" ;;
12935     esac
12936     as_fn_append CONFIG_FILES " '$ac_optarg'"
12937     ac_need_defaults=false;;
12938   --he | --h |  --help | --hel | -h )
12939     $as_echo "$ac_cs_usage"; exit ;;
12940   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12941   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12942     ac_cs_silent=: ;;
12943
12944   # This is an error.
12945   -*) as_fn_error $? "unrecognized option: \`$1'
12946 Try \`$0 --help' for more information." ;;
12947
12948   *) as_fn_append ac_config_targets " $1"
12949      ac_need_defaults=false ;;
12950
12951   esac
12952   shift
12953 done
12954
12955 ac_configure_extra_args=
12956
12957 if $ac_cs_silent; then
12958   exec 6>/dev/null
12959   ac_configure_extra_args="$ac_configure_extra_args --silent"
12960 fi
12961
12962 _ACEOF
12963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12964 if \$ac_cs_recheck; then
12965   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12966   shift
12967   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12968   CONFIG_SHELL='$SHELL'
12969   export CONFIG_SHELL
12970   exec "\$@"
12971 fi
12972
12973 _ACEOF
12974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12975 exec 5>>config.log
12976 {
12977   echo
12978   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12979 ## Running $as_me. ##
12980 _ASBOX
12981   $as_echo "$ac_log"
12982 } >&5
12983
12984 _ACEOF
12985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12986 #
12987 # INIT-COMMANDS
12988 #
12989 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12990
12991
12992 # The HP-UX ksh and POSIX shell print the target directory to stdout
12993 # if CDPATH is set.
12994 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12995
12996 sed_quote_subst='$sed_quote_subst'
12997 double_quote_subst='$double_quote_subst'
12998 delay_variable_subst='$delay_variable_subst'
12999 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13000 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13001 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13002 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13003 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13004 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13005 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13006 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13007 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13008 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13009 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13010 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13011 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13012 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13013 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13014 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13015 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13016 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13017 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13018 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13019 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13020 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13021 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13022 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13023 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13024 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13025 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13026 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13027 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13028 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13029 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13030 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13031 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13032 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13033 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13034 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13035 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13036 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13037 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13038 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13039 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13040 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13041 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13042 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13043 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13044 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13045 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13046 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13047 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13048 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13049 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13050 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13051 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13052 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13053 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13054 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13055 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"`'
13056 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13057 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13058 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13059 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13060 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13061 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13062 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13063 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13064 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13065 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13066 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13067 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13068 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13069 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13070 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13071 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13072 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13073 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13074 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13075 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13076 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13077 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13078 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13079 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13080 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13081 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13082 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13083 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13084 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13085 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13086 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13087 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13088 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13089 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13090 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13091 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13092 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13093 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13094 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13095 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13096 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13097 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13098 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13099 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13100 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13101 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13102 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13103 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13104 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13105 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13106 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13107 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13108 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13109 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13110 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13111 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13112 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13113 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13114 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13115 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13116 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13117 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13118 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13119 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13120 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13121 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13122 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13123 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13124 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13125 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13126 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13127 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13128 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13129
13130 LTCC='$LTCC'
13131 LTCFLAGS='$LTCFLAGS'
13132 compiler='$compiler_DEFAULT'
13133
13134 # A function that is used when there is no print builtin or printf.
13135 func_fallback_echo ()
13136 {
13137   eval 'cat <<_LTECHO_EOF
13138 \$1
13139 _LTECHO_EOF'
13140 }
13141
13142 # Quote evaled strings.
13143 for var in SHELL \
13144 ECHO \
13145 PATH_SEPARATOR \
13146 SED \
13147 GREP \
13148 EGREP \
13149 FGREP \
13150 LD \
13151 NM \
13152 LN_S \
13153 lt_SP2NL \
13154 lt_NL2SP \
13155 reload_flag \
13156 OBJDUMP \
13157 deplibs_check_method \
13158 file_magic_cmd \
13159 file_magic_glob \
13160 want_nocaseglob \
13161 DLLTOOL \
13162 sharedlib_from_linklib_cmd \
13163 AR \
13164 AR_FLAGS \
13165 archiver_list_spec \
13166 STRIP \
13167 RANLIB \
13168 CC \
13169 CFLAGS \
13170 compiler \
13171 lt_cv_sys_global_symbol_pipe \
13172 lt_cv_sys_global_symbol_to_cdecl \
13173 lt_cv_sys_global_symbol_to_c_name_address \
13174 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13175 nm_file_list_spec \
13176 lt_prog_compiler_no_builtin_flag \
13177 lt_prog_compiler_pic \
13178 lt_prog_compiler_wl \
13179 lt_prog_compiler_static \
13180 lt_cv_prog_compiler_c_o \
13181 need_locks \
13182 MANIFEST_TOOL \
13183 DSYMUTIL \
13184 NMEDIT \
13185 LIPO \
13186 OTOOL \
13187 OTOOL64 \
13188 shrext_cmds \
13189 export_dynamic_flag_spec \
13190 whole_archive_flag_spec \
13191 compiler_needs_object \
13192 with_gnu_ld \
13193 allow_undefined_flag \
13194 no_undefined_flag \
13195 hardcode_libdir_flag_spec \
13196 hardcode_libdir_separator \
13197 exclude_expsyms \
13198 include_expsyms \
13199 file_list_spec \
13200 variables_saved_for_relink \
13201 libname_spec \
13202 library_names_spec \
13203 soname_spec \
13204 install_override_mode \
13205 finish_eval \
13206 old_striplib \
13207 striplib; do
13208     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13209     *[\\\\\\\`\\"\\\$]*)
13210       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13211       ;;
13212     *)
13213       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13214       ;;
13215     esac
13216 done
13217
13218 # Double-quote double-evaled strings.
13219 for var in reload_cmds \
13220 old_postinstall_cmds \
13221 old_postuninstall_cmds \
13222 old_archive_cmds \
13223 extract_expsyms_cmds \
13224 old_archive_from_new_cmds \
13225 old_archive_from_expsyms_cmds \
13226 archive_cmds \
13227 archive_expsym_cmds \
13228 module_cmds \
13229 module_expsym_cmds \
13230 export_symbols_cmds \
13231 prelink_cmds \
13232 postlink_cmds \
13233 postinstall_cmds \
13234 postuninstall_cmds \
13235 finish_cmds \
13236 sys_lib_search_path_spec \
13237 sys_lib_dlsearch_path_spec; do
13238     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13239     *[\\\\\\\`\\"\\\$]*)
13240       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13241       ;;
13242     *)
13243       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13244       ;;
13245     esac
13246 done
13247
13248 ac_aux_dir='$ac_aux_dir'
13249 xsi_shell='$xsi_shell'
13250 lt_shell_append='$lt_shell_append'
13251
13252 # See if we are running on zsh, and set the options which allow our
13253 # commands through without removal of \ escapes INIT.
13254 if test -n "\${ZSH_VERSION+set}" ; then
13255    setopt NO_GLOB_SUBST
13256 fi
13257
13258
13259     PACKAGE='$PACKAGE'
13260     VERSION='$VERSION'
13261     TIMESTAMP='$TIMESTAMP'
13262     RM='$RM'
13263     ofile='$ofile'
13264
13265
13266
13267
13268 _ACEOF
13269
13270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13271
13272 # Handling of arguments.
13273 for ac_config_target in $ac_config_targets
13274 do
13275   case $ac_config_target in
13276     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13277     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13278     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13279
13280   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13281   esac
13282 done
13283
13284
13285 # If the user did not use the arguments to specify the items to instantiate,
13286 # then the envvar interface is used.  Set only those that are not.
13287 # We use the long form for the default assignment because of an extremely
13288 # bizarre bug on SunOS 4.1.3.
13289 if $ac_need_defaults; then
13290   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13291   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13292 fi
13293
13294 # Have a temporary directory for convenience.  Make it in the build tree
13295 # simply because there is no reason against having it here, and in addition,
13296 # creating and moving files from /tmp can sometimes cause problems.
13297 # Hook for its removal unless debugging.
13298 # Note that there is a small window in which the directory will not be cleaned:
13299 # after its creation but before its name has been assigned to `$tmp'.
13300 $debug ||
13301 {
13302   tmp= ac_tmp=
13303   trap 'exit_status=$?
13304   : "${ac_tmp:=$tmp}"
13305   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13306 ' 0
13307   trap 'as_fn_exit 1' 1 2 13 15
13308 }
13309 # Create a (secure) tmp directory for tmp files.
13310
13311 {
13312   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13313   test -d "$tmp"
13314 }  ||
13315 {
13316   tmp=./conf$$-$RANDOM
13317   (umask 077 && mkdir "$tmp")
13318 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13319 ac_tmp=$tmp
13320
13321 # Set up the scripts for CONFIG_FILES section.
13322 # No need to generate them if there are no CONFIG_FILES.
13323 # This happens for instance with `./config.status config.h'.
13324 if test -n "$CONFIG_FILES"; then
13325
13326
13327 ac_cr=`echo X | tr X '\015'`
13328 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13329 # But we know of no other shell where ac_cr would be empty at this
13330 # point, so we can use a bashism as a fallback.
13331 if test "x$ac_cr" = x; then
13332   eval ac_cr=\$\'\\r\'
13333 fi
13334 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13335 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13336   ac_cs_awk_cr='\\r'
13337 else
13338   ac_cs_awk_cr=$ac_cr
13339 fi
13340
13341 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13342 _ACEOF
13343
13344
13345 {
13346   echo "cat >conf$$subs.awk <<_ACEOF" &&
13347   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13348   echo "_ACEOF"
13349 } >conf$$subs.sh ||
13350   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13351 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13352 ac_delim='%!_!# '
13353 for ac_last_try in false false false false false :; do
13354   . ./conf$$subs.sh ||
13355     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13356
13357   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13358   if test $ac_delim_n = $ac_delim_num; then
13359     break
13360   elif $ac_last_try; then
13361     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13362   else
13363     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13364   fi
13365 done
13366 rm -f conf$$subs.sh
13367
13368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13369 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13370 _ACEOF
13371 sed -n '
13372 h
13373 s/^/S["/; s/!.*/"]=/
13374 p
13375 g
13376 s/^[^!]*!//
13377 :repl
13378 t repl
13379 s/'"$ac_delim"'$//
13380 t delim
13381 :nl
13382 h
13383 s/\(.\{148\}\)..*/\1/
13384 t more1
13385 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13386 p
13387 n
13388 b repl
13389 :more1
13390 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13391 p
13392 g
13393 s/.\{148\}//
13394 t nl
13395 :delim
13396 h
13397 s/\(.\{148\}\)..*/\1/
13398 t more2
13399 s/["\\]/\\&/g; s/^/"/; s/$/"/
13400 p
13401 b
13402 :more2
13403 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13404 p
13405 g
13406 s/.\{148\}//
13407 t delim
13408 ' <conf$$subs.awk | sed '
13409 /^[^""]/{
13410   N
13411   s/\n//
13412 }
13413 ' >>$CONFIG_STATUS || ac_write_fail=1
13414 rm -f conf$$subs.awk
13415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13416 _ACAWK
13417 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13418   for (key in S) S_is_set[key] = 1
13419   FS = "\a"
13420
13421 }
13422 {
13423   line = $ 0
13424   nfields = split(line, field, "@")
13425   substed = 0
13426   len = length(field[1])
13427   for (i = 2; i < nfields; i++) {
13428     key = field[i]
13429     keylen = length(key)
13430     if (S_is_set[key]) {
13431       value = S[key]
13432       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13433       len += length(value) + length(field[++i])
13434       substed = 1
13435     } else
13436       len += 1 + keylen
13437   }
13438
13439   print line
13440 }
13441
13442 _ACAWK
13443 _ACEOF
13444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13445 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13446   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13447 else
13448   cat
13449 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13450   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13451 _ACEOF
13452
13453 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13454 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13455 # trailing colons and then remove the whole line if VPATH becomes empty
13456 # (actually we leave an empty line to preserve line numbers).
13457 if test "x$srcdir" = x.; then
13458   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13459 h
13460 s///
13461 s/^/:/
13462 s/[      ]*$/:/
13463 s/:\$(srcdir):/:/g
13464 s/:\${srcdir}:/:/g
13465 s/:@srcdir@:/:/g
13466 s/^:*//
13467 s/:*$//
13468 x
13469 s/\(=[   ]*\).*/\1/
13470 G
13471 s/\n//
13472 s/^[^=]*=[       ]*$//
13473 }'
13474 fi
13475
13476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13477 fi # test -n "$CONFIG_FILES"
13478
13479
13480 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
13481 shift
13482 for ac_tag
13483 do
13484   case $ac_tag in
13485   :[FHLC]) ac_mode=$ac_tag; continue;;
13486   esac
13487   case $ac_mode$ac_tag in
13488   :[FHL]*:*);;
13489   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13490   :[FH]-) ac_tag=-:-;;
13491   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13492   esac
13493   ac_save_IFS=$IFS
13494   IFS=:
13495   set x $ac_tag
13496   IFS=$ac_save_IFS
13497   shift
13498   ac_file=$1
13499   shift
13500
13501   case $ac_mode in
13502   :L) ac_source=$1;;
13503   :[FH])
13504     ac_file_inputs=
13505     for ac_f
13506     do
13507       case $ac_f in
13508       -) ac_f="$ac_tmp/stdin";;
13509       *) # Look for the file first in the build tree, then in the source tree
13510          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13511          # because $ac_f cannot contain `:'.
13512          test -f "$ac_f" ||
13513            case $ac_f in
13514            [\\/$]*) false;;
13515            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13516            esac ||
13517            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13518       esac
13519       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13520       as_fn_append ac_file_inputs " '$ac_f'"
13521     done
13522
13523     # Let's still pretend it is `configure' which instantiates (i.e., don't
13524     # use $as_me), people would be surprised to read:
13525     #    /* config.h.  Generated by config.status.  */
13526     configure_input='Generated from '`
13527           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13528         `' by configure.'
13529     if test x"$ac_file" != x-; then
13530       configure_input="$ac_file.  $configure_input"
13531       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13532 $as_echo "$as_me: creating $ac_file" >&6;}
13533     fi
13534     # Neutralize special characters interpreted by sed in replacement strings.
13535     case $configure_input in #(
13536     *\&* | *\|* | *\\* )
13537        ac_sed_conf_input=`$as_echo "$configure_input" |
13538        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13539     *) ac_sed_conf_input=$configure_input;;
13540     esac
13541
13542     case $ac_tag in
13543     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13544       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13545     esac
13546     ;;
13547   esac
13548
13549   ac_dir=`$as_dirname -- "$ac_file" ||
13550 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13551          X"$ac_file" : 'X\(//\)[^/]' \| \
13552          X"$ac_file" : 'X\(//\)$' \| \
13553          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13554 $as_echo X"$ac_file" |
13555     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13556             s//\1/
13557             q
13558           }
13559           /^X\(\/\/\)[^/].*/{
13560             s//\1/
13561             q
13562           }
13563           /^X\(\/\/\)$/{
13564             s//\1/
13565             q
13566           }
13567           /^X\(\/\).*/{
13568             s//\1/
13569             q
13570           }
13571           s/.*/./; q'`
13572   as_dir="$ac_dir"; as_fn_mkdir_p
13573   ac_builddir=.
13574
13575 case "$ac_dir" in
13576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13577 *)
13578   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13579   # A ".." for each directory in $ac_dir_suffix.
13580   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13581   case $ac_top_builddir_sub in
13582   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13583   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13584   esac ;;
13585 esac
13586 ac_abs_top_builddir=$ac_pwd
13587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13588 # for backward compatibility:
13589 ac_top_builddir=$ac_top_build_prefix
13590
13591 case $srcdir in
13592   .)  # We are building in place.
13593     ac_srcdir=.
13594     ac_top_srcdir=$ac_top_builddir_sub
13595     ac_abs_top_srcdir=$ac_pwd ;;
13596   [\\/]* | ?:[\\/]* )  # Absolute name.
13597     ac_srcdir=$srcdir$ac_dir_suffix;
13598     ac_top_srcdir=$srcdir
13599     ac_abs_top_srcdir=$srcdir ;;
13600   *) # Relative name.
13601     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13602     ac_top_srcdir=$ac_top_build_prefix$srcdir
13603     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13604 esac
13605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13606
13607
13608   case $ac_mode in
13609   :F)
13610   #
13611   # CONFIG_FILE
13612   #
13613
13614   case $INSTALL in
13615   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13616   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13617   esac
13618   ac_MKDIR_P=$MKDIR_P
13619   case $MKDIR_P in
13620   [\\/$]* | ?:[\\/]* ) ;;
13621   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13622   esac
13623 _ACEOF
13624
13625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13626 # If the template does not know about datarootdir, expand it.
13627 # FIXME: This hack should be removed a few years after 2.60.
13628 ac_datarootdir_hack=; ac_datarootdir_seen=
13629 ac_sed_dataroot='
13630 /datarootdir/ {
13631   p
13632   q
13633 }
13634 /@datadir@/p
13635 /@docdir@/p
13636 /@infodir@/p
13637 /@localedir@/p
13638 /@mandir@/p'
13639 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13640 *datarootdir*) ac_datarootdir_seen=yes;;
13641 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13642   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13643 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13644 _ACEOF
13645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13646   ac_datarootdir_hack='
13647   s&@datadir@&$datadir&g
13648   s&@docdir@&$docdir&g
13649   s&@infodir@&$infodir&g
13650   s&@localedir@&$localedir&g
13651   s&@mandir@&$mandir&g
13652   s&\\\${datarootdir}&$datarootdir&g' ;;
13653 esac
13654 _ACEOF
13655
13656 # Neutralize VPATH when `$srcdir' = `.'.
13657 # Shell code in configure.ac might set extrasub.
13658 # FIXME: do we really want to maintain this feature?
13659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13660 ac_sed_extra="$ac_vpsub
13661 $extrasub
13662 _ACEOF
13663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13664 :t
13665 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13666 s|@configure_input@|$ac_sed_conf_input|;t t
13667 s&@top_builddir@&$ac_top_builddir_sub&;t t
13668 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13669 s&@srcdir@&$ac_srcdir&;t t
13670 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13671 s&@top_srcdir@&$ac_top_srcdir&;t t
13672 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13673 s&@builddir@&$ac_builddir&;t t
13674 s&@abs_builddir@&$ac_abs_builddir&;t t
13675 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13676 s&@INSTALL@&$ac_INSTALL&;t t
13677 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13678 $ac_datarootdir_hack
13679 "
13680 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13681   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13682
13683 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13684   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13685   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13686       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13687   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13688 which seems to be undefined.  Please make sure it is defined" >&5
13689 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13690 which seems to be undefined.  Please make sure it is defined" >&2;}
13691
13692   rm -f "$ac_tmp/stdin"
13693   case $ac_file in
13694   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13695   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13696   esac \
13697   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13698  ;;
13699
13700
13701   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13702 $as_echo "$as_me: executing $ac_file commands" >&6;}
13703  ;;
13704   esac
13705
13706
13707   case $ac_file$ac_mode in
13708     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13709   # Older Autoconf quotes --file arguments for eval, but not when files
13710   # are listed without --file.  Let's play safe and only enable the eval
13711   # if we detect the quoting.
13712   case $CONFIG_FILES in
13713   *\'*) eval set x "$CONFIG_FILES" ;;
13714   *)   set x $CONFIG_FILES ;;
13715   esac
13716   shift
13717   for mf
13718   do
13719     # Strip MF so we end up with the name of the file.
13720     mf=`echo "$mf" | sed -e 's/:.*$//'`
13721     # Check whether this is an Automake generated Makefile or not.
13722     # We used to match only the files named 'Makefile.in', but
13723     # some people rename them; so instead we look at the file content.
13724     # Grep'ing the first line is not enough: some people post-process
13725     # each Makefile.in and add a new line on top of each file to say so.
13726     # Grep'ing the whole file is not good either: AIX grep has a line
13727     # limit of 2048, but all sed's we know have understand at least 4000.
13728     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13729       dirpart=`$as_dirname -- "$mf" ||
13730 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13731          X"$mf" : 'X\(//\)[^/]' \| \
13732          X"$mf" : 'X\(//\)$' \| \
13733          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13734 $as_echo X"$mf" |
13735     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13736             s//\1/
13737             q
13738           }
13739           /^X\(\/\/\)[^/].*/{
13740             s//\1/
13741             q
13742           }
13743           /^X\(\/\/\)$/{
13744             s//\1/
13745             q
13746           }
13747           /^X\(\/\).*/{
13748             s//\1/
13749             q
13750           }
13751           s/.*/./; q'`
13752     else
13753       continue
13754     fi
13755     # Extract the definition of DEPDIR, am__include, and am__quote
13756     # from the Makefile without running 'make'.
13757     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13758     test -z "$DEPDIR" && continue
13759     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13760     test -z "$am__include" && continue
13761     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13762     # Find all dependency output files, they are included files with
13763     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13764     # simplest approach to changing $(DEPDIR) to its actual value in the
13765     # expansion.
13766     for file in `sed -n "
13767       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13768          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13769       # Make sure the directory exists.
13770       test -f "$dirpart/$file" && continue
13771       fdir=`$as_dirname -- "$file" ||
13772 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13773          X"$file" : 'X\(//\)[^/]' \| \
13774          X"$file" : 'X\(//\)$' \| \
13775          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13776 $as_echo X"$file" |
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       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13795       # echo "creating $dirpart/$file"
13796       echo '# dummy' > "$dirpart/$file"
13797     done
13798   done
13799 }
13800  ;;
13801     "libtool":C)
13802
13803     # See if we are running on zsh, and set the options which allow our
13804     # commands through without removal of \ escapes.
13805     if test -n "${ZSH_VERSION+set}" ; then
13806       setopt NO_GLOB_SUBST
13807     fi
13808
13809     cfgfile="${ofile}T"
13810     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13811     $RM "$cfgfile"
13812
13813     cat <<_LT_EOF >> "$cfgfile"
13814 #! $SHELL
13815
13816 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13817 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13818 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13819 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13820 #
13821 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13822 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13823 #                 Foundation, Inc.
13824 #   Written by Gordon Matzigkeit, 1996
13825 #
13826 #   This file is part of GNU Libtool.
13827 #
13828 # GNU Libtool is free software; you can redistribute it and/or
13829 # modify it under the terms of the GNU General Public License as
13830 # published by the Free Software Foundation; either version 2 of
13831 # the License, or (at your option) any later version.
13832 #
13833 # As a special exception to the GNU General Public License,
13834 # if you distribute this file as part of a program or library that
13835 # is built using GNU Libtool, you may include this file under the
13836 # same distribution terms that you use for the rest of that program.
13837 #
13838 # GNU Libtool is distributed in the hope that it will be useful,
13839 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13840 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13841 # GNU General Public License for more details.
13842 #
13843 # You should have received a copy of the GNU General Public License
13844 # along with GNU Libtool; see the file COPYING.  If not, a copy
13845 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13846 # obtained by writing to the Free Software Foundation, Inc.,
13847 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13848
13849
13850 # The names of the tagged configurations supported by this script.
13851 available_tags=""
13852
13853 # ### BEGIN LIBTOOL CONFIG
13854
13855 # Which release of libtool.m4 was used?
13856 macro_version=$macro_version
13857 macro_revision=$macro_revision
13858
13859 # Whether or not to build shared libraries.
13860 build_libtool_libs=$enable_shared
13861
13862 # Whether or not to build static libraries.
13863 build_old_libs=$enable_static
13864
13865 # What type of objects to build.
13866 pic_mode=$pic_mode
13867
13868 # Whether or not to optimize for fast installation.
13869 fast_install=$enable_fast_install
13870
13871 # Shell to use when invoking shell scripts.
13872 SHELL=$lt_SHELL
13873
13874 # An echo program that protects backslashes.
13875 ECHO=$lt_ECHO
13876
13877 # The PATH separator for the build system.
13878 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13879
13880 # The host system.
13881 host_alias=$host_alias
13882 host=$host
13883 host_os=$host_os
13884
13885 # The build system.
13886 build_alias=$build_alias
13887 build=$build
13888 build_os=$build_os
13889
13890 # A sed program that does not truncate output.
13891 SED=$lt_SED
13892
13893 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13894 Xsed="\$SED -e 1s/^X//"
13895
13896 # A grep program that handles long lines.
13897 GREP=$lt_GREP
13898
13899 # An ERE matcher.
13900 EGREP=$lt_EGREP
13901
13902 # A literal string matcher.
13903 FGREP=$lt_FGREP
13904
13905 # A BSD- or MS-compatible name lister.
13906 NM=$lt_NM
13907
13908 # Whether we need soft or hard links.
13909 LN_S=$lt_LN_S
13910
13911 # What is the maximum length of a command?
13912 max_cmd_len=$max_cmd_len
13913
13914 # Object file suffix (normally "o").
13915 objext=$ac_objext
13916
13917 # Executable file suffix (normally "").
13918 exeext=$exeext
13919
13920 # whether the shell understands "unset".
13921 lt_unset=$lt_unset
13922
13923 # turn spaces into newlines.
13924 SP2NL=$lt_lt_SP2NL
13925
13926 # turn newlines into spaces.
13927 NL2SP=$lt_lt_NL2SP
13928
13929 # convert \$build file names to \$host format.
13930 to_host_file_cmd=$lt_cv_to_host_file_cmd
13931
13932 # convert \$build files to toolchain format.
13933 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13934
13935 # An object symbol dumper.
13936 OBJDUMP=$lt_OBJDUMP
13937
13938 # Method to check whether dependent libraries are shared objects.
13939 deplibs_check_method=$lt_deplibs_check_method
13940
13941 # Command to use when deplibs_check_method = "file_magic".
13942 file_magic_cmd=$lt_file_magic_cmd
13943
13944 # How to find potential files when deplibs_check_method = "file_magic".
13945 file_magic_glob=$lt_file_magic_glob
13946
13947 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13948 want_nocaseglob=$lt_want_nocaseglob
13949
13950 # DLL creation program.
13951 DLLTOOL=$lt_DLLTOOL
13952
13953 # Command to associate shared and link libraries.
13954 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13955
13956 # The archiver.
13957 AR=$lt_AR
13958
13959 # Flags to create an archive.
13960 AR_FLAGS=$lt_AR_FLAGS
13961
13962 # How to feed a file listing to the archiver.
13963 archiver_list_spec=$lt_archiver_list_spec
13964
13965 # A symbol stripping program.
13966 STRIP=$lt_STRIP
13967
13968 # Commands used to install an old-style archive.
13969 RANLIB=$lt_RANLIB
13970 old_postinstall_cmds=$lt_old_postinstall_cmds
13971 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13972
13973 # Whether to use a lock for old archive extraction.
13974 lock_old_archive_extraction=$lock_old_archive_extraction
13975
13976 # A C compiler.
13977 LTCC=$lt_CC
13978
13979 # LTCC compiler flags.
13980 LTCFLAGS=$lt_CFLAGS
13981
13982 # Take the output of nm and produce a listing of raw symbols and C names.
13983 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13984
13985 # Transform the output of nm in a proper C declaration.
13986 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13987
13988 # Transform the output of nm in a C name address pair.
13989 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13990
13991 # Transform the output of nm in a C name address pair when lib prefix is needed.
13992 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13993
13994 # Specify filename containing input files for \$NM.
13995 nm_file_list_spec=$lt_nm_file_list_spec
13996
13997 # The root where to search for dependent libraries,and in which our libraries should be installed.
13998 lt_sysroot=$lt_sysroot
13999
14000 # The name of the directory that contains temporary libtool files.
14001 objdir=$objdir
14002
14003 # Used to examine libraries when file_magic_cmd begins with "file".
14004 MAGIC_CMD=$MAGIC_CMD
14005
14006 # Must we lock files when doing compilation?
14007 need_locks=$lt_need_locks
14008
14009 # Manifest tool.
14010 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14011
14012 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14013 DSYMUTIL=$lt_DSYMUTIL
14014
14015 # Tool to change global to local symbols on Mac OS X.
14016 NMEDIT=$lt_NMEDIT
14017
14018 # Tool to manipulate fat objects and archives on Mac OS X.
14019 LIPO=$lt_LIPO
14020
14021 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14022 OTOOL=$lt_OTOOL
14023
14024 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14025 OTOOL64=$lt_OTOOL64
14026
14027 # Old archive suffix (normally "a").
14028 libext=$libext
14029
14030 # Shared library suffix (normally ".so").
14031 shrext_cmds=$lt_shrext_cmds
14032
14033 # The commands to extract the exported symbol list from a shared archive.
14034 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14035
14036 # Variables whose values should be saved in libtool wrapper scripts and
14037 # restored at link time.
14038 variables_saved_for_relink=$lt_variables_saved_for_relink
14039
14040 # Do we need the "lib" prefix for modules?
14041 need_lib_prefix=$need_lib_prefix
14042
14043 # Do we need a version for libraries?
14044 need_version=$need_version
14045
14046 # Library versioning type.
14047 version_type=$version_type
14048
14049 # Shared library runtime path variable.
14050 runpath_var=$runpath_var
14051
14052 # Shared library path variable.
14053 shlibpath_var=$shlibpath_var
14054
14055 # Is shlibpath searched before the hard-coded library search path?
14056 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14057
14058 # Format of library name prefix.
14059 libname_spec=$lt_libname_spec
14060
14061 # List of archive names.  First name is the real one, the rest are links.
14062 # The last name is the one that the linker finds with -lNAME
14063 library_names_spec=$lt_library_names_spec
14064
14065 # The coded name of the library, if different from the real name.
14066 soname_spec=$lt_soname_spec
14067
14068 # Permission mode override for installation of shared libraries.
14069 install_override_mode=$lt_install_override_mode
14070
14071 # Command to use after installation of a shared archive.
14072 postinstall_cmds=$lt_postinstall_cmds
14073
14074 # Command to use after uninstallation of a shared archive.
14075 postuninstall_cmds=$lt_postuninstall_cmds
14076
14077 # Commands used to finish a libtool library installation in a directory.
14078 finish_cmds=$lt_finish_cmds
14079
14080 # As "finish_cmds", except a single script fragment to be evaled but
14081 # not shown.
14082 finish_eval=$lt_finish_eval
14083
14084 # Whether we should hardcode library paths into libraries.
14085 hardcode_into_libs=$hardcode_into_libs
14086
14087 # Compile-time system search path for libraries.
14088 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14089
14090 # Run-time system search path for libraries.
14091 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14092
14093 # Whether dlopen is supported.
14094 dlopen_support=$enable_dlopen
14095
14096 # Whether dlopen of programs is supported.
14097 dlopen_self=$enable_dlopen_self
14098
14099 # Whether dlopen of statically linked programs is supported.
14100 dlopen_self_static=$enable_dlopen_self_static
14101
14102 # Commands to strip libraries.
14103 old_striplib=$lt_old_striplib
14104 striplib=$lt_striplib
14105
14106
14107 # The linker used to build libraries.
14108 LD=$lt_LD
14109
14110 # How to create reloadable object files.
14111 reload_flag=$lt_reload_flag
14112 reload_cmds=$lt_reload_cmds
14113
14114 # Commands used to build an old-style archive.
14115 old_archive_cmds=$lt_old_archive_cmds
14116
14117 # A language specific compiler.
14118 CC=$lt_compiler
14119
14120 # Is the compiler the GNU compiler?
14121 with_gcc=$GCC
14122
14123 # Compiler flag to turn off builtin functions.
14124 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14125
14126 # Additional compiler flags for building library objects.
14127 pic_flag=$lt_lt_prog_compiler_pic
14128
14129 # How to pass a linker flag through the compiler.
14130 wl=$lt_lt_prog_compiler_wl
14131
14132 # Compiler flag to prevent dynamic linking.
14133 link_static_flag=$lt_lt_prog_compiler_static
14134
14135 # Does compiler simultaneously support -c and -o options?
14136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14137
14138 # Whether or not to add -lc for building shared libraries.
14139 build_libtool_need_lc=$archive_cmds_need_lc
14140
14141 # Whether or not to disallow shared libs when runtime libs are static.
14142 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14143
14144 # Compiler flag to allow reflexive dlopens.
14145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14146
14147 # Compiler flag to generate shared objects directly from archives.
14148 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14149
14150 # Whether the compiler copes with passing no objects directly.
14151 compiler_needs_object=$lt_compiler_needs_object
14152
14153 # Create an old-style archive from a shared archive.
14154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14155
14156 # Create a temporary old-style archive to link instead of a shared archive.
14157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14158
14159 # Commands used to build a shared archive.
14160 archive_cmds=$lt_archive_cmds
14161 archive_expsym_cmds=$lt_archive_expsym_cmds
14162
14163 # Commands used to build a loadable module if different from building
14164 # a shared archive.
14165 module_cmds=$lt_module_cmds
14166 module_expsym_cmds=$lt_module_expsym_cmds
14167
14168 # Whether we are building with GNU ld or not.
14169 with_gnu_ld=$lt_with_gnu_ld
14170
14171 # Flag that allows shared libraries with undefined symbols to be built.
14172 allow_undefined_flag=$lt_allow_undefined_flag
14173
14174 # Flag that enforces no undefined symbols.
14175 no_undefined_flag=$lt_no_undefined_flag
14176
14177 # Flag to hardcode \$libdir into a binary during linking.
14178 # This must work even if \$libdir does not exist
14179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14180
14181 # Whether we need a single "-rpath" flag with a separated argument.
14182 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14183
14184 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14185 # DIR into the resulting binary.
14186 hardcode_direct=$hardcode_direct
14187
14188 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14189 # DIR into the resulting binary and the resulting library dependency is
14190 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14191 # library is relocated.
14192 hardcode_direct_absolute=$hardcode_direct_absolute
14193
14194 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14195 # into the resulting binary.
14196 hardcode_minus_L=$hardcode_minus_L
14197
14198 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14199 # into the resulting binary.
14200 hardcode_shlibpath_var=$hardcode_shlibpath_var
14201
14202 # Set to "yes" if building a shared library automatically hardcodes DIR
14203 # into the library and all subsequent libraries and executables linked
14204 # against it.
14205 hardcode_automatic=$hardcode_automatic
14206
14207 # Set to yes if linker adds runtime paths of dependent libraries
14208 # to runtime path list.
14209 inherit_rpath=$inherit_rpath
14210
14211 # Whether libtool must link a program against all its dependency libraries.
14212 link_all_deplibs=$link_all_deplibs
14213
14214 # Set to "yes" if exported symbols are required.
14215 always_export_symbols=$always_export_symbols
14216
14217 # The commands to list exported symbols.
14218 export_symbols_cmds=$lt_export_symbols_cmds
14219
14220 # Symbols that should not be listed in the preloaded symbols.
14221 exclude_expsyms=$lt_exclude_expsyms
14222
14223 # Symbols that must always be exported.
14224 include_expsyms=$lt_include_expsyms
14225
14226 # Commands necessary for linking programs (against libraries) with templates.
14227 prelink_cmds=$lt_prelink_cmds
14228
14229 # Commands necessary for finishing linking programs.
14230 postlink_cmds=$lt_postlink_cmds
14231
14232 # Specify filename containing input files.
14233 file_list_spec=$lt_file_list_spec
14234
14235 # How to hardcode a shared library path into an executable.
14236 hardcode_action=$hardcode_action
14237
14238 # ### END LIBTOOL CONFIG
14239
14240 _LT_EOF
14241
14242   case $host_os in
14243   aix3*)
14244     cat <<\_LT_EOF >> "$cfgfile"
14245 # AIX sometimes has problems with the GCC collect2 program.  For some
14246 # reason, if we set the COLLECT_NAMES environment variable, the problems
14247 # vanish in a puff of smoke.
14248 if test "X${COLLECT_NAMES+set}" != Xset; then
14249   COLLECT_NAMES=
14250   export COLLECT_NAMES
14251 fi
14252 _LT_EOF
14253     ;;
14254   esac
14255
14256
14257 ltmain="$ac_aux_dir/ltmain.sh"
14258
14259
14260   # We use sed instead of cat because bash on DJGPP gets confused if
14261   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14262   # text mode, it properly converts lines to CR/LF.  This bash problem
14263   # is reportedly fixed, but why not run on old versions too?
14264   sed '$q' "$ltmain" >> "$cfgfile" \
14265      || (rm -f "$cfgfile"; exit 1)
14266
14267   if test x"$xsi_shell" = xyes; then
14268   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14269 func_dirname ()\
14270 {\
14271 \    case ${1} in\
14272 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14273 \      *  ) func_dirname_result="${3}" ;;\
14274 \    esac\
14275 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14276   && mv -f "$cfgfile.tmp" "$cfgfile" \
14277     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14278 test 0 -eq $? || _lt_function_replace_fail=:
14279
14280
14281   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14282 func_basename ()\
14283 {\
14284 \    func_basename_result="${1##*/}"\
14285 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14286   && mv -f "$cfgfile.tmp" "$cfgfile" \
14287     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14288 test 0 -eq $? || _lt_function_replace_fail=:
14289
14290
14291   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14292 func_dirname_and_basename ()\
14293 {\
14294 \    case ${1} in\
14295 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14296 \      *  ) func_dirname_result="${3}" ;;\
14297 \    esac\
14298 \    func_basename_result="${1##*/}"\
14299 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14300   && mv -f "$cfgfile.tmp" "$cfgfile" \
14301     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14302 test 0 -eq $? || _lt_function_replace_fail=:
14303
14304
14305   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14306 func_stripname ()\
14307 {\
14308 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14309 \    # positional parameters, so assign one to ordinary parameter first.\
14310 \    func_stripname_result=${3}\
14311 \    func_stripname_result=${func_stripname_result#"${1}"}\
14312 \    func_stripname_result=${func_stripname_result%"${2}"}\
14313 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14314   && mv -f "$cfgfile.tmp" "$cfgfile" \
14315     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14316 test 0 -eq $? || _lt_function_replace_fail=:
14317
14318
14319   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14320 func_split_long_opt ()\
14321 {\
14322 \    func_split_long_opt_name=${1%%=*}\
14323 \    func_split_long_opt_arg=${1#*=}\
14324 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14325   && mv -f "$cfgfile.tmp" "$cfgfile" \
14326     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14327 test 0 -eq $? || _lt_function_replace_fail=:
14328
14329
14330   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14331 func_split_short_opt ()\
14332 {\
14333 \    func_split_short_opt_arg=${1#??}\
14334 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14335 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14336   && mv -f "$cfgfile.tmp" "$cfgfile" \
14337     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14338 test 0 -eq $? || _lt_function_replace_fail=:
14339
14340
14341   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14342 func_lo2o ()\
14343 {\
14344 \    case ${1} in\
14345 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14346 \      *)    func_lo2o_result=${1} ;;\
14347 \    esac\
14348 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14349   && mv -f "$cfgfile.tmp" "$cfgfile" \
14350     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14351 test 0 -eq $? || _lt_function_replace_fail=:
14352
14353
14354   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14355 func_xform ()\
14356 {\
14357     func_xform_result=${1%.*}.lo\
14358 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14359   && mv -f "$cfgfile.tmp" "$cfgfile" \
14360     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14361 test 0 -eq $? || _lt_function_replace_fail=:
14362
14363
14364   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14365 func_arith ()\
14366 {\
14367     func_arith_result=$(( $* ))\
14368 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14369   && mv -f "$cfgfile.tmp" "$cfgfile" \
14370     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14371 test 0 -eq $? || _lt_function_replace_fail=:
14372
14373
14374   sed -e '/^func_len ()$/,/^} # func_len /c\
14375 func_len ()\
14376 {\
14377     func_len_result=${#1}\
14378 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14379   && mv -f "$cfgfile.tmp" "$cfgfile" \
14380     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14381 test 0 -eq $? || _lt_function_replace_fail=:
14382
14383 fi
14384
14385 if test x"$lt_shell_append" = xyes; then
14386   sed -e '/^func_append ()$/,/^} # func_append /c\
14387 func_append ()\
14388 {\
14389     eval "${1}+=\\${2}"\
14390 } # Extended-shell func_append 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_append_quoted ()$/,/^} # func_append_quoted /c\
14397 func_append_quoted ()\
14398 {\
14399 \    func_quote_for_eval "${2}"\
14400 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14401 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14402   && mv -f "$cfgfile.tmp" "$cfgfile" \
14403     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14404 test 0 -eq $? || _lt_function_replace_fail=:
14405
14406
14407   # Save a `func_append' function call where possible by direct use of '+='
14408   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14409     && mv -f "$cfgfile.tmp" "$cfgfile" \
14410       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14411   test 0 -eq $? || _lt_function_replace_fail=:
14412 else
14413   # Save a `func_append' function call even when '+=' is not available
14414   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14415     && mv -f "$cfgfile.tmp" "$cfgfile" \
14416       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14417   test 0 -eq $? || _lt_function_replace_fail=:
14418 fi
14419
14420 if test x"$_lt_function_replace_fail" = x":"; then
14421   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14422 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14423 fi
14424
14425
14426    mv -f "$cfgfile" "$ofile" ||
14427     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14428   chmod +x "$ofile"
14429
14430  ;;
14431
14432   esac
14433 done # for ac_tag
14434
14435
14436 as_fn_exit 0
14437 _ACEOF
14438 ac_clean_files=$ac_clean_files_save
14439
14440 test $ac_write_fail = 0 ||
14441   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14442
14443
14444 # configure is writing to config.log, and then calls config.status.
14445 # config.status does its own redirection, appending to config.log.
14446 # Unfortunately, on DOS this fails, as config.log is still kept open
14447 # by configure, so config.status won't be able to write to it; its
14448 # output is simply discarded.  So we exec the FD to /dev/null,
14449 # effectively closing config.log, so it can be properly (re)opened and
14450 # appended to by config.status.  When coming back to configure, we
14451 # need to make the FD available again.
14452 if test "$no_create" != yes; then
14453   ac_cs_success=:
14454   ac_config_status_args=
14455   test "$silent" = yes &&
14456     ac_config_status_args="$ac_config_status_args --quiet"
14457   exec 5>/dev/null
14458   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14459   exec 5>>config.log
14460   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14461   # would make configure fail if this is the last instruction.
14462   $ac_cs_success || as_fn_exit 1
14463 fi
14464 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14465   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14466 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14467 fi
14468