Import moonshot-trust-router_1.4.1.orig.tar.gz
[trust_router.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for trust_router 1.4.1.
4 #
5 # Report bugs to <bugs@project-moonshot.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: bugs@project-moonshot.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='trust_router'
592 PACKAGE_TARNAME='trust_router'
593 PACKAGE_VERSION='1.4.1'
594 PACKAGE_STRING='trust_router 1.4.1'
595 PACKAGE_BUGREPORT='bugs@project-moonshot.org'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 HAVE_SYSTEMD_FALSE
639 HAVE_SYSTEMD_TRUE
640 systemdsystemunitdir
641 PKG_CONFIG_LIBDIR
642 PKG_CONFIG_PATH
643 PKG_CONFIG
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 SED
662 host_os
663 host_vendor
664 host_cpu
665 host
666 build_os
667 build_vendor
668 build_cpu
669 build
670 LIBTOOL
671 MAINT
672 MAINTAINER_MODE_FALSE
673 MAINTAINER_MODE_TRUE
674 AM_BACKSLASH
675 AM_DEFAULT_VERBOSITY
676 AM_DEFAULT_V
677 AM_V
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 am__nodep
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__quote
686 am__include
687 DEPDIR
688 am__untar
689 am__tar
690 AMTAR
691 am__leading_dot
692 SET_MAKE
693 AWK
694 mkdir_p
695 MKDIR_P
696 INSTALL_STRIP_PROGRAM
697 STRIP
698 install_sh
699 MAKEINFO
700 AUTOHEADER
701 AUTOMAKE
702 AUTOCONF
703 ACLOCAL
704 VERSION
705 PACKAGE
706 CYGPATH_W
707 am__isrc
708 INSTALL_DATA
709 INSTALL_SCRIPT
710 INSTALL_PROGRAM
711 EGREP
712 GREP
713 CPP
714 OBJEXT
715 EXEEXT
716 ac_ct_CC
717 CPPFLAGS
718 LDFLAGS
719 CFLAGS
720 CC
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_dependency_tracking
763 enable_silent_rules
764 enable_maintainer_mode
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 with_gnu_ld
770 with_sysroot
771 enable_libtool_lock
772 with_systemdsystemunitdir
773 '
774       ac_precious_vars='build_alias
775 host_alias
776 target_alias
777 CC
778 CFLAGS
779 LDFLAGS
780 LIBS
781 CPPFLAGS
782 CPP
783 PKG_CONFIG
784 PKG_CONFIG_PATH
785 PKG_CONFIG_LIBDIR'
786
787
788 # Initialize some variables set by options.
789 ac_init_help=
790 ac_init_version=false
791 ac_unrecognized_opts=
792 ac_unrecognized_sep=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
809
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
835
836 ac_prev=
837 ac_dashdash=
838 for ac_option
839 do
840   # If the previous option needs an argument, assign it.
841   if test -n "$ac_prev"; then
842     eval $ac_prev=\$ac_option
843     ac_prev=
844     continue
845   fi
846
847   case $ac_option in
848   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849   *=)   ac_optarg= ;;
850   *)    ac_optarg=yes ;;
851   esac
852
853   # Accept the important Cygnus configure options, so we can diagnose typos.
854
855   case $ac_dashdash$ac_option in
856   --)
857     ac_dashdash=yes ;;
858
859   -bindir | --bindir | --bindi | --bind | --bin | --bi)
860     ac_prev=bindir ;;
861   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862     bindir=$ac_optarg ;;
863
864   -build | --build | --buil | --bui | --bu)
865     ac_prev=build_alias ;;
866   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867     build_alias=$ac_optarg ;;
868
869   -cache-file | --cache-file | --cache-fil | --cache-fi \
870   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871     ac_prev=cache_file ;;
872   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874     cache_file=$ac_optarg ;;
875
876   --config-cache | -C)
877     cache_file=config.cache ;;
878
879   -datadir | --datadir | --datadi | --datad)
880     ac_prev=datadir ;;
881   -datadir=* | --datadir=* | --datadi=* | --datad=*)
882     datadir=$ac_optarg ;;
883
884   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885   | --dataroo | --dataro | --datar)
886     ac_prev=datarootdir ;;
887   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889     datarootdir=$ac_optarg ;;
890
891   -disable-* | --disable-*)
892     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893     # Reject names that are not valid shell variable names.
894     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895       as_fn_error $? "invalid feature name: $ac_useropt"
896     ac_useropt_orig=$ac_useropt
897     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898     case $ac_user_opts in
899       *"
900 "enable_$ac_useropt"
901 "*) ;;
902       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903          ac_unrecognized_sep=', ';;
904     esac
905     eval enable_$ac_useropt=no ;;
906
907   -docdir | --docdir | --docdi | --doc | --do)
908     ac_prev=docdir ;;
909   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910     docdir=$ac_optarg ;;
911
912   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913     ac_prev=dvidir ;;
914   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915     dvidir=$ac_optarg ;;
916
917   -enable-* | --enable-*)
918     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919     # Reject names that are not valid shell variable names.
920     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921       as_fn_error $? "invalid feature name: $ac_useropt"
922     ac_useropt_orig=$ac_useropt
923     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924     case $ac_user_opts in
925       *"
926 "enable_$ac_useropt"
927 "*) ;;
928       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929          ac_unrecognized_sep=', ';;
930     esac
931     eval enable_$ac_useropt=\$ac_optarg ;;
932
933   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935   | --exec | --exe | --ex)
936     ac_prev=exec_prefix ;;
937   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939   | --exec=* | --exe=* | --ex=*)
940     exec_prefix=$ac_optarg ;;
941
942   -gas | --gas | --ga | --g)
943     # Obsolete; use --with-gas.
944     with_gas=yes ;;
945
946   -help | --help | --hel | --he | -h)
947     ac_init_help=long ;;
948   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949     ac_init_help=recursive ;;
950   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951     ac_init_help=short ;;
952
953   -host | --host | --hos | --ho)
954     ac_prev=host_alias ;;
955   -host=* | --host=* | --hos=* | --ho=*)
956     host_alias=$ac_optarg ;;
957
958   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959     ac_prev=htmldir ;;
960   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961   | --ht=*)
962     htmldir=$ac_optarg ;;
963
964   -includedir | --includedir | --includedi | --included | --include \
965   | --includ | --inclu | --incl | --inc)
966     ac_prev=includedir ;;
967   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968   | --includ=* | --inclu=* | --incl=* | --inc=*)
969     includedir=$ac_optarg ;;
970
971   -infodir | --infodir | --infodi | --infod | --info | --inf)
972     ac_prev=infodir ;;
973   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974     infodir=$ac_optarg ;;
975
976   -libdir | --libdir | --libdi | --libd)
977     ac_prev=libdir ;;
978   -libdir=* | --libdir=* | --libdi=* | --libd=*)
979     libdir=$ac_optarg ;;
980
981   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982   | --libexe | --libex | --libe)
983     ac_prev=libexecdir ;;
984   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985   | --libexe=* | --libex=* | --libe=*)
986     libexecdir=$ac_optarg ;;
987
988   -localedir | --localedir | --localedi | --localed | --locale)
989     ac_prev=localedir ;;
990   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991     localedir=$ac_optarg ;;
992
993   -localstatedir | --localstatedir | --localstatedi | --localstated \
994   | --localstate | --localstat | --localsta | --localst | --locals)
995     ac_prev=localstatedir ;;
996   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998     localstatedir=$ac_optarg ;;
999
1000   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001     ac_prev=mandir ;;
1002   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003     mandir=$ac_optarg ;;
1004
1005   -nfp | --nfp | --nf)
1006     # Obsolete; use --without-fp.
1007     with_fp=no ;;
1008
1009   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010   | --no-cr | --no-c | -n)
1011     no_create=yes ;;
1012
1013   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015     no_recursion=yes ;;
1016
1017   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019   | --oldin | --oldi | --old | --ol | --o)
1020     ac_prev=oldincludedir ;;
1021   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024     oldincludedir=$ac_optarg ;;
1025
1026   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027     ac_prev=prefix ;;
1028   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029     prefix=$ac_optarg ;;
1030
1031   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032   | --program-pre | --program-pr | --program-p)
1033     ac_prev=program_prefix ;;
1034   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036     program_prefix=$ac_optarg ;;
1037
1038   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039   | --program-suf | --program-su | --program-s)
1040     ac_prev=program_suffix ;;
1041   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043     program_suffix=$ac_optarg ;;
1044
1045   -program-transform-name | --program-transform-name \
1046   | --program-transform-nam | --program-transform-na \
1047   | --program-transform-n | --program-transform- \
1048   | --program-transform | --program-transfor \
1049   | --program-transfo | --program-transf \
1050   | --program-trans | --program-tran \
1051   | --progr-tra | --program-tr | --program-t)
1052     ac_prev=program_transform_name ;;
1053   -program-transform-name=* | --program-transform-name=* \
1054   | --program-transform-nam=* | --program-transform-na=* \
1055   | --program-transform-n=* | --program-transform-=* \
1056   | --program-transform=* | --program-transfor=* \
1057   | --program-transfo=* | --program-transf=* \
1058   | --program-trans=* | --program-tran=* \
1059   | --progr-tra=* | --program-tr=* | --program-t=*)
1060     program_transform_name=$ac_optarg ;;
1061
1062   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063     ac_prev=pdfdir ;;
1064   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065     pdfdir=$ac_optarg ;;
1066
1067   -psdir | --psdir | --psdi | --psd | --ps)
1068     ac_prev=psdir ;;
1069   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070     psdir=$ac_optarg ;;
1071
1072   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073   | -silent | --silent | --silen | --sile | --sil)
1074     silent=yes ;;
1075
1076   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077     ac_prev=sbindir ;;
1078   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079   | --sbi=* | --sb=*)
1080     sbindir=$ac_optarg ;;
1081
1082   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084   | --sharedst | --shareds | --shared | --share | --shar \
1085   | --sha | --sh)
1086     ac_prev=sharedstatedir ;;
1087   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090   | --sha=* | --sh=*)
1091     sharedstatedir=$ac_optarg ;;
1092
1093   -site | --site | --sit)
1094     ac_prev=site ;;
1095   -site=* | --site=* | --sit=*)
1096     site=$ac_optarg ;;
1097
1098   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099     ac_prev=srcdir ;;
1100   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101     srcdir=$ac_optarg ;;
1102
1103   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104   | --syscon | --sysco | --sysc | --sys | --sy)
1105     ac_prev=sysconfdir ;;
1106   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108     sysconfdir=$ac_optarg ;;
1109
1110   -target | --target | --targe | --targ | --tar | --ta | --t)
1111     ac_prev=target_alias ;;
1112   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113     target_alias=$ac_optarg ;;
1114
1115   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116     verbose=yes ;;
1117
1118   -version | --version | --versio | --versi | --vers | -V)
1119     ac_init_version=: ;;
1120
1121   -with-* | --with-*)
1122     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123     # Reject names that are not valid shell variable names.
1124     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125       as_fn_error $? "invalid package name: $ac_useropt"
1126     ac_useropt_orig=$ac_useropt
1127     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128     case $ac_user_opts in
1129       *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133          ac_unrecognized_sep=', ';;
1134     esac
1135     eval with_$ac_useropt=\$ac_optarg ;;
1136
1137   -without-* | --without-*)
1138     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141       as_fn_error $? "invalid package name: $ac_useropt"
1142     ac_useropt_orig=$ac_useropt
1143     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144     case $ac_user_opts in
1145       *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149          ac_unrecognized_sep=', ';;
1150     esac
1151     eval with_$ac_useropt=no ;;
1152
1153   --x)
1154     # Obsolete; use --with-x.
1155     with_x=yes ;;
1156
1157   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158   | --x-incl | --x-inc | --x-in | --x-i)
1159     ac_prev=x_includes ;;
1160   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162     x_includes=$ac_optarg ;;
1163
1164   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166     ac_prev=x_libraries ;;
1167   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169     x_libraries=$ac_optarg ;;
1170
1171   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information"
1173     ;;
1174
1175   *=*)
1176     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177     # Reject names that are not valid shell variable names.
1178     case $ac_envvar in #(
1179       '' | [0-9]* | *[!_$as_cr_alnum]* )
1180       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1181     esac
1182     eval $ac_envvar=\$ac_optarg
1183     export $ac_envvar ;;
1184
1185   *)
1186     # FIXME: should be removed in autoconf 3.0.
1187     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191     ;;
1192
1193   esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198   as_fn_error $? "missing argument to $ac_option"
1199 fi
1200
1201 if test -n "$ac_unrecognized_opts"; then
1202   case $enable_option_checking in
1203     no) ;;
1204     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206   esac
1207 fi
1208
1209 # Check all directory arguments for consistency.
1210 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211                 datadir sysconfdir sharedstatedir localstatedir includedir \
1212                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213                 libdir localedir mandir
1214 do
1215   eval ac_val=\$$ac_var
1216   # Remove trailing slashes.
1217   case $ac_val in
1218     */ )
1219       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220       eval $ac_var=\$ac_val;;
1221   esac
1222   # Be sure to have absolute directory names.
1223   case $ac_val in
1224     [\\/$]* | ?:[\\/]* )  continue;;
1225     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226   esac
1227   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1228 done
1229
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1236
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239   if test "x$build_alias" = x; then
1240     cross_compiling=maybe
1241   elif test "x$build_alias" != "x$host_alias"; then
1242     cross_compiling=yes
1243   fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255   as_fn_error $? "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257   as_fn_error $? "pwd does not report name of working directory"
1258
1259
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262   ac_srcdir_defaulted=yes
1263   # Try the directory containing this script, then the parent directory.
1264   ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266          X"$as_myself" : 'X\(//\)[^/]' \| \
1267          X"$as_myself" : 'X\(//\)$' \| \
1268          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\/\)[^/].*/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\/\)$/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\).*/{
1283             s//\1/
1284             q
1285           }
1286           s/.*/./; q'`
1287   srcdir=$ac_confdir
1288   if test ! -r "$srcdir/$ac_unique_file"; then
1289     srcdir=..
1290   fi
1291 else
1292   ac_srcdir_defaulted=no
1293 fi
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297 fi
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301         pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304   srcdir=.
1305 fi
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314   eval ac_env_${ac_var}_value=\$${ac_var}
1315   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1318
1319 #
1320 # Report the --help message.
1321 #
1322 if test "$ac_init_help" = "long"; then
1323   # Omit some internal or obsolete options to make the list less imposing.
1324   # This message is too long to be a string in the A/UX 3.1 sh.
1325   cat <<_ACEOF
1326 \`configure' configures trust_router 1.4.1 to adapt to many kinds of systems.
1327
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE.  See below for descriptions of some of the useful variables.
1332
1333 Defaults for the options are specified in brackets.
1334
1335 Configuration:
1336   -h, --help              display this help and exit
1337       --help=short        display options specific to this package
1338       --help=recursive    display the short help of all the included packages
1339   -V, --version           display version information and exit
1340   -q, --quiet, --silent   do not print \`checking ...' messages
1341       --cache-file=FILE   cache test results in FILE [disabled]
1342   -C, --config-cache      alias for \`--cache-file=config.cache'
1343   -n, --no-create         do not create output files
1344       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1345
1346 Installation directories:
1347   --prefix=PREFIX         install architecture-independent files in PREFIX
1348                           [$ac_default_prefix]
1349   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350                           [PREFIX]
1351
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1356
1357 For better control, use the options below.
1358
1359 Fine tuning of the installation directories:
1360   --bindir=DIR            user executables [EPREFIX/bin]
1361   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1362   --libexecdir=DIR        program executables [EPREFIX/libexec]
1363   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1364   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1365   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1366   --libdir=DIR            object code libraries [EPREFIX/lib]
1367   --includedir=DIR        C header files [PREFIX/include]
1368   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1369   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1370   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1371   --infodir=DIR           info documentation [DATAROOTDIR/info]
1372   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1373   --mandir=DIR            man documentation [DATAROOTDIR/man]
1374   --docdir=DIR            documentation root [DATAROOTDIR/doc/trust_router]
1375   --htmldir=DIR           html documentation [DOCDIR]
1376   --dvidir=DIR            dvi documentation [DOCDIR]
1377   --pdfdir=DIR            pdf documentation [DOCDIR]
1378   --psdir=DIR             ps documentation [DOCDIR]
1379 _ACEOF
1380
1381   cat <<\_ACEOF
1382
1383 Program names:
1384   --program-prefix=PREFIX            prepend PREFIX to installed program names
1385   --program-suffix=SUFFIX            append SUFFIX to installed program names
1386   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1387
1388 System types:
1389   --build=BUILD     configure for building on BUILD [guessed]
1390   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1391 _ACEOF
1392 fi
1393
1394 if test -n "$ac_init_help"; then
1395   case $ac_init_help in
1396      short | recursive ) echo "Configuration of trust_router 1.4.1:";;
1397    esac
1398   cat <<\_ACEOF
1399
1400 Optional Features:
1401   --disable-option-checking  ignore unrecognized --enable/--with options
1402   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1403   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1404   --enable-dependency-tracking
1405                           do not reject slow dependency extractors
1406   --disable-dependency-tracking
1407                           speeds up one-time build
1408   --enable-silent-rules   less verbose build output (undo: "make V=1")
1409   --disable-silent-rules  verbose build output (undo: "make V=0")
1410   --enable-maintainer-mode
1411                           enable make rules and dependencies not useful (and
1412                           sometimes confusing) to the casual installer
1413   --enable-shared[=PKGS]  build shared libraries [default=yes]
1414   --enable-static[=PKGS]  build static libraries [default=yes]
1415   --enable-fast-install[=PKGS]
1416                           optimize for fast installation [default=yes]
1417   --disable-libtool-lock  avoid locking (might break parallel builds)
1418
1419 Optional Packages:
1420   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1421   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1422   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1423                           both]
1424   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1425   --with-sysroot=DIR Search for dependent libraries within DIR
1426                         (or the compiler's sysroot if not specified).
1427   --with-systemdsystemunitdir=DIR
1428                           Directory for systemd service files
1429
1430 Some influential environment variables:
1431   CC          C compiler command
1432   CFLAGS      C compiler flags
1433   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1434               nonstandard directory <lib dir>
1435   LIBS        libraries to pass to the linker, e.g. -l<library>
1436   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1437               you have headers in a nonstandard directory <include dir>
1438   CPP         C preprocessor
1439   PKG_CONFIG  path to pkg-config utility
1440   PKG_CONFIG_PATH
1441               directories to add to pkg-config's search path
1442   PKG_CONFIG_LIBDIR
1443               path overriding pkg-config's built-in search path
1444
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1447
1448 Report bugs to <bugs@project-moonshot.org>.
1449 _ACEOF
1450 ac_status=$?
1451 fi
1452
1453 if test "$ac_init_help" = "recursive"; then
1454   # If there are subdirs, report their specific --help.
1455   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456     test -d "$ac_dir" ||
1457       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458       continue
1459     ac_builddir=.
1460
1461 case "$ac_dir" in
1462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *)
1464   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465   # A ".." for each directory in $ac_dir_suffix.
1466   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467   case $ac_top_builddir_sub in
1468   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470   esac ;;
1471 esac
1472 ac_abs_top_builddir=$ac_pwd
1473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474 # for backward compatibility:
1475 ac_top_builddir=$ac_top_build_prefix
1476
1477 case $srcdir in
1478   .)  # We are building in place.
1479     ac_srcdir=.
1480     ac_top_srcdir=$ac_top_builddir_sub
1481     ac_abs_top_srcdir=$ac_pwd ;;
1482   [\\/]* | ?:[\\/]* )  # Absolute name.
1483     ac_srcdir=$srcdir$ac_dir_suffix;
1484     ac_top_srcdir=$srcdir
1485     ac_abs_top_srcdir=$srcdir ;;
1486   *) # Relative name.
1487     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488     ac_top_srcdir=$ac_top_build_prefix$srcdir
1489     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490 esac
1491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492
1493     cd "$ac_dir" || { ac_status=$?; continue; }
1494     # Check for guested configure.
1495     if test -f "$ac_srcdir/configure.gnu"; then
1496       echo &&
1497       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498     elif test -f "$ac_srcdir/configure"; then
1499       echo &&
1500       $SHELL "$ac_srcdir/configure" --help=recursive
1501     else
1502       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503     fi || ac_status=$?
1504     cd "$ac_pwd" || { ac_status=$?; break; }
1505   done
1506 fi
1507
1508 test -n "$ac_init_help" && exit $ac_status
1509 if $ac_init_version; then
1510   cat <<\_ACEOF
1511 trust_router configure 1.4.1
1512 generated by GNU Autoconf 2.69
1513
1514 Copyright (C) 2012 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1517 _ACEOF
1518   exit
1519 fi
1520
1521 ## ------------------------ ##
1522 ## Autoconf initialization. ##
1523 ## ------------------------ ##
1524
1525 # ac_fn_c_try_compile LINENO
1526 # --------------------------
1527 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_compile ()
1529 {
1530   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531   rm -f conftest.$ac_objext
1532   if { { ac_try="$ac_compile"
1533 case "(($ac_try" in
1534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535   *) ac_try_echo=$ac_try;;
1536 esac
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539   (eval "$ac_compile") 2>conftest.err
1540   ac_status=$?
1541   if test -s conftest.err; then
1542     grep -v '^ *+' conftest.err >conftest.er1
1543     cat conftest.er1 >&5
1544     mv -f conftest.er1 conftest.err
1545   fi
1546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547   test $ac_status = 0; } && {
1548          test -z "$ac_c_werror_flag" ||
1549          test ! -s conftest.err
1550        } && test -s conftest.$ac_objext; then :
1551   ac_retval=0
1552 else
1553   $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1555
1556         ac_retval=1
1557 fi
1558   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559   as_fn_set_status $ac_retval
1560
1561 } # ac_fn_c_try_compile
1562
1563 # ac_fn_c_try_cpp LINENO
1564 # ----------------------
1565 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_cpp ()
1567 {
1568   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569   if { { ac_try="$ac_cpp conftest.$ac_ext"
1570 case "(($ac_try" in
1571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572   *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1577   ac_status=$?
1578   if test -s conftest.err; then
1579     grep -v '^ *+' conftest.err >conftest.er1
1580     cat conftest.er1 >&5
1581     mv -f conftest.er1 conftest.err
1582   fi
1583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584   test $ac_status = 0; } > conftest.i && {
1585          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1586          test ! -s conftest.err
1587        }; then :
1588   ac_retval=0
1589 else
1590   $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1592
1593     ac_retval=1
1594 fi
1595   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596   as_fn_set_status $ac_retval
1597
1598 } # ac_fn_c_try_cpp
1599
1600 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1601 # -------------------------------------------------------
1602 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1603 # the include files in INCLUDES and setting the cache variable VAR
1604 # accordingly.
1605 ac_fn_c_check_header_mongrel ()
1606 {
1607   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608   if eval \${$3+:} false; then :
1609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610 $as_echo_n "checking for $2... " >&6; }
1611 if eval \${$3+:} false; then :
1612   $as_echo_n "(cached) " >&6
1613 fi
1614 eval ac_res=\$$3
1615                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1616 $as_echo "$ac_res" >&6; }
1617 else
1618   # Is the header compilable?
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1620 $as_echo_n "checking $2 usability... " >&6; }
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h.  */
1623 $4
1624 #include <$2>
1625 _ACEOF
1626 if ac_fn_c_try_compile "$LINENO"; then :
1627   ac_header_compiler=yes
1628 else
1629   ac_header_compiler=no
1630 fi
1631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1633 $as_echo "$ac_header_compiler" >&6; }
1634
1635 # Is the header present?
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1637 $as_echo_n "checking $2 presence... " >&6; }
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h.  */
1640 #include <$2>
1641 _ACEOF
1642 if ac_fn_c_try_cpp "$LINENO"; then :
1643   ac_header_preproc=yes
1644 else
1645   ac_header_preproc=no
1646 fi
1647 rm -f conftest.err conftest.i conftest.$ac_ext
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1649 $as_echo "$ac_header_preproc" >&6; }
1650
1651 # So?  What about this header?
1652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1653   yes:no: )
1654     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1655 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1656     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1657 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1658     ;;
1659   no:yes:* )
1660     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1661 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1662     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1663 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1664     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1665 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1666     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1667 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1668     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1669 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1670 ( $as_echo "## ---------------------------------------- ##
1671 ## Report this to bugs@project-moonshot.org ##
1672 ## ---------------------------------------- ##"
1673      ) | sed "s/^/$as_me: WARNING:     /" >&2
1674     ;;
1675 esac
1676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679   $as_echo_n "(cached) " >&6
1680 else
1681   eval "$3=\$ac_header_compiler"
1682 fi
1683 eval ac_res=\$$3
1684                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 $as_echo "$ac_res" >&6; }
1686 fi
1687   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688
1689 } # ac_fn_c_check_header_mongrel
1690
1691 # ac_fn_c_try_run LINENO
1692 # ----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694 # that executables *can* be run.
1695 ac_fn_c_try_run ()
1696 {
1697   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698   if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701   *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705   (eval "$ac_link") 2>&5
1706   ac_status=$?
1707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1709   { { case "(($ac_try" in
1710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711   *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715   (eval "$ac_try") 2>&5
1716   ac_status=$?
1717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718   test $ac_status = 0; }; }; then :
1719   ac_retval=0
1720 else
1721   $as_echo "$as_me: program exited with status $ac_status" >&5
1722        $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725        ac_retval=$ac_status
1726 fi
1727   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729   as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_run
1732
1733 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1734 # -------------------------------------------------------
1735 # Tests whether HEADER exists and can be compiled using the include files in
1736 # INCLUDES, setting the cache variable VAR accordingly.
1737 ac_fn_c_check_header_compile ()
1738 {
1739   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743   $as_echo_n "(cached) " >&6
1744 else
1745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h.  */
1747 $4
1748 #include <$2>
1749 _ACEOF
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751   eval "$3=yes"
1752 else
1753   eval "$3=no"
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 fi
1757 eval ac_res=\$$3
1758                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762 } # ac_fn_c_check_header_compile
1763
1764 # ac_fn_c_try_link LINENO
1765 # -----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_link ()
1768 {
1769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770   rm -f conftest.$ac_objext conftest$ac_exeext
1771   if { { ac_try="$ac_link"
1772 case "(($ac_try" in
1773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774   *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778   (eval "$ac_link") 2>conftest.err
1779   ac_status=$?
1780   if test -s conftest.err; then
1781     grep -v '^ *+' conftest.err >conftest.er1
1782     cat conftest.er1 >&5
1783     mv -f conftest.er1 conftest.err
1784   fi
1785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786   test $ac_status = 0; } && {
1787          test -z "$ac_c_werror_flag" ||
1788          test ! -s conftest.err
1789        } && test -s conftest$ac_exeext && {
1790          test "$cross_compiling" = yes ||
1791          test -x conftest$ac_exeext
1792        }; then :
1793   ac_retval=0
1794 else
1795   $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798         ac_retval=1
1799 fi
1800   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1801   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1802   # interfere with the next link command; also delete a directory that is
1803   # left behind by Apple's compiler.  We do this before executing the actions.
1804   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806   as_fn_set_status $ac_retval
1807
1808 } # ac_fn_c_try_link
1809
1810 # ac_fn_c_check_func LINENO FUNC VAR
1811 # ----------------------------------
1812 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1813 ac_fn_c_check_func ()
1814 {
1815   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819   $as_echo_n "(cached) " >&6
1820 else
1821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h.  */
1823 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1825 #define $2 innocuous_$2
1826
1827 /* System header to define __stub macros and hopefully few prototypes,
1828     which can conflict with char $2 (); below.
1829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1830     <limits.h> exists even on freestanding compilers.  */
1831
1832 #ifdef __STDC__
1833 # include <limits.h>
1834 #else
1835 # include <assert.h>
1836 #endif
1837
1838 #undef $2
1839
1840 /* Override any GCC internal prototype to avoid an error.
1841    Use char because int might match the return type of a GCC
1842    builtin and then its argument prototype would still apply.  */
1843 #ifdef __cplusplus
1844 extern "C"
1845 #endif
1846 char $2 ();
1847 /* The GNU C library defines this for functions which it implements
1848     to always fail with ENOSYS.  Some functions are actually named
1849     something starting with __ and the normal name is an alias.  */
1850 #if defined __stub_$2 || defined __stub___$2
1851 choke me
1852 #endif
1853
1854 int
1855 main ()
1856 {
1857 return $2 ();
1858   ;
1859   return 0;
1860 }
1861 _ACEOF
1862 if ac_fn_c_try_link "$LINENO"; then :
1863   eval "$3=yes"
1864 else
1865   eval "$3=no"
1866 fi
1867 rm -f core conftest.err conftest.$ac_objext \
1868     conftest$ac_exeext conftest.$ac_ext
1869 fi
1870 eval ac_res=\$$3
1871                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874
1875 } # ac_fn_c_check_func
1876 cat >config.log <<_ACEOF
1877 This file contains any messages produced by compilers while
1878 running configure, to aid debugging if configure makes a mistake.
1879
1880 It was created by trust_router $as_me 1.4.1, which was
1881 generated by GNU Autoconf 2.69.  Invocation command line was
1882
1883   $ $0 $@
1884
1885 _ACEOF
1886 exec 5>>config.log
1887 {
1888 cat <<_ASUNAME
1889 ## --------- ##
1890 ## Platform. ##
1891 ## --------- ##
1892
1893 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1894 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1895 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1896 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1897 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1898
1899 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1900 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1901
1902 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1903 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1904 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1905 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1906 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1907 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1908 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1909
1910 _ASUNAME
1911
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915   IFS=$as_save_IFS
1916   test -z "$as_dir" && as_dir=.
1917     $as_echo "PATH: $as_dir"
1918   done
1919 IFS=$as_save_IFS
1920
1921 } >&5
1922
1923 cat >&5 <<_ACEOF
1924
1925
1926 ## ----------- ##
1927 ## Core tests. ##
1928 ## ----------- ##
1929
1930 _ACEOF
1931
1932
1933 # Keep a trace of the command line.
1934 # Strip out --no-create and --no-recursion so they do not pile up.
1935 # Strip out --silent because we don't want to record it for future runs.
1936 # Also quote any args containing shell meta-characters.
1937 # Make two passes to allow for proper duplicate-argument suppression.
1938 ac_configure_args=
1939 ac_configure_args0=
1940 ac_configure_args1=
1941 ac_must_keep_next=false
1942 for ac_pass in 1 2
1943 do
1944   for ac_arg
1945   do
1946     case $ac_arg in
1947     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1948     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1949     | -silent | --silent | --silen | --sile | --sil)
1950       continue ;;
1951     *\'*)
1952       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1953     esac
1954     case $ac_pass in
1955     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1956     2)
1957       as_fn_append ac_configure_args1 " '$ac_arg'"
1958       if test $ac_must_keep_next = true; then
1959         ac_must_keep_next=false # Got value, back to normal.
1960       else
1961         case $ac_arg in
1962           *=* | --config-cache | -C | -disable-* | --disable-* \
1963           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1964           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1965           | -with-* | --with-* | -without-* | --without-* | --x)
1966             case "$ac_configure_args0 " in
1967               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1968             esac
1969             ;;
1970           -* ) ac_must_keep_next=true ;;
1971         esac
1972       fi
1973       as_fn_append ac_configure_args " '$ac_arg'"
1974       ;;
1975     esac
1976   done
1977 done
1978 { ac_configure_args0=; unset ac_configure_args0;}
1979 { ac_configure_args1=; unset ac_configure_args1;}
1980
1981 # When interrupted or exit'd, cleanup temporary files, and complete
1982 # config.log.  We remove comments because anyway the quotes in there
1983 # would cause problems or look ugly.
1984 # WARNING: Use '\'' to represent an apostrophe within the trap.
1985 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1986 trap 'exit_status=$?
1987   # Save into config.log some information that might help in debugging.
1988   {
1989     echo
1990
1991     $as_echo "## ---------------- ##
1992 ## Cache variables. ##
1993 ## ---------------- ##"
1994     echo
1995     # The following way of writing the cache mishandles newlines in values,
1996 (
1997   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998     eval ac_val=\$$ac_var
1999     case $ac_val in #(
2000     *${as_nl}*)
2001       case $ac_var in #(
2002       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2004       esac
2005       case $ac_var in #(
2006       _ | IFS | as_nl) ;; #(
2007       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008       *) { eval $ac_var=; unset $ac_var;} ;;
2009       esac ;;
2010     esac
2011   done
2012   (set) 2>&1 |
2013     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2014     *${as_nl}ac_space=\ *)
2015       sed -n \
2016         "s/'\''/'\''\\\\'\'''\''/g;
2017           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2018       ;; #(
2019     *)
2020       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2021       ;;
2022     esac |
2023     sort
2024 )
2025     echo
2026
2027     $as_echo "## ----------------- ##
2028 ## Output variables. ##
2029 ## ----------------- ##"
2030     echo
2031     for ac_var in $ac_subst_vars
2032     do
2033       eval ac_val=\$$ac_var
2034       case $ac_val in
2035       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036       esac
2037       $as_echo "$ac_var='\''$ac_val'\''"
2038     done | sort
2039     echo
2040
2041     if test -n "$ac_subst_files"; then
2042       $as_echo "## ------------------- ##
2043 ## File substitutions. ##
2044 ## ------------------- ##"
2045       echo
2046       for ac_var in $ac_subst_files
2047       do
2048         eval ac_val=\$$ac_var
2049         case $ac_val in
2050         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051         esac
2052         $as_echo "$ac_var='\''$ac_val'\''"
2053       done | sort
2054       echo
2055     fi
2056
2057     if test -s confdefs.h; then
2058       $as_echo "## ----------- ##
2059 ## confdefs.h. ##
2060 ## ----------- ##"
2061       echo
2062       cat confdefs.h
2063       echo
2064     fi
2065     test "$ac_signal" != 0 &&
2066       $as_echo "$as_me: caught signal $ac_signal"
2067     $as_echo "$as_me: exit $exit_status"
2068   } >&5
2069   rm -f core *.core core.conftest.* &&
2070     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2071     exit $exit_status
2072 ' 0
2073 for ac_signal in 1 2 13 15; do
2074   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2075 done
2076 ac_signal=0
2077
2078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2079 rm -f -r conftest* confdefs.h
2080
2081 $as_echo "/* confdefs.h */" > confdefs.h
2082
2083 # Predefined preprocessor variables.
2084
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_NAME "$PACKAGE_NAME"
2087 _ACEOF
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2091 _ACEOF
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_STRING "$PACKAGE_STRING"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_URL "$PACKAGE_URL"
2107 _ACEOF
2108
2109
2110 # Let the site file select an alternate cache file if it wants to.
2111 # Prefer an explicitly selected file to automatically selected ones.
2112 ac_site_file1=NONE
2113 ac_site_file2=NONE
2114 if test -n "$CONFIG_SITE"; then
2115   # We do not want a PATH search for config.site.
2116   case $CONFIG_SITE in #((
2117     -*)  ac_site_file1=./$CONFIG_SITE;;
2118     */*) ac_site_file1=$CONFIG_SITE;;
2119     *)   ac_site_file1=./$CONFIG_SITE;;
2120   esac
2121 elif test "x$prefix" != xNONE; then
2122   ac_site_file1=$prefix/share/config.site
2123   ac_site_file2=$prefix/etc/config.site
2124 else
2125   ac_site_file1=$ac_default_prefix/share/config.site
2126   ac_site_file2=$ac_default_prefix/etc/config.site
2127 fi
2128 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2129 do
2130   test "x$ac_site_file" = xNONE && continue
2131   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2132     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2133 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2134     sed 's/^/| /' "$ac_site_file" >&5
2135     . "$ac_site_file" \
2136       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138 as_fn_error $? "failed to load site script $ac_site_file
2139 See \`config.log' for more details" "$LINENO" 5; }
2140   fi
2141 done
2142
2143 if test -r "$cache_file"; then
2144   # Some versions of bash will fail to source /dev/null (special files
2145   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2146   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2147     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2148 $as_echo "$as_me: loading cache $cache_file" >&6;}
2149     case $cache_file in
2150       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2151       *)                      . "./$cache_file";;
2152     esac
2153   fi
2154 else
2155   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2156 $as_echo "$as_me: creating cache $cache_file" >&6;}
2157   >$cache_file
2158 fi
2159
2160 # Check that the precious variables saved in the cache have kept the same
2161 # value.
2162 ac_cache_corrupted=false
2163 for ac_var in $ac_precious_vars; do
2164   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2165   eval ac_new_set=\$ac_env_${ac_var}_set
2166   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2167   eval ac_new_val=\$ac_env_${ac_var}_value
2168   case $ac_old_set,$ac_new_set in
2169     set,)
2170       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2171 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2172       ac_cache_corrupted=: ;;
2173     ,set)
2174       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2176       ac_cache_corrupted=: ;;
2177     ,);;
2178     *)
2179       if test "x$ac_old_val" != "x$ac_new_val"; then
2180         # differences in whitespace do not lead to failure.
2181         ac_old_val_w=`echo x $ac_old_val`
2182         ac_new_val_w=`echo x $ac_new_val`
2183         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2184           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2185 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2186           ac_cache_corrupted=:
2187         else
2188           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2189 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2190           eval $ac_var=\$ac_old_val
2191         fi
2192         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2193 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2194         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2195 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2196       fi;;
2197   esac
2198   # Pass precious variables to config.status.
2199   if test "$ac_new_set" = set; then
2200     case $ac_new_val in
2201     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2202     *) ac_arg=$ac_var=$ac_new_val ;;
2203     esac
2204     case " $ac_configure_args " in
2205       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2206       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2207     esac
2208   fi
2209 done
2210 if $ac_cache_corrupted; then
2211   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2214 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2215   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2216 fi
2217 ## -------------------- ##
2218 ## Main body of script. ##
2219 ## -------------------- ##
2220
2221 ac_ext=c
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226
2227
2228
2229 ac_aux_dir=
2230 for ac_dir in build-aux "$srcdir"/build-aux; do
2231   if test -f "$ac_dir/install-sh"; then
2232     ac_aux_dir=$ac_dir
2233     ac_install_sh="$ac_aux_dir/install-sh -c"
2234     break
2235   elif test -f "$ac_dir/install.sh"; then
2236     ac_aux_dir=$ac_dir
2237     ac_install_sh="$ac_aux_dir/install.sh -c"
2238     break
2239   elif test -f "$ac_dir/shtool"; then
2240     ac_aux_dir=$ac_dir
2241     ac_install_sh="$ac_aux_dir/shtool install -c"
2242     break
2243   fi
2244 done
2245 if test -z "$ac_aux_dir"; then
2246   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2247 fi
2248
2249 # These three variables are undocumented and unsupported,
2250 # and are intended to be withdrawn in a future Autoconf release.
2251 # They can cause serious problems if a builder's source tree is in a directory
2252 # whose full name contains unusual characters.
2253 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2254 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2255 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2256
2257
2258 # expand $ac_aux_dir to an absolute path
2259 am_aux_dir=`cd $ac_aux_dir && pwd`
2260
2261 ac_ext=c
2262 ac_cpp='$CPP $CPPFLAGS'
2263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2266 if test -n "$ac_tool_prefix"; then
2267   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2268 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2270 $as_echo_n "checking for $ac_word... " >&6; }
2271 if ${ac_cv_prog_CC+:} false; then :
2272   $as_echo_n "(cached) " >&6
2273 else
2274   if test -n "$CC"; then
2275   ac_cv_prog_CC="$CC" # Let the user override the test.
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280   IFS=$as_save_IFS
2281   test -z "$as_dir" && as_dir=.
2282     for ac_exec_ext in '' $ac_executable_extensions; do
2283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2286     break 2
2287   fi
2288 done
2289   done
2290 IFS=$as_save_IFS
2291
2292 fi
2293 fi
2294 CC=$ac_cv_prog_CC
2295 if test -n "$CC"; then
2296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2297 $as_echo "$CC" >&6; }
2298 else
2299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2300 $as_echo "no" >&6; }
2301 fi
2302
2303
2304 fi
2305 if test -z "$ac_cv_prog_CC"; then
2306   ac_ct_CC=$CC
2307   # Extract the first word of "gcc", so it can be a program name with args.
2308 set dummy gcc; ac_word=$2
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2310 $as_echo_n "checking for $ac_word... " >&6; }
2311 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2312   $as_echo_n "(cached) " >&6
2313 else
2314   if test -n "$ac_ct_CC"; then
2315   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320   IFS=$as_save_IFS
2321   test -z "$as_dir" && as_dir=.
2322     for ac_exec_ext in '' $ac_executable_extensions; do
2323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324     ac_cv_prog_ac_ct_CC="gcc"
2325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2326     break 2
2327   fi
2328 done
2329   done
2330 IFS=$as_save_IFS
2331
2332 fi
2333 fi
2334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2337 $as_echo "$ac_ct_CC" >&6; }
2338 else
2339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2340 $as_echo "no" >&6; }
2341 fi
2342
2343   if test "x$ac_ct_CC" = x; then
2344     CC=""
2345   else
2346     case $cross_compiling:$ac_tool_warned in
2347 yes:)
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2350 ac_tool_warned=yes ;;
2351 esac
2352     CC=$ac_ct_CC
2353   fi
2354 else
2355   CC="$ac_cv_prog_CC"
2356 fi
2357
2358 if test -z "$CC"; then
2359           if test -n "$ac_tool_prefix"; then
2360     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2361 set dummy ${ac_tool_prefix}cc; 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_CC+:} false; then :
2365   $as_echo_n "(cached) " >&6
2366 else
2367   if test -n "$CC"; then
2368   ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}cc"
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 CC=$ac_cv_prog_CC
2388 if test -n "$CC"; then
2389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2390 $as_echo "$CC" >&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 fi
2399 if test -z "$CC"; then
2400   # Extract the first word of "cc", so it can be a program name with args.
2401 set dummy cc; 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_CC+:} false; then :
2405   $as_echo_n "(cached) " >&6
2406 else
2407   if test -n "$CC"; then
2408   ac_cv_prog_CC="$CC" # Let the user override the test.
2409 else
2410   ac_prog_rejected=no
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414   IFS=$as_save_IFS
2415   test -z "$as_dir" && as_dir=.
2416     for ac_exec_ext in '' $ac_executable_extensions; do
2417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2419        ac_prog_rejected=yes
2420        continue
2421      fi
2422     ac_cv_prog_CC="cc"
2423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2424     break 2
2425   fi
2426 done
2427   done
2428 IFS=$as_save_IFS
2429
2430 if test $ac_prog_rejected = yes; then
2431   # We found a bogon in the path, so make sure we never use it.
2432   set dummy $ac_cv_prog_CC
2433   shift
2434   if test $# != 0; then
2435     # We chose a different compiler from the bogus one.
2436     # However, it has the same basename, so the bogon will be chosen
2437     # first if we set CC to just the basename; use the full file name.
2438     shift
2439     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2440   fi
2441 fi
2442 fi
2443 fi
2444 CC=$ac_cv_prog_CC
2445 if test -n "$CC"; then
2446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2447 $as_echo "$CC" >&6; }
2448 else
2449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2450 $as_echo "no" >&6; }
2451 fi
2452
2453
2454 fi
2455 if test -z "$CC"; then
2456   if test -n "$ac_tool_prefix"; then
2457   for ac_prog in cl.exe
2458   do
2459     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_CC+:} false; then :
2464   $as_echo_n "(cached) " >&6
2465 else
2466   if test -n "$CC"; then
2467   ac_cv_prog_CC="$CC" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474     for ac_exec_ext in '' $ac_executable_extensions; do
2475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478     break 2
2479   fi
2480 done
2481   done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 CC=$ac_cv_prog_CC
2487 if test -n "$CC"; then
2488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489 $as_echo "$CC" >&6; }
2490 else
2491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2493 fi
2494
2495
2496     test -n "$CC" && break
2497   done
2498 fi
2499 if test -z "$CC"; then
2500   ac_ct_CC=$CC
2501   for ac_prog in cl.exe
2502 do
2503   # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2508   $as_echo_n "(cached) " >&6
2509 else
2510   if test -n "$ac_ct_CC"; then
2511   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516   IFS=$as_save_IFS
2517   test -z "$as_dir" && as_dir=.
2518     for ac_exec_ext in '' $ac_executable_extensions; do
2519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520     ac_cv_prog_ac_ct_CC="$ac_prog"
2521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2522     break 2
2523   fi
2524 done
2525   done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2531 if test -n "$ac_ct_CC"; then
2532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2533 $as_echo "$ac_ct_CC" >&6; }
2534 else
2535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536 $as_echo "no" >&6; }
2537 fi
2538
2539
2540   test -n "$ac_ct_CC" && break
2541 done
2542
2543   if test "x$ac_ct_CC" = x; then
2544     CC=""
2545   else
2546     case $cross_compiling:$ac_tool_warned in
2547 yes:)
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2550 ac_tool_warned=yes ;;
2551 esac
2552     CC=$ac_ct_CC
2553   fi
2554 fi
2555
2556 fi
2557
2558
2559 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2561 as_fn_error $? "no acceptable C compiler found in \$PATH
2562 See \`config.log' for more details" "$LINENO" 5; }
2563
2564 # Provide some information about the compiler.
2565 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2566 set X $ac_compile
2567 ac_compiler=$2
2568 for ac_option in --version -v -V -qversion; do
2569   { { ac_try="$ac_compiler $ac_option >&5"
2570 case "(($ac_try" in
2571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572   *) ac_try_echo=$ac_try;;
2573 esac
2574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575 $as_echo "$ac_try_echo"; } >&5
2576   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2577   ac_status=$?
2578   if test -s conftest.err; then
2579     sed '10a\
2580 ... rest of stderr output deleted ...
2581          10q' conftest.err >conftest.er1
2582     cat conftest.er1 >&5
2583   fi
2584   rm -f conftest.er1 conftest.err
2585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2586   test $ac_status = 0; }
2587 done
2588
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h.  */
2591
2592 int
2593 main ()
2594 {
2595
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 ac_clean_files_save=$ac_clean_files
2601 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2602 # Try to create an executable without -o first, disregard a.out.
2603 # It will help us diagnose broken compilers, and finding out an intuition
2604 # of exeext.
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2606 $as_echo_n "checking whether the C compiler works... " >&6; }
2607 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2608
2609 # The possible output files:
2610 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2611
2612 ac_rmfiles=
2613 for ac_file in $ac_files
2614 do
2615   case $ac_file in
2616     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2617     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2618   esac
2619 done
2620 rm -f $ac_rmfiles
2621
2622 if { { ac_try="$ac_link_default"
2623 case "(($ac_try" in
2624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625   *) ac_try_echo=$ac_try;;
2626 esac
2627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2628 $as_echo "$ac_try_echo"; } >&5
2629   (eval "$ac_link_default") 2>&5
2630   ac_status=$?
2631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632   test $ac_status = 0; }; then :
2633   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2634 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2635 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2636 # so that the user can short-circuit this test for compilers unknown to
2637 # Autoconf.
2638 for ac_file in $ac_files ''
2639 do
2640   test -f "$ac_file" || continue
2641   case $ac_file in
2642     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2643         ;;
2644     [ab].out )
2645         # We found the default executable, but exeext='' is most
2646         # certainly right.
2647         break;;
2648     *.* )
2649         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2650         then :; else
2651            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2652         fi
2653         # We set ac_cv_exeext here because the later test for it is not
2654         # safe: cross compilers may not add the suffix if given an `-o'
2655         # argument, so we may need to know it at that point already.
2656         # Even if this section looks crufty: it has the advantage of
2657         # actually working.
2658         break;;
2659     * )
2660         break;;
2661   esac
2662 done
2663 test "$ac_cv_exeext" = no && ac_cv_exeext=
2664
2665 else
2666   ac_file=''
2667 fi
2668 if test -z "$ac_file"; then :
2669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 $as_echo "no" >&6; }
2671 $as_echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2673
2674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 as_fn_error 77 "C compiler cannot create executables
2677 See \`config.log' for more details" "$LINENO" 5; }
2678 else
2679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2680 $as_echo "yes" >&6; }
2681 fi
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2683 $as_echo_n "checking for C compiler default output file name... " >&6; }
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2685 $as_echo "$ac_file" >&6; }
2686 ac_exeext=$ac_cv_exeext
2687
2688 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2689 ac_clean_files=$ac_clean_files_save
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2691 $as_echo_n "checking for suffix of executables... " >&6; }
2692 if { { ac_try="$ac_link"
2693 case "(($ac_try" in
2694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695   *) ac_try_echo=$ac_try;;
2696 esac
2697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2698 $as_echo "$ac_try_echo"; } >&5
2699   (eval "$ac_link") 2>&5
2700   ac_status=$?
2701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702   test $ac_status = 0; }; then :
2703   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2704 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2705 # work properly (i.e., refer to `conftest.exe'), while it won't with
2706 # `rm'.
2707 for ac_file in conftest.exe conftest conftest.*; do
2708   test -f "$ac_file" || continue
2709   case $ac_file in
2710     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2711     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2712           break;;
2713     * ) break;;
2714   esac
2715 done
2716 else
2717   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2719 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2720 See \`config.log' for more details" "$LINENO" 5; }
2721 fi
2722 rm -f conftest conftest$ac_cv_exeext
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2724 $as_echo "$ac_cv_exeext" >&6; }
2725
2726 rm -f conftest.$ac_ext
2727 EXEEXT=$ac_cv_exeext
2728 ac_exeext=$EXEEXT
2729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h.  */
2731 #include <stdio.h>
2732 int
2733 main ()
2734 {
2735 FILE *f = fopen ("conftest.out", "w");
2736  return ferror (f) || fclose (f) != 0;
2737
2738   ;
2739   return 0;
2740 }
2741 _ACEOF
2742 ac_clean_files="$ac_clean_files conftest.out"
2743 # Check that the compiler produces executables we can run.  If not, either
2744 # the compiler is broken, or we cross compile.
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2746 $as_echo_n "checking whether we are cross compiling... " >&6; }
2747 if test "$cross_compiling" != yes; then
2748   { { ac_try="$ac_link"
2749 case "(($ac_try" in
2750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751   *) ac_try_echo=$ac_try;;
2752 esac
2753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2754 $as_echo "$ac_try_echo"; } >&5
2755   (eval "$ac_link") 2>&5
2756   ac_status=$?
2757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2758   test $ac_status = 0; }
2759   if { ac_try='./conftest$ac_cv_exeext'
2760   { { case "(($ac_try" in
2761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762   *) ac_try_echo=$ac_try;;
2763 esac
2764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2765 $as_echo "$ac_try_echo"; } >&5
2766   (eval "$ac_try") 2>&5
2767   ac_status=$?
2768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2769   test $ac_status = 0; }; }; then
2770     cross_compiling=no
2771   else
2772     if test "$cross_compiling" = maybe; then
2773         cross_compiling=yes
2774     else
2775         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2777 as_fn_error $? "cannot run C compiled programs.
2778 If you meant to cross compile, use \`--host'.
2779 See \`config.log' for more details" "$LINENO" 5; }
2780     fi
2781   fi
2782 fi
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2784 $as_echo "$cross_compiling" >&6; }
2785
2786 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2787 ac_clean_files=$ac_clean_files_save
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2789 $as_echo_n "checking for suffix of object files... " >&6; }
2790 if ${ac_cv_objext+:} false; then :
2791   $as_echo_n "(cached) " >&6
2792 else
2793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h.  */
2795
2796 int
2797 main ()
2798 {
2799
2800   ;
2801   return 0;
2802 }
2803 _ACEOF
2804 rm -f conftest.o conftest.obj
2805 if { { ac_try="$ac_compile"
2806 case "(($ac_try" in
2807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808   *) ac_try_echo=$ac_try;;
2809 esac
2810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2811 $as_echo "$ac_try_echo"; } >&5
2812   (eval "$ac_compile") 2>&5
2813   ac_status=$?
2814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2815   test $ac_status = 0; }; then :
2816   for ac_file in conftest.o conftest.obj conftest.*; do
2817   test -f "$ac_file" || continue;
2818   case $ac_file in
2819     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2820     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2821        break;;
2822   esac
2823 done
2824 else
2825   $as_echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2827
2828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2830 as_fn_error $? "cannot compute suffix of object files: cannot compile
2831 See \`config.log' for more details" "$LINENO" 5; }
2832 fi
2833 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2834 fi
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2836 $as_echo "$ac_cv_objext" >&6; }
2837 OBJEXT=$ac_cv_objext
2838 ac_objext=$OBJEXT
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2840 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2841 if ${ac_cv_c_compiler_gnu+:} false; then :
2842   $as_echo_n "(cached) " >&6
2843 else
2844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845 /* end confdefs.h.  */
2846
2847 int
2848 main ()
2849 {
2850 #ifndef __GNUC__
2851        choke me
2852 #endif
2853
2854   ;
2855   return 0;
2856 }
2857 _ACEOF
2858 if ac_fn_c_try_compile "$LINENO"; then :
2859   ac_compiler_gnu=yes
2860 else
2861   ac_compiler_gnu=no
2862 fi
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2865
2866 fi
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2868 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2869 if test $ac_compiler_gnu = yes; then
2870   GCC=yes
2871 else
2872   GCC=
2873 fi
2874 ac_test_CFLAGS=${CFLAGS+set}
2875 ac_save_CFLAGS=$CFLAGS
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2877 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2878 if ${ac_cv_prog_cc_g+:} false; then :
2879   $as_echo_n "(cached) " >&6
2880 else
2881   ac_save_c_werror_flag=$ac_c_werror_flag
2882    ac_c_werror_flag=yes
2883    ac_cv_prog_cc_g=no
2884    CFLAGS="-g"
2885    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h.  */
2887
2888 int
2889 main ()
2890 {
2891
2892   ;
2893   return 0;
2894 }
2895 _ACEOF
2896 if ac_fn_c_try_compile "$LINENO"; then :
2897   ac_cv_prog_cc_g=yes
2898 else
2899   CFLAGS=""
2900       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h.  */
2902
2903 int
2904 main ()
2905 {
2906
2907   ;
2908   return 0;
2909 }
2910 _ACEOF
2911 if ac_fn_c_try_compile "$LINENO"; then :
2912
2913 else
2914   ac_c_werror_flag=$ac_save_c_werror_flag
2915          CFLAGS="-g"
2916          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917 /* end confdefs.h.  */
2918
2919 int
2920 main ()
2921 {
2922
2923   ;
2924   return 0;
2925 }
2926 _ACEOF
2927 if ac_fn_c_try_compile "$LINENO"; then :
2928   ac_cv_prog_cc_g=yes
2929 fi
2930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2931 fi
2932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2933 fi
2934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2935    ac_c_werror_flag=$ac_save_c_werror_flag
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2938 $as_echo "$ac_cv_prog_cc_g" >&6; }
2939 if test "$ac_test_CFLAGS" = set; then
2940   CFLAGS=$ac_save_CFLAGS
2941 elif test $ac_cv_prog_cc_g = yes; then
2942   if test "$GCC" = yes; then
2943     CFLAGS="-g -O2"
2944   else
2945     CFLAGS="-g"
2946   fi
2947 else
2948   if test "$GCC" = yes; then
2949     CFLAGS="-O2"
2950   else
2951     CFLAGS=
2952   fi
2953 fi
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2955 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2956 if ${ac_cv_prog_cc_c89+:} false; then :
2957   $as_echo_n "(cached) " >&6
2958 else
2959   ac_cv_prog_cc_c89=no
2960 ac_save_CC=$CC
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962 /* end confdefs.h.  */
2963 #include <stdarg.h>
2964 #include <stdio.h>
2965 struct stat;
2966 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2967 struct buf { int x; };
2968 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2969 static char *e (p, i)
2970      char **p;
2971      int i;
2972 {
2973   return p[i];
2974 }
2975 static char *f (char * (*g) (char **, int), char **p, ...)
2976 {
2977   char *s;
2978   va_list v;
2979   va_start (v,p);
2980   s = g (p, va_arg (v,int));
2981   va_end (v);
2982   return s;
2983 }
2984
2985 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2986    function prototypes and stuff, but not '\xHH' hex character constants.
2987    These don't provoke an error unfortunately, instead are silently treated
2988    as 'x'.  The following induces an error, until -std is added to get
2989    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2990    array size at least.  It's necessary to write '\x00'==0 to get something
2991    that's true only with -std.  */
2992 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2993
2994 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2995    inside strings and character constants.  */
2996 #define FOO(x) 'x'
2997 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2998
2999 int test (int i, double x);
3000 struct s1 {int (*f) (int a);};
3001 struct s2 {int (*f) (double a);};
3002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3003 int argc;
3004 char **argv;
3005 int
3006 main ()
3007 {
3008 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3009   ;
3010   return 0;
3011 }
3012 _ACEOF
3013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3014         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3015 do
3016   CC="$ac_save_CC $ac_arg"
3017   if ac_fn_c_try_compile "$LINENO"; then :
3018   ac_cv_prog_cc_c89=$ac_arg
3019 fi
3020 rm -f core conftest.err conftest.$ac_objext
3021   test "x$ac_cv_prog_cc_c89" != "xno" && break
3022 done
3023 rm -f conftest.$ac_ext
3024 CC=$ac_save_CC
3025
3026 fi
3027 # AC_CACHE_VAL
3028 case "x$ac_cv_prog_cc_c89" in
3029   x)
3030     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3031 $as_echo "none needed" >&6; } ;;
3032   xno)
3033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3034 $as_echo "unsupported" >&6; } ;;
3035   *)
3036     CC="$CC $ac_cv_prog_cc_c89"
3037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3038 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3039 esac
3040 if test "x$ac_cv_prog_cc_c89" != xno; then :
3041
3042 fi
3043
3044 ac_ext=c
3045 ac_cpp='$CPP $CPPFLAGS'
3046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3049
3050 ac_ext=c
3051 ac_cpp='$CPP $CPPFLAGS'
3052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3056 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3057 if ${am_cv_prog_cc_c_o+:} false; then :
3058   $as_echo_n "(cached) " >&6
3059 else
3060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h.  */
3062
3063 int
3064 main ()
3065 {
3066
3067   ;
3068   return 0;
3069 }
3070 _ACEOF
3071   # Make sure it works both with $CC and with simple cc.
3072   # Following AC_PROG_CC_C_O, we do the test twice because some
3073   # compilers refuse to overwrite an existing .o file with -o,
3074   # though they will create one.
3075   am_cv_prog_cc_c_o=yes
3076   for am_i in 1 2; do
3077     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3078    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3079    ac_status=$?
3080    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081    (exit $ac_status); } \
3082          && test -f conftest2.$ac_objext; then
3083       : OK
3084     else
3085       am_cv_prog_cc_c_o=no
3086       break
3087     fi
3088   done
3089   rm -f core conftest*
3090   unset am_i
3091 fi
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3093 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3094 if test "$am_cv_prog_cc_c_o" != yes; then
3095    # Losing compiler, so override with the script.
3096    # FIXME: It is wrong to rewrite CC.
3097    # But if we don't then we get into trouble of one sort or another.
3098    # A longer-term fix would be to have automake use am__CC in this case,
3099    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3100    CC="$am_aux_dir/compile $CC"
3101 fi
3102 ac_ext=c
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107
3108
3109
3110 ac_ext=c
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3116 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3117 # On Suns, sometimes $CPP names a directory.
3118 if test -n "$CPP" && test -d "$CPP"; then
3119   CPP=
3120 fi
3121 if test -z "$CPP"; then
3122   if ${ac_cv_prog_CPP+:} false; then :
3123   $as_echo_n "(cached) " >&6
3124 else
3125       # Double quotes because CPP needs to be expanded
3126     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3127     do
3128       ac_preproc_ok=false
3129 for ac_c_preproc_warn_flag in '' yes
3130 do
3131   # Use a header file that comes with gcc, so configuring glibc
3132   # with a fresh cross-compiler works.
3133   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3134   # <limits.h> exists even on freestanding compilers.
3135   # On the NeXT, cc -E runs the code through the compiler's parser,
3136   # not just through cpp. "Syntax error" is here to catch this case.
3137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138 /* end confdefs.h.  */
3139 #ifdef __STDC__
3140 # include <limits.h>
3141 #else
3142 # include <assert.h>
3143 #endif
3144                      Syntax error
3145 _ACEOF
3146 if ac_fn_c_try_cpp "$LINENO"; then :
3147
3148 else
3149   # Broken: fails on valid input.
3150 continue
3151 fi
3152 rm -f conftest.err conftest.i conftest.$ac_ext
3153
3154   # OK, works on sane cases.  Now check whether nonexistent headers
3155   # can be detected and how.
3156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h.  */
3158 #include <ac_nonexistent.h>
3159 _ACEOF
3160 if ac_fn_c_try_cpp "$LINENO"; then :
3161   # Broken: success on invalid input.
3162 continue
3163 else
3164   # Passes both tests.
3165 ac_preproc_ok=:
3166 break
3167 fi
3168 rm -f conftest.err conftest.i conftest.$ac_ext
3169
3170 done
3171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3172 rm -f conftest.i conftest.err conftest.$ac_ext
3173 if $ac_preproc_ok; then :
3174   break
3175 fi
3176
3177     done
3178     ac_cv_prog_CPP=$CPP
3179
3180 fi
3181   CPP=$ac_cv_prog_CPP
3182 else
3183   ac_cv_prog_CPP=$CPP
3184 fi
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3186 $as_echo "$CPP" >&6; }
3187 ac_preproc_ok=false
3188 for ac_c_preproc_warn_flag in '' yes
3189 do
3190   # Use a header file that comes with gcc, so configuring glibc
3191   # with a fresh cross-compiler works.
3192   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3193   # <limits.h> exists even on freestanding compilers.
3194   # On the NeXT, cc -E runs the code through the compiler's parser,
3195   # not just through cpp. "Syntax error" is here to catch this case.
3196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h.  */
3198 #ifdef __STDC__
3199 # include <limits.h>
3200 #else
3201 # include <assert.h>
3202 #endif
3203                      Syntax error
3204 _ACEOF
3205 if ac_fn_c_try_cpp "$LINENO"; then :
3206
3207 else
3208   # Broken: fails on valid input.
3209 continue
3210 fi
3211 rm -f conftest.err conftest.i conftest.$ac_ext
3212
3213   # OK, works on sane cases.  Now check whether nonexistent headers
3214   # can be detected and how.
3215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h.  */
3217 #include <ac_nonexistent.h>
3218 _ACEOF
3219 if ac_fn_c_try_cpp "$LINENO"; then :
3220   # Broken: success on invalid input.
3221 continue
3222 else
3223   # Passes both tests.
3224 ac_preproc_ok=:
3225 break
3226 fi
3227 rm -f conftest.err conftest.i conftest.$ac_ext
3228
3229 done
3230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3231 rm -f conftest.i conftest.err conftest.$ac_ext
3232 if $ac_preproc_ok; then :
3233
3234 else
3235   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3238 See \`config.log' for more details" "$LINENO" 5; }
3239 fi
3240
3241 ac_ext=c
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246
3247
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3249 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3250 if ${ac_cv_path_GREP+:} false; then :
3251   $as_echo_n "(cached) " >&6
3252 else
3253   if test -z "$GREP"; then
3254   ac_path_GREP_found=false
3255   # Loop through the user's path and test for each of PROGNAME-LIST
3256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3258 do
3259   IFS=$as_save_IFS
3260   test -z "$as_dir" && as_dir=.
3261     for ac_prog in grep ggrep; do
3262     for ac_exec_ext in '' $ac_executable_extensions; do
3263       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3264       as_fn_executable_p "$ac_path_GREP" || continue
3265 # Check for GNU ac_path_GREP and select it if it is found.
3266   # Check for GNU $ac_path_GREP
3267 case `"$ac_path_GREP" --version 2>&1` in
3268 *GNU*)
3269   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3270 *)
3271   ac_count=0
3272   $as_echo_n 0123456789 >"conftest.in"
3273   while :
3274   do
3275     cat "conftest.in" "conftest.in" >"conftest.tmp"
3276     mv "conftest.tmp" "conftest.in"
3277     cp "conftest.in" "conftest.nl"
3278     $as_echo 'GREP' >> "conftest.nl"
3279     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3280     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3281     as_fn_arith $ac_count + 1 && ac_count=$as_val
3282     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3283       # Best one so far, save it but keep looking for a better one
3284       ac_cv_path_GREP="$ac_path_GREP"
3285       ac_path_GREP_max=$ac_count
3286     fi
3287     # 10*(2^10) chars as input seems more than enough
3288     test $ac_count -gt 10 && break
3289   done
3290   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3291 esac
3292
3293       $ac_path_GREP_found && break 3
3294     done
3295   done
3296   done
3297 IFS=$as_save_IFS
3298   if test -z "$ac_cv_path_GREP"; then
3299     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3300   fi
3301 else
3302   ac_cv_path_GREP=$GREP
3303 fi
3304
3305 fi
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3307 $as_echo "$ac_cv_path_GREP" >&6; }
3308  GREP="$ac_cv_path_GREP"
3309
3310
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3312 $as_echo_n "checking for egrep... " >&6; }
3313 if ${ac_cv_path_EGREP+:} false; then :
3314   $as_echo_n "(cached) " >&6
3315 else
3316   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3317    then ac_cv_path_EGREP="$GREP -E"
3318    else
3319      if test -z "$EGREP"; then
3320   ac_path_EGREP_found=false
3321   # Loop through the user's path and test for each of PROGNAME-LIST
3322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3324 do
3325   IFS=$as_save_IFS
3326   test -z "$as_dir" && as_dir=.
3327     for ac_prog in egrep; do
3328     for ac_exec_ext in '' $ac_executable_extensions; do
3329       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3330       as_fn_executable_p "$ac_path_EGREP" || continue
3331 # Check for GNU ac_path_EGREP and select it if it is found.
3332   # Check for GNU $ac_path_EGREP
3333 case `"$ac_path_EGREP" --version 2>&1` in
3334 *GNU*)
3335   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3336 *)
3337   ac_count=0
3338   $as_echo_n 0123456789 >"conftest.in"
3339   while :
3340   do
3341     cat "conftest.in" "conftest.in" >"conftest.tmp"
3342     mv "conftest.tmp" "conftest.in"
3343     cp "conftest.in" "conftest.nl"
3344     $as_echo 'EGREP' >> "conftest.nl"
3345     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3346     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3347     as_fn_arith $ac_count + 1 && ac_count=$as_val
3348     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3349       # Best one so far, save it but keep looking for a better one
3350       ac_cv_path_EGREP="$ac_path_EGREP"
3351       ac_path_EGREP_max=$ac_count
3352     fi
3353     # 10*(2^10) chars as input seems more than enough
3354     test $ac_count -gt 10 && break
3355   done
3356   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3357 esac
3358
3359       $ac_path_EGREP_found && break 3
3360     done
3361   done
3362   done
3363 IFS=$as_save_IFS
3364   if test -z "$ac_cv_path_EGREP"; then
3365     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3366   fi
3367 else
3368   ac_cv_path_EGREP=$EGREP
3369 fi
3370
3371    fi
3372 fi
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3374 $as_echo "$ac_cv_path_EGREP" >&6; }
3375  EGREP="$ac_cv_path_EGREP"
3376
3377
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3379 $as_echo_n "checking for ANSI C header files... " >&6; }
3380 if ${ac_cv_header_stdc+:} false; then :
3381   $as_echo_n "(cached) " >&6
3382 else
3383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h.  */
3385 #include <stdlib.h>
3386 #include <stdarg.h>
3387 #include <string.h>
3388 #include <float.h>
3389
3390 int
3391 main ()
3392 {
3393
3394   ;
3395   return 0;
3396 }
3397 _ACEOF
3398 if ac_fn_c_try_compile "$LINENO"; then :
3399   ac_cv_header_stdc=yes
3400 else
3401   ac_cv_header_stdc=no
3402 fi
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404
3405 if test $ac_cv_header_stdc = yes; then
3406   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h.  */
3409 #include <string.h>
3410
3411 _ACEOF
3412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3413   $EGREP "memchr" >/dev/null 2>&1; then :
3414
3415 else
3416   ac_cv_header_stdc=no
3417 fi
3418 rm -f conftest*
3419
3420 fi
3421
3422 if test $ac_cv_header_stdc = yes; then
3423   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h.  */
3426 #include <stdlib.h>
3427
3428 _ACEOF
3429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3430   $EGREP "free" >/dev/null 2>&1; then :
3431
3432 else
3433   ac_cv_header_stdc=no
3434 fi
3435 rm -f conftest*
3436
3437 fi
3438
3439 if test $ac_cv_header_stdc = yes; then
3440   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3441   if test "$cross_compiling" = yes; then :
3442   :
3443 else
3444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h.  */
3446 #include <ctype.h>
3447 #include <stdlib.h>
3448 #if ((' ' & 0x0FF) == 0x020)
3449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3451 #else
3452 # define ISLOWER(c) \
3453                    (('a' <= (c) && (c) <= 'i') \
3454                      || ('j' <= (c) && (c) <= 'r') \
3455                      || ('s' <= (c) && (c) <= 'z'))
3456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3457 #endif
3458
3459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3460 int
3461 main ()
3462 {
3463   int i;
3464   for (i = 0; i < 256; i++)
3465     if (XOR (islower (i), ISLOWER (i))
3466         || toupper (i) != TOUPPER (i))
3467       return 2;
3468   return 0;
3469 }
3470 _ACEOF
3471 if ac_fn_c_try_run "$LINENO"; then :
3472
3473 else
3474   ac_cv_header_stdc=no
3475 fi
3476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3477   conftest.$ac_objext conftest.beam conftest.$ac_ext
3478 fi
3479
3480 fi
3481 fi
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3483 $as_echo "$ac_cv_header_stdc" >&6; }
3484 if test $ac_cv_header_stdc = yes; then
3485
3486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3487
3488 fi
3489
3490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3491 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3492                   inttypes.h stdint.h unistd.h
3493 do :
3494   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3495 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3496 "
3497 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3498   cat >>confdefs.h <<_ACEOF
3499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3500 _ACEOF
3501
3502 fi
3503
3504 done
3505
3506
3507
3508   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3509 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3510   MINIX=yes
3511 else
3512   MINIX=
3513 fi
3514
3515
3516   if test "$MINIX" = yes; then
3517
3518 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3519
3520
3521 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3522
3523
3524 $as_echo "#define _MINIX 1" >>confdefs.h
3525
3526   fi
3527
3528
3529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3530 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3531 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3532   $as_echo_n "(cached) " >&6
3533 else
3534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h.  */
3536
3537 #         define __EXTENSIONS__ 1
3538           $ac_includes_default
3539 int
3540 main ()
3541 {
3542
3543   ;
3544   return 0;
3545 }
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548   ac_cv_safe_to_define___extensions__=yes
3549 else
3550   ac_cv_safe_to_define___extensions__=no
3551 fi
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 fi
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3555 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3556   test $ac_cv_safe_to_define___extensions__ = yes &&
3557     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3558
3559   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3560
3561   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3562
3563   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3564
3565   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3566
3567
3568 am__api_version='1.14'
3569
3570 # Find a good install program.  We prefer a C program (faster),
3571 # so one script is as good as another.  But avoid the broken or
3572 # incompatible versions:
3573 # SysV /etc/install, /usr/sbin/install
3574 # SunOS /usr/etc/install
3575 # IRIX /sbin/install
3576 # AIX /bin/install
3577 # AmigaOS /C/install, which installs bootblocks on floppy discs
3578 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3579 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3580 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3581 # OS/2's system install, which has a completely different semantic
3582 # ./install, which can be erroneously created by make from ./install.sh.
3583 # Reject install programs that cannot install multiple files.
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3585 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3586 if test -z "$INSTALL"; then
3587 if ${ac_cv_path_install+:} false; then :
3588   $as_echo_n "(cached) " >&6
3589 else
3590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595     # Account for people who put trailing slashes in PATH elements.
3596 case $as_dir/ in #((
3597   ./ | .// | /[cC]/* | \
3598   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3599   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3600   /usr/ucb/* ) ;;
3601   *)
3602     # OSF1 and SCO ODT 3.0 have their own names for install.
3603     # Don't use installbsd from OSF since it installs stuff as root
3604     # by default.
3605     for ac_prog in ginstall scoinst install; do
3606       for ac_exec_ext in '' $ac_executable_extensions; do
3607         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3608           if test $ac_prog = install &&
3609             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3610             # AIX install.  It has an incompatible calling convention.
3611             :
3612           elif test $ac_prog = install &&
3613             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3614             # program-specific install script used by HP pwplus--don't use.
3615             :
3616           else
3617             rm -rf conftest.one conftest.two conftest.dir
3618             echo one > conftest.one
3619             echo two > conftest.two
3620             mkdir conftest.dir
3621             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3622               test -s conftest.one && test -s conftest.two &&
3623               test -s conftest.dir/conftest.one &&
3624               test -s conftest.dir/conftest.two
3625             then
3626               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3627               break 3
3628             fi
3629           fi
3630         fi
3631       done
3632     done
3633     ;;
3634 esac
3635
3636   done
3637 IFS=$as_save_IFS
3638
3639 rm -rf conftest.one conftest.two conftest.dir
3640
3641 fi
3642   if test "${ac_cv_path_install+set}" = set; then
3643     INSTALL=$ac_cv_path_install
3644   else
3645     # As a last resort, use the slow shell script.  Don't cache a
3646     # value for INSTALL within a source directory, because that will
3647     # break other packages using the cache if that directory is
3648     # removed, or if the value is a relative name.
3649     INSTALL=$ac_install_sh
3650   fi
3651 fi
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3653 $as_echo "$INSTALL" >&6; }
3654
3655 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3656 # It thinks the first close brace ends the variable substitution.
3657 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3658
3659 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3660
3661 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3662
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3664 $as_echo_n "checking whether build environment is sane... " >&6; }
3665 # Reject unsafe characters in $srcdir or the absolute working directory
3666 # name.  Accept space and tab only in the latter.
3667 am_lf='
3668 '
3669 case `pwd` in
3670   *[\\\"\#\$\&\'\`$am_lf]*)
3671     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3672 esac
3673 case $srcdir in
3674   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3675     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3676 esac
3677
3678 # Do 'set' in a subshell so we don't clobber the current shell's
3679 # arguments.  Must try -L first in case configure is actually a
3680 # symlink; some systems play weird games with the mod time of symlinks
3681 # (eg FreeBSD returns the mod time of the symlink's containing
3682 # directory).
3683 if (
3684    am_has_slept=no
3685    for am_try in 1 2; do
3686      echo "timestamp, slept: $am_has_slept" > conftest.file
3687      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3688      if test "$*" = "X"; then
3689         # -L didn't work.
3690         set X `ls -t "$srcdir/configure" conftest.file`
3691      fi
3692      if test "$*" != "X $srcdir/configure conftest.file" \
3693         && test "$*" != "X conftest.file $srcdir/configure"; then
3694
3695         # If neither matched, then we have a broken ls.  This can happen
3696         # if, for instance, CONFIG_SHELL is bash and it inherits a
3697         # broken ls alias from the environment.  This has actually
3698         # happened.  Such a system could not be considered "sane".
3699         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3700   alias in your environment" "$LINENO" 5
3701      fi
3702      if test "$2" = conftest.file || test $am_try -eq 2; then
3703        break
3704      fi
3705      # Just in case.
3706      sleep 1
3707      am_has_slept=yes
3708    done
3709    test "$2" = conftest.file
3710    )
3711 then
3712    # Ok.
3713    :
3714 else
3715    as_fn_error $? "newly created file is older than distributed files!
3716 Check your system clock" "$LINENO" 5
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3719 $as_echo "yes" >&6; }
3720 # If we didn't sleep, we still need to ensure time stamps of config.status and
3721 # generated files are strictly newer.
3722 am_sleep_pid=
3723 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3724   ( sleep 1 ) &
3725   am_sleep_pid=$!
3726 fi
3727
3728 rm -f conftest.file
3729
3730 test "$program_prefix" != NONE &&
3731   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3732 # Use a double $ so make ignores it.
3733 test "$program_suffix" != NONE &&
3734   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3735 # Double any \ or $.
3736 # By default was `s,x,x', remove it if useless.
3737 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3738 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3739
3740 if test x"${MISSING+set}" != xset; then
3741   case $am_aux_dir in
3742   *\ * | *\     *)
3743     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3744   *)
3745     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3746   esac
3747 fi
3748 # Use eval to expand $SHELL
3749 if eval "$MISSING --is-lightweight"; then
3750   am_missing_run="$MISSING "
3751 else
3752   am_missing_run=
3753   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3754 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3755 fi
3756
3757 if test x"${install_sh}" != xset; then
3758   case $am_aux_dir in
3759   *\ * | *\     *)
3760     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3761   *)
3762     install_sh="\${SHELL} $am_aux_dir/install-sh"
3763   esac
3764 fi
3765
3766 # Installed binaries are usually stripped using 'strip' when the user
3767 # run "make install-strip".  However 'strip' might not be the right
3768 # tool to use in cross-compilation environments, therefore Automake
3769 # will honor the 'STRIP' environment variable to overrule this program.
3770 if test "$cross_compiling" != no; then
3771   if test -n "$ac_tool_prefix"; then
3772   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3773 set dummy ${ac_tool_prefix}strip; ac_word=$2
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 $as_echo_n "checking for $ac_word... " >&6; }
3776 if ${ac_cv_prog_STRIP+:} false; then :
3777   $as_echo_n "(cached) " >&6
3778 else
3779   if test -n "$STRIP"; then
3780   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3781 else
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH
3784 do
3785   IFS=$as_save_IFS
3786   test -z "$as_dir" && as_dir=.
3787     for ac_exec_ext in '' $ac_executable_extensions; do
3788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3789     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3791     break 2
3792   fi
3793 done
3794   done
3795 IFS=$as_save_IFS
3796
3797 fi
3798 fi
3799 STRIP=$ac_cv_prog_STRIP
3800 if test -n "$STRIP"; then
3801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3802 $as_echo "$STRIP" >&6; }
3803 else
3804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 $as_echo "no" >&6; }
3806 fi
3807
3808
3809 fi
3810 if test -z "$ac_cv_prog_STRIP"; then
3811   ac_ct_STRIP=$STRIP
3812   # Extract the first word of "strip", so it can be a program name with args.
3813 set dummy strip; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3817   $as_echo_n "(cached) " >&6
3818 else
3819   if test -n "$ac_ct_STRIP"; then
3820   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825   IFS=$as_save_IFS
3826   test -z "$as_dir" && as_dir=.
3827     for ac_exec_ext in '' $ac_executable_extensions; do
3828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829     ac_cv_prog_ac_ct_STRIP="strip"
3830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831     break 2
3832   fi
3833 done
3834   done
3835 IFS=$as_save_IFS
3836
3837 fi
3838 fi
3839 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3840 if test -n "$ac_ct_STRIP"; then
3841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3842 $as_echo "$ac_ct_STRIP" >&6; }
3843 else
3844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3846 fi
3847
3848   if test "x$ac_ct_STRIP" = x; then
3849     STRIP=":"
3850   else
3851     case $cross_compiling:$ac_tool_warned in
3852 yes:)
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855 ac_tool_warned=yes ;;
3856 esac
3857     STRIP=$ac_ct_STRIP
3858   fi
3859 else
3860   STRIP="$ac_cv_prog_STRIP"
3861 fi
3862
3863 fi
3864 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3865
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3867 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3868 if test -z "$MKDIR_P"; then
3869   if ${ac_cv_path_mkdir+:} false; then :
3870   $as_echo_n "(cached) " >&6
3871 else
3872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3874 do
3875   IFS=$as_save_IFS
3876   test -z "$as_dir" && as_dir=.
3877     for ac_prog in mkdir gmkdir; do
3878          for ac_exec_ext in '' $ac_executable_extensions; do
3879            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3880            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3881              'mkdir (GNU coreutils) '* | \
3882              'mkdir (coreutils) '* | \
3883              'mkdir (fileutils) '4.1*)
3884                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3885                break 3;;
3886            esac
3887          done
3888        done
3889   done
3890 IFS=$as_save_IFS
3891
3892 fi
3893
3894   test -d ./--version && rmdir ./--version
3895   if test "${ac_cv_path_mkdir+set}" = set; then
3896     MKDIR_P="$ac_cv_path_mkdir -p"
3897   else
3898     # As a last resort, use the slow shell script.  Don't cache a
3899     # value for MKDIR_P within a source directory, because that will
3900     # break other packages using the cache if that directory is
3901     # removed, or if the value is a relative name.
3902     MKDIR_P="$ac_install_sh -d"
3903   fi
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3906 $as_echo "$MKDIR_P" >&6; }
3907
3908 for ac_prog in gawk mawk nawk awk
3909 do
3910   # Extract the first word of "$ac_prog", so it can be a program name with args.
3911 set dummy $ac_prog; ac_word=$2
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 $as_echo_n "checking for $ac_word... " >&6; }
3914 if ${ac_cv_prog_AWK+:} false; then :
3915   $as_echo_n "(cached) " >&6
3916 else
3917   if test -n "$AWK"; then
3918   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923   IFS=$as_save_IFS
3924   test -z "$as_dir" && as_dir=.
3925     for ac_exec_ext in '' $ac_executable_extensions; do
3926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927     ac_cv_prog_AWK="$ac_prog"
3928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929     break 2
3930   fi
3931 done
3932   done
3933 IFS=$as_save_IFS
3934
3935 fi
3936 fi
3937 AWK=$ac_cv_prog_AWK
3938 if test -n "$AWK"; then
3939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3940 $as_echo "$AWK" >&6; }
3941 else
3942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3944 fi
3945
3946
3947   test -n "$AWK" && break
3948 done
3949
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3951 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3952 set x ${MAKE-make}
3953 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3954 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3955   $as_echo_n "(cached) " >&6
3956 else
3957   cat >conftest.make <<\_ACEOF
3958 SHELL = /bin/sh
3959 all:
3960         @echo '@@@%%%=$(MAKE)=@@@%%%'
3961 _ACEOF
3962 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3963 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3964   *@@@%%%=?*=@@@%%%*)
3965     eval ac_cv_prog_make_${ac_make}_set=yes;;
3966   *)
3967     eval ac_cv_prog_make_${ac_make}_set=no;;
3968 esac
3969 rm -f conftest.make
3970 fi
3971 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3973 $as_echo "yes" >&6; }
3974   SET_MAKE=
3975 else
3976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978   SET_MAKE="MAKE=${MAKE-make}"
3979 fi
3980
3981 rm -rf .tst 2>/dev/null
3982 mkdir .tst 2>/dev/null
3983 if test -d .tst; then
3984   am__leading_dot=.
3985 else
3986   am__leading_dot=_
3987 fi
3988 rmdir .tst 2>/dev/null
3989
3990 DEPDIR="${am__leading_dot}deps"
3991
3992 ac_config_commands="$ac_config_commands depfiles"
3993
3994
3995 am_make=${MAKE-make}
3996 cat > confinc << 'END'
3997 am__doit:
3998         @echo this is the am__doit target
3999 .PHONY: am__doit
4000 END
4001 # If we don't find an include directive, just comment out the code.
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4003 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4004 am__include="#"
4005 am__quote=
4006 _am_result=none
4007 # First try GNU make style include.
4008 echo "include confinc" > confmf
4009 # Ignore all kinds of additional output from 'make'.
4010 case `$am_make -s -f confmf 2> /dev/null` in #(
4011 *the\ am__doit\ target*)
4012   am__include=include
4013   am__quote=
4014   _am_result=GNU
4015   ;;
4016 esac
4017 # Now try BSD make style include.
4018 if test "$am__include" = "#"; then
4019    echo '.include "confinc"' > confmf
4020    case `$am_make -s -f confmf 2> /dev/null` in #(
4021    *the\ am__doit\ target*)
4022      am__include=.include
4023      am__quote="\""
4024      _am_result=BSD
4025      ;;
4026    esac
4027 fi
4028
4029
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4031 $as_echo "$_am_result" >&6; }
4032 rm -f confinc confmf
4033
4034 # Check whether --enable-dependency-tracking was given.
4035 if test "${enable_dependency_tracking+set}" = set; then :
4036   enableval=$enable_dependency_tracking;
4037 fi
4038
4039 if test "x$enable_dependency_tracking" != xno; then
4040   am_depcomp="$ac_aux_dir/depcomp"
4041   AMDEPBACKSLASH='\'
4042   am__nodep='_no'
4043 fi
4044  if test "x$enable_dependency_tracking" != xno; then
4045   AMDEP_TRUE=
4046   AMDEP_FALSE='#'
4047 else
4048   AMDEP_TRUE='#'
4049   AMDEP_FALSE=
4050 fi
4051
4052
4053 # Check whether --enable-silent-rules was given.
4054 if test "${enable_silent_rules+set}" = set; then :
4055   enableval=$enable_silent_rules;
4056 fi
4057
4058 case $enable_silent_rules in # (((
4059   yes) AM_DEFAULT_VERBOSITY=0;;
4060    no) AM_DEFAULT_VERBOSITY=1;;
4061     *) AM_DEFAULT_VERBOSITY=1;;
4062 esac
4063 am_make=${MAKE-make}
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4065 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4066 if ${am_cv_make_support_nested_variables+:} false; then :
4067   $as_echo_n "(cached) " >&6
4068 else
4069   if $as_echo 'TRUE=$(BAR$(V))
4070 BAR0=false
4071 BAR1=true
4072 V=1
4073 am__doit:
4074         @$(TRUE)
4075 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4076   am_cv_make_support_nested_variables=yes
4077 else
4078   am_cv_make_support_nested_variables=no
4079 fi
4080 fi
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4082 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4083 if test $am_cv_make_support_nested_variables = yes; then
4084     AM_V='$(V)'
4085   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4086 else
4087   AM_V=$AM_DEFAULT_VERBOSITY
4088   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4089 fi
4090 AM_BACKSLASH='\'
4091
4092 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4093   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4094   # is not polluted with repeated "-I."
4095   am__isrc=' -I$(srcdir)'
4096   # test to see if srcdir already configured
4097   if test -f $srcdir/config.status; then
4098     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4099   fi
4100 fi
4101
4102 # test whether we have cygpath
4103 if test -z "$CYGPATH_W"; then
4104   if (cygpath --version) >/dev/null 2>/dev/null; then
4105     CYGPATH_W='cygpath -w'
4106   else
4107     CYGPATH_W=echo
4108   fi
4109 fi
4110
4111
4112 # Define the identity of the package.
4113  PACKAGE='trust_router'
4114  VERSION='1.4.1'
4115
4116
4117 cat >>confdefs.h <<_ACEOF
4118 #define PACKAGE "$PACKAGE"
4119 _ACEOF
4120
4121
4122 cat >>confdefs.h <<_ACEOF
4123 #define VERSION "$VERSION"
4124 _ACEOF
4125
4126 # Some tools Automake needs.
4127
4128 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4129
4130
4131 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4132
4133
4134 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4135
4136
4137 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4138
4139
4140 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4141
4142 # For better backward compatibility.  To be removed once Automake 1.9.x
4143 # dies out for good.  For more background, see:
4144 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4145 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4146 mkdir_p='$(MKDIR_P)'
4147
4148 # We need awk for the "check" target.  The system "awk" is bad on
4149 # some platforms.
4150 # Always define AMTAR for backward compatibility.  Yes, it's still used
4151 # in the wild :-(  We should find a proper way to deprecate it ...
4152 AMTAR='$${TAR-tar}'
4153
4154
4155 # We'll loop over all known methods to create a tar archive until one works.
4156 _am_tools='gnutar  pax cpio none'
4157
4158 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4159
4160
4161
4162
4163
4164 depcc="$CC"   am_compiler_list=
4165
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4167 $as_echo_n "checking dependency style of $depcc... " >&6; }
4168 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4169   $as_echo_n "(cached) " >&6
4170 else
4171   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4172   # We make a subdir and do the tests there.  Otherwise we can end up
4173   # making bogus files that we don't know about and never remove.  For
4174   # instance it was reported that on HP-UX the gcc test will end up
4175   # making a dummy file named 'D' -- because '-MD' means "put the output
4176   # in D".
4177   rm -rf conftest.dir
4178   mkdir conftest.dir
4179   # Copy depcomp to subdir because otherwise we won't find it if we're
4180   # using a relative directory.
4181   cp "$am_depcomp" conftest.dir
4182   cd conftest.dir
4183   # We will build objects and dependencies in a subdirectory because
4184   # it helps to detect inapplicable dependency modes.  For instance
4185   # both Tru64's cc and ICC support -MD to output dependencies as a
4186   # side effect of compilation, but ICC will put the dependencies in
4187   # the current directory while Tru64 will put them in the object
4188   # directory.
4189   mkdir sub
4190
4191   am_cv_CC_dependencies_compiler_type=none
4192   if test "$am_compiler_list" = ""; then
4193      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4194   fi
4195   am__universal=false
4196   case " $depcc " in #(
4197      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4198      esac
4199
4200   for depmode in $am_compiler_list; do
4201     # Setup a source with many dependencies, because some compilers
4202     # like to wrap large dependency lists on column 80 (with \), and
4203     # we should not choose a depcomp mode which is confused by this.
4204     #
4205     # We need to recreate these files for each test, as the compiler may
4206     # overwrite some of them when testing with obscure command lines.
4207     # This happens at least with the AIX C compiler.
4208     : > sub/conftest.c
4209     for i in 1 2 3 4 5 6; do
4210       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4211       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4212       # Solaris 10 /bin/sh.
4213       echo '/* dummy */' > sub/conftst$i.h
4214     done
4215     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4216
4217     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4218     # mode.  It turns out that the SunPro C++ compiler does not properly
4219     # handle '-M -o', and we need to detect this.  Also, some Intel
4220     # versions had trouble with output in subdirs.
4221     am__obj=sub/conftest.${OBJEXT-o}
4222     am__minus_obj="-o $am__obj"
4223     case $depmode in
4224     gcc)
4225       # This depmode causes a compiler race in universal mode.
4226       test "$am__universal" = false || continue
4227       ;;
4228     nosideeffect)
4229       # After this tag, mechanisms are not by side-effect, so they'll
4230       # only be used when explicitly requested.
4231       if test "x$enable_dependency_tracking" = xyes; then
4232         continue
4233       else
4234         break
4235       fi
4236       ;;
4237     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4238       # This compiler won't grok '-c -o', but also, the minuso test has
4239       # not run yet.  These depmodes are late enough in the game, and
4240       # so weak that their functioning should not be impacted.
4241       am__obj=conftest.${OBJEXT-o}
4242       am__minus_obj=
4243       ;;
4244     none) break ;;
4245     esac
4246     if depmode=$depmode \
4247        source=sub/conftest.c object=$am__obj \
4248        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4249        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4250          >/dev/null 2>conftest.err &&
4251        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4252        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4253        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4254        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4255       # icc doesn't choke on unknown options, it will just issue warnings
4256       # or remarks (even with -Werror).  So we grep stderr for any message
4257       # that says an option was ignored or not supported.
4258       # When given -MP, icc 7.0 and 7.1 complain thusly:
4259       #   icc: Command line warning: ignoring option '-M'; no argument required
4260       # The diagnosis changed in icc 8.0:
4261       #   icc: Command line remark: option '-MP' not supported
4262       if (grep 'ignoring option' conftest.err ||
4263           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4264         am_cv_CC_dependencies_compiler_type=$depmode
4265         break
4266       fi
4267     fi
4268   done
4269
4270   cd ..
4271   rm -rf conftest.dir
4272 else
4273   am_cv_CC_dependencies_compiler_type=none
4274 fi
4275
4276 fi
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4278 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4279 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4280
4281  if
4282   test "x$enable_dependency_tracking" != xno \
4283   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4284   am__fastdepCC_TRUE=
4285   am__fastdepCC_FALSE='#'
4286 else
4287   am__fastdepCC_TRUE='#'
4288   am__fastdepCC_FALSE=
4289 fi
4290
4291
4292
4293 # POSIX will say in a future version that running "rm -f" with no argument
4294 # is OK; and we want to be able to make that assumption in our Makefile
4295 # recipes.  So use an aggressive probe to check that the usage we want is
4296 # actually supported "in the wild" to an acceptable degree.
4297 # See automake bug#10828.
4298 # To make any issue more visible, cause the running configure to be aborted
4299 # by default if the 'rm' program in use doesn't match our expectations; the
4300 # user can still override this though.
4301 if rm -f && rm -fr && rm -rf; then : OK; else
4302   cat >&2 <<'END'
4303 Oops!
4304
4305 Your 'rm' program seems unable to run without file operands specified
4306 on the command line, even when the '-f' option is present.  This is contrary
4307 to the behaviour of most rm programs out there, and not conforming with
4308 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4309
4310 Please tell bug-automake@gnu.org about your system, including the value
4311 of your $PATH and any error possibly output before this message.  This
4312 can help us improve future automake versions.
4313
4314 END
4315   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4316     echo 'Configuration will proceed anyway, since you have set the' >&2
4317     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4318     echo >&2
4319   else
4320     cat >&2 <<'END'
4321 Aborting the configuration process, to ensure you take notice of the issue.
4322
4323 You can download and install GNU coreutils to get an 'rm' implementation
4324 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4325
4326 If you want to complete the configuration process using your problematic
4327 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4328 to "yes", and re-run configure.
4329
4330 END
4331     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4332   fi
4333 fi
4334
4335 # Check whether --enable-silent-rules was given.
4336 if test "${enable_silent_rules+set}" = set; then :
4337   enableval=$enable_silent_rules;
4338 fi
4339
4340 case $enable_silent_rules in # (((
4341   yes) AM_DEFAULT_VERBOSITY=0;;
4342    no) AM_DEFAULT_VERBOSITY=1;;
4343     *) AM_DEFAULT_VERBOSITY=1;;
4344 esac
4345 am_make=${MAKE-make}
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4347 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4348 if ${am_cv_make_support_nested_variables+:} false; then :
4349   $as_echo_n "(cached) " >&6
4350 else
4351   if $as_echo 'TRUE=$(BAR$(V))
4352 BAR0=false
4353 BAR1=true
4354 V=1
4355 am__doit:
4356         @$(TRUE)
4357 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4358   am_cv_make_support_nested_variables=yes
4359 else
4360   am_cv_make_support_nested_variables=no
4361 fi
4362 fi
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4364 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4365 if test $am_cv_make_support_nested_variables = yes; then
4366     AM_V='$(V)'
4367   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4368 else
4369   AM_V=$AM_DEFAULT_VERBOSITY
4370   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4371 fi
4372 AM_BACKSLASH='\'
4373
4374
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4376 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4377     # Check whether --enable-maintainer-mode was given.
4378 if test "${enable_maintainer_mode+set}" = set; then :
4379   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4380 else
4381   USE_MAINTAINER_MODE=no
4382 fi
4383
4384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4385 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4386    if test $USE_MAINTAINER_MODE = yes; then
4387   MAINTAINER_MODE_TRUE=
4388   MAINTAINER_MODE_FALSE='#'
4389 else
4390   MAINTAINER_MODE_TRUE='#'
4391   MAINTAINER_MODE_FALSE=
4392 fi
4393
4394   MAINT=$MAINTAINER_MODE_TRUE
4395
4396
4397 case `pwd` in
4398   *\ * | *\     *)
4399     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4400 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4401 esac
4402
4403
4404
4405 macro_version='2.4.2'
4406 macro_revision='1.3337'
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420 ltmain="$ac_aux_dir/ltmain.sh"
4421
4422 # Make sure we can run config.sub.
4423 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4424   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4425
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4427 $as_echo_n "checking build system type... " >&6; }
4428 if ${ac_cv_build+:} false; then :
4429   $as_echo_n "(cached) " >&6
4430 else
4431   ac_build_alias=$build_alias
4432 test "x$ac_build_alias" = x &&
4433   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4434 test "x$ac_build_alias" = x &&
4435   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4436 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4437   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4438
4439 fi
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4441 $as_echo "$ac_cv_build" >&6; }
4442 case $ac_cv_build in
4443 *-*-*) ;;
4444 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4445 esac
4446 build=$ac_cv_build
4447 ac_save_IFS=$IFS; IFS='-'
4448 set x $ac_cv_build
4449 shift
4450 build_cpu=$1
4451 build_vendor=$2
4452 shift; shift
4453 # Remember, the first character of IFS is used to create $*,
4454 # except with old shells:
4455 build_os=$*
4456 IFS=$ac_save_IFS
4457 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4458
4459
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4461 $as_echo_n "checking host system type... " >&6; }
4462 if ${ac_cv_host+:} false; then :
4463   $as_echo_n "(cached) " >&6
4464 else
4465   if test "x$host_alias" = x; then
4466   ac_cv_host=$ac_cv_build
4467 else
4468   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4469     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4470 fi
4471
4472 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4474 $as_echo "$ac_cv_host" >&6; }
4475 case $ac_cv_host in
4476 *-*-*) ;;
4477 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4478 esac
4479 host=$ac_cv_host
4480 ac_save_IFS=$IFS; IFS='-'
4481 set x $ac_cv_host
4482 shift
4483 host_cpu=$1
4484 host_vendor=$2
4485 shift; shift
4486 # Remember, the first character of IFS is used to create $*,
4487 # except with old shells:
4488 host_os=$*
4489 IFS=$ac_save_IFS
4490 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4491
4492
4493 # Backslashify metacharacters that are still active within
4494 # double-quoted strings.
4495 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4496
4497 # Same as above, but do not quote variable references.
4498 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4499
4500 # Sed substitution to delay expansion of an escaped shell variable in a
4501 # double_quote_subst'ed string.
4502 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4503
4504 # Sed substitution to delay expansion of an escaped single quote.
4505 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4506
4507 # Sed substitution to avoid accidental globbing in evaled expressions
4508 no_glob_subst='s/\*/\\\*/g'
4509
4510 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4511 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4512 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4513
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4515 $as_echo_n "checking how to print strings... " >&6; }
4516 # Test print first, because it will be a builtin if present.
4517 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4518    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4519   ECHO='print -r --'
4520 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4521   ECHO='printf %s\n'
4522 else
4523   # Use this function as a fallback that always works.
4524   func_fallback_echo ()
4525   {
4526     eval 'cat <<_LTECHO_EOF
4527 $1
4528 _LTECHO_EOF'
4529   }
4530   ECHO='func_fallback_echo'
4531 fi
4532
4533 # func_echo_all arg...
4534 # Invoke $ECHO with all args, space-separated.
4535 func_echo_all ()
4536 {
4537     $ECHO ""
4538 }
4539
4540 case "$ECHO" in
4541   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4542 $as_echo "printf" >&6; } ;;
4543   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4544 $as_echo "print -r" >&6; } ;;
4545   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4546 $as_echo "cat" >&6; } ;;
4547 esac
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4563 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4564 if ${ac_cv_path_SED+:} false; then :
4565   $as_echo_n "(cached) " >&6
4566 else
4567             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4568      for ac_i in 1 2 3 4 5 6 7; do
4569        ac_script="$ac_script$as_nl$ac_script"
4570      done
4571      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4572      { ac_script=; unset ac_script;}
4573      if test -z "$SED"; then
4574   ac_path_SED_found=false
4575   # Loop through the user's path and test for each of PROGNAME-LIST
4576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4578 do
4579   IFS=$as_save_IFS
4580   test -z "$as_dir" && as_dir=.
4581     for ac_prog in sed gsed; do
4582     for ac_exec_ext in '' $ac_executable_extensions; do
4583       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4584       as_fn_executable_p "$ac_path_SED" || continue
4585 # Check for GNU ac_path_SED and select it if it is found.
4586   # Check for GNU $ac_path_SED
4587 case `"$ac_path_SED" --version 2>&1` in
4588 *GNU*)
4589   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4590 *)
4591   ac_count=0
4592   $as_echo_n 0123456789 >"conftest.in"
4593   while :
4594   do
4595     cat "conftest.in" "conftest.in" >"conftest.tmp"
4596     mv "conftest.tmp" "conftest.in"
4597     cp "conftest.in" "conftest.nl"
4598     $as_echo '' >> "conftest.nl"
4599     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601     as_fn_arith $ac_count + 1 && ac_count=$as_val
4602     if test $ac_count -gt ${ac_path_SED_max-0}; then
4603       # Best one so far, save it but keep looking for a better one
4604       ac_cv_path_SED="$ac_path_SED"
4605       ac_path_SED_max=$ac_count
4606     fi
4607     # 10*(2^10) chars as input seems more than enough
4608     test $ac_count -gt 10 && break
4609   done
4610   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4611 esac
4612
4613       $ac_path_SED_found && break 3
4614     done
4615   done
4616   done
4617 IFS=$as_save_IFS
4618   if test -z "$ac_cv_path_SED"; then
4619     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4620   fi
4621 else
4622   ac_cv_path_SED=$SED
4623 fi
4624
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4627 $as_echo "$ac_cv_path_SED" >&6; }
4628  SED="$ac_cv_path_SED"
4629   rm -f conftest.sed
4630
4631 test -z "$SED" && SED=sed
4632 Xsed="$SED -e 1s/^X//"
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4645 $as_echo_n "checking for fgrep... " >&6; }
4646 if ${ac_cv_path_FGREP+:} false; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4650    then ac_cv_path_FGREP="$GREP -F"
4651    else
4652      if test -z "$FGREP"; then
4653   ac_path_FGREP_found=false
4654   # Loop through the user's path and test for each of PROGNAME-LIST
4655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4657 do
4658   IFS=$as_save_IFS
4659   test -z "$as_dir" && as_dir=.
4660     for ac_prog in fgrep; do
4661     for ac_exec_ext in '' $ac_executable_extensions; do
4662       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4663       as_fn_executable_p "$ac_path_FGREP" || continue
4664 # Check for GNU ac_path_FGREP and select it if it is found.
4665   # Check for GNU $ac_path_FGREP
4666 case `"$ac_path_FGREP" --version 2>&1` in
4667 *GNU*)
4668   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4669 *)
4670   ac_count=0
4671   $as_echo_n 0123456789 >"conftest.in"
4672   while :
4673   do
4674     cat "conftest.in" "conftest.in" >"conftest.tmp"
4675     mv "conftest.tmp" "conftest.in"
4676     cp "conftest.in" "conftest.nl"
4677     $as_echo 'FGREP' >> "conftest.nl"
4678     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4679     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4680     as_fn_arith $ac_count + 1 && ac_count=$as_val
4681     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4682       # Best one so far, save it but keep looking for a better one
4683       ac_cv_path_FGREP="$ac_path_FGREP"
4684       ac_path_FGREP_max=$ac_count
4685     fi
4686     # 10*(2^10) chars as input seems more than enough
4687     test $ac_count -gt 10 && break
4688   done
4689   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4690 esac
4691
4692       $ac_path_FGREP_found && break 3
4693     done
4694   done
4695   done
4696 IFS=$as_save_IFS
4697   if test -z "$ac_cv_path_FGREP"; then
4698     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4699   fi
4700 else
4701   ac_cv_path_FGREP=$FGREP
4702 fi
4703
4704    fi
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4707 $as_echo "$ac_cv_path_FGREP" >&6; }
4708  FGREP="$ac_cv_path_FGREP"
4709
4710
4711 test -z "$GREP" && GREP=grep
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731 # Check whether --with-gnu-ld was given.
4732 if test "${with_gnu_ld+set}" = set; then :
4733   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4734 else
4735   with_gnu_ld=no
4736 fi
4737
4738 ac_prog=ld
4739 if test "$GCC" = yes; then
4740   # Check if gcc -print-prog-name=ld gives a path.
4741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4742 $as_echo_n "checking for ld used by $CC... " >&6; }
4743   case $host in
4744   *-*-mingw*)
4745     # gcc leaves a trailing carriage return which upsets mingw
4746     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4747   *)
4748     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4749   esac
4750   case $ac_prog in
4751     # Accept absolute paths.
4752     [\\/]* | ?:[\\/]*)
4753       re_direlt='/[^/][^/]*/\.\./'
4754       # Canonicalize the pathname of ld
4755       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4756       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4757         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4758       done
4759       test -z "$LD" && LD="$ac_prog"
4760       ;;
4761   "")
4762     # If it fails, then pretend we aren't using GCC.
4763     ac_prog=ld
4764     ;;
4765   *)
4766     # If it is relative, then search for the first ld in PATH.
4767     with_gnu_ld=unknown
4768     ;;
4769   esac
4770 elif test "$with_gnu_ld" = yes; then
4771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4772 $as_echo_n "checking for GNU ld... " >&6; }
4773 else
4774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4775 $as_echo_n "checking for non-GNU ld... " >&6; }
4776 fi
4777 if ${lt_cv_path_LD+:} false; then :
4778   $as_echo_n "(cached) " >&6
4779 else
4780   if test -z "$LD"; then
4781   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4782   for ac_dir in $PATH; do
4783     IFS="$lt_save_ifs"
4784     test -z "$ac_dir" && ac_dir=.
4785     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4786       lt_cv_path_LD="$ac_dir/$ac_prog"
4787       # Check to see if the program is GNU ld.  I'd rather use --version,
4788       # but apparently some variants of GNU ld only accept -v.
4789       # Break only if it was the GNU/non-GNU ld that we prefer.
4790       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4791       *GNU* | *'with BFD'*)
4792         test "$with_gnu_ld" != no && break
4793         ;;
4794       *)
4795         test "$with_gnu_ld" != yes && break
4796         ;;
4797       esac
4798     fi
4799   done
4800   IFS="$lt_save_ifs"
4801 else
4802   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4803 fi
4804 fi
4805
4806 LD="$lt_cv_path_LD"
4807 if test -n "$LD"; then
4808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4809 $as_echo "$LD" >&6; }
4810 else
4811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4813 fi
4814 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4816 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4817 if ${lt_cv_prog_gnu_ld+:} false; then :
4818   $as_echo_n "(cached) " >&6
4819 else
4820   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4821 case `$LD -v 2>&1 </dev/null` in
4822 *GNU* | *'with BFD'*)
4823   lt_cv_prog_gnu_ld=yes
4824   ;;
4825 *)
4826   lt_cv_prog_gnu_ld=no
4827   ;;
4828 esac
4829 fi
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4831 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4832 with_gnu_ld=$lt_cv_prog_gnu_ld
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4843 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4844 if ${lt_cv_path_NM+:} false; then :
4845   $as_echo_n "(cached) " >&6
4846 else
4847   if test -n "$NM"; then
4848   # Let the user override the test.
4849   lt_cv_path_NM="$NM"
4850 else
4851   lt_nm_to_check="${ac_tool_prefix}nm"
4852   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4853     lt_nm_to_check="$lt_nm_to_check nm"
4854   fi
4855   for lt_tmp_nm in $lt_nm_to_check; do
4856     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4857     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4858       IFS="$lt_save_ifs"
4859       test -z "$ac_dir" && ac_dir=.
4860       tmp_nm="$ac_dir/$lt_tmp_nm"
4861       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4862         # Check to see if the nm accepts a BSD-compat flag.
4863         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4864         #   nm: unknown option "B" ignored
4865         # Tru64's nm complains that /dev/null is an invalid object file
4866         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4867         */dev/null* | *'Invalid file or object type'*)
4868           lt_cv_path_NM="$tmp_nm -B"
4869           break
4870           ;;
4871         *)
4872           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4873           */dev/null*)
4874             lt_cv_path_NM="$tmp_nm -p"
4875             break
4876             ;;
4877           *)
4878             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4879             continue # so that we can try to find one that supports BSD flags
4880             ;;
4881           esac
4882           ;;
4883         esac
4884       fi
4885     done
4886     IFS="$lt_save_ifs"
4887   done
4888   : ${lt_cv_path_NM=no}
4889 fi
4890 fi
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4892 $as_echo "$lt_cv_path_NM" >&6; }
4893 if test "$lt_cv_path_NM" != "no"; then
4894   NM="$lt_cv_path_NM"
4895 else
4896   # Didn't find any BSD compatible name lister, look for dumpbin.
4897   if test -n "$DUMPBIN"; then :
4898     # Let the user override the test.
4899   else
4900     if test -n "$ac_tool_prefix"; then
4901   for ac_prog in dumpbin "link -dump"
4902   do
4903     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if ${ac_cv_prog_DUMPBIN+:} false; then :
4908   $as_echo_n "(cached) " >&6
4909 else
4910   if test -n "$DUMPBIN"; then
4911   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916   IFS=$as_save_IFS
4917   test -z "$as_dir" && as_dir=.
4918     for ac_exec_ext in '' $ac_executable_extensions; do
4919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4920     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922     break 2
4923   fi
4924 done
4925   done
4926 IFS=$as_save_IFS
4927
4928 fi
4929 fi
4930 DUMPBIN=$ac_cv_prog_DUMPBIN
4931 if test -n "$DUMPBIN"; then
4932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4933 $as_echo "$DUMPBIN" >&6; }
4934 else
4935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4937 fi
4938
4939
4940     test -n "$DUMPBIN" && break
4941   done
4942 fi
4943 if test -z "$DUMPBIN"; then
4944   ac_ct_DUMPBIN=$DUMPBIN
4945   for ac_prog in dumpbin "link -dump"
4946 do
4947   # Extract the first word of "$ac_prog", so it can be a program name with args.
4948 set dummy $ac_prog; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954   if test -n "$ac_ct_DUMPBIN"; then
4955   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960   IFS=$as_save_IFS
4961   test -z "$as_dir" && as_dir=.
4962     for ac_exec_ext in '' $ac_executable_extensions; do
4963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966     break 2
4967   fi
4968 done
4969   done
4970 IFS=$as_save_IFS
4971
4972 fi
4973 fi
4974 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4975 if test -n "$ac_ct_DUMPBIN"; then
4976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4977 $as_echo "$ac_ct_DUMPBIN" >&6; }
4978 else
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4981 fi
4982
4983
4984   test -n "$ac_ct_DUMPBIN" && break
4985 done
4986
4987   if test "x$ac_ct_DUMPBIN" = x; then
4988     DUMPBIN=":"
4989   else
4990     case $cross_compiling:$ac_tool_warned in
4991 yes:)
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994 ac_tool_warned=yes ;;
4995 esac
4996     DUMPBIN=$ac_ct_DUMPBIN
4997   fi
4998 fi
4999
5000     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5001     *COFF*)
5002       DUMPBIN="$DUMPBIN -symbols"
5003       ;;
5004     *)
5005       DUMPBIN=:
5006       ;;
5007     esac
5008   fi
5009
5010   if test "$DUMPBIN" != ":"; then
5011     NM="$DUMPBIN"
5012   fi
5013 fi
5014 test -z "$NM" && NM=nm
5015
5016
5017
5018
5019
5020
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5022 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5023 if ${lt_cv_nm_interface+:} false; then :
5024   $as_echo_n "(cached) " >&6
5025 else
5026   lt_cv_nm_interface="BSD nm"
5027   echo "int some_variable = 0;" > conftest.$ac_ext
5028   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5029   (eval "$ac_compile" 2>conftest.err)
5030   cat conftest.err >&5
5031   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5032   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5033   cat conftest.err >&5
5034   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5035   cat conftest.out >&5
5036   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5037     lt_cv_nm_interface="MS dumpbin"
5038   fi
5039   rm -f conftest*
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5042 $as_echo "$lt_cv_nm_interface" >&6; }
5043
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5045 $as_echo_n "checking whether ln -s works... " >&6; }
5046 LN_S=$as_ln_s
5047 if test "$LN_S" = "ln -s"; then
5048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5049 $as_echo "yes" >&6; }
5050 else
5051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5052 $as_echo "no, using $LN_S" >&6; }
5053 fi
5054
5055 # find the maximum length of command line arguments
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5057 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5058 if ${lt_cv_sys_max_cmd_len+:} false; then :
5059   $as_echo_n "(cached) " >&6
5060 else
5061     i=0
5062   teststring="ABCD"
5063
5064   case $build_os in
5065   msdosdjgpp*)
5066     # On DJGPP, this test can blow up pretty badly due to problems in libc
5067     # (any single argument exceeding 2000 bytes causes a buffer overrun
5068     # during glob expansion).  Even if it were fixed, the result of this
5069     # check would be larger than it should be.
5070     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5071     ;;
5072
5073   gnu*)
5074     # Under GNU Hurd, this test is not required because there is
5075     # no limit to the length of command line arguments.
5076     # Libtool will interpret -1 as no limit whatsoever
5077     lt_cv_sys_max_cmd_len=-1;
5078     ;;
5079
5080   cygwin* | mingw* | cegcc*)
5081     # On Win9x/ME, this test blows up -- it succeeds, but takes
5082     # about 5 minutes as the teststring grows exponentially.
5083     # Worse, since 9x/ME are not pre-emptively multitasking,
5084     # you end up with a "frozen" computer, even though with patience
5085     # the test eventually succeeds (with a max line length of 256k).
5086     # Instead, let's just punt: use the minimum linelength reported by
5087     # all of the supported platforms: 8192 (on NT/2K/XP).
5088     lt_cv_sys_max_cmd_len=8192;
5089     ;;
5090
5091   mint*)
5092     # On MiNT this can take a long time and run out of memory.
5093     lt_cv_sys_max_cmd_len=8192;
5094     ;;
5095
5096   amigaos*)
5097     # On AmigaOS with pdksh, this test takes hours, literally.
5098     # So we just punt and use a minimum line length of 8192.
5099     lt_cv_sys_max_cmd_len=8192;
5100     ;;
5101
5102   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5103     # This has been around since 386BSD, at least.  Likely further.
5104     if test -x /sbin/sysctl; then
5105       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5106     elif test -x /usr/sbin/sysctl; then
5107       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5108     else
5109       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5110     fi
5111     # And add a safety zone
5112     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5113     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5114     ;;
5115
5116   interix*)
5117     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5118     lt_cv_sys_max_cmd_len=196608
5119     ;;
5120
5121   os2*)
5122     # The test takes a long time on OS/2.
5123     lt_cv_sys_max_cmd_len=8192
5124     ;;
5125
5126   osf*)
5127     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5128     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5129     # nice to cause kernel panics so lets avoid the loop below.
5130     # First set a reasonable default.
5131     lt_cv_sys_max_cmd_len=16384
5132     #
5133     if test -x /sbin/sysconfig; then
5134       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5135         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5136       esac
5137     fi
5138     ;;
5139   sco3.2v5*)
5140     lt_cv_sys_max_cmd_len=102400
5141     ;;
5142   sysv5* | sco5v6* | sysv4.2uw2*)
5143     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5144     if test -n "$kargmax"; then
5145       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5146     else
5147       lt_cv_sys_max_cmd_len=32768
5148     fi
5149     ;;
5150   *)
5151     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5152     if test -n "$lt_cv_sys_max_cmd_len" && \
5153         test undefined != "$lt_cv_sys_max_cmd_len"; then
5154       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5155       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5156     else
5157       # Make teststring a little bigger before we do anything with it.
5158       # a 1K string should be a reasonable start.
5159       for i in 1 2 3 4 5 6 7 8 ; do
5160         teststring=$teststring$teststring
5161       done
5162       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5163       # If test is not a shell built-in, we'll probably end up computing a
5164       # maximum length that is only half of the actual maximum length, but
5165       # we can't tell.
5166       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5167                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5168               test $i != 17 # 1/2 MB should be enough
5169       do
5170         i=`expr $i + 1`
5171         teststring=$teststring$teststring
5172       done
5173       # Only check the string length outside the loop.
5174       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5175       teststring=
5176       # Add a significant safety factor because C++ compilers can tack on
5177       # massive amounts of additional arguments before passing them to the
5178       # linker.  It appears as though 1/2 is a usable value.
5179       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5180     fi
5181     ;;
5182   esac
5183
5184 fi
5185
5186 if test -n $lt_cv_sys_max_cmd_len ; then
5187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5188 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5189 else
5190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5191 $as_echo "none" >&6; }
5192 fi
5193 max_cmd_len=$lt_cv_sys_max_cmd_len
5194
5195
5196
5197
5198
5199
5200 : ${CP="cp -f"}
5201 : ${MV="mv -f"}
5202 : ${RM="rm -f"}
5203
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5205 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5206 # Try some XSI features
5207 xsi_shell=no
5208 ( _lt_dummy="a/b/c"
5209   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5210       = c,a/b,b/c, \
5211     && eval 'test $(( 1 + 1 )) -eq 2 \
5212     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5213   && xsi_shell=yes
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5215 $as_echo "$xsi_shell" >&6; }
5216
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5219 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5220 lt_shell_append=no
5221 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5222     >/dev/null 2>&1 \
5223   && lt_shell_append=yes
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5225 $as_echo "$lt_shell_append" >&6; }
5226
5227
5228 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5229   lt_unset=unset
5230 else
5231   lt_unset=false
5232 fi
5233
5234
5235
5236
5237
5238 # test EBCDIC or ASCII
5239 case `echo X|tr X '\101'` in
5240  A) # ASCII based system
5241     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5242   lt_SP2NL='tr \040 \012'
5243   lt_NL2SP='tr \015\012 \040\040'
5244   ;;
5245  *) # EBCDIC based system
5246   lt_SP2NL='tr \100 \n'
5247   lt_NL2SP='tr \r\n \100\100'
5248   ;;
5249 esac
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5260 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5261 if ${lt_cv_to_host_file_cmd+:} false; then :
5262   $as_echo_n "(cached) " >&6
5263 else
5264   case $host in
5265   *-*-mingw* )
5266     case $build in
5267       *-*-mingw* ) # actually msys
5268         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5269         ;;
5270       *-*-cygwin* )
5271         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5272         ;;
5273       * ) # otherwise, assume *nix
5274         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5275         ;;
5276     esac
5277     ;;
5278   *-*-cygwin* )
5279     case $build in
5280       *-*-mingw* ) # actually msys
5281         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5282         ;;
5283       *-*-cygwin* )
5284         lt_cv_to_host_file_cmd=func_convert_file_noop
5285         ;;
5286       * ) # otherwise, assume *nix
5287         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5288         ;;
5289     esac
5290     ;;
5291   * ) # unhandled hosts (and "normal" native builds)
5292     lt_cv_to_host_file_cmd=func_convert_file_noop
5293     ;;
5294 esac
5295
5296 fi
5297
5298 to_host_file_cmd=$lt_cv_to_host_file_cmd
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5300 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5301
5302
5303
5304
5305
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5307 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5308 if ${lt_cv_to_tool_file_cmd+:} false; then :
5309   $as_echo_n "(cached) " >&6
5310 else
5311   #assume ordinary cross tools, or native build.
5312 lt_cv_to_tool_file_cmd=func_convert_file_noop
5313 case $host in
5314   *-*-mingw* )
5315     case $build in
5316       *-*-mingw* ) # actually msys
5317         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5318         ;;
5319     esac
5320     ;;
5321 esac
5322
5323 fi
5324
5325 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5327 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5328
5329
5330
5331
5332
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5334 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5335 if ${lt_cv_ld_reload_flag+:} false; then :
5336   $as_echo_n "(cached) " >&6
5337 else
5338   lt_cv_ld_reload_flag='-r'
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5341 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5342 reload_flag=$lt_cv_ld_reload_flag
5343 case $reload_flag in
5344 "" | " "*) ;;
5345 *) reload_flag=" $reload_flag" ;;
5346 esac
5347 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5348 case $host_os in
5349   cygwin* | mingw* | pw32* | cegcc*)
5350     if test "$GCC" != yes; then
5351       reload_cmds=false
5352     fi
5353     ;;
5354   darwin*)
5355     if test "$GCC" = yes; then
5356       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5357     else
5358       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5359     fi
5360     ;;
5361 esac
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371 if test -n "$ac_tool_prefix"; then
5372   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5373 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375 $as_echo_n "checking for $ac_word... " >&6; }
5376 if ${ac_cv_prog_OBJDUMP+:} false; then :
5377   $as_echo_n "(cached) " >&6
5378 else
5379   if test -n "$OBJDUMP"; then
5380   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385   IFS=$as_save_IFS
5386   test -z "$as_dir" && as_dir=.
5387     for ac_exec_ext in '' $ac_executable_extensions; do
5388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391     break 2
5392   fi
5393 done
5394   done
5395 IFS=$as_save_IFS
5396
5397 fi
5398 fi
5399 OBJDUMP=$ac_cv_prog_OBJDUMP
5400 if test -n "$OBJDUMP"; then
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5402 $as_echo "$OBJDUMP" >&6; }
5403 else
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5406 fi
5407
5408
5409 fi
5410 if test -z "$ac_cv_prog_OBJDUMP"; then
5411   ac_ct_OBJDUMP=$OBJDUMP
5412   # Extract the first word of "objdump", so it can be a program name with args.
5413 set dummy objdump; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5417   $as_echo_n "(cached) " >&6
5418 else
5419   if test -n "$ac_ct_OBJDUMP"; then
5420   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5421 else
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5424 do
5425   IFS=$as_save_IFS
5426   test -z "$as_dir" && as_dir=.
5427     for ac_exec_ext in '' $ac_executable_extensions; do
5428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5429     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431     break 2
5432   fi
5433 done
5434   done
5435 IFS=$as_save_IFS
5436
5437 fi
5438 fi
5439 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5440 if test -n "$ac_ct_OBJDUMP"; then
5441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5442 $as_echo "$ac_ct_OBJDUMP" >&6; }
5443 else
5444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5446 fi
5447
5448   if test "x$ac_ct_OBJDUMP" = x; then
5449     OBJDUMP="false"
5450   else
5451     case $cross_compiling:$ac_tool_warned in
5452 yes:)
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5455 ac_tool_warned=yes ;;
5456 esac
5457     OBJDUMP=$ac_ct_OBJDUMP
5458   fi
5459 else
5460   OBJDUMP="$ac_cv_prog_OBJDUMP"
5461 fi
5462
5463 test -z "$OBJDUMP" && OBJDUMP=objdump
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5474 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5475 if ${lt_cv_deplibs_check_method+:} false; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   lt_cv_file_magic_cmd='$MAGIC_CMD'
5479 lt_cv_file_magic_test_file=
5480 lt_cv_deplibs_check_method='unknown'
5481 # Need to set the preceding variable on all platforms that support
5482 # interlibrary dependencies.
5483 # 'none' -- dependencies not supported.
5484 # `unknown' -- same as none, but documents that we really don't know.
5485 # 'pass_all' -- all dependencies passed with no checks.
5486 # 'test_compile' -- check by making test program.
5487 # 'file_magic [[regex]]' -- check by looking for files in library path
5488 # which responds to the $file_magic_cmd with a given extended regex.
5489 # If you have `file' or equivalent on your system and you're not sure
5490 # whether `pass_all' will *always* work, you probably want this one.
5491
5492 case $host_os in
5493 aix[4-9]*)
5494   lt_cv_deplibs_check_method=pass_all
5495   ;;
5496
5497 beos*)
5498   lt_cv_deplibs_check_method=pass_all
5499   ;;
5500
5501 bsdi[45]*)
5502   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5503   lt_cv_file_magic_cmd='/usr/bin/file -L'
5504   lt_cv_file_magic_test_file=/shlib/libc.so
5505   ;;
5506
5507 cygwin*)
5508   # func_win32_libid is a shell function defined in ltmain.sh
5509   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5510   lt_cv_file_magic_cmd='func_win32_libid'
5511   ;;
5512
5513 mingw* | pw32*)
5514   # Base MSYS/MinGW do not provide the 'file' command needed by
5515   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5516   # unless we find 'file', for example because we are cross-compiling.
5517   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5518   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5519     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5520     lt_cv_file_magic_cmd='func_win32_libid'
5521   else
5522     # Keep this pattern in sync with the one in func_win32_libid.
5523     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5524     lt_cv_file_magic_cmd='$OBJDUMP -f'
5525   fi
5526   ;;
5527
5528 cegcc*)
5529   # use the weaker test based on 'objdump'. See mingw*.
5530   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5531   lt_cv_file_magic_cmd='$OBJDUMP -f'
5532   ;;
5533
5534 darwin* | rhapsody*)
5535   lt_cv_deplibs_check_method=pass_all
5536   ;;
5537
5538 freebsd* | dragonfly*)
5539   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5540     case $host_cpu in
5541     i*86 )
5542       # Not sure whether the presence of OpenBSD here was a mistake.
5543       # Let's accept both of them until this is cleared up.
5544       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5545       lt_cv_file_magic_cmd=/usr/bin/file
5546       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5547       ;;
5548     esac
5549   else
5550     lt_cv_deplibs_check_method=pass_all
5551   fi
5552   ;;
5553
5554 haiku*)
5555   lt_cv_deplibs_check_method=pass_all
5556   ;;
5557
5558 hpux10.20* | hpux11*)
5559   lt_cv_file_magic_cmd=/usr/bin/file
5560   case $host_cpu in
5561   ia64*)
5562     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5563     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5564     ;;
5565   hppa*64*)
5566     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]'
5567     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5568     ;;
5569   *)
5570     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5571     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5572     ;;
5573   esac
5574   ;;
5575
5576 interix[3-9]*)
5577   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5578   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5579   ;;
5580
5581 irix5* | irix6* | nonstopux*)
5582   case $LD in
5583   *-32|*"-32 ") libmagic=32-bit;;
5584   *-n32|*"-n32 ") libmagic=N32;;
5585   *-64|*"-64 ") libmagic=64-bit;;
5586   *) libmagic=never-match;;
5587   esac
5588   lt_cv_deplibs_check_method=pass_all
5589   ;;
5590
5591 # This must be glibc/ELF.
5592 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5593   lt_cv_deplibs_check_method=pass_all
5594   ;;
5595
5596 netbsd* | netbsdelf*-gnu)
5597   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5598     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5599   else
5600     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5601   fi
5602   ;;
5603
5604 newos6*)
5605   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5606   lt_cv_file_magic_cmd=/usr/bin/file
5607   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5608   ;;
5609
5610 *nto* | *qnx*)
5611   lt_cv_deplibs_check_method=pass_all
5612   ;;
5613
5614 openbsd*)
5615   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5616     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5617   else
5618     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5619   fi
5620   ;;
5621
5622 osf3* | osf4* | osf5*)
5623   lt_cv_deplibs_check_method=pass_all
5624   ;;
5625
5626 rdos*)
5627   lt_cv_deplibs_check_method=pass_all
5628   ;;
5629
5630 solaris*)
5631   lt_cv_deplibs_check_method=pass_all
5632   ;;
5633
5634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5635   lt_cv_deplibs_check_method=pass_all
5636   ;;
5637
5638 sysv4 | sysv4.3*)
5639   case $host_vendor in
5640   motorola)
5641     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]'
5642     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5643     ;;
5644   ncr)
5645     lt_cv_deplibs_check_method=pass_all
5646     ;;
5647   sequent)
5648     lt_cv_file_magic_cmd='/bin/file'
5649     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5650     ;;
5651   sni)
5652     lt_cv_file_magic_cmd='/bin/file'
5653     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5654     lt_cv_file_magic_test_file=/lib/libc.so
5655     ;;
5656   siemens)
5657     lt_cv_deplibs_check_method=pass_all
5658     ;;
5659   pc)
5660     lt_cv_deplibs_check_method=pass_all
5661     ;;
5662   esac
5663   ;;
5664
5665 tpf*)
5666   lt_cv_deplibs_check_method=pass_all
5667   ;;
5668 esac
5669
5670 fi
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5672 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5673
5674 file_magic_glob=
5675 want_nocaseglob=no
5676 if test "$build" = "$host"; then
5677   case $host_os in
5678   mingw* | pw32*)
5679     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5680       want_nocaseglob=yes
5681     else
5682       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5683     fi
5684     ;;
5685   esac
5686 fi
5687
5688 file_magic_cmd=$lt_cv_file_magic_cmd
5689 deplibs_check_method=$lt_cv_deplibs_check_method
5690 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713 if test -n "$ac_tool_prefix"; then
5714   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5715 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_DLLTOOL+:} false; then :
5719   $as_echo_n "(cached) " >&6
5720 else
5721   if test -n "$DLLTOOL"; then
5722   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727   IFS=$as_save_IFS
5728   test -z "$as_dir" && as_dir=.
5729     for ac_exec_ext in '' $ac_executable_extensions; do
5730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733     break 2
5734   fi
5735 done
5736   done
5737 IFS=$as_save_IFS
5738
5739 fi
5740 fi
5741 DLLTOOL=$ac_cv_prog_DLLTOOL
5742 if test -n "$DLLTOOL"; then
5743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5744 $as_echo "$DLLTOOL" >&6; }
5745 else
5746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5748 fi
5749
5750
5751 fi
5752 if test -z "$ac_cv_prog_DLLTOOL"; then
5753   ac_ct_DLLTOOL=$DLLTOOL
5754   # Extract the first word of "dlltool", so it can be a program name with args.
5755 set dummy dlltool; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5759   $as_echo_n "(cached) " >&6
5760 else
5761   if test -n "$ac_ct_DLLTOOL"; then
5762   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767   IFS=$as_save_IFS
5768   test -z "$as_dir" && as_dir=.
5769     for ac_exec_ext in '' $ac_executable_extensions; do
5770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773     break 2
5774   fi
5775 done
5776   done
5777 IFS=$as_save_IFS
5778
5779 fi
5780 fi
5781 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5782 if test -n "$ac_ct_DLLTOOL"; then
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5784 $as_echo "$ac_ct_DLLTOOL" >&6; }
5785 else
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789
5790   if test "x$ac_ct_DLLTOOL" = x; then
5791     DLLTOOL="false"
5792   else
5793     case $cross_compiling:$ac_tool_warned in
5794 yes:)
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5797 ac_tool_warned=yes ;;
5798 esac
5799     DLLTOOL=$ac_ct_DLLTOOL
5800   fi
5801 else
5802   DLLTOOL="$ac_cv_prog_DLLTOOL"
5803 fi
5804
5805 test -z "$DLLTOOL" && DLLTOOL=dlltool
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5817 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5818 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5819   $as_echo_n "(cached) " >&6
5820 else
5821   lt_cv_sharedlib_from_linklib_cmd='unknown'
5822
5823 case $host_os in
5824 cygwin* | mingw* | pw32* | cegcc*)
5825   # two different shell functions defined in ltmain.sh
5826   # decide which to use based on capabilities of $DLLTOOL
5827   case `$DLLTOOL --help 2>&1` in
5828   *--identify-strict*)
5829     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5830     ;;
5831   *)
5832     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5833     ;;
5834   esac
5835   ;;
5836 *)
5837   # fallback: assume linklib IS sharedlib
5838   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5839   ;;
5840 esac
5841
5842 fi
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5844 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5845 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5846 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5847
5848
5849
5850
5851
5852
5853
5854 if test -n "$ac_tool_prefix"; then
5855   for ac_prog in ar
5856   do
5857     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if ${ac_cv_prog_AR+:} false; then :
5862   $as_echo_n "(cached) " >&6
5863 else
5864   if test -n "$AR"; then
5865   ac_cv_prog_AR="$AR" # Let the user override the test.
5866 else
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5869 do
5870   IFS=$as_save_IFS
5871   test -z "$as_dir" && as_dir=.
5872     for ac_exec_ext in '' $ac_executable_extensions; do
5873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876     break 2
5877   fi
5878 done
5879   done
5880 IFS=$as_save_IFS
5881
5882 fi
5883 fi
5884 AR=$ac_cv_prog_AR
5885 if test -n "$AR"; then
5886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5887 $as_echo "$AR" >&6; }
5888 else
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5891 fi
5892
5893
5894     test -n "$AR" && break
5895   done
5896 fi
5897 if test -z "$AR"; then
5898   ac_ct_AR=$AR
5899   for ac_prog in ar
5900 do
5901   # Extract the first word of "$ac_prog", so it can be a program name with args.
5902 set dummy $ac_prog; ac_word=$2
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 $as_echo_n "checking for $ac_word... " >&6; }
5905 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5906   $as_echo_n "(cached) " >&6
5907 else
5908   if test -n "$ac_ct_AR"; then
5909   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914   IFS=$as_save_IFS
5915   test -z "$as_dir" && as_dir=.
5916     for ac_exec_ext in '' $ac_executable_extensions; do
5917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918     ac_cv_prog_ac_ct_AR="$ac_prog"
5919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920     break 2
5921   fi
5922 done
5923   done
5924 IFS=$as_save_IFS
5925
5926 fi
5927 fi
5928 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5929 if test -n "$ac_ct_AR"; then
5930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5931 $as_echo "$ac_ct_AR" >&6; }
5932 else
5933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 $as_echo "no" >&6; }
5935 fi
5936
5937
5938   test -n "$ac_ct_AR" && break
5939 done
5940
5941   if test "x$ac_ct_AR" = x; then
5942     AR="false"
5943   else
5944     case $cross_compiling:$ac_tool_warned in
5945 yes:)
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5948 ac_tool_warned=yes ;;
5949 esac
5950     AR=$ac_ct_AR
5951   fi
5952 fi
5953
5954 : ${AR=ar}
5955 : ${AR_FLAGS=cru}
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5968 $as_echo_n "checking for archiver @FILE support... " >&6; }
5969 if ${lt_cv_ar_at_file+:} false; then :
5970   $as_echo_n "(cached) " >&6
5971 else
5972   lt_cv_ar_at_file=no
5973    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h.  */
5975
5976 int
5977 main ()
5978 {
5979
5980   ;
5981   return 0;
5982 }
5983 _ACEOF
5984 if ac_fn_c_try_compile "$LINENO"; then :
5985   echo conftest.$ac_objext > conftest.lst
5986       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5987       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5988   (eval $lt_ar_try) 2>&5
5989   ac_status=$?
5990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5991   test $ac_status = 0; }
5992       if test "$ac_status" -eq 0; then
5993         # Ensure the archiver fails upon bogus file names.
5994         rm -f conftest.$ac_objext libconftest.a
5995         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5996   (eval $lt_ar_try) 2>&5
5997   ac_status=$?
5998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999   test $ac_status = 0; }
6000         if test "$ac_status" -ne 0; then
6001           lt_cv_ar_at_file=@
6002         fi
6003       fi
6004       rm -f conftest.* libconftest.a
6005
6006 fi
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008
6009 fi
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6011 $as_echo "$lt_cv_ar_at_file" >&6; }
6012
6013 if test "x$lt_cv_ar_at_file" = xno; then
6014   archiver_list_spec=
6015 else
6016   archiver_list_spec=$lt_cv_ar_at_file
6017 fi
6018
6019
6020
6021
6022
6023
6024
6025 if test -n "$ac_tool_prefix"; then
6026   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6027 set dummy ${ac_tool_prefix}strip; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if ${ac_cv_prog_STRIP+:} false; then :
6031   $as_echo_n "(cached) " >&6
6032 else
6033   if test -n "$STRIP"; then
6034   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6038 do
6039   IFS=$as_save_IFS
6040   test -z "$as_dir" && as_dir=.
6041     for ac_exec_ext in '' $ac_executable_extensions; do
6042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045     break 2
6046   fi
6047 done
6048   done
6049 IFS=$as_save_IFS
6050
6051 fi
6052 fi
6053 STRIP=$ac_cv_prog_STRIP
6054 if test -n "$STRIP"; then
6055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6056 $as_echo "$STRIP" >&6; }
6057 else
6058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6060 fi
6061
6062
6063 fi
6064 if test -z "$ac_cv_prog_STRIP"; then
6065   ac_ct_STRIP=$STRIP
6066   # Extract the first word of "strip", so it can be a program name with args.
6067 set dummy strip; ac_word=$2
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069 $as_echo_n "checking for $ac_word... " >&6; }
6070 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6071   $as_echo_n "(cached) " >&6
6072 else
6073   if test -n "$ac_ct_STRIP"; then
6074   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6078 do
6079   IFS=$as_save_IFS
6080   test -z "$as_dir" && as_dir=.
6081     for ac_exec_ext in '' $ac_executable_extensions; do
6082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083     ac_cv_prog_ac_ct_STRIP="strip"
6084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085     break 2
6086   fi
6087 done
6088   done
6089 IFS=$as_save_IFS
6090
6091 fi
6092 fi
6093 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6094 if test -n "$ac_ct_STRIP"; then
6095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6096 $as_echo "$ac_ct_STRIP" >&6; }
6097 else
6098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 $as_echo "no" >&6; }
6100 fi
6101
6102   if test "x$ac_ct_STRIP" = x; then
6103     STRIP=":"
6104   else
6105     case $cross_compiling:$ac_tool_warned in
6106 yes:)
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109 ac_tool_warned=yes ;;
6110 esac
6111     STRIP=$ac_ct_STRIP
6112   fi
6113 else
6114   STRIP="$ac_cv_prog_STRIP"
6115 fi
6116
6117 test -z "$STRIP" && STRIP=:
6118
6119
6120
6121
6122
6123
6124 if test -n "$ac_tool_prefix"; then
6125   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 $as_echo_n "checking for $ac_word... " >&6; }
6129 if ${ac_cv_prog_RANLIB+:} false; then :
6130   $as_echo_n "(cached) " >&6
6131 else
6132   if test -n "$RANLIB"; then
6133   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6134 else
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6137 do
6138   IFS=$as_save_IFS
6139   test -z "$as_dir" && as_dir=.
6140     for ac_exec_ext in '' $ac_executable_extensions; do
6141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144     break 2
6145   fi
6146 done
6147   done
6148 IFS=$as_save_IFS
6149
6150 fi
6151 fi
6152 RANLIB=$ac_cv_prog_RANLIB
6153 if test -n "$RANLIB"; then
6154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6155 $as_echo "$RANLIB" >&6; }
6156 else
6157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 $as_echo "no" >&6; }
6159 fi
6160
6161
6162 fi
6163 if test -z "$ac_cv_prog_RANLIB"; then
6164   ac_ct_RANLIB=$RANLIB
6165   # Extract the first word of "ranlib", so it can be a program name with args.
6166 set dummy ranlib; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6170   $as_echo_n "(cached) " >&6
6171 else
6172   if test -n "$ac_ct_RANLIB"; then
6173   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6177 do
6178   IFS=$as_save_IFS
6179   test -z "$as_dir" && as_dir=.
6180     for ac_exec_ext in '' $ac_executable_extensions; do
6181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6182     ac_cv_prog_ac_ct_RANLIB="ranlib"
6183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184     break 2
6185   fi
6186 done
6187   done
6188 IFS=$as_save_IFS
6189
6190 fi
6191 fi
6192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6193 if test -n "$ac_ct_RANLIB"; then
6194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6195 $as_echo "$ac_ct_RANLIB" >&6; }
6196 else
6197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6199 fi
6200
6201   if test "x$ac_ct_RANLIB" = x; then
6202     RANLIB=":"
6203   else
6204     case $cross_compiling:$ac_tool_warned in
6205 yes:)
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6208 ac_tool_warned=yes ;;
6209 esac
6210     RANLIB=$ac_ct_RANLIB
6211   fi
6212 else
6213   RANLIB="$ac_cv_prog_RANLIB"
6214 fi
6215
6216 test -z "$RANLIB" && RANLIB=:
6217
6218
6219
6220
6221
6222
6223 # Determine commands to create old-style static archives.
6224 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6225 old_postinstall_cmds='chmod 644 $oldlib'
6226 old_postuninstall_cmds=
6227
6228 if test -n "$RANLIB"; then
6229   case $host_os in
6230   openbsd*)
6231     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6232     ;;
6233   *)
6234     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6235     ;;
6236   esac
6237   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6238 fi
6239
6240 case $host_os in
6241   darwin*)
6242     lock_old_archive_extraction=yes ;;
6243   *)
6244     lock_old_archive_extraction=no ;;
6245 esac
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285 # If no C compiler was specified, use CC.
6286 LTCC=${LTCC-"$CC"}
6287
6288 # If no C compiler flags were specified, use CFLAGS.
6289 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6290
6291 # Allow CC to be a program name with arguments.
6292 compiler=$CC
6293
6294
6295 # Check for command to grab the raw symbol name followed by C symbol from nm.
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6297 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6298 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6299   $as_echo_n "(cached) " >&6
6300 else
6301
6302 # These are sane defaults that work on at least a few old systems.
6303 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6304
6305 # Character class describing NM global symbol codes.
6306 symcode='[BCDEGRST]'
6307
6308 # Regexp to match symbols that can be accessed directly from C.
6309 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6310
6311 # Define system-specific variables.
6312 case $host_os in
6313 aix*)
6314   symcode='[BCDT]'
6315   ;;
6316 cygwin* | mingw* | pw32* | cegcc*)
6317   symcode='[ABCDGISTW]'
6318   ;;
6319 hpux*)
6320   if test "$host_cpu" = ia64; then
6321     symcode='[ABCDEGRST]'
6322   fi
6323   ;;
6324 irix* | nonstopux*)
6325   symcode='[BCDEGRST]'
6326   ;;
6327 osf*)
6328   symcode='[BCDEGQRST]'
6329   ;;
6330 solaris*)
6331   symcode='[BDRT]'
6332   ;;
6333 sco3.2v5*)
6334   symcode='[DT]'
6335   ;;
6336 sysv4.2uw2*)
6337   symcode='[DT]'
6338   ;;
6339 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6340   symcode='[ABDT]'
6341   ;;
6342 sysv4)
6343   symcode='[DFNSTU]'
6344   ;;
6345 esac
6346
6347 # If we're using GNU nm, then use its standard symbol codes.
6348 case `$NM -V 2>&1` in
6349 *GNU* | *'with BFD'*)
6350   symcode='[ABCDGIRSTW]' ;;
6351 esac
6352
6353 # Transform an extracted symbol line into a proper C declaration.
6354 # Some systems (esp. on ia64) link data and code symbols differently,
6355 # so use this general approach.
6356 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6357
6358 # Transform an extracted symbol line into symbol name and symbol address
6359 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6360 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'"
6361
6362 # Handle CRLF in mingw tool chain
6363 opt_cr=
6364 case $build_os in
6365 mingw*)
6366   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6367   ;;
6368 esac
6369
6370 # Try without a prefix underscore, then with it.
6371 for ac_symprfx in "" "_"; do
6372
6373   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6374   symxfrm="\\1 $ac_symprfx\\2 \\2"
6375
6376   # Write the raw and C identifiers.
6377   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6378     # Fake it for dumpbin and say T for any non-static function
6379     # and D for any global variable.
6380     # Also find C++ and __fastcall symbols from MSVC++,
6381     # which start with @ or ?.
6382     lt_cv_sys_global_symbol_pipe="$AWK '"\
6383 "     {last_section=section; section=\$ 3};"\
6384 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6385 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6386 "     \$ 0!~/External *\|/{next};"\
6387 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6388 "     {if(hide[section]) next};"\
6389 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6390 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6391 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6392 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6393 "     ' prfx=^$ac_symprfx"
6394   else
6395     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6396   fi
6397   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6398
6399   # Check to see that the pipe works correctly.
6400   pipe_works=no
6401
6402   rm -f conftest*
6403   cat > conftest.$ac_ext <<_LT_EOF
6404 #ifdef __cplusplus
6405 extern "C" {
6406 #endif
6407 char nm_test_var;
6408 void nm_test_func(void);
6409 void nm_test_func(void){}
6410 #ifdef __cplusplus
6411 }
6412 #endif
6413 int main(){nm_test_var='a';nm_test_func();return(0);}
6414 _LT_EOF
6415
6416   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6417   (eval $ac_compile) 2>&5
6418   ac_status=$?
6419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420   test $ac_status = 0; }; then
6421     # Now try to grab the symbols.
6422     nlist=conftest.nm
6423     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6424   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6425   ac_status=$?
6426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6427   test $ac_status = 0; } && test -s "$nlist"; then
6428       # Try sorting and uniquifying the output.
6429       if sort "$nlist" | uniq > "$nlist"T; then
6430         mv -f "$nlist"T "$nlist"
6431       else
6432         rm -f "$nlist"T
6433       fi
6434
6435       # Make sure that we snagged all the symbols we need.
6436       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6437         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6438           cat <<_LT_EOF > conftest.$ac_ext
6439 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6440 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6441 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6442    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6443 # define LT_DLSYM_CONST
6444 #elif defined(__osf__)
6445 /* This system does not cope well with relocations in const data.  */
6446 # define LT_DLSYM_CONST
6447 #else
6448 # define LT_DLSYM_CONST const
6449 #endif
6450
6451 #ifdef __cplusplus
6452 extern "C" {
6453 #endif
6454
6455 _LT_EOF
6456           # Now generate the symbol file.
6457           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6458
6459           cat <<_LT_EOF >> conftest.$ac_ext
6460
6461 /* The mapping between symbol names and symbols.  */
6462 LT_DLSYM_CONST struct {
6463   const char *name;
6464   void       *address;
6465 }
6466 lt__PROGRAM__LTX_preloaded_symbols[] =
6467 {
6468   { "@PROGRAM@", (void *) 0 },
6469 _LT_EOF
6470           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6471           cat <<\_LT_EOF >> conftest.$ac_ext
6472   {0, (void *) 0}
6473 };
6474
6475 /* This works around a problem in FreeBSD linker */
6476 #ifdef FREEBSD_WORKAROUND
6477 static const void *lt_preloaded_setup() {
6478   return lt__PROGRAM__LTX_preloaded_symbols;
6479 }
6480 #endif
6481
6482 #ifdef __cplusplus
6483 }
6484 #endif
6485 _LT_EOF
6486           # Now try linking the two files.
6487           mv conftest.$ac_objext conftstm.$ac_objext
6488           lt_globsym_save_LIBS=$LIBS
6489           lt_globsym_save_CFLAGS=$CFLAGS
6490           LIBS="conftstm.$ac_objext"
6491           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6492           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6493   (eval $ac_link) 2>&5
6494   ac_status=$?
6495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6496   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6497             pipe_works=yes
6498           fi
6499           LIBS=$lt_globsym_save_LIBS
6500           CFLAGS=$lt_globsym_save_CFLAGS
6501         else
6502           echo "cannot find nm_test_func in $nlist" >&5
6503         fi
6504       else
6505         echo "cannot find nm_test_var in $nlist" >&5
6506       fi
6507     else
6508       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6509     fi
6510   else
6511     echo "$progname: failed program was:" >&5
6512     cat conftest.$ac_ext >&5
6513   fi
6514   rm -rf conftest* conftst*
6515
6516   # Do not use the global_symbol_pipe unless it works.
6517   if test "$pipe_works" = yes; then
6518     break
6519   else
6520     lt_cv_sys_global_symbol_pipe=
6521   fi
6522 done
6523
6524 fi
6525
6526 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6527   lt_cv_sys_global_symbol_to_cdecl=
6528 fi
6529 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6531 $as_echo "failed" >&6; }
6532 else
6533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6534 $as_echo "ok" >&6; }
6535 fi
6536
6537 # Response file support.
6538 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6539   nm_file_list_spec='@'
6540 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6541   nm_file_list_spec='@'
6542 fi
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6571 $as_echo_n "checking for sysroot... " >&6; }
6572
6573 # Check whether --with-sysroot was given.
6574 if test "${with_sysroot+set}" = set; then :
6575   withval=$with_sysroot;
6576 else
6577   with_sysroot=no
6578 fi
6579
6580
6581 lt_sysroot=
6582 case ${with_sysroot} in #(
6583  yes)
6584    if test "$GCC" = yes; then
6585      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6586    fi
6587    ;; #(
6588  /*)
6589    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6590    ;; #(
6591  no|'')
6592    ;; #(
6593  *)
6594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6595 $as_echo "${with_sysroot}" >&6; }
6596    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6597    ;;
6598 esac
6599
6600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6601 $as_echo "${lt_sysroot:-no}" >&6; }
6602
6603
6604
6605
6606
6607 # Check whether --enable-libtool-lock was given.
6608 if test "${enable_libtool_lock+set}" = set; then :
6609   enableval=$enable_libtool_lock;
6610 fi
6611
6612 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6613
6614 # Some flags need to be propagated to the compiler or linker for good
6615 # libtool support.
6616 case $host in
6617 ia64-*-hpux*)
6618   # Find out which ABI we are using.
6619   echo 'int i;' > conftest.$ac_ext
6620   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6621   (eval $ac_compile) 2>&5
6622   ac_status=$?
6623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624   test $ac_status = 0; }; then
6625     case `/usr/bin/file conftest.$ac_objext` in
6626       *ELF-32*)
6627         HPUX_IA64_MODE="32"
6628         ;;
6629       *ELF-64*)
6630         HPUX_IA64_MODE="64"
6631         ;;
6632     esac
6633   fi
6634   rm -rf conftest*
6635   ;;
6636 *-*-irix6*)
6637   # Find out which ABI we are using.
6638   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6639   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6640   (eval $ac_compile) 2>&5
6641   ac_status=$?
6642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643   test $ac_status = 0; }; then
6644     if test "$lt_cv_prog_gnu_ld" = yes; then
6645       case `/usr/bin/file conftest.$ac_objext` in
6646         *32-bit*)
6647           LD="${LD-ld} -melf32bsmip"
6648           ;;
6649         *N32*)
6650           LD="${LD-ld} -melf32bmipn32"
6651           ;;
6652         *64-bit*)
6653           LD="${LD-ld} -melf64bmip"
6654         ;;
6655       esac
6656     else
6657       case `/usr/bin/file conftest.$ac_objext` in
6658         *32-bit*)
6659           LD="${LD-ld} -32"
6660           ;;
6661         *N32*)
6662           LD="${LD-ld} -n32"
6663           ;;
6664         *64-bit*)
6665           LD="${LD-ld} -64"
6666           ;;
6667       esac
6668     fi
6669   fi
6670   rm -rf conftest*
6671   ;;
6672
6673 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6674 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6675   # Find out which ABI we are using.
6676   echo 'int i;' > conftest.$ac_ext
6677   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678   (eval $ac_compile) 2>&5
6679   ac_status=$?
6680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681   test $ac_status = 0; }; then
6682     case `/usr/bin/file conftest.o` in
6683       *32-bit*)
6684         case $host in
6685           x86_64-*kfreebsd*-gnu)
6686             LD="${LD-ld} -m elf_i386_fbsd"
6687             ;;
6688           x86_64-*linux*)
6689             case `/usr/bin/file conftest.o` in
6690               *x86-64*)
6691                 LD="${LD-ld} -m elf32_x86_64"
6692                 ;;
6693               *)
6694                 LD="${LD-ld} -m elf_i386"
6695                 ;;
6696             esac
6697             ;;
6698           powerpc64le-*)
6699             LD="${LD-ld} -m elf32lppclinux"
6700             ;;
6701           powerpc64-*)
6702             LD="${LD-ld} -m elf32ppclinux"
6703             ;;
6704           s390x-*linux*)
6705             LD="${LD-ld} -m elf_s390"
6706             ;;
6707           sparc64-*linux*)
6708             LD="${LD-ld} -m elf32_sparc"
6709             ;;
6710         esac
6711         ;;
6712       *64-bit*)
6713         case $host in
6714           x86_64-*kfreebsd*-gnu)
6715             LD="${LD-ld} -m elf_x86_64_fbsd"
6716             ;;
6717           x86_64-*linux*)
6718             LD="${LD-ld} -m elf_x86_64"
6719             ;;
6720           powerpcle-*)
6721             LD="${LD-ld} -m elf64lppc"
6722             ;;
6723           powerpc-*)
6724             LD="${LD-ld} -m elf64ppc"
6725             ;;
6726           s390*-*linux*|s390*-*tpf*)
6727             LD="${LD-ld} -m elf64_s390"
6728             ;;
6729           sparc*-*linux*)
6730             LD="${LD-ld} -m elf64_sparc"
6731             ;;
6732         esac
6733         ;;
6734     esac
6735   fi
6736   rm -rf conftest*
6737   ;;
6738
6739 *-*-sco3.2v5*)
6740   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6741   SAVE_CFLAGS="$CFLAGS"
6742   CFLAGS="$CFLAGS -belf"
6743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6744 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6745 if ${lt_cv_cc_needs_belf+:} false; then :
6746   $as_echo_n "(cached) " >&6
6747 else
6748   ac_ext=c
6749 ac_cpp='$CPP $CPPFLAGS'
6750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6753
6754      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h.  */
6756
6757 int
6758 main ()
6759 {
6760
6761   ;
6762   return 0;
6763 }
6764 _ACEOF
6765 if ac_fn_c_try_link "$LINENO"; then :
6766   lt_cv_cc_needs_belf=yes
6767 else
6768   lt_cv_cc_needs_belf=no
6769 fi
6770 rm -f core conftest.err conftest.$ac_objext \
6771     conftest$ac_exeext conftest.$ac_ext
6772      ac_ext=c
6773 ac_cpp='$CPP $CPPFLAGS'
6774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6777
6778 fi
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6780 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6781   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6782     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6783     CFLAGS="$SAVE_CFLAGS"
6784   fi
6785   ;;
6786 *-*solaris*)
6787   # Find out which ABI we are using.
6788   echo 'int i;' > conftest.$ac_ext
6789   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6790   (eval $ac_compile) 2>&5
6791   ac_status=$?
6792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793   test $ac_status = 0; }; then
6794     case `/usr/bin/file conftest.o` in
6795     *64-bit*)
6796       case $lt_cv_prog_gnu_ld in
6797       yes*)
6798         case $host in
6799         i?86-*-solaris*)
6800           LD="${LD-ld} -m elf_x86_64"
6801           ;;
6802         sparc*-*-solaris*)
6803           LD="${LD-ld} -m elf64_sparc"
6804           ;;
6805         esac
6806         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6807         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6808           LD="${LD-ld}_sol2"
6809         fi
6810         ;;
6811       *)
6812         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6813           LD="${LD-ld} -64"
6814         fi
6815         ;;
6816       esac
6817       ;;
6818     esac
6819   fi
6820   rm -rf conftest*
6821   ;;
6822 esac
6823
6824 need_locks="$enable_libtool_lock"
6825
6826 if test -n "$ac_tool_prefix"; then
6827   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6828 set dummy ${ac_tool_prefix}mt; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6832   $as_echo_n "(cached) " >&6
6833 else
6834   if test -n "$MANIFEST_TOOL"; then
6835   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840   IFS=$as_save_IFS
6841   test -z "$as_dir" && as_dir=.
6842     for ac_exec_ext in '' $ac_executable_extensions; do
6843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6844     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846     break 2
6847   fi
6848 done
6849   done
6850 IFS=$as_save_IFS
6851
6852 fi
6853 fi
6854 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6855 if test -n "$MANIFEST_TOOL"; then
6856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6857 $as_echo "$MANIFEST_TOOL" >&6; }
6858 else
6859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6861 fi
6862
6863
6864 fi
6865 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6866   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6867   # Extract the first word of "mt", so it can be a program name with args.
6868 set dummy mt; ac_word=$2
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6872   $as_echo_n "(cached) " >&6
6873 else
6874   if test -n "$ac_ct_MANIFEST_TOOL"; then
6875   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880   IFS=$as_save_IFS
6881   test -z "$as_dir" && as_dir=.
6882     for ac_exec_ext in '' $ac_executable_extensions; do
6883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886     break 2
6887   fi
6888 done
6889   done
6890 IFS=$as_save_IFS
6891
6892 fi
6893 fi
6894 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6895 if test -n "$ac_ct_MANIFEST_TOOL"; then
6896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6897 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6898 else
6899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6901 fi
6902
6903   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6904     MANIFEST_TOOL=":"
6905   else
6906     case $cross_compiling:$ac_tool_warned in
6907 yes:)
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910 ac_tool_warned=yes ;;
6911 esac
6912     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6913   fi
6914 else
6915   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6916 fi
6917
6918 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6920 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6921 if ${lt_cv_path_mainfest_tool+:} false; then :
6922   $as_echo_n "(cached) " >&6
6923 else
6924   lt_cv_path_mainfest_tool=no
6925   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6926   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6927   cat conftest.err >&5
6928   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6929     lt_cv_path_mainfest_tool=yes
6930   fi
6931   rm -f conftest*
6932 fi
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6934 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6935 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6936   MANIFEST_TOOL=:
6937 fi
6938
6939
6940
6941
6942
6943
6944   case $host_os in
6945     rhapsody* | darwin*)
6946     if test -n "$ac_tool_prefix"; then
6947   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6948 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950 $as_echo_n "checking for $ac_word... " >&6; }
6951 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6952   $as_echo_n "(cached) " >&6
6953 else
6954   if test -n "$DSYMUTIL"; then
6955   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6956 else
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960   IFS=$as_save_IFS
6961   test -z "$as_dir" && as_dir=.
6962     for ac_exec_ext in '' $ac_executable_extensions; do
6963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966     break 2
6967   fi
6968 done
6969   done
6970 IFS=$as_save_IFS
6971
6972 fi
6973 fi
6974 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6975 if test -n "$DSYMUTIL"; then
6976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6977 $as_echo "$DSYMUTIL" >&6; }
6978 else
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6981 fi
6982
6983
6984 fi
6985 if test -z "$ac_cv_prog_DSYMUTIL"; then
6986   ac_ct_DSYMUTIL=$DSYMUTIL
6987   # Extract the first word of "dsymutil", so it can be a program name with args.
6988 set dummy dsymutil; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6992   $as_echo_n "(cached) " >&6
6993 else
6994   if test -n "$ac_ct_DSYMUTIL"; then
6995   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6996 else
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
6999 do
7000   IFS=$as_save_IFS
7001   test -z "$as_dir" && as_dir=.
7002     for ac_exec_ext in '' $ac_executable_extensions; do
7003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7004     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7006     break 2
7007   fi
7008 done
7009   done
7010 IFS=$as_save_IFS
7011
7012 fi
7013 fi
7014 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7015 if test -n "$ac_ct_DSYMUTIL"; then
7016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7017 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7018 else
7019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7021 fi
7022
7023   if test "x$ac_ct_DSYMUTIL" = x; then
7024     DSYMUTIL=":"
7025   else
7026     case $cross_compiling:$ac_tool_warned in
7027 yes:)
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7030 ac_tool_warned=yes ;;
7031 esac
7032     DSYMUTIL=$ac_ct_DSYMUTIL
7033   fi
7034 else
7035   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7036 fi
7037
7038     if test -n "$ac_tool_prefix"; then
7039   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7040 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042 $as_echo_n "checking for $ac_word... " >&6; }
7043 if ${ac_cv_prog_NMEDIT+:} false; then :
7044   $as_echo_n "(cached) " >&6
7045 else
7046   if test -n "$NMEDIT"; then
7047   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7048 else
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7051 do
7052   IFS=$as_save_IFS
7053   test -z "$as_dir" && as_dir=.
7054     for ac_exec_ext in '' $ac_executable_extensions; do
7055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7056     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058     break 2
7059   fi
7060 done
7061   done
7062 IFS=$as_save_IFS
7063
7064 fi
7065 fi
7066 NMEDIT=$ac_cv_prog_NMEDIT
7067 if test -n "$NMEDIT"; then
7068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7069 $as_echo "$NMEDIT" >&6; }
7070 else
7071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7073 fi
7074
7075
7076 fi
7077 if test -z "$ac_cv_prog_NMEDIT"; then
7078   ac_ct_NMEDIT=$NMEDIT
7079   # Extract the first word of "nmedit", so it can be a program name with args.
7080 set dummy nmedit; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7084   $as_echo_n "(cached) " >&6
7085 else
7086   if test -n "$ac_ct_NMEDIT"; then
7087   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094     for ac_exec_ext in '' $ac_executable_extensions; do
7095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101   done
7102 IFS=$as_save_IFS
7103
7104 fi
7105 fi
7106 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7107 if test -n "$ac_ct_NMEDIT"; then
7108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7109 $as_echo "$ac_ct_NMEDIT" >&6; }
7110 else
7111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7113 fi
7114
7115   if test "x$ac_ct_NMEDIT" = x; then
7116     NMEDIT=":"
7117   else
7118     case $cross_compiling:$ac_tool_warned in
7119 yes:)
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7122 ac_tool_warned=yes ;;
7123 esac
7124     NMEDIT=$ac_ct_NMEDIT
7125   fi
7126 else
7127   NMEDIT="$ac_cv_prog_NMEDIT"
7128 fi
7129
7130     if test -n "$ac_tool_prefix"; then
7131   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7132 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 $as_echo_n "checking for $ac_word... " >&6; }
7135 if ${ac_cv_prog_LIPO+:} false; then :
7136   $as_echo_n "(cached) " >&6
7137 else
7138   if test -n "$LIPO"; then
7139   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7140 else
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144   IFS=$as_save_IFS
7145   test -z "$as_dir" && as_dir=.
7146     for ac_exec_ext in '' $ac_executable_extensions; do
7147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150     break 2
7151   fi
7152 done
7153   done
7154 IFS=$as_save_IFS
7155
7156 fi
7157 fi
7158 LIPO=$ac_cv_prog_LIPO
7159 if test -n "$LIPO"; then
7160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7161 $as_echo "$LIPO" >&6; }
7162 else
7163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7165 fi
7166
7167
7168 fi
7169 if test -z "$ac_cv_prog_LIPO"; then
7170   ac_ct_LIPO=$LIPO
7171   # Extract the first word of "lipo", so it can be a program name with args.
7172 set dummy lipo; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7176   $as_echo_n "(cached) " >&6
7177 else
7178   if test -n "$ac_ct_LIPO"; then
7179   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184   IFS=$as_save_IFS
7185   test -z "$as_dir" && as_dir=.
7186     for ac_exec_ext in '' $ac_executable_extensions; do
7187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188     ac_cv_prog_ac_ct_LIPO="lipo"
7189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190     break 2
7191   fi
7192 done
7193   done
7194 IFS=$as_save_IFS
7195
7196 fi
7197 fi
7198 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7199 if test -n "$ac_ct_LIPO"; then
7200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7201 $as_echo "$ac_ct_LIPO" >&6; }
7202 else
7203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7205 fi
7206
7207   if test "x$ac_ct_LIPO" = x; then
7208     LIPO=":"
7209   else
7210     case $cross_compiling:$ac_tool_warned in
7211 yes:)
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7214 ac_tool_warned=yes ;;
7215 esac
7216     LIPO=$ac_ct_LIPO
7217   fi
7218 else
7219   LIPO="$ac_cv_prog_LIPO"
7220 fi
7221
7222     if test -n "$ac_tool_prefix"; then
7223   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7224 set dummy ${ac_tool_prefix}otool; ac_word=$2
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226 $as_echo_n "checking for $ac_word... " >&6; }
7227 if ${ac_cv_prog_OTOOL+:} false; then :
7228   $as_echo_n "(cached) " >&6
7229 else
7230   if test -n "$OTOOL"; then
7231   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7232 else
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236   IFS=$as_save_IFS
7237   test -z "$as_dir" && as_dir=.
7238     for ac_exec_ext in '' $ac_executable_extensions; do
7239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242     break 2
7243   fi
7244 done
7245   done
7246 IFS=$as_save_IFS
7247
7248 fi
7249 fi
7250 OTOOL=$ac_cv_prog_OTOOL
7251 if test -n "$OTOOL"; then
7252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7253 $as_echo "$OTOOL" >&6; }
7254 else
7255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 $as_echo "no" >&6; }
7257 fi
7258
7259
7260 fi
7261 if test -z "$ac_cv_prog_OTOOL"; then
7262   ac_ct_OTOOL=$OTOOL
7263   # Extract the first word of "otool", so it can be a program name with args.
7264 set dummy otool; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7268   $as_echo_n "(cached) " >&6
7269 else
7270   if test -n "$ac_ct_OTOOL"; then
7271   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276   IFS=$as_save_IFS
7277   test -z "$as_dir" && as_dir=.
7278     for ac_exec_ext in '' $ac_executable_extensions; do
7279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280     ac_cv_prog_ac_ct_OTOOL="otool"
7281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282     break 2
7283   fi
7284 done
7285   done
7286 IFS=$as_save_IFS
7287
7288 fi
7289 fi
7290 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7291 if test -n "$ac_ct_OTOOL"; then
7292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7293 $as_echo "$ac_ct_OTOOL" >&6; }
7294 else
7295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7297 fi
7298
7299   if test "x$ac_ct_OTOOL" = x; then
7300     OTOOL=":"
7301   else
7302     case $cross_compiling:$ac_tool_warned in
7303 yes:)
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7306 ac_tool_warned=yes ;;
7307 esac
7308     OTOOL=$ac_ct_OTOOL
7309   fi
7310 else
7311   OTOOL="$ac_cv_prog_OTOOL"
7312 fi
7313
7314     if test -n "$ac_tool_prefix"; then
7315   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7316 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_prog_OTOOL64+:} false; then :
7320   $as_echo_n "(cached) " >&6
7321 else
7322   if test -n "$OTOOL64"; then
7323   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328   IFS=$as_save_IFS
7329   test -z "$as_dir" && as_dir=.
7330     for ac_exec_ext in '' $ac_executable_extensions; do
7331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334     break 2
7335   fi
7336 done
7337   done
7338 IFS=$as_save_IFS
7339
7340 fi
7341 fi
7342 OTOOL64=$ac_cv_prog_OTOOL64
7343 if test -n "$OTOOL64"; then
7344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7345 $as_echo "$OTOOL64" >&6; }
7346 else
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350
7351
7352 fi
7353 if test -z "$ac_cv_prog_OTOOL64"; then
7354   ac_ct_OTOOL64=$OTOOL64
7355   # Extract the first word of "otool64", so it can be a program name with args.
7356 set dummy otool64; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7360   $as_echo_n "(cached) " >&6
7361 else
7362   if test -n "$ac_ct_OTOOL64"; then
7363   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368   IFS=$as_save_IFS
7369   test -z "$as_dir" && as_dir=.
7370     for ac_exec_ext in '' $ac_executable_extensions; do
7371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372     ac_cv_prog_ac_ct_OTOOL64="otool64"
7373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374     break 2
7375   fi
7376 done
7377   done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7383 if test -n "$ac_ct_OTOOL64"; then
7384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7385 $as_echo "$ac_ct_OTOOL64" >&6; }
7386 else
7387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 fi
7390
7391   if test "x$ac_ct_OTOOL64" = x; then
7392     OTOOL64=":"
7393   else
7394     case $cross_compiling:$ac_tool_warned in
7395 yes:)
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned=yes ;;
7399 esac
7400     OTOOL64=$ac_ct_OTOOL64
7401   fi
7402 else
7403   OTOOL64="$ac_cv_prog_OTOOL64"
7404 fi
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7433 $as_echo_n "checking for -single_module linker flag... " >&6; }
7434 if ${lt_cv_apple_cc_single_mod+:} false; then :
7435   $as_echo_n "(cached) " >&6
7436 else
7437   lt_cv_apple_cc_single_mod=no
7438       if test -z "${LT_MULTI_MODULE}"; then
7439         # By default we will add the -single_module flag. You can override
7440         # by either setting the environment variable LT_MULTI_MODULE
7441         # non-empty at configure time, or by adding -multi_module to the
7442         # link flags.
7443         rm -rf libconftest.dylib*
7444         echo "int foo(void){return 1;}" > conftest.c
7445         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7446 -dynamiclib -Wl,-single_module conftest.c" >&5
7447         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7448           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7449         _lt_result=$?
7450         # If there is a non-empty error log, and "single_module"
7451         # appears in it, assume the flag caused a linker warning
7452         if test -s conftest.err && $GREP single_module conftest.err; then
7453           cat conftest.err >&5
7454         # Otherwise, if the output was created with a 0 exit code from
7455         # the compiler, it worked.
7456         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7457           lt_cv_apple_cc_single_mod=yes
7458         else
7459           cat conftest.err >&5
7460         fi
7461         rm -rf libconftest.dylib*
7462         rm -f conftest.*
7463       fi
7464 fi
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7466 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7467
7468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7469 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7470 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7471   $as_echo_n "(cached) " >&6
7472 else
7473   lt_cv_ld_exported_symbols_list=no
7474       save_LDFLAGS=$LDFLAGS
7475       echo "_main" > conftest.sym
7476       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7477       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h.  */
7479
7480 int
7481 main ()
7482 {
7483
7484   ;
7485   return 0;
7486 }
7487 _ACEOF
7488 if ac_fn_c_try_link "$LINENO"; then :
7489   lt_cv_ld_exported_symbols_list=yes
7490 else
7491   lt_cv_ld_exported_symbols_list=no
7492 fi
7493 rm -f core conftest.err conftest.$ac_objext \
7494     conftest$ac_exeext conftest.$ac_ext
7495         LDFLAGS="$save_LDFLAGS"
7496
7497 fi
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7499 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7500
7501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7502 $as_echo_n "checking for -force_load linker flag... " >&6; }
7503 if ${lt_cv_ld_force_load+:} false; then :
7504   $as_echo_n "(cached) " >&6
7505 else
7506   lt_cv_ld_force_load=no
7507       cat > conftest.c << _LT_EOF
7508 int forced_loaded() { return 2;}
7509 _LT_EOF
7510       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7511       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7512       echo "$AR cru libconftest.a conftest.o" >&5
7513       $AR cru libconftest.a conftest.o 2>&5
7514       echo "$RANLIB libconftest.a" >&5
7515       $RANLIB libconftest.a 2>&5
7516       cat > conftest.c << _LT_EOF
7517 int main() { return 0;}
7518 _LT_EOF
7519       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7520       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7521       _lt_result=$?
7522       if test -s conftest.err && $GREP force_load conftest.err; then
7523         cat conftest.err >&5
7524       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7525         lt_cv_ld_force_load=yes
7526       else
7527         cat conftest.err >&5
7528       fi
7529         rm -f conftest.err libconftest.a conftest conftest.c
7530         rm -rf conftest.dSYM
7531
7532 fi
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7534 $as_echo "$lt_cv_ld_force_load" >&6; }
7535     case $host_os in
7536     rhapsody* | darwin1.[012])
7537       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7538     darwin1.*)
7539       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7540     darwin*) # darwin 5.x on
7541       # if running on 10.5 or later, the deployment target defaults
7542       # to the OS version, if on x86, and 10.4, the deployment
7543       # target defaults to 10.4. Don't you love it?
7544       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7545         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7546           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7547         10.[012]*)
7548           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7549         10.*)
7550           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7551       esac
7552     ;;
7553   esac
7554     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7555       _lt_dar_single_mod='$single_module'
7556     fi
7557     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7558       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7559     else
7560       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7561     fi
7562     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7563       _lt_dsymutil='~$DSYMUTIL $lib || :'
7564     else
7565       _lt_dsymutil=
7566     fi
7567     ;;
7568   esac
7569
7570 for ac_header in dlfcn.h
7571 do :
7572   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7573 "
7574 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7575   cat >>confdefs.h <<_ACEOF
7576 #define HAVE_DLFCN_H 1
7577 _ACEOF
7578
7579 fi
7580
7581 done
7582
7583
7584
7585
7586
7587 # Set options
7588
7589
7590
7591         enable_dlopen=no
7592
7593
7594   enable_win32_dll=no
7595
7596
7597             # Check whether --enable-shared was given.
7598 if test "${enable_shared+set}" = set; then :
7599   enableval=$enable_shared; p=${PACKAGE-default}
7600     case $enableval in
7601     yes) enable_shared=yes ;;
7602     no) enable_shared=no ;;
7603     *)
7604       enable_shared=no
7605       # Look at the argument we got.  We use all the common list separators.
7606       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7607       for pkg in $enableval; do
7608         IFS="$lt_save_ifs"
7609         if test "X$pkg" = "X$p"; then
7610           enable_shared=yes
7611         fi
7612       done
7613       IFS="$lt_save_ifs"
7614       ;;
7615     esac
7616 else
7617   enable_shared=yes
7618 fi
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628   # Check whether --enable-static was given.
7629 if test "${enable_static+set}" = set; then :
7630   enableval=$enable_static; p=${PACKAGE-default}
7631     case $enableval in
7632     yes) enable_static=yes ;;
7633     no) enable_static=no ;;
7634     *)
7635      enable_static=no
7636       # Look at the argument we got.  We use all the common list separators.
7637       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7638       for pkg in $enableval; do
7639         IFS="$lt_save_ifs"
7640         if test "X$pkg" = "X$p"; then
7641           enable_static=yes
7642         fi
7643       done
7644       IFS="$lt_save_ifs"
7645       ;;
7646     esac
7647 else
7648   enable_static=yes
7649 fi
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660 # Check whether --with-pic was given.
7661 if test "${with_pic+set}" = set; then :
7662   withval=$with_pic; lt_p=${PACKAGE-default}
7663     case $withval in
7664     yes|no) pic_mode=$withval ;;
7665     *)
7666       pic_mode=default
7667       # Look at the argument we got.  We use all the common list separators.
7668       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7669       for lt_pkg in $withval; do
7670         IFS="$lt_save_ifs"
7671         if test "X$lt_pkg" = "X$lt_p"; then
7672           pic_mode=yes
7673         fi
7674       done
7675       IFS="$lt_save_ifs"
7676       ;;
7677     esac
7678 else
7679   pic_mode=default
7680 fi
7681
7682
7683 test -z "$pic_mode" && pic_mode=default
7684
7685
7686
7687
7688
7689
7690
7691   # Check whether --enable-fast-install was given.
7692 if test "${enable_fast_install+set}" = set; then :
7693   enableval=$enable_fast_install; p=${PACKAGE-default}
7694     case $enableval in
7695     yes) enable_fast_install=yes ;;
7696     no) enable_fast_install=no ;;
7697     *)
7698       enable_fast_install=no
7699       # Look at the argument we got.  We use all the common list separators.
7700       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7701       for pkg in $enableval; do
7702         IFS="$lt_save_ifs"
7703         if test "X$pkg" = "X$p"; then
7704           enable_fast_install=yes
7705         fi
7706       done
7707       IFS="$lt_save_ifs"
7708       ;;
7709     esac
7710 else
7711   enable_fast_install=yes
7712 fi
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724 # This can be used to rebuild libtool when needed
7725 LIBTOOL_DEPS="$ltmain"
7726
7727 # Always use our own libtool.
7728 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759 test -z "$LN_S" && LN_S="ln -s"
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774 if test -n "${ZSH_VERSION+set}" ; then
7775    setopt NO_GLOB_SUBST
7776 fi
7777
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7779 $as_echo_n "checking for objdir... " >&6; }
7780 if ${lt_cv_objdir+:} false; then :
7781   $as_echo_n "(cached) " >&6
7782 else
7783   rm -f .libs 2>/dev/null
7784 mkdir .libs 2>/dev/null
7785 if test -d .libs; then
7786   lt_cv_objdir=.libs
7787 else
7788   # MS-DOS does not allow filenames that begin with a dot.
7789   lt_cv_objdir=_libs
7790 fi
7791 rmdir .libs 2>/dev/null
7792 fi
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7794 $as_echo "$lt_cv_objdir" >&6; }
7795 objdir=$lt_cv_objdir
7796
7797
7798
7799
7800
7801 cat >>confdefs.h <<_ACEOF
7802 #define LT_OBJDIR "$lt_cv_objdir/"
7803 _ACEOF
7804
7805
7806
7807
7808 case $host_os in
7809 aix3*)
7810   # AIX sometimes has problems with the GCC collect2 program.  For some
7811   # reason, if we set the COLLECT_NAMES environment variable, the problems
7812   # vanish in a puff of smoke.
7813   if test "X${COLLECT_NAMES+set}" != Xset; then
7814     COLLECT_NAMES=
7815     export COLLECT_NAMES
7816   fi
7817   ;;
7818 esac
7819
7820 # Global variables:
7821 ofile=libtool
7822 can_build_shared=yes
7823
7824 # All known linkers require a `.a' archive for static linking (except MSVC,
7825 # which needs '.lib').
7826 libext=a
7827
7828 with_gnu_ld="$lt_cv_prog_gnu_ld"
7829
7830 old_CC="$CC"
7831 old_CFLAGS="$CFLAGS"
7832
7833 # Set sane defaults for various variables
7834 test -z "$CC" && CC=cc
7835 test -z "$LTCC" && LTCC=$CC
7836 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7837 test -z "$LD" && LD=ld
7838 test -z "$ac_objext" && ac_objext=o
7839
7840 for cc_temp in $compiler""; do
7841   case $cc_temp in
7842     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7843     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7844     \-*) ;;
7845     *) break;;
7846   esac
7847 done
7848 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7849
7850
7851 # Only perform the check for file, if the check method requires it
7852 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7853 case $deplibs_check_method in
7854 file_magic*)
7855   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7857 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7858 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7859   $as_echo_n "(cached) " >&6
7860 else
7861   case $MAGIC_CMD in
7862 [\\/*] |  ?:[\\/]*)
7863   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7864   ;;
7865 *)
7866   lt_save_MAGIC_CMD="$MAGIC_CMD"
7867   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7868   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7869   for ac_dir in $ac_dummy; do
7870     IFS="$lt_save_ifs"
7871     test -z "$ac_dir" && ac_dir=.
7872     if test -f $ac_dir/${ac_tool_prefix}file; then
7873       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7874       if test -n "$file_magic_test_file"; then
7875         case $deplibs_check_method in
7876         "file_magic "*)
7877           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7878           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7879           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7880             $EGREP "$file_magic_regex" > /dev/null; then
7881             :
7882           else
7883             cat <<_LT_EOF 1>&2
7884
7885 *** Warning: the command libtool uses to detect shared libraries,
7886 *** $file_magic_cmd, produces output that libtool cannot recognize.
7887 *** The result is that libtool may fail to recognize shared libraries
7888 *** as such.  This will affect the creation of libtool libraries that
7889 *** depend on shared libraries, but programs linked with such libtool
7890 *** libraries will work regardless of this problem.  Nevertheless, you
7891 *** may want to report the problem to your system manager and/or to
7892 *** bug-libtool@gnu.org
7893
7894 _LT_EOF
7895           fi ;;
7896         esac
7897       fi
7898       break
7899     fi
7900   done
7901   IFS="$lt_save_ifs"
7902   MAGIC_CMD="$lt_save_MAGIC_CMD"
7903   ;;
7904 esac
7905 fi
7906
7907 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7908 if test -n "$MAGIC_CMD"; then
7909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7910 $as_echo "$MAGIC_CMD" >&6; }
7911 else
7912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7914 fi
7915
7916
7917
7918
7919
7920 if test -z "$lt_cv_path_MAGIC_CMD"; then
7921   if test -n "$ac_tool_prefix"; then
7922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7923 $as_echo_n "checking for file... " >&6; }
7924 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7925   $as_echo_n "(cached) " >&6
7926 else
7927   case $MAGIC_CMD in
7928 [\\/*] |  ?:[\\/]*)
7929   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7930   ;;
7931 *)
7932   lt_save_MAGIC_CMD="$MAGIC_CMD"
7933   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7934   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7935   for ac_dir in $ac_dummy; do
7936     IFS="$lt_save_ifs"
7937     test -z "$ac_dir" && ac_dir=.
7938     if test -f $ac_dir/file; then
7939       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7940       if test -n "$file_magic_test_file"; then
7941         case $deplibs_check_method in
7942         "file_magic "*)
7943           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7944           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7945           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7946             $EGREP "$file_magic_regex" > /dev/null; then
7947             :
7948           else
7949             cat <<_LT_EOF 1>&2
7950
7951 *** Warning: the command libtool uses to detect shared libraries,
7952 *** $file_magic_cmd, produces output that libtool cannot recognize.
7953 *** The result is that libtool may fail to recognize shared libraries
7954 *** as such.  This will affect the creation of libtool libraries that
7955 *** depend on shared libraries, but programs linked with such libtool
7956 *** libraries will work regardless of this problem.  Nevertheless, you
7957 *** may want to report the problem to your system manager and/or to
7958 *** bug-libtool@gnu.org
7959
7960 _LT_EOF
7961           fi ;;
7962         esac
7963       fi
7964       break
7965     fi
7966   done
7967   IFS="$lt_save_ifs"
7968   MAGIC_CMD="$lt_save_MAGIC_CMD"
7969   ;;
7970 esac
7971 fi
7972
7973 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7974 if test -n "$MAGIC_CMD"; then
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7976 $as_echo "$MAGIC_CMD" >&6; }
7977 else
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7980 fi
7981
7982
7983   else
7984     MAGIC_CMD=:
7985   fi
7986 fi
7987
7988   fi
7989   ;;
7990 esac
7991
7992 # Use C for the default configuration in the libtool script
7993
7994 lt_save_CC="$CC"
7995 ac_ext=c
7996 ac_cpp='$CPP $CPPFLAGS'
7997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8000
8001
8002 # Source file extension for C test sources.
8003 ac_ext=c
8004
8005 # Object file extension for compiled C test sources.
8006 objext=o
8007 objext=$objext
8008
8009 # Code to be used in simple compile tests
8010 lt_simple_compile_test_code="int some_variable = 0;"
8011
8012 # Code to be used in simple link tests
8013 lt_simple_link_test_code='int main(){return(0);}'
8014
8015
8016
8017
8018
8019
8020
8021 # If no C compiler was specified, use CC.
8022 LTCC=${LTCC-"$CC"}
8023
8024 # If no C compiler flags were specified, use CFLAGS.
8025 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8026
8027 # Allow CC to be a program name with arguments.
8028 compiler=$CC
8029
8030 # Save the default compiler, since it gets overwritten when the other
8031 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8032 compiler_DEFAULT=$CC
8033
8034 # save warnings/boilerplate of simple test code
8035 ac_outfile=conftest.$ac_objext
8036 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8038 _lt_compiler_boilerplate=`cat conftest.err`
8039 $RM conftest*
8040
8041 ac_outfile=conftest.$ac_objext
8042 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8044 _lt_linker_boilerplate=`cat conftest.err`
8045 $RM -r conftest*
8046
8047
8048 ## CAVEAT EMPTOR:
8049 ## There is no encapsulation within the following macros, do not change
8050 ## the running order or otherwise move them around unless you know exactly
8051 ## what you are doing...
8052 if test -n "$compiler"; then
8053
8054 lt_prog_compiler_no_builtin_flag=
8055
8056 if test "$GCC" = yes; then
8057   case $cc_basename in
8058   nvcc*)
8059     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8060   *)
8061     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8062   esac
8063
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8065 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8066 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8067   $as_echo_n "(cached) " >&6
8068 else
8069   lt_cv_prog_compiler_rtti_exceptions=no
8070    ac_outfile=conftest.$ac_objext
8071    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8072    lt_compiler_flag="-fno-rtti -fno-exceptions"
8073    # Insert the option either (1) after the last *FLAGS variable, or
8074    # (2) before a word containing "conftest.", or (3) at the end.
8075    # Note that $ac_compile itself does not contain backslashes and begins
8076    # with a dollar sign (not a hyphen), so the echo should work correctly.
8077    # The option is referenced via a variable to avoid confusing sed.
8078    lt_compile=`echo "$ac_compile" | $SED \
8079    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8080    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8081    -e 's:$: $lt_compiler_flag:'`
8082    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8083    (eval "$lt_compile" 2>conftest.err)
8084    ac_status=$?
8085    cat conftest.err >&5
8086    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087    if (exit $ac_status) && test -s "$ac_outfile"; then
8088      # The compiler can only warn and ignore the option if not recognized
8089      # So say no if there are warnings other than the usual output.
8090      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8091      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8092      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8093        lt_cv_prog_compiler_rtti_exceptions=yes
8094      fi
8095    fi
8096    $RM conftest*
8097
8098 fi
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8100 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8101
8102 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8103     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8104 else
8105     :
8106 fi
8107
8108 fi
8109
8110
8111
8112
8113
8114
8115   lt_prog_compiler_wl=
8116 lt_prog_compiler_pic=
8117 lt_prog_compiler_static=
8118
8119
8120   if test "$GCC" = yes; then
8121     lt_prog_compiler_wl='-Wl,'
8122     lt_prog_compiler_static='-static'
8123
8124     case $host_os in
8125       aix*)
8126       # All AIX code is PIC.
8127       if test "$host_cpu" = ia64; then
8128         # AIX 5 now supports IA64 processor
8129         lt_prog_compiler_static='-Bstatic'
8130       fi
8131       ;;
8132
8133     amigaos*)
8134       case $host_cpu in
8135       powerpc)
8136             # see comment about AmigaOS4 .so support
8137             lt_prog_compiler_pic='-fPIC'
8138         ;;
8139       m68k)
8140             # FIXME: we need at least 68020 code to build shared libraries, but
8141             # adding the `-m68020' flag to GCC prevents building anything better,
8142             # like `-m68040'.
8143             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8144         ;;
8145       esac
8146       ;;
8147
8148     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8149       # PIC is the default for these OSes.
8150       ;;
8151
8152     mingw* | cygwin* | pw32* | os2* | cegcc*)
8153       # This hack is so that the source file can tell whether it is being
8154       # built for inclusion in a dll (and should export symbols for example).
8155       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8156       # (--disable-auto-import) libraries
8157       lt_prog_compiler_pic='-DDLL_EXPORT'
8158       ;;
8159
8160     darwin* | rhapsody*)
8161       # PIC is the default on this platform
8162       # Common symbols not allowed in MH_DYLIB files
8163       lt_prog_compiler_pic='-fno-common'
8164       ;;
8165
8166     haiku*)
8167       # PIC is the default for Haiku.
8168       # The "-static" flag exists, but is broken.
8169       lt_prog_compiler_static=
8170       ;;
8171
8172     hpux*)
8173       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8174       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8175       # sets the default TLS model and affects inlining.
8176       case $host_cpu in
8177       hppa*64*)
8178         # +Z the default
8179         ;;
8180       *)
8181         lt_prog_compiler_pic='-fPIC'
8182         ;;
8183       esac
8184       ;;
8185
8186     interix[3-9]*)
8187       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8188       # Instead, we relocate shared libraries at runtime.
8189       ;;
8190
8191     msdosdjgpp*)
8192       # Just because we use GCC doesn't mean we suddenly get shared libraries
8193       # on systems that don't support them.
8194       lt_prog_compiler_can_build_shared=no
8195       enable_shared=no
8196       ;;
8197
8198     *nto* | *qnx*)
8199       # QNX uses GNU C++, but need to define -shared option too, otherwise
8200       # it will coredump.
8201       lt_prog_compiler_pic='-fPIC -shared'
8202       ;;
8203
8204     sysv4*MP*)
8205       if test -d /usr/nec; then
8206         lt_prog_compiler_pic=-Kconform_pic
8207       fi
8208       ;;
8209
8210     *)
8211       lt_prog_compiler_pic='-fPIC'
8212       ;;
8213     esac
8214
8215     case $cc_basename in
8216     nvcc*) # Cuda Compiler Driver 2.2
8217       lt_prog_compiler_wl='-Xlinker '
8218       if test -n "$lt_prog_compiler_pic"; then
8219         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8220       fi
8221       ;;
8222     esac
8223   else
8224     # PORTME Check for flag to pass linker flags through the system compiler.
8225     case $host_os in
8226     aix*)
8227       lt_prog_compiler_wl='-Wl,'
8228       if test "$host_cpu" = ia64; then
8229         # AIX 5 now supports IA64 processor
8230         lt_prog_compiler_static='-Bstatic'
8231       else
8232         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8233       fi
8234       ;;
8235
8236     mingw* | cygwin* | pw32* | os2* | cegcc*)
8237       # This hack is so that the source file can tell whether it is being
8238       # built for inclusion in a dll (and should export symbols for example).
8239       lt_prog_compiler_pic='-DDLL_EXPORT'
8240       ;;
8241
8242     hpux9* | hpux10* | hpux11*)
8243       lt_prog_compiler_wl='-Wl,'
8244       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8245       # not for PA HP-UX.
8246       case $host_cpu in
8247       hppa*64*|ia64*)
8248         # +Z the default
8249         ;;
8250       *)
8251         lt_prog_compiler_pic='+Z'
8252         ;;
8253       esac
8254       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8255       lt_prog_compiler_static='${wl}-a ${wl}archive'
8256       ;;
8257
8258     irix5* | irix6* | nonstopux*)
8259       lt_prog_compiler_wl='-Wl,'
8260       # PIC (with -KPIC) is the default.
8261       lt_prog_compiler_static='-non_shared'
8262       ;;
8263
8264     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8265       case $cc_basename in
8266       # old Intel for x86_64 which still supported -KPIC.
8267       ecc*)
8268         lt_prog_compiler_wl='-Wl,'
8269         lt_prog_compiler_pic='-KPIC'
8270         lt_prog_compiler_static='-static'
8271         ;;
8272       # icc used to be incompatible with GCC.
8273       # ICC 10 doesn't accept -KPIC any more.
8274       icc* | ifort*)
8275         lt_prog_compiler_wl='-Wl,'
8276         lt_prog_compiler_pic='-fPIC'
8277         lt_prog_compiler_static='-static'
8278         ;;
8279       # Lahey Fortran 8.1.
8280       lf95*)
8281         lt_prog_compiler_wl='-Wl,'
8282         lt_prog_compiler_pic='--shared'
8283         lt_prog_compiler_static='--static'
8284         ;;
8285       nagfor*)
8286         # NAG Fortran compiler
8287         lt_prog_compiler_wl='-Wl,-Wl,,'
8288         lt_prog_compiler_pic='-PIC'
8289         lt_prog_compiler_static='-Bstatic'
8290         ;;
8291       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8292         # Portland Group compilers (*not* the Pentium gcc compiler,
8293         # which looks to be a dead project)
8294         lt_prog_compiler_wl='-Wl,'
8295         lt_prog_compiler_pic='-fpic'
8296         lt_prog_compiler_static='-Bstatic'
8297         ;;
8298       ccc*)
8299         lt_prog_compiler_wl='-Wl,'
8300         # All Alpha code is PIC.
8301         lt_prog_compiler_static='-non_shared'
8302         ;;
8303       xl* | bgxl* | bgf* | mpixl*)
8304         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8305         lt_prog_compiler_wl='-Wl,'
8306         lt_prog_compiler_pic='-qpic'
8307         lt_prog_compiler_static='-qstaticlink'
8308         ;;
8309       *)
8310         case `$CC -V 2>&1 | sed 5q` in
8311         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8312           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8313           lt_prog_compiler_pic='-KPIC'
8314           lt_prog_compiler_static='-Bstatic'
8315           lt_prog_compiler_wl=''
8316           ;;
8317         *Sun\ F* | *Sun*Fortran*)
8318           lt_prog_compiler_pic='-KPIC'
8319           lt_prog_compiler_static='-Bstatic'
8320           lt_prog_compiler_wl='-Qoption ld '
8321           ;;
8322         *Sun\ C*)
8323           # Sun C 5.9
8324           lt_prog_compiler_pic='-KPIC'
8325           lt_prog_compiler_static='-Bstatic'
8326           lt_prog_compiler_wl='-Wl,'
8327           ;;
8328         *Intel*\ [CF]*Compiler*)
8329           lt_prog_compiler_wl='-Wl,'
8330           lt_prog_compiler_pic='-fPIC'
8331           lt_prog_compiler_static='-static'
8332           ;;
8333         *Portland\ Group*)
8334           lt_prog_compiler_wl='-Wl,'
8335           lt_prog_compiler_pic='-fpic'
8336           lt_prog_compiler_static='-Bstatic'
8337           ;;
8338         esac
8339         ;;
8340       esac
8341       ;;
8342
8343     newsos6)
8344       lt_prog_compiler_pic='-KPIC'
8345       lt_prog_compiler_static='-Bstatic'
8346       ;;
8347
8348     *nto* | *qnx*)
8349       # QNX uses GNU C++, but need to define -shared option too, otherwise
8350       # it will coredump.
8351       lt_prog_compiler_pic='-fPIC -shared'
8352       ;;
8353
8354     osf3* | osf4* | osf5*)
8355       lt_prog_compiler_wl='-Wl,'
8356       # All OSF/1 code is PIC.
8357       lt_prog_compiler_static='-non_shared'
8358       ;;
8359
8360     rdos*)
8361       lt_prog_compiler_static='-non_shared'
8362       ;;
8363
8364     solaris*)
8365       lt_prog_compiler_pic='-KPIC'
8366       lt_prog_compiler_static='-Bstatic'
8367       case $cc_basename in
8368       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8369         lt_prog_compiler_wl='-Qoption ld ';;
8370       *)
8371         lt_prog_compiler_wl='-Wl,';;
8372       esac
8373       ;;
8374
8375     sunos4*)
8376       lt_prog_compiler_wl='-Qoption ld '
8377       lt_prog_compiler_pic='-PIC'
8378       lt_prog_compiler_static='-Bstatic'
8379       ;;
8380
8381     sysv4 | sysv4.2uw2* | sysv4.3*)
8382       lt_prog_compiler_wl='-Wl,'
8383       lt_prog_compiler_pic='-KPIC'
8384       lt_prog_compiler_static='-Bstatic'
8385       ;;
8386
8387     sysv4*MP*)
8388       if test -d /usr/nec ;then
8389         lt_prog_compiler_pic='-Kconform_pic'
8390         lt_prog_compiler_static='-Bstatic'
8391       fi
8392       ;;
8393
8394     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8395       lt_prog_compiler_wl='-Wl,'
8396       lt_prog_compiler_pic='-KPIC'
8397       lt_prog_compiler_static='-Bstatic'
8398       ;;
8399
8400     unicos*)
8401       lt_prog_compiler_wl='-Wl,'
8402       lt_prog_compiler_can_build_shared=no
8403       ;;
8404
8405     uts4*)
8406       lt_prog_compiler_pic='-pic'
8407       lt_prog_compiler_static='-Bstatic'
8408       ;;
8409
8410     *)
8411       lt_prog_compiler_can_build_shared=no
8412       ;;
8413     esac
8414   fi
8415
8416 case $host_os in
8417   # For platforms which do not support PIC, -DPIC is meaningless:
8418   *djgpp*)
8419     lt_prog_compiler_pic=
8420     ;;
8421   *)
8422     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8423     ;;
8424 esac
8425
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8427 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8428 if ${lt_cv_prog_compiler_pic+:} false; then :
8429   $as_echo_n "(cached) " >&6
8430 else
8431   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8432 fi
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8434 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8435 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8436
8437 #
8438 # Check to make sure the PIC flag actually works.
8439 #
8440 if test -n "$lt_prog_compiler_pic"; then
8441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8442 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8443 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8444   $as_echo_n "(cached) " >&6
8445 else
8446   lt_cv_prog_compiler_pic_works=no
8447    ac_outfile=conftest.$ac_objext
8448    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8449    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8450    # Insert the option either (1) after the last *FLAGS variable, or
8451    # (2) before a word containing "conftest.", or (3) at the end.
8452    # Note that $ac_compile itself does not contain backslashes and begins
8453    # with a dollar sign (not a hyphen), so the echo should work correctly.
8454    # The option is referenced via a variable to avoid confusing sed.
8455    lt_compile=`echo "$ac_compile" | $SED \
8456    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8457    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8458    -e 's:$: $lt_compiler_flag:'`
8459    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8460    (eval "$lt_compile" 2>conftest.err)
8461    ac_status=$?
8462    cat conftest.err >&5
8463    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464    if (exit $ac_status) && test -s "$ac_outfile"; then
8465      # The compiler can only warn and ignore the option if not recognized
8466      # So say no if there are warnings other than the usual output.
8467      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8468      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8469      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8470        lt_cv_prog_compiler_pic_works=yes
8471      fi
8472    fi
8473    $RM conftest*
8474
8475 fi
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8477 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8478
8479 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8480     case $lt_prog_compiler_pic in
8481      "" | " "*) ;;
8482      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8483      esac
8484 else
8485     lt_prog_compiler_pic=
8486      lt_prog_compiler_can_build_shared=no
8487 fi
8488
8489 fi
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501 #
8502 # Check to make sure the static flag actually works.
8503 #
8504 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8506 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8507 if ${lt_cv_prog_compiler_static_works+:} false; then :
8508   $as_echo_n "(cached) " >&6
8509 else
8510   lt_cv_prog_compiler_static_works=no
8511    save_LDFLAGS="$LDFLAGS"
8512    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8513    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8514    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8515      # The linker can only warn and ignore the option if not recognized
8516      # So say no if there are warnings
8517      if test -s conftest.err; then
8518        # Append any errors to the config.log.
8519        cat conftest.err 1>&5
8520        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8521        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8522        if diff conftest.exp conftest.er2 >/dev/null; then
8523          lt_cv_prog_compiler_static_works=yes
8524        fi
8525      else
8526        lt_cv_prog_compiler_static_works=yes
8527      fi
8528    fi
8529    $RM -r conftest*
8530    LDFLAGS="$save_LDFLAGS"
8531
8532 fi
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8534 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8535
8536 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8537     :
8538 else
8539     lt_prog_compiler_static=
8540 fi
8541
8542
8543
8544
8545
8546
8547
8548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8549 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8550 if ${lt_cv_prog_compiler_c_o+:} false; then :
8551   $as_echo_n "(cached) " >&6
8552 else
8553   lt_cv_prog_compiler_c_o=no
8554    $RM -r conftest 2>/dev/null
8555    mkdir conftest
8556    cd conftest
8557    mkdir out
8558    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8559
8560    lt_compiler_flag="-o out/conftest2.$ac_objext"
8561    # Insert the option either (1) after the last *FLAGS variable, or
8562    # (2) before a word containing "conftest.", or (3) at the end.
8563    # Note that $ac_compile itself does not contain backslashes and begins
8564    # with a dollar sign (not a hyphen), so the echo should work correctly.
8565    lt_compile=`echo "$ac_compile" | $SED \
8566    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8567    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8568    -e 's:$: $lt_compiler_flag:'`
8569    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8570    (eval "$lt_compile" 2>out/conftest.err)
8571    ac_status=$?
8572    cat out/conftest.err >&5
8573    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8575    then
8576      # The compiler can only warn and ignore the option if not recognized
8577      # So say no if there are warnings
8578      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8579      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8580      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8581        lt_cv_prog_compiler_c_o=yes
8582      fi
8583    fi
8584    chmod u+w . 2>&5
8585    $RM conftest*
8586    # SGI C++ compiler will create directory out/ii_files/ for
8587    # template instantiation
8588    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8589    $RM out/* && rmdir out
8590    cd ..
8591    $RM -r conftest
8592    $RM conftest*
8593
8594 fi
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8596 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8597
8598
8599
8600
8601
8602
8603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8604 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8605 if ${lt_cv_prog_compiler_c_o+:} false; then :
8606   $as_echo_n "(cached) " >&6
8607 else
8608   lt_cv_prog_compiler_c_o=no
8609    $RM -r conftest 2>/dev/null
8610    mkdir conftest
8611    cd conftest
8612    mkdir out
8613    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8614
8615    lt_compiler_flag="-o out/conftest2.$ac_objext"
8616    # Insert the option either (1) after the last *FLAGS variable, or
8617    # (2) before a word containing "conftest.", or (3) at the end.
8618    # Note that $ac_compile itself does not contain backslashes and begins
8619    # with a dollar sign (not a hyphen), so the echo should work correctly.
8620    lt_compile=`echo "$ac_compile" | $SED \
8621    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8622    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8623    -e 's:$: $lt_compiler_flag:'`
8624    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8625    (eval "$lt_compile" 2>out/conftest.err)
8626    ac_status=$?
8627    cat out/conftest.err >&5
8628    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8630    then
8631      # The compiler can only warn and ignore the option if not recognized
8632      # So say no if there are warnings
8633      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8634      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8635      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8636        lt_cv_prog_compiler_c_o=yes
8637      fi
8638    fi
8639    chmod u+w . 2>&5
8640    $RM conftest*
8641    # SGI C++ compiler will create directory out/ii_files/ for
8642    # template instantiation
8643    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8644    $RM out/* && rmdir out
8645    cd ..
8646    $RM -r conftest
8647    $RM conftest*
8648
8649 fi
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8651 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8652
8653
8654
8655
8656 hard_links="nottested"
8657 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8658   # do not overwrite the value of need_locks provided by the user
8659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8660 $as_echo_n "checking if we can lock with hard links... " >&6; }
8661   hard_links=yes
8662   $RM conftest*
8663   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8664   touch conftest.a
8665   ln conftest.a conftest.b 2>&5 || hard_links=no
8666   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8668 $as_echo "$hard_links" >&6; }
8669   if test "$hard_links" = no; then
8670     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8671 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8672     need_locks=warn
8673   fi
8674 else
8675   need_locks=no
8676 fi
8677
8678
8679
8680
8681
8682
8683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8684 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8685
8686   runpath_var=
8687   allow_undefined_flag=
8688   always_export_symbols=no
8689   archive_cmds=
8690   archive_expsym_cmds=
8691   compiler_needs_object=no
8692   enable_shared_with_static_runtimes=no
8693   export_dynamic_flag_spec=
8694   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8695   hardcode_automatic=no
8696   hardcode_direct=no
8697   hardcode_direct_absolute=no
8698   hardcode_libdir_flag_spec=
8699   hardcode_libdir_separator=
8700   hardcode_minus_L=no
8701   hardcode_shlibpath_var=unsupported
8702   inherit_rpath=no
8703   link_all_deplibs=unknown
8704   module_cmds=
8705   module_expsym_cmds=
8706   old_archive_from_new_cmds=
8707   old_archive_from_expsyms_cmds=
8708   thread_safe_flag_spec=
8709   whole_archive_flag_spec=
8710   # include_expsyms should be a list of space-separated symbols to be *always*
8711   # included in the symbol list
8712   include_expsyms=
8713   # exclude_expsyms can be an extended regexp of symbols to exclude
8714   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8715   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8716   # as well as any symbol that contains `d'.
8717   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8718   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8719   # platforms (ab)use it in PIC code, but their linkers get confused if
8720   # the symbol is explicitly referenced.  Since portable code cannot
8721   # rely on this symbol name, it's probably fine to never include it in
8722   # preloaded symbol tables.
8723   # Exclude shared library initialization/finalization symbols.
8724   extract_expsyms_cmds=
8725
8726   case $host_os in
8727   cygwin* | mingw* | pw32* | cegcc*)
8728     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8729     # When not using gcc, we currently assume that we are using
8730     # Microsoft Visual C++.
8731     if test "$GCC" != yes; then
8732       with_gnu_ld=no
8733     fi
8734     ;;
8735   interix*)
8736     # we just hope/assume this is gcc and not c89 (= MSVC++)
8737     with_gnu_ld=yes
8738     ;;
8739   openbsd*)
8740     with_gnu_ld=no
8741     ;;
8742   linux* | k*bsd*-gnu | gnu*)
8743     link_all_deplibs=no
8744     ;;
8745   esac
8746
8747   ld_shlibs=yes
8748
8749   # On some targets, GNU ld is compatible enough with the native linker
8750   # that we're better off using the native interface for both.
8751   lt_use_gnu_ld_interface=no
8752   if test "$with_gnu_ld" = yes; then
8753     case $host_os in
8754       aix*)
8755         # The AIX port of GNU ld has always aspired to compatibility
8756         # with the native linker.  However, as the warning in the GNU ld
8757         # block says, versions before 2.19.5* couldn't really create working
8758         # shared libraries, regardless of the interface used.
8759         case `$LD -v 2>&1` in
8760           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8761           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8762           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8763           *)
8764             lt_use_gnu_ld_interface=yes
8765             ;;
8766         esac
8767         ;;
8768       *)
8769         lt_use_gnu_ld_interface=yes
8770         ;;
8771     esac
8772   fi
8773
8774   if test "$lt_use_gnu_ld_interface" = yes; then
8775     # If archive_cmds runs LD, not CC, wlarc should be empty
8776     wlarc='${wl}'
8777
8778     # Set some defaults for GNU ld with shared library support. These
8779     # are reset later if shared libraries are not supported. Putting them
8780     # here allows them to be overridden if necessary.
8781     runpath_var=LD_RUN_PATH
8782     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8783     export_dynamic_flag_spec='${wl}--export-dynamic'
8784     # ancient GNU ld didn't support --whole-archive et. al.
8785     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8786       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8787     else
8788       whole_archive_flag_spec=
8789     fi
8790     supports_anon_versioning=no
8791     case `$LD -v 2>&1` in
8792       *GNU\ gold*) supports_anon_versioning=yes ;;
8793       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8794       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8795       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8796       *\ 2.11.*) ;; # other 2.11 versions
8797       *) supports_anon_versioning=yes ;;
8798     esac
8799
8800     # See if GNU ld supports shared libraries.
8801     case $host_os in
8802     aix[3-9]*)
8803       # On AIX/PPC, the GNU linker is very broken
8804       if test "$host_cpu" != ia64; then
8805         ld_shlibs=no
8806         cat <<_LT_EOF 1>&2
8807
8808 *** Warning: the GNU linker, at least up to release 2.19, is reported
8809 *** to be unable to reliably create shared libraries on AIX.
8810 *** Therefore, libtool is disabling shared libraries support.  If you
8811 *** really care for shared libraries, you may want to install binutils
8812 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8813 *** You will then need to restart the configuration process.
8814
8815 _LT_EOF
8816       fi
8817       ;;
8818
8819     amigaos*)
8820       case $host_cpu in
8821       powerpc)
8822             # see comment about AmigaOS4 .so support
8823             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8824             archive_expsym_cmds=''
8825         ;;
8826       m68k)
8827             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)'
8828             hardcode_libdir_flag_spec='-L$libdir'
8829             hardcode_minus_L=yes
8830         ;;
8831       esac
8832       ;;
8833
8834     beos*)
8835       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8836         allow_undefined_flag=unsupported
8837         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8838         # support --undefined.  This deserves some investigation.  FIXME
8839         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8840       else
8841         ld_shlibs=no
8842       fi
8843       ;;
8844
8845     cygwin* | mingw* | pw32* | cegcc*)
8846       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8847       # as there is no search path for DLLs.
8848       hardcode_libdir_flag_spec='-L$libdir'
8849       export_dynamic_flag_spec='${wl}--export-all-symbols'
8850       allow_undefined_flag=unsupported
8851       always_export_symbols=no
8852       enable_shared_with_static_runtimes=yes
8853       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'
8854       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8855
8856       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8857         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8858         # If the export-symbols file already is a .def file (1st line
8859         # is EXPORTS), use it as is; otherwise, prepend...
8860         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8861           cp $export_symbols $output_objdir/$soname.def;
8862         else
8863           echo EXPORTS > $output_objdir/$soname.def;
8864           cat $export_symbols >> $output_objdir/$soname.def;
8865         fi~
8866         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8867       else
8868         ld_shlibs=no
8869       fi
8870       ;;
8871
8872     haiku*)
8873       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8874       link_all_deplibs=yes
8875       ;;
8876
8877     interix[3-9]*)
8878       hardcode_direct=no
8879       hardcode_shlibpath_var=no
8880       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8881       export_dynamic_flag_spec='${wl}-E'
8882       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8883       # Instead, shared libraries are loaded at an image base (0x10000000 by
8884       # default) and relocated if they conflict, which is a slow very memory
8885       # consuming and fragmenting process.  To avoid this, we pick a random,
8886       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8887       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8888       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8889       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'
8890       ;;
8891
8892     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8893       tmp_diet=no
8894       if test "$host_os" = linux-dietlibc; then
8895         case $cc_basename in
8896           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8897         esac
8898       fi
8899       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8900          && test "$tmp_diet" = no
8901       then
8902         tmp_addflag=' $pic_flag'
8903         tmp_sharedflag='-shared'
8904         case $cc_basename,$host_cpu in
8905         pgcc*)                          # Portland Group C compiler
8906           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'
8907           tmp_addflag=' $pic_flag'
8908           ;;
8909         pgf77* | pgf90* | pgf95* | pgfortran*)
8910                                         # Portland Group f77 and f90 compilers
8911           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'
8912           tmp_addflag=' $pic_flag -Mnomain' ;;
8913         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8914           tmp_addflag=' -i_dynamic' ;;
8915         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8916           tmp_addflag=' -i_dynamic -nofor_main' ;;
8917         ifc* | ifort*)                  # Intel Fortran compiler
8918           tmp_addflag=' -nofor_main' ;;
8919         lf95*)                          # Lahey Fortran 8.1
8920           whole_archive_flag_spec=
8921           tmp_sharedflag='--shared' ;;
8922         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8923           tmp_sharedflag='-qmkshrobj'
8924           tmp_addflag= ;;
8925         nvcc*)  # Cuda Compiler Driver 2.2
8926           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'
8927           compiler_needs_object=yes
8928           ;;
8929         esac
8930         case `$CC -V 2>&1 | sed 5q` in
8931         *Sun\ C*)                       # Sun C 5.9
8932           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'
8933           compiler_needs_object=yes
8934           tmp_sharedflag='-G' ;;
8935         *Sun\ F*)                       # Sun Fortran 8.3
8936           tmp_sharedflag='-G' ;;
8937         esac
8938         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939
8940         if test "x$supports_anon_versioning" = xyes; then
8941           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8942             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8943             echo "local: *; };" >> $output_objdir/$libname.ver~
8944             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8945         fi
8946
8947         case $cc_basename in
8948         xlf* | bgf* | bgxlf* | mpixlf*)
8949           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8950           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8951           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8952           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8953           if test "x$supports_anon_versioning" = xyes; then
8954             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8955               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8956               echo "local: *; };" >> $output_objdir/$libname.ver~
8957               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8958           fi
8959           ;;
8960         esac
8961       else
8962         ld_shlibs=no
8963       fi
8964       ;;
8965
8966     netbsd* | netbsdelf*-gnu)
8967       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8968         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8969         wlarc=
8970       else
8971         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8973       fi
8974       ;;
8975
8976     solaris*)
8977       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8978         ld_shlibs=no
8979         cat <<_LT_EOF 1>&2
8980
8981 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8982 *** create shared libraries on Solaris systems.  Therefore, libtool
8983 *** is disabling shared libraries support.  We urge you to upgrade GNU
8984 *** binutils to release 2.9.1 or newer.  Another option is to modify
8985 *** your PATH or compiler configuration so that the native linker is
8986 *** used, and then restart.
8987
8988 _LT_EOF
8989       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8990         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8991         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8992       else
8993         ld_shlibs=no
8994       fi
8995       ;;
8996
8997     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8998       case `$LD -v 2>&1` in
8999         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9000         ld_shlibs=no
9001         cat <<_LT_EOF 1>&2
9002
9003 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9004 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9005 *** is disabling shared libraries support.  We urge you to upgrade GNU
9006 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9007 *** your PATH or compiler configuration so that the native linker is
9008 *** used, and then restart.
9009
9010 _LT_EOF
9011         ;;
9012         *)
9013           # For security reasons, it is highly recommended that you always
9014           # use absolute paths for naming shared libraries, and exclude the
9015           # DT_RUNPATH tag from executables and libraries.  But doing so
9016           # requires that you compile everything twice, which is a pain.
9017           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9019             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9020             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9021           else
9022             ld_shlibs=no
9023           fi
9024         ;;
9025       esac
9026       ;;
9027
9028     sunos4*)
9029       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9030       wlarc=
9031       hardcode_direct=yes
9032       hardcode_shlibpath_var=no
9033       ;;
9034
9035     *)
9036       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9037         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9039       else
9040         ld_shlibs=no
9041       fi
9042       ;;
9043     esac
9044
9045     if test "$ld_shlibs" = no; then
9046       runpath_var=
9047       hardcode_libdir_flag_spec=
9048       export_dynamic_flag_spec=
9049       whole_archive_flag_spec=
9050     fi
9051   else
9052     # PORTME fill in a description of your system's linker (not GNU ld)
9053     case $host_os in
9054     aix3*)
9055       allow_undefined_flag=unsupported
9056       always_export_symbols=yes
9057       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'
9058       # Note: this linker hardcodes the directories in LIBPATH if there
9059       # are no directories specified by -L.
9060       hardcode_minus_L=yes
9061       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9062         # Neither direct hardcoding nor static linking is supported with a
9063         # broken collect2.
9064         hardcode_direct=unsupported
9065       fi
9066       ;;
9067
9068     aix[4-9]*)
9069       if test "$host_cpu" = ia64; then
9070         # On IA64, the linker does run time linking by default, so we don't
9071         # have to do anything special.
9072         aix_use_runtimelinking=no
9073         exp_sym_flag='-Bexport'
9074         no_entry_flag=""
9075       else
9076         # If we're using GNU nm, then we don't want the "-C" option.
9077         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9078         # Also, AIX nm treats weak defined symbols like other global
9079         # defined symbols, whereas GNU nm marks them as "W".
9080         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9081           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'
9082         else
9083           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'
9084         fi
9085         aix_use_runtimelinking=no
9086
9087         # Test if we are trying to use run time linking or normal
9088         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9089         # need to do runtime linking.
9090         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9091           for ld_flag in $LDFLAGS; do
9092           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9093             aix_use_runtimelinking=yes
9094             break
9095           fi
9096           done
9097           ;;
9098         esac
9099
9100         exp_sym_flag='-bexport'
9101         no_entry_flag='-bnoentry'
9102       fi
9103
9104       # When large executables or shared objects are built, AIX ld can
9105       # have problems creating the table of contents.  If linking a library
9106       # or program results in "error TOC overflow" add -mminimal-toc to
9107       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9108       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9109
9110       archive_cmds=''
9111       hardcode_direct=yes
9112       hardcode_direct_absolute=yes
9113       hardcode_libdir_separator=':'
9114       link_all_deplibs=yes
9115       file_list_spec='${wl}-f,'
9116
9117       if test "$GCC" = yes; then
9118         case $host_os in aix4.[012]|aix4.[012].*)
9119         # We only want to do this on AIX 4.2 and lower, the check
9120         # below for broken collect2 doesn't work under 4.3+
9121           collect2name=`${CC} -print-prog-name=collect2`
9122           if test -f "$collect2name" &&
9123            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9124           then
9125           # We have reworked collect2
9126           :
9127           else
9128           # We have old collect2
9129           hardcode_direct=unsupported
9130           # It fails to find uninstalled libraries when the uninstalled
9131           # path is not listed in the libpath.  Setting hardcode_minus_L
9132           # to unsupported forces relinking
9133           hardcode_minus_L=yes
9134           hardcode_libdir_flag_spec='-L$libdir'
9135           hardcode_libdir_separator=
9136           fi
9137           ;;
9138         esac
9139         shared_flag='-shared'
9140         if test "$aix_use_runtimelinking" = yes; then
9141           shared_flag="$shared_flag "'${wl}-G'
9142         fi
9143         link_all_deplibs=no
9144       else
9145         # not using gcc
9146         if test "$host_cpu" = ia64; then
9147         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9148         # chokes on -Wl,-G. The following line is correct:
9149           shared_flag='-G'
9150         else
9151           if test "$aix_use_runtimelinking" = yes; then
9152             shared_flag='${wl}-G'
9153           else
9154             shared_flag='${wl}-bM:SRE'
9155           fi
9156         fi
9157       fi
9158
9159       export_dynamic_flag_spec='${wl}-bexpall'
9160       # It seems that -bexpall does not export symbols beginning with
9161       # underscore (_), so it is better to generate a list of symbols to export.
9162       always_export_symbols=yes
9163       if test "$aix_use_runtimelinking" = yes; then
9164         # Warning - without using the other runtime loading flags (-brtl),
9165         # -berok will link without error, but may produce a broken library.
9166         allow_undefined_flag='-berok'
9167         # Determine the default libpath from the value encoded in an
9168         # empty executable.
9169         if test "${lt_cv_aix_libpath+set}" = set; then
9170   aix_libpath=$lt_cv_aix_libpath
9171 else
9172   if ${lt_cv_aix_libpath_+:} false; then :
9173   $as_echo_n "(cached) " >&6
9174 else
9175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176 /* end confdefs.h.  */
9177
9178 int
9179 main ()
9180 {
9181
9182   ;
9183   return 0;
9184 }
9185 _ACEOF
9186 if ac_fn_c_try_link "$LINENO"; then :
9187
9188   lt_aix_libpath_sed='
9189       /Import File Strings/,/^$/ {
9190           /^0/ {
9191               s/^0  *\([^ ]*\) *$/\1/
9192               p
9193           }
9194       }'
9195   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9196   # Check for a 64-bit object if we didn't find anything.
9197   if test -z "$lt_cv_aix_libpath_"; then
9198     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9199   fi
9200 fi
9201 rm -f core conftest.err conftest.$ac_objext \
9202     conftest$ac_exeext conftest.$ac_ext
9203   if test -z "$lt_cv_aix_libpath_"; then
9204     lt_cv_aix_libpath_="/usr/lib:/lib"
9205   fi
9206
9207 fi
9208
9209   aix_libpath=$lt_cv_aix_libpath_
9210 fi
9211
9212         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9213         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"
9214       else
9215         if test "$host_cpu" = ia64; then
9216           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9217           allow_undefined_flag="-z nodefs"
9218           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"
9219         else
9220          # Determine the default libpath from the value encoded in an
9221          # empty executable.
9222          if test "${lt_cv_aix_libpath+set}" = set; then
9223   aix_libpath=$lt_cv_aix_libpath
9224 else
9225   if ${lt_cv_aix_libpath_+:} false; then :
9226   $as_echo_n "(cached) " >&6
9227 else
9228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h.  */
9230
9231 int
9232 main ()
9233 {
9234
9235   ;
9236   return 0;
9237 }
9238 _ACEOF
9239 if ac_fn_c_try_link "$LINENO"; then :
9240
9241   lt_aix_libpath_sed='
9242       /Import File Strings/,/^$/ {
9243           /^0/ {
9244               s/^0  *\([^ ]*\) *$/\1/
9245               p
9246           }
9247       }'
9248   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9249   # Check for a 64-bit object if we didn't find anything.
9250   if test -z "$lt_cv_aix_libpath_"; then
9251     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9252   fi
9253 fi
9254 rm -f core conftest.err conftest.$ac_objext \
9255     conftest$ac_exeext conftest.$ac_ext
9256   if test -z "$lt_cv_aix_libpath_"; then
9257     lt_cv_aix_libpath_="/usr/lib:/lib"
9258   fi
9259
9260 fi
9261
9262   aix_libpath=$lt_cv_aix_libpath_
9263 fi
9264
9265          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9266           # Warning - without using the other run time loading flags,
9267           # -berok will link without error, but may produce a broken library.
9268           no_undefined_flag=' ${wl}-bernotok'
9269           allow_undefined_flag=' ${wl}-berok'
9270           if test "$with_gnu_ld" = yes; then
9271             # We only use this code for GNU lds that support --whole-archive.
9272             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9273           else
9274             # Exported symbols can be pulled into shared objects from archives
9275             whole_archive_flag_spec='$convenience'
9276           fi
9277           archive_cmds_need_lc=yes
9278           # This is similar to how AIX traditionally builds its shared libraries.
9279           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'
9280         fi
9281       fi
9282       ;;
9283
9284     amigaos*)
9285       case $host_cpu in
9286       powerpc)
9287             # see comment about AmigaOS4 .so support
9288             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9289             archive_expsym_cmds=''
9290         ;;
9291       m68k)
9292             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)'
9293             hardcode_libdir_flag_spec='-L$libdir'
9294             hardcode_minus_L=yes
9295         ;;
9296       esac
9297       ;;
9298
9299     bsdi[45]*)
9300       export_dynamic_flag_spec=-rdynamic
9301       ;;
9302
9303     cygwin* | mingw* | pw32* | cegcc*)
9304       # When not using gcc, we currently assume that we are using
9305       # Microsoft Visual C++.
9306       # hardcode_libdir_flag_spec is actually meaningless, as there is
9307       # no search path for DLLs.
9308       case $cc_basename in
9309       cl*)
9310         # Native MSVC
9311         hardcode_libdir_flag_spec=' '
9312         allow_undefined_flag=unsupported
9313         always_export_symbols=yes
9314         file_list_spec='@'
9315         # Tell ltmain to make .lib files, not .a files.
9316         libext=lib
9317         # Tell ltmain to make .dll files, not .so files.
9318         shrext_cmds=".dll"
9319         # FIXME: Setting linknames here is a bad hack.
9320         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9321         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9322             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9323           else
9324             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9325           fi~
9326           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9327           linknames='
9328         # The linker will not automatically build a static lib if we build a DLL.
9329         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9330         enable_shared_with_static_runtimes=yes
9331         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9332         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9333         # Don't use ranlib
9334         old_postinstall_cmds='chmod 644 $oldlib'
9335         postlink_cmds='lt_outputfile="@OUTPUT@"~
9336           lt_tool_outputfile="@TOOL_OUTPUT@"~
9337           case $lt_outputfile in
9338             *.exe|*.EXE) ;;
9339             *)
9340               lt_outputfile="$lt_outputfile.exe"
9341               lt_tool_outputfile="$lt_tool_outputfile.exe"
9342               ;;
9343           esac~
9344           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9345             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9346             $RM "$lt_outputfile.manifest";
9347           fi'
9348         ;;
9349       *)
9350         # Assume MSVC wrapper
9351         hardcode_libdir_flag_spec=' '
9352         allow_undefined_flag=unsupported
9353         # Tell ltmain to make .lib files, not .a files.
9354         libext=lib
9355         # Tell ltmain to make .dll files, not .so files.
9356         shrext_cmds=".dll"
9357         # FIXME: Setting linknames here is a bad hack.
9358         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9359         # The linker will automatically build a .lib file if we build a DLL.
9360         old_archive_from_new_cmds='true'
9361         # FIXME: Should let the user specify the lib program.
9362         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9363         enable_shared_with_static_runtimes=yes
9364         ;;
9365       esac
9366       ;;
9367
9368     darwin* | rhapsody*)
9369
9370
9371   archive_cmds_need_lc=no
9372   hardcode_direct=no
9373   hardcode_automatic=yes
9374   hardcode_shlibpath_var=unsupported
9375   if test "$lt_cv_ld_force_load" = "yes"; then
9376     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\"`'
9377
9378   else
9379     whole_archive_flag_spec=''
9380   fi
9381   link_all_deplibs=yes
9382   allow_undefined_flag="$_lt_dar_allow_undefined"
9383   case $cc_basename in
9384      ifort*) _lt_dar_can_shared=yes ;;
9385      *) _lt_dar_can_shared=$GCC ;;
9386   esac
9387   if test "$_lt_dar_can_shared" = "yes"; then
9388     output_verbose_link_cmd=func_echo_all
9389     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9390     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9391     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}"
9392     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}"
9393
9394   else
9395   ld_shlibs=no
9396   fi
9397
9398       ;;
9399
9400     dgux*)
9401       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9402       hardcode_libdir_flag_spec='-L$libdir'
9403       hardcode_shlibpath_var=no
9404       ;;
9405
9406     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9407     # support.  Future versions do this automatically, but an explicit c++rt0.o
9408     # does not break anything, and helps significantly (at the cost of a little
9409     # extra space).
9410     freebsd2.2*)
9411       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9412       hardcode_libdir_flag_spec='-R$libdir'
9413       hardcode_direct=yes
9414       hardcode_shlibpath_var=no
9415       ;;
9416
9417     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9418     freebsd2.*)
9419       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9420       hardcode_direct=yes
9421       hardcode_minus_L=yes
9422       hardcode_shlibpath_var=no
9423       ;;
9424
9425     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9426     freebsd* | dragonfly*)
9427       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9428       hardcode_libdir_flag_spec='-R$libdir'
9429       hardcode_direct=yes
9430       hardcode_shlibpath_var=no
9431       ;;
9432
9433     hpux9*)
9434       if test "$GCC" = yes; then
9435         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'
9436       else
9437         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'
9438       fi
9439       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9440       hardcode_libdir_separator=:
9441       hardcode_direct=yes
9442
9443       # hardcode_minus_L: Not really in the search PATH,
9444       # but as the default location of the library.
9445       hardcode_minus_L=yes
9446       export_dynamic_flag_spec='${wl}-E'
9447       ;;
9448
9449     hpux10*)
9450       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9451         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9452       else
9453         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9454       fi
9455       if test "$with_gnu_ld" = no; then
9456         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9457         hardcode_libdir_separator=:
9458         hardcode_direct=yes
9459         hardcode_direct_absolute=yes
9460         export_dynamic_flag_spec='${wl}-E'
9461         # hardcode_minus_L: Not really in the search PATH,
9462         # but as the default location of the library.
9463         hardcode_minus_L=yes
9464       fi
9465       ;;
9466
9467     hpux11*)
9468       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9469         case $host_cpu in
9470         hppa*64*)
9471           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9472           ;;
9473         ia64*)
9474           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9475           ;;
9476         *)
9477           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9478           ;;
9479         esac
9480       else
9481         case $host_cpu in
9482         hppa*64*)
9483           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9484           ;;
9485         ia64*)
9486           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9487           ;;
9488         *)
9489
9490           # Older versions of the 11.00 compiler do not understand -b yet
9491           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9492           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9493 $as_echo_n "checking if $CC understands -b... " >&6; }
9494 if ${lt_cv_prog_compiler__b+:} false; then :
9495   $as_echo_n "(cached) " >&6
9496 else
9497   lt_cv_prog_compiler__b=no
9498    save_LDFLAGS="$LDFLAGS"
9499    LDFLAGS="$LDFLAGS -b"
9500    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9501    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9502      # The linker can only warn and ignore the option if not recognized
9503      # So say no if there are warnings
9504      if test -s conftest.err; then
9505        # Append any errors to the config.log.
9506        cat conftest.err 1>&5
9507        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9508        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9509        if diff conftest.exp conftest.er2 >/dev/null; then
9510          lt_cv_prog_compiler__b=yes
9511        fi
9512      else
9513        lt_cv_prog_compiler__b=yes
9514      fi
9515    fi
9516    $RM -r conftest*
9517    LDFLAGS="$save_LDFLAGS"
9518
9519 fi
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9521 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9522
9523 if test x"$lt_cv_prog_compiler__b" = xyes; then
9524     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9525 else
9526     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9527 fi
9528
9529           ;;
9530         esac
9531       fi
9532       if test "$with_gnu_ld" = no; then
9533         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9534         hardcode_libdir_separator=:
9535
9536         case $host_cpu in
9537         hppa*64*|ia64*)
9538           hardcode_direct=no
9539           hardcode_shlibpath_var=no
9540           ;;
9541         *)
9542           hardcode_direct=yes
9543           hardcode_direct_absolute=yes
9544           export_dynamic_flag_spec='${wl}-E'
9545
9546           # hardcode_minus_L: Not really in the search PATH,
9547           # but as the default location of the library.
9548           hardcode_minus_L=yes
9549           ;;
9550         esac
9551       fi
9552       ;;
9553
9554     irix5* | irix6* | nonstopux*)
9555       if test "$GCC" = yes; then
9556         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'
9557         # Try to use the -exported_symbol ld option, if it does not
9558         # work, assume that -exports_file does not work either and
9559         # implicitly export all symbols.
9560         # This should be the same for all languages, so no per-tag cache variable.
9561         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9562 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9563 if ${lt_cv_irix_exported_symbol+:} false; then :
9564   $as_echo_n "(cached) " >&6
9565 else
9566   save_LDFLAGS="$LDFLAGS"
9567            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9568            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h.  */
9570 int foo (void) { return 0; }
9571 _ACEOF
9572 if ac_fn_c_try_link "$LINENO"; then :
9573   lt_cv_irix_exported_symbol=yes
9574 else
9575   lt_cv_irix_exported_symbol=no
9576 fi
9577 rm -f core conftest.err conftest.$ac_objext \
9578     conftest$ac_exeext conftest.$ac_ext
9579            LDFLAGS="$save_LDFLAGS"
9580 fi
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9582 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9583         if test "$lt_cv_irix_exported_symbol" = yes; then
9584           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'
9585         fi
9586       else
9587         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'
9588         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'
9589       fi
9590       archive_cmds_need_lc='no'
9591       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9592       hardcode_libdir_separator=:
9593       inherit_rpath=yes
9594       link_all_deplibs=yes
9595       ;;
9596
9597     netbsd* | netbsdelf*-gnu)
9598       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9599         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9600       else
9601         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9602       fi
9603       hardcode_libdir_flag_spec='-R$libdir'
9604       hardcode_direct=yes
9605       hardcode_shlibpath_var=no
9606       ;;
9607
9608     newsos6)
9609       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9610       hardcode_direct=yes
9611       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612       hardcode_libdir_separator=:
9613       hardcode_shlibpath_var=no
9614       ;;
9615
9616     *nto* | *qnx*)
9617       ;;
9618
9619     openbsd*)
9620       if test -f /usr/libexec/ld.so; then
9621         hardcode_direct=yes
9622         hardcode_shlibpath_var=no
9623         hardcode_direct_absolute=yes
9624         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9625           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9626           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9627           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9628           export_dynamic_flag_spec='${wl}-E'
9629         else
9630           case $host_os in
9631            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9632              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9633              hardcode_libdir_flag_spec='-R$libdir'
9634              ;;
9635            *)
9636              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9637              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9638              ;;
9639           esac
9640         fi
9641       else
9642         ld_shlibs=no
9643       fi
9644       ;;
9645
9646     os2*)
9647       hardcode_libdir_flag_spec='-L$libdir'
9648       hardcode_minus_L=yes
9649       allow_undefined_flag=unsupported
9650       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'
9651       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9652       ;;
9653
9654     osf3*)
9655       if test "$GCC" = yes; then
9656         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9657         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'
9658       else
9659         allow_undefined_flag=' -expect_unresolved \*'
9660         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'
9661       fi
9662       archive_cmds_need_lc='no'
9663       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9664       hardcode_libdir_separator=:
9665       ;;
9666
9667     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9668       if test "$GCC" = yes; then
9669         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9670         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'
9671         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9672       else
9673         allow_undefined_flag=' -expect_unresolved \*'
9674         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'
9675         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~
9676         $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'
9677
9678         # Both c and cxx compiler support -rpath directly
9679         hardcode_libdir_flag_spec='-rpath $libdir'
9680       fi
9681       archive_cmds_need_lc='no'
9682       hardcode_libdir_separator=:
9683       ;;
9684
9685     solaris*)
9686       no_undefined_flag=' -z defs'
9687       if test "$GCC" = yes; then
9688         wlarc='${wl}'
9689         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9690         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9691           $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'
9692       else
9693         case `$CC -V 2>&1` in
9694         *"Compilers 5.0"*)
9695           wlarc=''
9696           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9698           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9699           ;;
9700         *)
9701           wlarc='${wl}'
9702           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9703           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9704           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9705           ;;
9706         esac
9707       fi
9708       hardcode_libdir_flag_spec='-R$libdir'
9709       hardcode_shlibpath_var=no
9710       case $host_os in
9711       solaris2.[0-5] | solaris2.[0-5].*) ;;
9712       *)
9713         # The compiler driver will combine and reorder linker options,
9714         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9715         # but is careful enough not to reorder.
9716         # Supported since Solaris 2.6 (maybe 2.5.1?)
9717         if test "$GCC" = yes; then
9718           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9719         else
9720           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9721         fi
9722         ;;
9723       esac
9724       link_all_deplibs=yes
9725       ;;
9726
9727     sunos4*)
9728       if test "x$host_vendor" = xsequent; then
9729         # Use $CC to link under sequent, because it throws in some extra .o
9730         # files that make .init and .fini sections work.
9731         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9732       else
9733         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9734       fi
9735       hardcode_libdir_flag_spec='-L$libdir'
9736       hardcode_direct=yes
9737       hardcode_minus_L=yes
9738       hardcode_shlibpath_var=no
9739       ;;
9740
9741     sysv4)
9742       case $host_vendor in
9743         sni)
9744           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9745           hardcode_direct=yes # is this really true???
9746         ;;
9747         siemens)
9748           ## LD is ld it makes a PLAMLIB
9749           ## CC just makes a GrossModule.
9750           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9751           reload_cmds='$CC -r -o $output$reload_objs'
9752           hardcode_direct=no
9753         ;;
9754         motorola)
9755           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9756           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9757         ;;
9758       esac
9759       runpath_var='LD_RUN_PATH'
9760       hardcode_shlibpath_var=no
9761       ;;
9762
9763     sysv4.3*)
9764       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9765       hardcode_shlibpath_var=no
9766       export_dynamic_flag_spec='-Bexport'
9767       ;;
9768
9769     sysv4*MP*)
9770       if test -d /usr/nec; then
9771         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9772         hardcode_shlibpath_var=no
9773         runpath_var=LD_RUN_PATH
9774         hardcode_runpath_var=yes
9775         ld_shlibs=yes
9776       fi
9777       ;;
9778
9779     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9780       no_undefined_flag='${wl}-z,text'
9781       archive_cmds_need_lc=no
9782       hardcode_shlibpath_var=no
9783       runpath_var='LD_RUN_PATH'
9784
9785       if test "$GCC" = yes; then
9786         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9787         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9788       else
9789         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9790         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9791       fi
9792       ;;
9793
9794     sysv5* | sco3.2v5* | sco5v6*)
9795       # Note: We can NOT use -z defs as we might desire, because we do not
9796       # link with -lc, and that would cause any symbols used from libc to
9797       # always be unresolved, which means just about no library would
9798       # ever link correctly.  If we're not using GNU ld we use -z text
9799       # though, which does catch some bad symbols but isn't as heavy-handed
9800       # as -z defs.
9801       no_undefined_flag='${wl}-z,text'
9802       allow_undefined_flag='${wl}-z,nodefs'
9803       archive_cmds_need_lc=no
9804       hardcode_shlibpath_var=no
9805       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9806       hardcode_libdir_separator=':'
9807       link_all_deplibs=yes
9808       export_dynamic_flag_spec='${wl}-Bexport'
9809       runpath_var='LD_RUN_PATH'
9810
9811       if test "$GCC" = yes; then
9812         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9813         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9814       else
9815         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9816         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9817       fi
9818       ;;
9819
9820     uts4*)
9821       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9822       hardcode_libdir_flag_spec='-L$libdir'
9823       hardcode_shlibpath_var=no
9824       ;;
9825
9826     *)
9827       ld_shlibs=no
9828       ;;
9829     esac
9830
9831     if test x$host_vendor = xsni; then
9832       case $host in
9833       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9834         export_dynamic_flag_spec='${wl}-Blargedynsym'
9835         ;;
9836       esac
9837     fi
9838   fi
9839
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9841 $as_echo "$ld_shlibs" >&6; }
9842 test "$ld_shlibs" = no && can_build_shared=no
9843
9844 with_gnu_ld=$with_gnu_ld
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860 #
9861 # Do we need to explicitly link libc?
9862 #
9863 case "x$archive_cmds_need_lc" in
9864 x|xyes)
9865   # Assume -lc should be added
9866   archive_cmds_need_lc=yes
9867
9868   if test "$enable_shared" = yes && test "$GCC" = yes; then
9869     case $archive_cmds in
9870     *'~'*)
9871       # FIXME: we may have to deal with multi-command sequences.
9872       ;;
9873     '$CC '*)
9874       # Test whether the compiler implicitly links with -lc since on some
9875       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9876       # to ld, don't add -lc before -lgcc.
9877       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9878 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9879 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9880   $as_echo_n "(cached) " >&6
9881 else
9882   $RM conftest*
9883         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9884
9885         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9886   (eval $ac_compile) 2>&5
9887   ac_status=$?
9888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9889   test $ac_status = 0; } 2>conftest.err; then
9890           soname=conftest
9891           lib=conftest
9892           libobjs=conftest.$ac_objext
9893           deplibs=
9894           wl=$lt_prog_compiler_wl
9895           pic_flag=$lt_prog_compiler_pic
9896           compiler_flags=-v
9897           linker_flags=-v
9898           verstring=
9899           output_objdir=.
9900           libname=conftest
9901           lt_save_allow_undefined_flag=$allow_undefined_flag
9902           allow_undefined_flag=
9903           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9904   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9905   ac_status=$?
9906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9907   test $ac_status = 0; }
9908           then
9909             lt_cv_archive_cmds_need_lc=no
9910           else
9911             lt_cv_archive_cmds_need_lc=yes
9912           fi
9913           allow_undefined_flag=$lt_save_allow_undefined_flag
9914         else
9915           cat conftest.err 1>&5
9916         fi
9917         $RM conftest*
9918
9919 fi
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9921 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9922       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9923       ;;
9924     esac
9925   fi
9926   ;;
9927 esac
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10081 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10082
10083 if test "$GCC" = yes; then
10084   case $host_os in
10085     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10086     *) lt_awk_arg="/^libraries:/" ;;
10087   esac
10088   case $host_os in
10089     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10090     *) lt_sed_strip_eq="s,=/,/,g" ;;
10091   esac
10092   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10093   case $lt_search_path_spec in
10094   *\;*)
10095     # if the path contains ";" then we assume it to be the separator
10096     # otherwise default to the standard path separator (i.e. ":") - it is
10097     # assumed that no part of a normal pathname contains ";" but that should
10098     # okay in the real world where ";" in dirpaths is itself problematic.
10099     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10100     ;;
10101   *)
10102     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10103     ;;
10104   esac
10105   # Ok, now we have the path, separated by spaces, we can step through it
10106   # and add multilib dir if necessary.
10107   lt_tmp_lt_search_path_spec=
10108   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10109   for lt_sys_path in $lt_search_path_spec; do
10110     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10111       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10112     else
10113       test -d "$lt_sys_path" && \
10114         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10115     fi
10116   done
10117   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10118 BEGIN {RS=" "; FS="/|\n";} {
10119   lt_foo="";
10120   lt_count=0;
10121   for (lt_i = NF; lt_i > 0; lt_i--) {
10122     if ($lt_i != "" && $lt_i != ".") {
10123       if ($lt_i == "..") {
10124         lt_count++;
10125       } else {
10126         if (lt_count == 0) {
10127           lt_foo="/" $lt_i lt_foo;
10128         } else {
10129           lt_count--;
10130         }
10131       }
10132     }
10133   }
10134   if (lt_foo != "") { lt_freq[lt_foo]++; }
10135   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10136 }'`
10137   # AWK program above erroneously prepends '/' to C:/dos/paths
10138   # for these hosts.
10139   case $host_os in
10140     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10141       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10142   esac
10143   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10144 else
10145   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10146 fi
10147 library_names_spec=
10148 libname_spec='lib$name'
10149 soname_spec=
10150 shrext_cmds=".so"
10151 postinstall_cmds=
10152 postuninstall_cmds=
10153 finish_cmds=
10154 finish_eval=
10155 shlibpath_var=
10156 shlibpath_overrides_runpath=unknown
10157 version_type=none
10158 dynamic_linker="$host_os ld.so"
10159 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10160 need_lib_prefix=unknown
10161 hardcode_into_libs=no
10162
10163 # when you set need_version to no, make sure it does not cause -set_version
10164 # flags to be left without arguments
10165 need_version=unknown
10166
10167 case $host_os in
10168 aix3*)
10169   version_type=linux # correct to gnu/linux during the next big refactor
10170   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10171   shlibpath_var=LIBPATH
10172
10173   # AIX 3 has no versioning support, so we append a major version to the name.
10174   soname_spec='${libname}${release}${shared_ext}$major'
10175   ;;
10176
10177 aix[4-9]*)
10178   version_type=linux # correct to gnu/linux during the next big refactor
10179   need_lib_prefix=no
10180   need_version=no
10181   hardcode_into_libs=yes
10182   if test "$host_cpu" = ia64; then
10183     # AIX 5 supports IA64
10184     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10185     shlibpath_var=LD_LIBRARY_PATH
10186   else
10187     # With GCC up to 2.95.x, collect2 would create an import file
10188     # for dependence libraries.  The import file would start with
10189     # the line `#! .'.  This would cause the generated library to
10190     # depend on `.', always an invalid library.  This was fixed in
10191     # development snapshots of GCC prior to 3.0.
10192     case $host_os in
10193       aix4 | aix4.[01] | aix4.[01].*)
10194       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10195            echo ' yes '
10196            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10197         :
10198       else
10199         can_build_shared=no
10200       fi
10201       ;;
10202     esac
10203     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10204     # soname into executable. Probably we can add versioning support to
10205     # collect2, so additional links can be useful in future.
10206     if test "$aix_use_runtimelinking" = yes; then
10207       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10208       # instead of lib<name>.a to let people know that these are not
10209       # typical AIX shared libraries.
10210       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211     else
10212       # We preserve .a as extension for shared libraries through AIX4.2
10213       # and later when we are not doing run time linking.
10214       library_names_spec='${libname}${release}.a $libname.a'
10215       soname_spec='${libname}${release}${shared_ext}$major'
10216     fi
10217     shlibpath_var=LIBPATH
10218   fi
10219   ;;
10220
10221 amigaos*)
10222   case $host_cpu in
10223   powerpc)
10224     # Since July 2007 AmigaOS4 officially supports .so libraries.
10225     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10226     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227     ;;
10228   m68k)
10229     library_names_spec='$libname.ixlibrary $libname.a'
10230     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10231     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'
10232     ;;
10233   esac
10234   ;;
10235
10236 beos*)
10237   library_names_spec='${libname}${shared_ext}'
10238   dynamic_linker="$host_os ld.so"
10239   shlibpath_var=LIBRARY_PATH
10240   ;;
10241
10242 bsdi[45]*)
10243   version_type=linux # correct to gnu/linux during the next big refactor
10244   need_version=no
10245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246   soname_spec='${libname}${release}${shared_ext}$major'
10247   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10248   shlibpath_var=LD_LIBRARY_PATH
10249   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10250   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10251   # the default ld.so.conf also contains /usr/contrib/lib and
10252   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10253   # libtool to hard-code these into programs
10254   ;;
10255
10256 cygwin* | mingw* | pw32* | cegcc*)
10257   version_type=windows
10258   shrext_cmds=".dll"
10259   need_version=no
10260   need_lib_prefix=no
10261
10262   case $GCC,$cc_basename in
10263   yes,*)
10264     # gcc
10265     library_names_spec='$libname.dll.a'
10266     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10267     postinstall_cmds='base_file=`basename \${file}`~
10268       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10269       dldir=$destdir/`dirname \$dlpath`~
10270       test -d \$dldir || mkdir -p \$dldir~
10271       $install_prog $dir/$dlname \$dldir/$dlname~
10272       chmod a+x \$dldir/$dlname~
10273       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10274         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10275       fi'
10276     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10277       dlpath=$dir/\$dldll~
10278        $RM \$dlpath'
10279     shlibpath_overrides_runpath=yes
10280
10281     case $host_os in
10282     cygwin*)
10283       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10284       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10285
10286       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10287       ;;
10288     mingw* | cegcc*)
10289       # MinGW DLLs use traditional 'lib' prefix
10290       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10291       ;;
10292     pw32*)
10293       # pw32 DLLs use 'pw' prefix rather than 'lib'
10294       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10295       ;;
10296     esac
10297     dynamic_linker='Win32 ld.exe'
10298     ;;
10299
10300   *,cl*)
10301     # Native MSVC
10302     libname_spec='$name'
10303     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10304     library_names_spec='${libname}.dll.lib'
10305
10306     case $build_os in
10307     mingw*)
10308       sys_lib_search_path_spec=
10309       lt_save_ifs=$IFS
10310       IFS=';'
10311       for lt_path in $LIB
10312       do
10313         IFS=$lt_save_ifs
10314         # Let DOS variable expansion print the short 8.3 style file name.
10315         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10316         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10317       done
10318       IFS=$lt_save_ifs
10319       # Convert to MSYS style.
10320       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10321       ;;
10322     cygwin*)
10323       # Convert to unix form, then to dos form, then back to unix form
10324       # but this time dos style (no spaces!) so that the unix form looks
10325       # like /cygdrive/c/PROGRA~1:/cygdr...
10326       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10327       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10328       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10329       ;;
10330     *)
10331       sys_lib_search_path_spec="$LIB"
10332       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10333         # It is most probably a Windows format PATH.
10334         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10335       else
10336         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10337       fi
10338       # FIXME: find the short name or the path components, as spaces are
10339       # common. (e.g. "Program Files" -> "PROGRA~1")
10340       ;;
10341     esac
10342
10343     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10344     postinstall_cmds='base_file=`basename \${file}`~
10345       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10346       dldir=$destdir/`dirname \$dlpath`~
10347       test -d \$dldir || mkdir -p \$dldir~
10348       $install_prog $dir/$dlname \$dldir/$dlname'
10349     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10350       dlpath=$dir/\$dldll~
10351        $RM \$dlpath'
10352     shlibpath_overrides_runpath=yes
10353     dynamic_linker='Win32 link.exe'
10354     ;;
10355
10356   *)
10357     # Assume MSVC wrapper
10358     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10359     dynamic_linker='Win32 ld.exe'
10360     ;;
10361   esac
10362   # FIXME: first we should search . and the directory the executable is in
10363   shlibpath_var=PATH
10364   ;;
10365
10366 darwin* | rhapsody*)
10367   dynamic_linker="$host_os dyld"
10368   version_type=darwin
10369   need_lib_prefix=no
10370   need_version=no
10371   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10372   soname_spec='${libname}${release}${major}$shared_ext'
10373   shlibpath_overrides_runpath=yes
10374   shlibpath_var=DYLD_LIBRARY_PATH
10375   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10376
10377   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10378   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10379   ;;
10380
10381 dgux*)
10382   version_type=linux # correct to gnu/linux during the next big refactor
10383   need_lib_prefix=no
10384   need_version=no
10385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10386   soname_spec='${libname}${release}${shared_ext}$major'
10387   shlibpath_var=LD_LIBRARY_PATH
10388   ;;
10389
10390 freebsd* | dragonfly*)
10391   # DragonFly does not have aout.  When/if they implement a new
10392   # versioning mechanism, adjust this.
10393   if test -x /usr/bin/objformat; then
10394     objformat=`/usr/bin/objformat`
10395   else
10396     case $host_os in
10397     freebsd[23].*) objformat=aout ;;
10398     *) objformat=elf ;;
10399     esac
10400   fi
10401   version_type=freebsd-$objformat
10402   case $version_type in
10403     freebsd-elf*)
10404       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10405       need_version=no
10406       need_lib_prefix=no
10407       ;;
10408     freebsd-*)
10409       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10410       need_version=yes
10411       ;;
10412   esac
10413   shlibpath_var=LD_LIBRARY_PATH
10414   case $host_os in
10415   freebsd2.*)
10416     shlibpath_overrides_runpath=yes
10417     ;;
10418   freebsd3.[01]* | freebsdelf3.[01]*)
10419     shlibpath_overrides_runpath=yes
10420     hardcode_into_libs=yes
10421     ;;
10422   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10423   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10424     shlibpath_overrides_runpath=no
10425     hardcode_into_libs=yes
10426     ;;
10427   *) # from 4.6 on, and DragonFly
10428     shlibpath_overrides_runpath=yes
10429     hardcode_into_libs=yes
10430     ;;
10431   esac
10432   ;;
10433
10434 haiku*)
10435   version_type=linux # correct to gnu/linux during the next big refactor
10436   need_lib_prefix=no
10437   need_version=no
10438   dynamic_linker="$host_os runtime_loader"
10439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10440   soname_spec='${libname}${release}${shared_ext}$major'
10441   shlibpath_var=LIBRARY_PATH
10442   shlibpath_overrides_runpath=yes
10443   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10444   hardcode_into_libs=yes
10445   ;;
10446
10447 hpux9* | hpux10* | hpux11*)
10448   # Give a soname corresponding to the major version so that dld.sl refuses to
10449   # link against other versions.
10450   version_type=sunos
10451   need_lib_prefix=no
10452   need_version=no
10453   case $host_cpu in
10454   ia64*)
10455     shrext_cmds='.so'
10456     hardcode_into_libs=yes
10457     dynamic_linker="$host_os dld.so"
10458     shlibpath_var=LD_LIBRARY_PATH
10459     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10460     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461     soname_spec='${libname}${release}${shared_ext}$major'
10462     if test "X$HPUX_IA64_MODE" = X32; then
10463       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10464     else
10465       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10466     fi
10467     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10468     ;;
10469   hppa*64*)
10470     shrext_cmds='.sl'
10471     hardcode_into_libs=yes
10472     dynamic_linker="$host_os dld.sl"
10473     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10474     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10475     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476     soname_spec='${libname}${release}${shared_ext}$major'
10477     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10478     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10479     ;;
10480   *)
10481     shrext_cmds='.sl'
10482     dynamic_linker="$host_os dld.sl"
10483     shlibpath_var=SHLIB_PATH
10484     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
10488   esac
10489   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10490   postinstall_cmds='chmod 555 $lib'
10491   # or fails outright, so override atomically:
10492   install_override_mode=555
10493   ;;
10494
10495 interix[3-9]*)
10496   version_type=linux # correct to gnu/linux during the next big refactor
10497   need_lib_prefix=no
10498   need_version=no
10499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10500   soname_spec='${libname}${release}${shared_ext}$major'
10501   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10502   shlibpath_var=LD_LIBRARY_PATH
10503   shlibpath_overrides_runpath=no
10504   hardcode_into_libs=yes
10505   ;;
10506
10507 irix5* | irix6* | nonstopux*)
10508   case $host_os in
10509     nonstopux*) version_type=nonstopux ;;
10510     *)
10511         if test "$lt_cv_prog_gnu_ld" = yes; then
10512                 version_type=linux # correct to gnu/linux during the next big refactor
10513         else
10514                 version_type=irix
10515         fi ;;
10516   esac
10517   need_lib_prefix=no
10518   need_version=no
10519   soname_spec='${libname}${release}${shared_ext}$major'
10520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10521   case $host_os in
10522   irix5* | nonstopux*)
10523     libsuff= shlibsuff=
10524     ;;
10525   *)
10526     case $LD in # libtool.m4 will add one of these switches to LD
10527     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10528       libsuff= shlibsuff= libmagic=32-bit;;
10529     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10530       libsuff=32 shlibsuff=N32 libmagic=N32;;
10531     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10532       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10533     *) libsuff= shlibsuff= libmagic=never-match;;
10534     esac
10535     ;;
10536   esac
10537   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10538   shlibpath_overrides_runpath=no
10539   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10540   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10541   hardcode_into_libs=yes
10542   ;;
10543
10544 # No shared lib support for Linux oldld, aout, or coff.
10545 linux*oldld* | linux*aout* | linux*coff*)
10546   dynamic_linker=no
10547   ;;
10548
10549 # This must be glibc/ELF.
10550 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10551   version_type=linux # correct to gnu/linux during the next big refactor
10552   need_lib_prefix=no
10553   need_version=no
10554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555   soname_spec='${libname}${release}${shared_ext}$major'
10556   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10557   shlibpath_var=LD_LIBRARY_PATH
10558   shlibpath_overrides_runpath=no
10559
10560   # Some binutils ld are patched to set DT_RUNPATH
10561   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10562   $as_echo_n "(cached) " >&6
10563 else
10564   lt_cv_shlibpath_overrides_runpath=no
10565     save_LDFLAGS=$LDFLAGS
10566     save_libdir=$libdir
10567     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10568          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10569     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h.  */
10571
10572 int
10573 main ()
10574 {
10575
10576   ;
10577   return 0;
10578 }
10579 _ACEOF
10580 if ac_fn_c_try_link "$LINENO"; then :
10581   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10582   lt_cv_shlibpath_overrides_runpath=yes
10583 fi
10584 fi
10585 rm -f core conftest.err conftest.$ac_objext \
10586     conftest$ac_exeext conftest.$ac_ext
10587     LDFLAGS=$save_LDFLAGS
10588     libdir=$save_libdir
10589
10590 fi
10591
10592   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10593
10594   # This implies no fast_install, which is unacceptable.
10595   # Some rework will be needed to allow for fast_install
10596   # before this can be enabled.
10597   hardcode_into_libs=yes
10598
10599   # Append ld.so.conf contents to the search path
10600   if test -f /etc/ld.so.conf; then
10601     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' ' '`
10602     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10603   fi
10604
10605   # We used to test for /lib/ld.so.1 and disable shared libraries on
10606   # powerpc, because MkLinux only supported shared libraries with the
10607   # GNU dynamic linker.  Since this was broken with cross compilers,
10608   # most powerpc-linux boxes support dynamic linking these days and
10609   # people can always --disable-shared, the test was removed, and we
10610   # assume the GNU/Linux dynamic linker is in use.
10611   dynamic_linker='GNU/Linux ld.so'
10612   ;;
10613
10614 netbsdelf*-gnu)
10615   version_type=linux
10616   need_lib_prefix=no
10617   need_version=no
10618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10619   soname_spec='${libname}${release}${shared_ext}$major'
10620   shlibpath_var=LD_LIBRARY_PATH
10621   shlibpath_overrides_runpath=no
10622   hardcode_into_libs=yes
10623   dynamic_linker='NetBSD ld.elf_so'
10624   ;;
10625
10626 netbsd*)
10627   version_type=sunos
10628   need_lib_prefix=no
10629   need_version=no
10630   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10631     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10632     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10633     dynamic_linker='NetBSD (a.out) ld.so'
10634   else
10635     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10636     soname_spec='${libname}${release}${shared_ext}$major'
10637     dynamic_linker='NetBSD ld.elf_so'
10638   fi
10639   shlibpath_var=LD_LIBRARY_PATH
10640   shlibpath_overrides_runpath=yes
10641   hardcode_into_libs=yes
10642   ;;
10643
10644 newsos6)
10645   version_type=linux # correct to gnu/linux during the next big refactor
10646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647   shlibpath_var=LD_LIBRARY_PATH
10648   shlibpath_overrides_runpath=yes
10649   ;;
10650
10651 *nto* | *qnx*)
10652   version_type=qnx
10653   need_lib_prefix=no
10654   need_version=no
10655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656   soname_spec='${libname}${release}${shared_ext}$major'
10657   shlibpath_var=LD_LIBRARY_PATH
10658   shlibpath_overrides_runpath=no
10659   hardcode_into_libs=yes
10660   dynamic_linker='ldqnx.so'
10661   ;;
10662
10663 openbsd*)
10664   version_type=sunos
10665   sys_lib_dlsearch_path_spec="/usr/lib"
10666   need_lib_prefix=no
10667   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10668   case $host_os in
10669     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10670     *)                          need_version=no  ;;
10671   esac
10672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10673   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10674   shlibpath_var=LD_LIBRARY_PATH
10675   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10676     case $host_os in
10677       openbsd2.[89] | openbsd2.[89].*)
10678         shlibpath_overrides_runpath=no
10679         ;;
10680       *)
10681         shlibpath_overrides_runpath=yes
10682         ;;
10683       esac
10684   else
10685     shlibpath_overrides_runpath=yes
10686   fi
10687   ;;
10688
10689 os2*)
10690   libname_spec='$name'
10691   shrext_cmds=".dll"
10692   need_lib_prefix=no
10693   library_names_spec='$libname${shared_ext} $libname.a'
10694   dynamic_linker='OS/2 ld.exe'
10695   shlibpath_var=LIBPATH
10696   ;;
10697
10698 osf3* | osf4* | osf5*)
10699   version_type=osf
10700   need_lib_prefix=no
10701   need_version=no
10702   soname_spec='${libname}${release}${shared_ext}$major'
10703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10704   shlibpath_var=LD_LIBRARY_PATH
10705   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10706   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10707   ;;
10708
10709 rdos*)
10710   dynamic_linker=no
10711   ;;
10712
10713 solaris*)
10714   version_type=linux # correct to gnu/linux during the next big refactor
10715   need_lib_prefix=no
10716   need_version=no
10717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718   soname_spec='${libname}${release}${shared_ext}$major'
10719   shlibpath_var=LD_LIBRARY_PATH
10720   shlibpath_overrides_runpath=yes
10721   hardcode_into_libs=yes
10722   # ldd complains unless libraries are executable
10723   postinstall_cmds='chmod +x $lib'
10724   ;;
10725
10726 sunos4*)
10727   version_type=sunos
10728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10729   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10730   shlibpath_var=LD_LIBRARY_PATH
10731   shlibpath_overrides_runpath=yes
10732   if test "$with_gnu_ld" = yes; then
10733     need_lib_prefix=no
10734   fi
10735   need_version=yes
10736   ;;
10737
10738 sysv4 | sysv4.3*)
10739   version_type=linux # correct to gnu/linux during the next big refactor
10740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741   soname_spec='${libname}${release}${shared_ext}$major'
10742   shlibpath_var=LD_LIBRARY_PATH
10743   case $host_vendor in
10744     sni)
10745       shlibpath_overrides_runpath=no
10746       need_lib_prefix=no
10747       runpath_var=LD_RUN_PATH
10748       ;;
10749     siemens)
10750       need_lib_prefix=no
10751       ;;
10752     motorola)
10753       need_lib_prefix=no
10754       need_version=no
10755       shlibpath_overrides_runpath=no
10756       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10757       ;;
10758   esac
10759   ;;
10760
10761 sysv4*MP*)
10762   if test -d /usr/nec ;then
10763     version_type=linux # correct to gnu/linux during the next big refactor
10764     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10765     soname_spec='$libname${shared_ext}.$major'
10766     shlibpath_var=LD_LIBRARY_PATH
10767   fi
10768   ;;
10769
10770 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10771   version_type=freebsd-elf
10772   need_lib_prefix=no
10773   need_version=no
10774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10775   soname_spec='${libname}${release}${shared_ext}$major'
10776   shlibpath_var=LD_LIBRARY_PATH
10777   shlibpath_overrides_runpath=yes
10778   hardcode_into_libs=yes
10779   if test "$with_gnu_ld" = yes; then
10780     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10781   else
10782     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10783     case $host_os in
10784       sco3.2v5*)
10785         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10786         ;;
10787     esac
10788   fi
10789   sys_lib_dlsearch_path_spec='/usr/lib'
10790   ;;
10791
10792 tpf*)
10793   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10794   version_type=linux # correct to gnu/linux during the next big refactor
10795   need_lib_prefix=no
10796   need_version=no
10797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798   shlibpath_var=LD_LIBRARY_PATH
10799   shlibpath_overrides_runpath=no
10800   hardcode_into_libs=yes
10801   ;;
10802
10803 uts4*)
10804   version_type=linux # correct to gnu/linux during the next big refactor
10805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806   soname_spec='${libname}${release}${shared_ext}$major'
10807   shlibpath_var=LD_LIBRARY_PATH
10808   ;;
10809
10810 *)
10811   dynamic_linker=no
10812   ;;
10813 esac
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10815 $as_echo "$dynamic_linker" >&6; }
10816 test "$dynamic_linker" = no && can_build_shared=no
10817
10818 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10819 if test "$GCC" = yes; then
10820   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10821 fi
10822
10823 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10824   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10825 fi
10826 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10827   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10828 fi
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10922 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10923 hardcode_action=
10924 if test -n "$hardcode_libdir_flag_spec" ||
10925    test -n "$runpath_var" ||
10926    test "X$hardcode_automatic" = "Xyes" ; then
10927
10928   # We can hardcode non-existent directories.
10929   if test "$hardcode_direct" != no &&
10930      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10931      # have to relink, otherwise we might link with an installed library
10932      # when we should be linking with a yet-to-be-installed one
10933      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10934      test "$hardcode_minus_L" != no; then
10935     # Linking always hardcodes the temporary library directory.
10936     hardcode_action=relink
10937   else
10938     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10939     hardcode_action=immediate
10940   fi
10941 else
10942   # We cannot hardcode anything, or else we can only hardcode existing
10943   # directories.
10944   hardcode_action=unsupported
10945 fi
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10947 $as_echo "$hardcode_action" >&6; }
10948
10949 if test "$hardcode_action" = relink ||
10950    test "$inherit_rpath" = yes; then
10951   # Fast installation is not supported
10952   enable_fast_install=no
10953 elif test "$shlibpath_overrides_runpath" = yes ||
10954      test "$enable_shared" = no; then
10955   # Fast installation is not necessary
10956   enable_fast_install=needless
10957 fi
10958
10959
10960
10961
10962
10963
10964   if test "x$enable_dlopen" != xyes; then
10965   enable_dlopen=unknown
10966   enable_dlopen_self=unknown
10967   enable_dlopen_self_static=unknown
10968 else
10969   lt_cv_dlopen=no
10970   lt_cv_dlopen_libs=
10971
10972   case $host_os in
10973   beos*)
10974     lt_cv_dlopen="load_add_on"
10975     lt_cv_dlopen_libs=
10976     lt_cv_dlopen_self=yes
10977     ;;
10978
10979   mingw* | pw32* | cegcc*)
10980     lt_cv_dlopen="LoadLibrary"
10981     lt_cv_dlopen_libs=
10982     ;;
10983
10984   cygwin*)
10985     lt_cv_dlopen="dlopen"
10986     lt_cv_dlopen_libs=
10987     ;;
10988
10989   darwin*)
10990   # if libdl is installed we need to link against it
10991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10992 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10993 if ${ac_cv_lib_dl_dlopen+:} false; then :
10994   $as_echo_n "(cached) " >&6
10995 else
10996   ac_check_lib_save_LIBS=$LIBS
10997 LIBS="-ldl  $LIBS"
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h.  */
11000
11001 /* Override any GCC internal prototype to avoid an error.
11002    Use char because int might match the return type of a GCC
11003    builtin and then its argument prototype would still apply.  */
11004 #ifdef __cplusplus
11005 extern "C"
11006 #endif
11007 char dlopen ();
11008 int
11009 main ()
11010 {
11011 return dlopen ();
11012   ;
11013   return 0;
11014 }
11015 _ACEOF
11016 if ac_fn_c_try_link "$LINENO"; then :
11017   ac_cv_lib_dl_dlopen=yes
11018 else
11019   ac_cv_lib_dl_dlopen=no
11020 fi
11021 rm -f core conftest.err conftest.$ac_objext \
11022     conftest$ac_exeext conftest.$ac_ext
11023 LIBS=$ac_check_lib_save_LIBS
11024 fi
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11026 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11027 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11028   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11029 else
11030
11031     lt_cv_dlopen="dyld"
11032     lt_cv_dlopen_libs=
11033     lt_cv_dlopen_self=yes
11034
11035 fi
11036
11037     ;;
11038
11039   *)
11040     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11041 if test "x$ac_cv_func_shl_load" = xyes; then :
11042   lt_cv_dlopen="shl_load"
11043 else
11044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11045 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11046 if ${ac_cv_lib_dld_shl_load+:} false; then :
11047   $as_echo_n "(cached) " >&6
11048 else
11049   ac_check_lib_save_LIBS=$LIBS
11050 LIBS="-ldld  $LIBS"
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h.  */
11053
11054 /* Override any GCC internal prototype to avoid an error.
11055    Use char because int might match the return type of a GCC
11056    builtin and then its argument prototype would still apply.  */
11057 #ifdef __cplusplus
11058 extern "C"
11059 #endif
11060 char shl_load ();
11061 int
11062 main ()
11063 {
11064 return shl_load ();
11065   ;
11066   return 0;
11067 }
11068 _ACEOF
11069 if ac_fn_c_try_link "$LINENO"; then :
11070   ac_cv_lib_dld_shl_load=yes
11071 else
11072   ac_cv_lib_dld_shl_load=no
11073 fi
11074 rm -f core conftest.err conftest.$ac_objext \
11075     conftest$ac_exeext conftest.$ac_ext
11076 LIBS=$ac_check_lib_save_LIBS
11077 fi
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11079 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11080 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11081   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11082 else
11083   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11084 if test "x$ac_cv_func_dlopen" = xyes; then :
11085   lt_cv_dlopen="dlopen"
11086 else
11087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11088 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11089 if ${ac_cv_lib_dl_dlopen+:} false; then :
11090   $as_echo_n "(cached) " >&6
11091 else
11092   ac_check_lib_save_LIBS=$LIBS
11093 LIBS="-ldl  $LIBS"
11094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11095 /* end confdefs.h.  */
11096
11097 /* Override any GCC internal prototype to avoid an error.
11098    Use char because int might match the return type of a GCC
11099    builtin and then its argument prototype would still apply.  */
11100 #ifdef __cplusplus
11101 extern "C"
11102 #endif
11103 char dlopen ();
11104 int
11105 main ()
11106 {
11107 return dlopen ();
11108   ;
11109   return 0;
11110 }
11111 _ACEOF
11112 if ac_fn_c_try_link "$LINENO"; then :
11113   ac_cv_lib_dl_dlopen=yes
11114 else
11115   ac_cv_lib_dl_dlopen=no
11116 fi
11117 rm -f core conftest.err conftest.$ac_objext \
11118     conftest$ac_exeext conftest.$ac_ext
11119 LIBS=$ac_check_lib_save_LIBS
11120 fi
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11122 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11123 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11124   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11125 else
11126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11127 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11128 if ${ac_cv_lib_svld_dlopen+:} false; then :
11129   $as_echo_n "(cached) " >&6
11130 else
11131   ac_check_lib_save_LIBS=$LIBS
11132 LIBS="-lsvld  $LIBS"
11133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h.  */
11135
11136 /* Override any GCC internal prototype to avoid an error.
11137    Use char because int might match the return type of a GCC
11138    builtin and then its argument prototype would still apply.  */
11139 #ifdef __cplusplus
11140 extern "C"
11141 #endif
11142 char dlopen ();
11143 int
11144 main ()
11145 {
11146 return dlopen ();
11147   ;
11148   return 0;
11149 }
11150 _ACEOF
11151 if ac_fn_c_try_link "$LINENO"; then :
11152   ac_cv_lib_svld_dlopen=yes
11153 else
11154   ac_cv_lib_svld_dlopen=no
11155 fi
11156 rm -f core conftest.err conftest.$ac_objext \
11157     conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS
11159 fi
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11161 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11162 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11163   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11164 else
11165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11166 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11167 if ${ac_cv_lib_dld_dld_link+:} false; then :
11168   $as_echo_n "(cached) " >&6
11169 else
11170   ac_check_lib_save_LIBS=$LIBS
11171 LIBS="-ldld  $LIBS"
11172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173 /* end confdefs.h.  */
11174
11175 /* Override any GCC internal prototype to avoid an error.
11176    Use char because int might match the return type of a GCC
11177    builtin and then its argument prototype would still apply.  */
11178 #ifdef __cplusplus
11179 extern "C"
11180 #endif
11181 char dld_link ();
11182 int
11183 main ()
11184 {
11185 return dld_link ();
11186   ;
11187   return 0;
11188 }
11189 _ACEOF
11190 if ac_fn_c_try_link "$LINENO"; then :
11191   ac_cv_lib_dld_dld_link=yes
11192 else
11193   ac_cv_lib_dld_dld_link=no
11194 fi
11195 rm -f core conftest.err conftest.$ac_objext \
11196     conftest$ac_exeext conftest.$ac_ext
11197 LIBS=$ac_check_lib_save_LIBS
11198 fi
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11200 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11201 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11202   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11203 fi
11204
11205
11206 fi
11207
11208
11209 fi
11210
11211
11212 fi
11213
11214
11215 fi
11216
11217
11218 fi
11219
11220     ;;
11221   esac
11222
11223   if test "x$lt_cv_dlopen" != xno; then
11224     enable_dlopen=yes
11225   else
11226     enable_dlopen=no
11227   fi
11228
11229   case $lt_cv_dlopen in
11230   dlopen)
11231     save_CPPFLAGS="$CPPFLAGS"
11232     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11233
11234     save_LDFLAGS="$LDFLAGS"
11235     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11236
11237     save_LIBS="$LIBS"
11238     LIBS="$lt_cv_dlopen_libs $LIBS"
11239
11240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11241 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11242 if ${lt_cv_dlopen_self+:} false; then :
11243   $as_echo_n "(cached) " >&6
11244 else
11245           if test "$cross_compiling" = yes; then :
11246   lt_cv_dlopen_self=cross
11247 else
11248   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11249   lt_status=$lt_dlunknown
11250   cat > conftest.$ac_ext <<_LT_EOF
11251 #line $LINENO "configure"
11252 #include "confdefs.h"
11253
11254 #if HAVE_DLFCN_H
11255 #include <dlfcn.h>
11256 #endif
11257
11258 #include <stdio.h>
11259
11260 #ifdef RTLD_GLOBAL
11261 #  define LT_DLGLOBAL           RTLD_GLOBAL
11262 #else
11263 #  ifdef DL_GLOBAL
11264 #    define LT_DLGLOBAL         DL_GLOBAL
11265 #  else
11266 #    define LT_DLGLOBAL         0
11267 #  endif
11268 #endif
11269
11270 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11271    find out it does not work in some platform. */
11272 #ifndef LT_DLLAZY_OR_NOW
11273 #  ifdef RTLD_LAZY
11274 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11275 #  else
11276 #    ifdef DL_LAZY
11277 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11278 #    else
11279 #      ifdef RTLD_NOW
11280 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11281 #      else
11282 #        ifdef DL_NOW
11283 #          define LT_DLLAZY_OR_NOW      DL_NOW
11284 #        else
11285 #          define LT_DLLAZY_OR_NOW      0
11286 #        endif
11287 #      endif
11288 #    endif
11289 #  endif
11290 #endif
11291
11292 /* When -fvisbility=hidden is used, assume the code has been annotated
11293    correspondingly for the symbols needed.  */
11294 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11295 int fnord () __attribute__((visibility("default")));
11296 #endif
11297
11298 int fnord () { return 42; }
11299 int main ()
11300 {
11301   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11302   int status = $lt_dlunknown;
11303
11304   if (self)
11305     {
11306       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11307       else
11308         {
11309           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11310           else puts (dlerror ());
11311         }
11312       /* dlclose (self); */
11313     }
11314   else
11315     puts (dlerror ());
11316
11317   return status;
11318 }
11319 _LT_EOF
11320   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11321   (eval $ac_link) 2>&5
11322   ac_status=$?
11323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11324   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11325     (./conftest; exit; ) >&5 2>/dev/null
11326     lt_status=$?
11327     case x$lt_status in
11328       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11329       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11330       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11331     esac
11332   else :
11333     # compilation failed
11334     lt_cv_dlopen_self=no
11335   fi
11336 fi
11337 rm -fr conftest*
11338
11339
11340 fi
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11342 $as_echo "$lt_cv_dlopen_self" >&6; }
11343
11344     if test "x$lt_cv_dlopen_self" = xyes; then
11345       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11346       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11347 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11348 if ${lt_cv_dlopen_self_static+:} false; then :
11349   $as_echo_n "(cached) " >&6
11350 else
11351           if test "$cross_compiling" = yes; then :
11352   lt_cv_dlopen_self_static=cross
11353 else
11354   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11355   lt_status=$lt_dlunknown
11356   cat > conftest.$ac_ext <<_LT_EOF
11357 #line $LINENO "configure"
11358 #include "confdefs.h"
11359
11360 #if HAVE_DLFCN_H
11361 #include <dlfcn.h>
11362 #endif
11363
11364 #include <stdio.h>
11365
11366 #ifdef RTLD_GLOBAL
11367 #  define LT_DLGLOBAL           RTLD_GLOBAL
11368 #else
11369 #  ifdef DL_GLOBAL
11370 #    define LT_DLGLOBAL         DL_GLOBAL
11371 #  else
11372 #    define LT_DLGLOBAL         0
11373 #  endif
11374 #endif
11375
11376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11377    find out it does not work in some platform. */
11378 #ifndef LT_DLLAZY_OR_NOW
11379 #  ifdef RTLD_LAZY
11380 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11381 #  else
11382 #    ifdef DL_LAZY
11383 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11384 #    else
11385 #      ifdef RTLD_NOW
11386 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11387 #      else
11388 #        ifdef DL_NOW
11389 #          define LT_DLLAZY_OR_NOW      DL_NOW
11390 #        else
11391 #          define LT_DLLAZY_OR_NOW      0
11392 #        endif
11393 #      endif
11394 #    endif
11395 #  endif
11396 #endif
11397
11398 /* When -fvisbility=hidden is used, assume the code has been annotated
11399    correspondingly for the symbols needed.  */
11400 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11401 int fnord () __attribute__((visibility("default")));
11402 #endif
11403
11404 int fnord () { return 42; }
11405 int main ()
11406 {
11407   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11408   int status = $lt_dlunknown;
11409
11410   if (self)
11411     {
11412       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11413       else
11414         {
11415           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11416           else puts (dlerror ());
11417         }
11418       /* dlclose (self); */
11419     }
11420   else
11421     puts (dlerror ());
11422
11423   return status;
11424 }
11425 _LT_EOF
11426   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11427   (eval $ac_link) 2>&5
11428   ac_status=$?
11429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11430   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11431     (./conftest; exit; ) >&5 2>/dev/null
11432     lt_status=$?
11433     case x$lt_status in
11434       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11435       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11436       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11437     esac
11438   else :
11439     # compilation failed
11440     lt_cv_dlopen_self_static=no
11441   fi
11442 fi
11443 rm -fr conftest*
11444
11445
11446 fi
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11448 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11449     fi
11450
11451     CPPFLAGS="$save_CPPFLAGS"
11452     LDFLAGS="$save_LDFLAGS"
11453     LIBS="$save_LIBS"
11454     ;;
11455   esac
11456
11457   case $lt_cv_dlopen_self in
11458   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11459   *) enable_dlopen_self=unknown ;;
11460   esac
11461
11462   case $lt_cv_dlopen_self_static in
11463   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11464   *) enable_dlopen_self_static=unknown ;;
11465   esac
11466 fi
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484 striplib=
11485 old_striplib=
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11487 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11488 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11489   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11490   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11492 $as_echo "yes" >&6; }
11493 else
11494 # FIXME - insert some real tests, host_os isn't really good enough
11495   case $host_os in
11496   darwin*)
11497     if test -n "$STRIP" ; then
11498       striplib="$STRIP -x"
11499       old_striplib="$STRIP -S"
11500       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11501 $as_echo "yes" >&6; }
11502     else
11503       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11505     fi
11506     ;;
11507   *)
11508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 $as_echo "no" >&6; }
11510     ;;
11511   esac
11512 fi
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525   # Report which library types will actually be built
11526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11527 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11529 $as_echo "$can_build_shared" >&6; }
11530
11531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11532 $as_echo_n "checking whether to build shared libraries... " >&6; }
11533   test "$can_build_shared" = "no" && enable_shared=no
11534
11535   # On AIX, shared libraries and static libraries use the same namespace, and
11536   # are all built from PIC.
11537   case $host_os in
11538   aix3*)
11539     test "$enable_shared" = yes && enable_static=no
11540     if test -n "$RANLIB"; then
11541       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11542       postinstall_cmds='$RANLIB $lib'
11543     fi
11544     ;;
11545
11546   aix[4-9]*)
11547     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11548       test "$enable_shared" = yes && enable_static=no
11549     fi
11550     ;;
11551   esac
11552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11553 $as_echo "$enable_shared" >&6; }
11554
11555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11556 $as_echo_n "checking whether to build static libraries... " >&6; }
11557   # Make sure either enable_shared or enable_static is yes.
11558   test "$enable_shared" = yes || enable_static=yes
11559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11560 $as_echo "$enable_static" >&6; }
11561
11562
11563
11564
11565 fi
11566 ac_ext=c
11567 ac_cpp='$CPP $CPPFLAGS'
11568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11571
11572 CC="$lt_save_CC"
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588         ac_config_commands="$ac_config_commands libtool"
11589
11590
11591
11592
11593 # Only expand once:
11594
11595
11596
11597 ac_ext=c
11598 ac_cpp='$CPP $CPPFLAGS'
11599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11602 if test -n "$ac_tool_prefix"; then
11603   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11606 $as_echo_n "checking for $ac_word... " >&6; }
11607 if ${ac_cv_prog_CC+:} false; then :
11608   $as_echo_n "(cached) " >&6
11609 else
11610   if test -n "$CC"; then
11611   ac_cv_prog_CC="$CC" # Let the user override the test.
11612 else
11613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614 for as_dir in $PATH
11615 do
11616   IFS=$as_save_IFS
11617   test -z "$as_dir" && as_dir=.
11618     for ac_exec_ext in '' $ac_executable_extensions; do
11619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11620     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11622     break 2
11623   fi
11624 done
11625   done
11626 IFS=$as_save_IFS
11627
11628 fi
11629 fi
11630 CC=$ac_cv_prog_CC
11631 if test -n "$CC"; then
11632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11633 $as_echo "$CC" >&6; }
11634 else
11635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636 $as_echo "no" >&6; }
11637 fi
11638
11639
11640 fi
11641 if test -z "$ac_cv_prog_CC"; then
11642   ac_ct_CC=$CC
11643   # Extract the first word of "gcc", so it can be a program name with args.
11644 set dummy gcc; ac_word=$2
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11646 $as_echo_n "checking for $ac_word... " >&6; }
11647 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11648   $as_echo_n "(cached) " >&6
11649 else
11650   if test -n "$ac_ct_CC"; then
11651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11652 else
11653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11654 for as_dir in $PATH
11655 do
11656   IFS=$as_save_IFS
11657   test -z "$as_dir" && as_dir=.
11658     for ac_exec_ext in '' $ac_executable_extensions; do
11659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11660     ac_cv_prog_ac_ct_CC="gcc"
11661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11662     break 2
11663   fi
11664 done
11665   done
11666 IFS=$as_save_IFS
11667
11668 fi
11669 fi
11670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11671 if test -n "$ac_ct_CC"; then
11672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11673 $as_echo "$ac_ct_CC" >&6; }
11674 else
11675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676 $as_echo "no" >&6; }
11677 fi
11678
11679   if test "x$ac_ct_CC" = x; then
11680     CC=""
11681   else
11682     case $cross_compiling:$ac_tool_warned in
11683 yes:)
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11686 ac_tool_warned=yes ;;
11687 esac
11688     CC=$ac_ct_CC
11689   fi
11690 else
11691   CC="$ac_cv_prog_CC"
11692 fi
11693
11694 if test -z "$CC"; then
11695           if test -n "$ac_tool_prefix"; then
11696     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11697 set dummy ${ac_tool_prefix}cc; ac_word=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699 $as_echo_n "checking for $ac_word... " >&6; }
11700 if ${ac_cv_prog_CC+:} false; then :
11701   $as_echo_n "(cached) " >&6
11702 else
11703   if test -n "$CC"; then
11704   ac_cv_prog_CC="$CC" # Let the user override the test.
11705 else
11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11708 do
11709   IFS=$as_save_IFS
11710   test -z "$as_dir" && as_dir=.
11711     for ac_exec_ext in '' $ac_executable_extensions; do
11712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713     ac_cv_prog_CC="${ac_tool_prefix}cc"
11714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715     break 2
11716   fi
11717 done
11718   done
11719 IFS=$as_save_IFS
11720
11721 fi
11722 fi
11723 CC=$ac_cv_prog_CC
11724 if test -n "$CC"; then
11725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11726 $as_echo "$CC" >&6; }
11727 else
11728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729 $as_echo "no" >&6; }
11730 fi
11731
11732
11733   fi
11734 fi
11735 if test -z "$CC"; then
11736   # Extract the first word of "cc", so it can be a program name with args.
11737 set dummy cc; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if ${ac_cv_prog_CC+:} false; then :
11741   $as_echo_n "(cached) " >&6
11742 else
11743   if test -n "$CC"; then
11744   ac_cv_prog_CC="$CC" # Let the user override the test.
11745 else
11746   ac_prog_rejected=no
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11749 do
11750   IFS=$as_save_IFS
11751   test -z "$as_dir" && as_dir=.
11752     for ac_exec_ext in '' $ac_executable_extensions; do
11753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11755        ac_prog_rejected=yes
11756        continue
11757      fi
11758     ac_cv_prog_CC="cc"
11759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760     break 2
11761   fi
11762 done
11763   done
11764 IFS=$as_save_IFS
11765
11766 if test $ac_prog_rejected = yes; then
11767   # We found a bogon in the path, so make sure we never use it.
11768   set dummy $ac_cv_prog_CC
11769   shift
11770   if test $# != 0; then
11771     # We chose a different compiler from the bogus one.
11772     # However, it has the same basename, so the bogon will be chosen
11773     # first if we set CC to just the basename; use the full file name.
11774     shift
11775     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11776   fi
11777 fi
11778 fi
11779 fi
11780 CC=$ac_cv_prog_CC
11781 if test -n "$CC"; then
11782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11783 $as_echo "$CC" >&6; }
11784 else
11785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11787 fi
11788
11789
11790 fi
11791 if test -z "$CC"; then
11792   if test -n "$ac_tool_prefix"; then
11793   for ac_prog in cl.exe
11794   do
11795     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11798 $as_echo_n "checking for $ac_word... " >&6; }
11799 if ${ac_cv_prog_CC+:} false; then :
11800   $as_echo_n "(cached) " >&6
11801 else
11802   if test -n "$CC"; then
11803   ac_cv_prog_CC="$CC" # Let the user override the test.
11804 else
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11807 do
11808   IFS=$as_save_IFS
11809   test -z "$as_dir" && as_dir=.
11810     for ac_exec_ext in '' $ac_executable_extensions; do
11811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11812     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11814     break 2
11815   fi
11816 done
11817   done
11818 IFS=$as_save_IFS
11819
11820 fi
11821 fi
11822 CC=$ac_cv_prog_CC
11823 if test -n "$CC"; then
11824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11825 $as_echo "$CC" >&6; }
11826 else
11827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11829 fi
11830
11831
11832     test -n "$CC" && break
11833   done
11834 fi
11835 if test -z "$CC"; then
11836   ac_ct_CC=$CC
11837   for ac_prog in cl.exe
11838 do
11839   # Extract the first word of "$ac_prog", so it can be a program name with args.
11840 set dummy $ac_prog; ac_word=$2
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11842 $as_echo_n "checking for $ac_word... " >&6; }
11843 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11844   $as_echo_n "(cached) " >&6
11845 else
11846   if test -n "$ac_ct_CC"; then
11847   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11848 else
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11851 do
11852   IFS=$as_save_IFS
11853   test -z "$as_dir" && as_dir=.
11854     for ac_exec_ext in '' $ac_executable_extensions; do
11855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11856     ac_cv_prog_ac_ct_CC="$ac_prog"
11857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11858     break 2
11859   fi
11860 done
11861   done
11862 IFS=$as_save_IFS
11863
11864 fi
11865 fi
11866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11867 if test -n "$ac_ct_CC"; then
11868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11869 $as_echo "$ac_ct_CC" >&6; }
11870 else
11871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11873 fi
11874
11875
11876   test -n "$ac_ct_CC" && break
11877 done
11878
11879   if test "x$ac_ct_CC" = x; then
11880     CC=""
11881   else
11882     case $cross_compiling:$ac_tool_warned in
11883 yes:)
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11886 ac_tool_warned=yes ;;
11887 esac
11888     CC=$ac_ct_CC
11889   fi
11890 fi
11891
11892 fi
11893
11894
11895 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11897 as_fn_error $? "no acceptable C compiler found in \$PATH
11898 See \`config.log' for more details" "$LINENO" 5; }
11899
11900 # Provide some information about the compiler.
11901 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11902 set X $ac_compile
11903 ac_compiler=$2
11904 for ac_option in --version -v -V -qversion; do
11905   { { ac_try="$ac_compiler $ac_option >&5"
11906 case "(($ac_try" in
11907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908   *) ac_try_echo=$ac_try;;
11909 esac
11910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11911 $as_echo "$ac_try_echo"; } >&5
11912   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11913   ac_status=$?
11914   if test -s conftest.err; then
11915     sed '10a\
11916 ... rest of stderr output deleted ...
11917          10q' conftest.err >conftest.er1
11918     cat conftest.er1 >&5
11919   fi
11920   rm -f conftest.er1 conftest.err
11921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11922   test $ac_status = 0; }
11923 done
11924
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11926 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11927 if ${ac_cv_c_compiler_gnu+:} false; then :
11928   $as_echo_n "(cached) " >&6
11929 else
11930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h.  */
11932
11933 int
11934 main ()
11935 {
11936 #ifndef __GNUC__
11937        choke me
11938 #endif
11939
11940   ;
11941   return 0;
11942 }
11943 _ACEOF
11944 if ac_fn_c_try_compile "$LINENO"; then :
11945   ac_compiler_gnu=yes
11946 else
11947   ac_compiler_gnu=no
11948 fi
11949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11950 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11951
11952 fi
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11954 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11955 if test $ac_compiler_gnu = yes; then
11956   GCC=yes
11957 else
11958   GCC=
11959 fi
11960 ac_test_CFLAGS=${CFLAGS+set}
11961 ac_save_CFLAGS=$CFLAGS
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11963 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11964 if ${ac_cv_prog_cc_g+:} false; then :
11965   $as_echo_n "(cached) " >&6
11966 else
11967   ac_save_c_werror_flag=$ac_c_werror_flag
11968    ac_c_werror_flag=yes
11969    ac_cv_prog_cc_g=no
11970    CFLAGS="-g"
11971    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h.  */
11973
11974 int
11975 main ()
11976 {
11977
11978   ;
11979   return 0;
11980 }
11981 _ACEOF
11982 if ac_fn_c_try_compile "$LINENO"; then :
11983   ac_cv_prog_cc_g=yes
11984 else
11985   CFLAGS=""
11986       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987 /* end confdefs.h.  */
11988
11989 int
11990 main ()
11991 {
11992
11993   ;
11994   return 0;
11995 }
11996 _ACEOF
11997 if ac_fn_c_try_compile "$LINENO"; then :
11998
11999 else
12000   ac_c_werror_flag=$ac_save_c_werror_flag
12001          CFLAGS="-g"
12002          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h.  */
12004
12005 int
12006 main ()
12007 {
12008
12009   ;
12010   return 0;
12011 }
12012 _ACEOF
12013 if ac_fn_c_try_compile "$LINENO"; then :
12014   ac_cv_prog_cc_g=yes
12015 fi
12016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12017 fi
12018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019 fi
12020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12021    ac_c_werror_flag=$ac_save_c_werror_flag
12022 fi
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12024 $as_echo "$ac_cv_prog_cc_g" >&6; }
12025 if test "$ac_test_CFLAGS" = set; then
12026   CFLAGS=$ac_save_CFLAGS
12027 elif test $ac_cv_prog_cc_g = yes; then
12028   if test "$GCC" = yes; then
12029     CFLAGS="-g -O2"
12030   else
12031     CFLAGS="-g"
12032   fi
12033 else
12034   if test "$GCC" = yes; then
12035     CFLAGS="-O2"
12036   else
12037     CFLAGS=
12038   fi
12039 fi
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12041 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12042 if ${ac_cv_prog_cc_c89+:} false; then :
12043   $as_echo_n "(cached) " >&6
12044 else
12045   ac_cv_prog_cc_c89=no
12046 ac_save_CC=$CC
12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h.  */
12049 #include <stdarg.h>
12050 #include <stdio.h>
12051 struct stat;
12052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12053 struct buf { int x; };
12054 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12055 static char *e (p, i)
12056      char **p;
12057      int i;
12058 {
12059   return p[i];
12060 }
12061 static char *f (char * (*g) (char **, int), char **p, ...)
12062 {
12063   char *s;
12064   va_list v;
12065   va_start (v,p);
12066   s = g (p, va_arg (v,int));
12067   va_end (v);
12068   return s;
12069 }
12070
12071 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12072    function prototypes and stuff, but not '\xHH' hex character constants.
12073    These don't provoke an error unfortunately, instead are silently treated
12074    as 'x'.  The following induces an error, until -std is added to get
12075    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12076    array size at least.  It's necessary to write '\x00'==0 to get something
12077    that's true only with -std.  */
12078 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12079
12080 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12081    inside strings and character constants.  */
12082 #define FOO(x) 'x'
12083 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12084
12085 int test (int i, double x);
12086 struct s1 {int (*f) (int a);};
12087 struct s2 {int (*f) (double a);};
12088 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12089 int argc;
12090 char **argv;
12091 int
12092 main ()
12093 {
12094 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12095   ;
12096   return 0;
12097 }
12098 _ACEOF
12099 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12100         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12101 do
12102   CC="$ac_save_CC $ac_arg"
12103   if ac_fn_c_try_compile "$LINENO"; then :
12104   ac_cv_prog_cc_c89=$ac_arg
12105 fi
12106 rm -f core conftest.err conftest.$ac_objext
12107   test "x$ac_cv_prog_cc_c89" != "xno" && break
12108 done
12109 rm -f conftest.$ac_ext
12110 CC=$ac_save_CC
12111
12112 fi
12113 # AC_CACHE_VAL
12114 case "x$ac_cv_prog_cc_c89" in
12115   x)
12116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12117 $as_echo "none needed" >&6; } ;;
12118   xno)
12119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12120 $as_echo "unsupported" >&6; } ;;
12121   *)
12122     CC="$CC $ac_cv_prog_cc_c89"
12123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12124 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12125 esac
12126 if test "x$ac_cv_prog_cc_c89" != xno; then :
12127
12128 fi
12129
12130 ac_ext=c
12131 ac_cpp='$CPP $CPPFLAGS'
12132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12135
12136 ac_ext=c
12137 ac_cpp='$CPP $CPPFLAGS'
12138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12142 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12143 if ${am_cv_prog_cc_c_o+:} false; then :
12144   $as_echo_n "(cached) " >&6
12145 else
12146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h.  */
12148
12149 int
12150 main ()
12151 {
12152
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157   # Make sure it works both with $CC and with simple cc.
12158   # Following AC_PROG_CC_C_O, we do the test twice because some
12159   # compilers refuse to overwrite an existing .o file with -o,
12160   # though they will create one.
12161   am_cv_prog_cc_c_o=yes
12162   for am_i in 1 2; do
12163     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12164    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12165    ac_status=$?
12166    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167    (exit $ac_status); } \
12168          && test -f conftest2.$ac_objext; then
12169       : OK
12170     else
12171       am_cv_prog_cc_c_o=no
12172       break
12173     fi
12174   done
12175   rm -f core conftest*
12176   unset am_i
12177 fi
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12179 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12180 if test "$am_cv_prog_cc_c_o" != yes; then
12181    # Losing compiler, so override with the script.
12182    # FIXME: It is wrong to rewrite CC.
12183    # But if we don't then we get into trouble of one sort or another.
12184    # A longer-term fix would be to have automake use am__CC in this case,
12185    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12186    CC="$am_aux_dir/compile $CC"
12187 fi
12188 ac_ext=c
12189 ac_cpp='$CPP $CPPFLAGS'
12190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12203         if test -n "$ac_tool_prefix"; then
12204   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12205 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12207 $as_echo_n "checking for $ac_word... " >&6; }
12208 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12209   $as_echo_n "(cached) " >&6
12210 else
12211   case $PKG_CONFIG in
12212   [\\/]* | ?:[\\/]*)
12213   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12214   ;;
12215   *)
12216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12217 for as_dir in $PATH
12218 do
12219   IFS=$as_save_IFS
12220   test -z "$as_dir" && as_dir=.
12221     for ac_exec_ext in '' $ac_executable_extensions; do
12222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12223     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12225     break 2
12226   fi
12227 done
12228   done
12229 IFS=$as_save_IFS
12230
12231   ;;
12232 esac
12233 fi
12234 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12235 if test -n "$PKG_CONFIG"; then
12236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12237 $as_echo "$PKG_CONFIG" >&6; }
12238 else
12239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12241 fi
12242
12243
12244 fi
12245 if test -z "$ac_cv_path_PKG_CONFIG"; then
12246   ac_pt_PKG_CONFIG=$PKG_CONFIG
12247   # Extract the first word of "pkg-config", so it can be a program name with args.
12248 set dummy pkg-config; ac_word=$2
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12250 $as_echo_n "checking for $ac_word... " >&6; }
12251 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12252   $as_echo_n "(cached) " >&6
12253 else
12254   case $ac_pt_PKG_CONFIG in
12255   [\\/]* | ?:[\\/]*)
12256   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12257   ;;
12258   *)
12259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260 for as_dir in $PATH
12261 do
12262   IFS=$as_save_IFS
12263   test -z "$as_dir" && as_dir=.
12264     for ac_exec_ext in '' $ac_executable_extensions; do
12265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12266     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12268     break 2
12269   fi
12270 done
12271   done
12272 IFS=$as_save_IFS
12273
12274   ;;
12275 esac
12276 fi
12277 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12278 if test -n "$ac_pt_PKG_CONFIG"; then
12279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12280 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12281 else
12282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283 $as_echo "no" >&6; }
12284 fi
12285
12286   if test "x$ac_pt_PKG_CONFIG" = x; then
12287     PKG_CONFIG=""
12288   else
12289     case $cross_compiling:$ac_tool_warned in
12290 yes:)
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12293 ac_tool_warned=yes ;;
12294 esac
12295     PKG_CONFIG=$ac_pt_PKG_CONFIG
12296   fi
12297 else
12298   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12299 fi
12300
12301 fi
12302 if test -n "$PKG_CONFIG"; then
12303         _pkg_min_version=0.9.0
12304         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12305 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12306         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12307                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12308 $as_echo "yes" >&6; }
12309         else
12310                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12312                 PKG_CONFIG=""
12313         fi
12314 fi
12315
12316 # Check whether --with-systemdsystemunitdir was given.
12317 if test "${with_systemdsystemunitdir+set}" = set; then :
12318   withval=$with_systemdsystemunitdir;
12319 else
12320   with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
12321 fi
12322
12323            if test "x$with_systemdsystemunitdir" != xno; then
12324                    systemdsystemunitdir=$with_systemdsystemunitdir
12325
12326            fi
12327             if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
12328   HAVE_SYSTEMD_TRUE=
12329   HAVE_SYSTEMD_FALSE='#'
12330 else
12331   HAVE_SYSTEMD_TRUE='#'
12332   HAVE_SYSTEMD_FALSE=
12333 fi
12334
12335
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
12337 $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
12338 if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
12339   $as_echo_n "(cached) " >&6
12340 else
12341   ac_check_lib_save_LIBS=$LIBS
12342 LIBS="-lgssapi_krb5  $LIBS"
12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h.  */
12345
12346 /* Override any GCC internal prototype to avoid an error.
12347    Use char because int might match the return type of a GCC
12348    builtin and then its argument prototype would still apply.  */
12349 #ifdef __cplusplus
12350 extern "C"
12351 #endif
12352 char gss_init_sec_context ();
12353 int
12354 main ()
12355 {
12356 return gss_init_sec_context ();
12357   ;
12358   return 0;
12359 }
12360 _ACEOF
12361 if ac_fn_c_try_link "$LINENO"; then :
12362   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
12363 else
12364   ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
12365 fi
12366 rm -f core conftest.err conftest.$ac_objext \
12367     conftest$ac_exeext conftest.$ac_ext
12368 LIBS=$ac_check_lib_save_LIBS
12369 fi
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
12371 $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
12372 if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
12373   cat >>confdefs.h <<_ACEOF
12374 #define HAVE_LIBGSSAPI_KRB5 1
12375 _ACEOF
12376
12377   LIBS="-lgssapi_krb5 $LIBS"
12378
12379 fi
12380
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
12382 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
12383 if ${ac_cv_lib_com_err_error_message+:} false; then :
12384   $as_echo_n "(cached) " >&6
12385 else
12386   ac_check_lib_save_LIBS=$LIBS
12387 LIBS="-lcom_err  $LIBS"
12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h.  */
12390
12391 /* Override any GCC internal prototype to avoid an error.
12392    Use char because int might match the return type of a GCC
12393    builtin and then its argument prototype would still apply.  */
12394 #ifdef __cplusplus
12395 extern "C"
12396 #endif
12397 char error_message ();
12398 int
12399 main ()
12400 {
12401 return error_message ();
12402   ;
12403   return 0;
12404 }
12405 _ACEOF
12406 if ac_fn_c_try_link "$LINENO"; then :
12407   ac_cv_lib_com_err_error_message=yes
12408 else
12409   ac_cv_lib_com_err_error_message=no
12410 fi
12411 rm -f core conftest.err conftest.$ac_objext \
12412     conftest$ac_exeext conftest.$ac_ext
12413 LIBS=$ac_check_lib_save_LIBS
12414 fi
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
12416 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
12417 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
12418   cat >>confdefs.h <<_ACEOF
12419 #define HAVE_LIBCOM_ERR 1
12420 _ACEOF
12421
12422   LIBS="-lcom_err $LIBS"
12423
12424 fi
12425
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc_init in -ltalloc" >&5
12427 $as_echo_n "checking for talloc_init in -ltalloc... " >&6; }
12428 if ${ac_cv_lib_talloc_talloc_init+:} false; then :
12429   $as_echo_n "(cached) " >&6
12430 else
12431   ac_check_lib_save_LIBS=$LIBS
12432 LIBS="-ltalloc  $LIBS"
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h.  */
12435
12436 /* Override any GCC internal prototype to avoid an error.
12437    Use char because int might match the return type of a GCC
12438    builtin and then its argument prototype would still apply.  */
12439 #ifdef __cplusplus
12440 extern "C"
12441 #endif
12442 char talloc_init ();
12443 int
12444 main ()
12445 {
12446 return talloc_init ();
12447   ;
12448   return 0;
12449 }
12450 _ACEOF
12451 if ac_fn_c_try_link "$LINENO"; then :
12452   ac_cv_lib_talloc_talloc_init=yes
12453 else
12454   ac_cv_lib_talloc_talloc_init=no
12455 fi
12456 rm -f core conftest.err conftest.$ac_objext \
12457     conftest$ac_exeext conftest.$ac_ext
12458 LIBS=$ac_check_lib_save_LIBS
12459 fi
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_talloc_talloc_init" >&5
12461 $as_echo "$ac_cv_lib_talloc_talloc_init" >&6; }
12462 if test "x$ac_cv_lib_talloc_talloc_init" = xyes; then :
12463   cat >>confdefs.h <<_ACEOF
12464 #define HAVE_LIBTALLOC 1
12465 _ACEOF
12466
12467   LIBS="-ltalloc $LIBS"
12468
12469 else
12470   as_fn_error $? "Please install talloc development" "$LINENO" 5
12471 fi
12472
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
12474 $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
12475 if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
12476   $as_echo_n "(cached) " >&6
12477 else
12478   ac_check_lib_save_LIBS=$LIBS
12479 LIBS="-lsqlite3  $LIBS"
12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h.  */
12482
12483 /* Override any GCC internal prototype to avoid an error.
12484    Use char because int might match the return type of a GCC
12485    builtin and then its argument prototype would still apply.  */
12486 #ifdef __cplusplus
12487 extern "C"
12488 #endif
12489 char sqlite3_open ();
12490 int
12491 main ()
12492 {
12493 return sqlite3_open ();
12494   ;
12495   return 0;
12496 }
12497 _ACEOF
12498 if ac_fn_c_try_link "$LINENO"; then :
12499   ac_cv_lib_sqlite3_sqlite3_open=yes
12500 else
12501   ac_cv_lib_sqlite3_sqlite3_open=no
12502 fi
12503 rm -f core conftest.err conftest.$ac_objext \
12504     conftest$ac_exeext conftest.$ac_ext
12505 LIBS=$ac_check_lib_save_LIBS
12506 fi
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
12508 $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
12509 if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
12510   cat >>confdefs.h <<_ACEOF
12511 #define HAVE_LIBSQLITE3 1
12512 _ACEOF
12513
12514   LIBS="-lsqlite3 $LIBS"
12515
12516 else
12517   as_fn_error $? "Please install sqlite3 development" "$LINENO" 5
12518 fi
12519
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json_object in -ljansson" >&5
12521 $as_echo_n "checking for json_object in -ljansson... " >&6; }
12522 if ${ac_cv_lib_jansson_json_object+:} false; then :
12523   $as_echo_n "(cached) " >&6
12524 else
12525   ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-ljansson  $LIBS"
12527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528 /* end confdefs.h.  */
12529
12530 /* Override any GCC internal prototype to avoid an error.
12531    Use char because int might match the return type of a GCC
12532    builtin and then its argument prototype would still apply.  */
12533 #ifdef __cplusplus
12534 extern "C"
12535 #endif
12536 char json_object ();
12537 int
12538 main ()
12539 {
12540 return json_object ();
12541   ;
12542   return 0;
12543 }
12544 _ACEOF
12545 if ac_fn_c_try_link "$LINENO"; then :
12546   ac_cv_lib_jansson_json_object=yes
12547 else
12548   ac_cv_lib_jansson_json_object=no
12549 fi
12550 rm -f core conftest.err conftest.$ac_objext \
12551     conftest$ac_exeext conftest.$ac_ext
12552 LIBS=$ac_check_lib_save_LIBS
12553 fi
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jansson_json_object" >&5
12555 $as_echo "$ac_cv_lib_jansson_json_object" >&6; }
12556 if test "x$ac_cv_lib_jansson_json_object" = xyes; then :
12557   cat >>confdefs.h <<_ACEOF
12558 #define HAVE_LIBJANSSON 1
12559 _ACEOF
12560
12561   LIBS="-ljansson $LIBS"
12562
12563 fi
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
12566 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
12567 if ${ac_cv_lib_crypto_DH_new+:} false; then :
12568   $as_echo_n "(cached) " >&6
12569 else
12570   ac_check_lib_save_LIBS=$LIBS
12571 LIBS="-lcrypto  $LIBS"
12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573 /* end confdefs.h.  */
12574
12575 /* Override any GCC internal prototype to avoid an error.
12576    Use char because int might match the return type of a GCC
12577    builtin and then its argument prototype would still apply.  */
12578 #ifdef __cplusplus
12579 extern "C"
12580 #endif
12581 char DH_new ();
12582 int
12583 main ()
12584 {
12585 return DH_new ();
12586   ;
12587   return 0;
12588 }
12589 _ACEOF
12590 if ac_fn_c_try_link "$LINENO"; then :
12591   ac_cv_lib_crypto_DH_new=yes
12592 else
12593   ac_cv_lib_crypto_DH_new=no
12594 fi
12595 rm -f core conftest.err conftest.$ac_objext \
12596     conftest$ac_exeext conftest.$ac_ext
12597 LIBS=$ac_check_lib_save_LIBS
12598 fi
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
12600 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
12601 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
12602   cat >>confdefs.h <<_ACEOF
12603 #define HAVE_LIBCRYPTO 1
12604 _ACEOF
12605
12606   LIBS="-lcrypto $LIBS"
12607
12608 fi
12609
12610 for ac_header in gssapi.h gssapi_ext.h jansson.h talloc.h openssl/dh.h openssl/bn.h
12611 do :
12612   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12613 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12614 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12615   cat >>confdefs.h <<_ACEOF
12616 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12617 _ACEOF
12618
12619 fi
12620
12621 done
12622
12623 ac_config_files="$ac_config_files Makefile gsscon/Makefile"
12624
12625 cat >confcache <<\_ACEOF
12626 # This file is a shell script that caches the results of configure
12627 # tests run on this system so they can be shared between configure
12628 # scripts and configure runs, see configure's option --config-cache.
12629 # It is not useful on other systems.  If it contains results you don't
12630 # want to keep, you may remove or edit it.
12631 #
12632 # config.status only pays attention to the cache file if you give it
12633 # the --recheck option to rerun configure.
12634 #
12635 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12636 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12637 # following values.
12638
12639 _ACEOF
12640
12641 # The following way of writing the cache mishandles newlines in values,
12642 # but we know of no workaround that is simple, portable, and efficient.
12643 # So, we kill variables containing newlines.
12644 # Ultrix sh set writes to stderr and can't be redirected directly,
12645 # and sets the high bit in the cache file unless we assign to the vars.
12646 (
12647   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12648     eval ac_val=\$$ac_var
12649     case $ac_val in #(
12650     *${as_nl}*)
12651       case $ac_var in #(
12652       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12653 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12654       esac
12655       case $ac_var in #(
12656       _ | IFS | as_nl) ;; #(
12657       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12658       *) { eval $ac_var=; unset $ac_var;} ;;
12659       esac ;;
12660     esac
12661   done
12662
12663   (set) 2>&1 |
12664     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12665     *${as_nl}ac_space=\ *)
12666       # `set' does not quote correctly, so add quotes: double-quote
12667       # substitution turns \\\\ into \\, and sed turns \\ into \.
12668       sed -n \
12669         "s/'/'\\\\''/g;
12670           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12671       ;; #(
12672     *)
12673       # `set' quotes correctly as required by POSIX, so do not add quotes.
12674       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12675       ;;
12676     esac |
12677     sort
12678 ) |
12679   sed '
12680      /^ac_cv_env_/b end
12681      t clear
12682      :clear
12683      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12684      t end
12685      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12686      :end' >>confcache
12687 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12688   if test -w "$cache_file"; then
12689     if test "x$cache_file" != "x/dev/null"; then
12690       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12691 $as_echo "$as_me: updating cache $cache_file" >&6;}
12692       if test ! -f "$cache_file" || test -h "$cache_file"; then
12693         cat confcache >"$cache_file"
12694       else
12695         case $cache_file in #(
12696         */* | ?:*)
12697           mv -f confcache "$cache_file"$$ &&
12698           mv -f "$cache_file"$$ "$cache_file" ;; #(
12699         *)
12700           mv -f confcache "$cache_file" ;;
12701         esac
12702       fi
12703     fi
12704   else
12705     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12706 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12707   fi
12708 fi
12709 rm -f confcache
12710
12711 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12712 # Let make expand exec_prefix.
12713 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12714
12715 # Transform confdefs.h into DEFS.
12716 # Protect against shell expansion while executing Makefile rules.
12717 # Protect against Makefile macro expansion.
12718 #
12719 # If the first sed substitution is executed (which looks for macros that
12720 # take arguments), then branch to the quote section.  Otherwise,
12721 # look for a macro that doesn't take arguments.
12722 ac_script='
12723 :mline
12724 /\\$/{
12725  N
12726  s,\\\n,,
12727  b mline
12728 }
12729 t clear
12730 :clear
12731 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
12732 t quote
12733 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
12734 t quote
12735 b any
12736 :quote
12737 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12738 s/\[/\\&/g
12739 s/\]/\\&/g
12740 s/\$/$$/g
12741 H
12742 :any
12743 ${
12744         g
12745         s/^\n//
12746         s/\n/ /g
12747         p
12748 }
12749 '
12750 DEFS=`sed -n "$ac_script" confdefs.h`
12751
12752
12753 ac_libobjs=
12754 ac_ltlibobjs=
12755 U=
12756 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12757   # 1. Remove the extension, and $U if already installed.
12758   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12759   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12760   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12761   #    will be set to the directory where LIBOBJS objects are built.
12762   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12763   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12764 done
12765 LIBOBJS=$ac_libobjs
12766
12767 LTLIBOBJS=$ac_ltlibobjs
12768
12769
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12771 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12772    if test -n "$am_sleep_pid"; then
12773      # Hide warnings about reused PIDs.
12774      wait $am_sleep_pid 2>/dev/null
12775    fi
12776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12777 $as_echo "done" >&6; }
12778 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12779   as_fn_error $? "conditional \"AMDEP\" was never defined.
12780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12781 fi
12782 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12783   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12785 fi
12786  if test -n "$EXEEXT"; then
12787   am__EXEEXT_TRUE=
12788   am__EXEEXT_FALSE='#'
12789 else
12790   am__EXEEXT_TRUE='#'
12791   am__EXEEXT_FALSE=
12792 fi
12793
12794 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12795   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12797 fi
12798 if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
12799   as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
12800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12801 fi
12802
12803 : "${CONFIG_STATUS=./config.status}"
12804 ac_write_fail=0
12805 ac_clean_files_save=$ac_clean_files
12806 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12808 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12809 as_write_fail=0
12810 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12811 #! $SHELL
12812 # Generated by $as_me.
12813 # Run this file to recreate the current configuration.
12814 # Compiler output produced by configure, useful for debugging
12815 # configure, is in config.log if it exists.
12816
12817 debug=false
12818 ac_cs_recheck=false
12819 ac_cs_silent=false
12820
12821 SHELL=\${CONFIG_SHELL-$SHELL}
12822 export SHELL
12823 _ASEOF
12824 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12825 ## -------------------- ##
12826 ## M4sh Initialization. ##
12827 ## -------------------- ##
12828
12829 # Be more Bourne compatible
12830 DUALCASE=1; export DUALCASE # for MKS sh
12831 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12832   emulate sh
12833   NULLCMD=:
12834   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12835   # is contrary to our usage.  Disable this feature.
12836   alias -g '${1+"$@"}'='"$@"'
12837   setopt NO_GLOB_SUBST
12838 else
12839   case `(set -o) 2>/dev/null` in #(
12840   *posix*) :
12841     set -o posix ;; #(
12842   *) :
12843      ;;
12844 esac
12845 fi
12846
12847
12848 as_nl='
12849 '
12850 export as_nl
12851 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12852 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12853 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12854 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12855 # Prefer a ksh shell builtin over an external printf program on Solaris,
12856 # but without wasting forks for bash or zsh.
12857 if test -z "$BASH_VERSION$ZSH_VERSION" \
12858     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12859   as_echo='print -r --'
12860   as_echo_n='print -rn --'
12861 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12862   as_echo='printf %s\n'
12863   as_echo_n='printf %s'
12864 else
12865   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12866     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12867     as_echo_n='/usr/ucb/echo -n'
12868   else
12869     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12870     as_echo_n_body='eval
12871       arg=$1;
12872       case $arg in #(
12873       *"$as_nl"*)
12874         expr "X$arg" : "X\\(.*\\)$as_nl";
12875         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12876       esac;
12877       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12878     '
12879     export as_echo_n_body
12880     as_echo_n='sh -c $as_echo_n_body as_echo'
12881   fi
12882   export as_echo_body
12883   as_echo='sh -c $as_echo_body as_echo'
12884 fi
12885
12886 # The user is always right.
12887 if test "${PATH_SEPARATOR+set}" != set; then
12888   PATH_SEPARATOR=:
12889   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12890     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12891       PATH_SEPARATOR=';'
12892   }
12893 fi
12894
12895
12896 # IFS
12897 # We need space, tab and new line, in precisely that order.  Quoting is
12898 # there to prevent editors from complaining about space-tab.
12899 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12900 # splitting by setting IFS to empty value.)
12901 IFS=" ""        $as_nl"
12902
12903 # Find who we are.  Look in the path if we contain no directory separator.
12904 as_myself=
12905 case $0 in #((
12906   *[\\/]* ) as_myself=$0 ;;
12907   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12908 for as_dir in $PATH
12909 do
12910   IFS=$as_save_IFS
12911   test -z "$as_dir" && as_dir=.
12912     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12913   done
12914 IFS=$as_save_IFS
12915
12916      ;;
12917 esac
12918 # We did not find ourselves, most probably we were run as `sh COMMAND'
12919 # in which case we are not to be found in the path.
12920 if test "x$as_myself" = x; then
12921   as_myself=$0
12922 fi
12923 if test ! -f "$as_myself"; then
12924   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12925   exit 1
12926 fi
12927
12928 # Unset variables that we do not need and which cause bugs (e.g. in
12929 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12930 # suppresses any "Segmentation fault" message there.  '((' could
12931 # trigger a bug in pdksh 5.2.14.
12932 for as_var in BASH_ENV ENV MAIL MAILPATH
12933 do eval test x\${$as_var+set} = xset \
12934   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12935 done
12936 PS1='$ '
12937 PS2='> '
12938 PS4='+ '
12939
12940 # NLS nuisances.
12941 LC_ALL=C
12942 export LC_ALL
12943 LANGUAGE=C
12944 export LANGUAGE
12945
12946 # CDPATH.
12947 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12948
12949
12950 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12951 # ----------------------------------------
12952 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12953 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12954 # script with STATUS, using 1 if that was 0.
12955 as_fn_error ()
12956 {
12957   as_status=$1; test $as_status -eq 0 && as_status=1
12958   if test "$4"; then
12959     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12960     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12961   fi
12962   $as_echo "$as_me: error: $2" >&2
12963   as_fn_exit $as_status
12964 } # as_fn_error
12965
12966
12967 # as_fn_set_status STATUS
12968 # -----------------------
12969 # Set $? to STATUS, without forking.
12970 as_fn_set_status ()
12971 {
12972   return $1
12973 } # as_fn_set_status
12974
12975 # as_fn_exit STATUS
12976 # -----------------
12977 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12978 as_fn_exit ()
12979 {
12980   set +e
12981   as_fn_set_status $1
12982   exit $1
12983 } # as_fn_exit
12984
12985 # as_fn_unset VAR
12986 # ---------------
12987 # Portably unset VAR.
12988 as_fn_unset ()
12989 {
12990   { eval $1=; unset $1;}
12991 }
12992 as_unset=as_fn_unset
12993 # as_fn_append VAR VALUE
12994 # ----------------------
12995 # Append the text in VALUE to the end of the definition contained in VAR. Take
12996 # advantage of any shell optimizations that allow amortized linear growth over
12997 # repeated appends, instead of the typical quadratic growth present in naive
12998 # implementations.
12999 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13000   eval 'as_fn_append ()
13001   {
13002     eval $1+=\$2
13003   }'
13004 else
13005   as_fn_append ()
13006   {
13007     eval $1=\$$1\$2
13008   }
13009 fi # as_fn_append
13010
13011 # as_fn_arith ARG...
13012 # ------------------
13013 # Perform arithmetic evaluation on the ARGs, and store the result in the
13014 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13015 # must be portable across $(()) and expr.
13016 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13017   eval 'as_fn_arith ()
13018   {
13019     as_val=$(( $* ))
13020   }'
13021 else
13022   as_fn_arith ()
13023   {
13024     as_val=`expr "$@" || test $? -eq 1`
13025   }
13026 fi # as_fn_arith
13027
13028
13029 if expr a : '\(a\)' >/dev/null 2>&1 &&
13030    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13031   as_expr=expr
13032 else
13033   as_expr=false
13034 fi
13035
13036 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13037   as_basename=basename
13038 else
13039   as_basename=false
13040 fi
13041
13042 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13043   as_dirname=dirname
13044 else
13045   as_dirname=false
13046 fi
13047
13048 as_me=`$as_basename -- "$0" ||
13049 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13050          X"$0" : 'X\(//\)$' \| \
13051          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13052 $as_echo X/"$0" |
13053     sed '/^.*\/\([^/][^/]*\)\/*$/{
13054             s//\1/
13055             q
13056           }
13057           /^X\/\(\/\/\)$/{
13058             s//\1/
13059             q
13060           }
13061           /^X\/\(\/\).*/{
13062             s//\1/
13063             q
13064           }
13065           s/.*/./; q'`
13066
13067 # Avoid depending upon Character Ranges.
13068 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13069 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13070 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13071 as_cr_digits='0123456789'
13072 as_cr_alnum=$as_cr_Letters$as_cr_digits
13073
13074 ECHO_C= ECHO_N= ECHO_T=
13075 case `echo -n x` in #(((((
13076 -n*)
13077   case `echo 'xy\c'` in
13078   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13079   xy)  ECHO_C='\c';;
13080   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13081        ECHO_T=' ';;
13082   esac;;
13083 *)
13084   ECHO_N='-n';;
13085 esac
13086
13087 rm -f conf$$ conf$$.exe conf$$.file
13088 if test -d conf$$.dir; then
13089   rm -f conf$$.dir/conf$$.file
13090 else
13091   rm -f conf$$.dir
13092   mkdir conf$$.dir 2>/dev/null
13093 fi
13094 if (echo >conf$$.file) 2>/dev/null; then
13095   if ln -s conf$$.file conf$$ 2>/dev/null; then
13096     as_ln_s='ln -s'
13097     # ... but there are two gotchas:
13098     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13099     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13100     # In both cases, we have to default to `cp -pR'.
13101     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13102       as_ln_s='cp -pR'
13103   elif ln conf$$.file conf$$ 2>/dev/null; then
13104     as_ln_s=ln
13105   else
13106     as_ln_s='cp -pR'
13107   fi
13108 else
13109   as_ln_s='cp -pR'
13110 fi
13111 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13112 rmdir conf$$.dir 2>/dev/null
13113
13114
13115 # as_fn_mkdir_p
13116 # -------------
13117 # Create "$as_dir" as a directory, including parents if necessary.
13118 as_fn_mkdir_p ()
13119 {
13120
13121   case $as_dir in #(
13122   -*) as_dir=./$as_dir;;
13123   esac
13124   test -d "$as_dir" || eval $as_mkdir_p || {
13125     as_dirs=
13126     while :; do
13127       case $as_dir in #(
13128       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13129       *) as_qdir=$as_dir;;
13130       esac
13131       as_dirs="'$as_qdir' $as_dirs"
13132       as_dir=`$as_dirname -- "$as_dir" ||
13133 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13134          X"$as_dir" : 'X\(//\)[^/]' \| \
13135          X"$as_dir" : 'X\(//\)$' \| \
13136          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13137 $as_echo X"$as_dir" |
13138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13139             s//\1/
13140             q
13141           }
13142           /^X\(\/\/\)[^/].*/{
13143             s//\1/
13144             q
13145           }
13146           /^X\(\/\/\)$/{
13147             s//\1/
13148             q
13149           }
13150           /^X\(\/\).*/{
13151             s//\1/
13152             q
13153           }
13154           s/.*/./; q'`
13155       test -d "$as_dir" && break
13156     done
13157     test -z "$as_dirs" || eval "mkdir $as_dirs"
13158   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13159
13160
13161 } # as_fn_mkdir_p
13162 if mkdir -p . 2>/dev/null; then
13163   as_mkdir_p='mkdir -p "$as_dir"'
13164 else
13165   test -d ./-p && rmdir ./-p
13166   as_mkdir_p=false
13167 fi
13168
13169
13170 # as_fn_executable_p FILE
13171 # -----------------------
13172 # Test if FILE is an executable regular file.
13173 as_fn_executable_p ()
13174 {
13175   test -f "$1" && test -x "$1"
13176 } # as_fn_executable_p
13177 as_test_x='test -x'
13178 as_executable_p=as_fn_executable_p
13179
13180 # Sed expression to map a string onto a valid CPP name.
13181 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13182
13183 # Sed expression to map a string onto a valid variable name.
13184 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13185
13186
13187 exec 6>&1
13188 ## ----------------------------------- ##
13189 ## Main body of $CONFIG_STATUS script. ##
13190 ## ----------------------------------- ##
13191 _ASEOF
13192 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13193
13194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13195 # Save the log message, to keep $0 and so on meaningful, and to
13196 # report actual input values of CONFIG_FILES etc. instead of their
13197 # values after options handling.
13198 ac_log="
13199 This file was extended by trust_router $as_me 1.4.1, which was
13200 generated by GNU Autoconf 2.69.  Invocation command line was
13201
13202   CONFIG_FILES    = $CONFIG_FILES
13203   CONFIG_HEADERS  = $CONFIG_HEADERS
13204   CONFIG_LINKS    = $CONFIG_LINKS
13205   CONFIG_COMMANDS = $CONFIG_COMMANDS
13206   $ $0 $@
13207
13208 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13209 "
13210
13211 _ACEOF
13212
13213 case $ac_config_files in *"
13214 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13215 esac
13216
13217
13218
13219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13220 # Files that config.status was made for.
13221 config_files="$ac_config_files"
13222 config_commands="$ac_config_commands"
13223
13224 _ACEOF
13225
13226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13227 ac_cs_usage="\
13228 \`$as_me' instantiates files and other configuration actions
13229 from templates according to the current configuration.  Unless the files
13230 and actions are specified as TAGs, all are instantiated by default.
13231
13232 Usage: $0 [OPTION]... [TAG]...
13233
13234   -h, --help       print this help, then exit
13235   -V, --version    print version number and configuration settings, then exit
13236       --config     print configuration, then exit
13237   -q, --quiet, --silent
13238                    do not print progress messages
13239   -d, --debug      don't remove temporary files
13240       --recheck    update $as_me by reconfiguring in the same conditions
13241       --file=FILE[:TEMPLATE]
13242                    instantiate the configuration file FILE
13243
13244 Configuration files:
13245 $config_files
13246
13247 Configuration commands:
13248 $config_commands
13249
13250 Report bugs to <bugs@project-moonshot.org>."
13251
13252 _ACEOF
13253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13254 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13255 ac_cs_version="\\
13256 trust_router config.status 1.4.1
13257 configured by $0, generated by GNU Autoconf 2.69,
13258   with options \\"\$ac_cs_config\\"
13259
13260 Copyright (C) 2012 Free Software Foundation, Inc.
13261 This config.status script is free software; the Free Software Foundation
13262 gives unlimited permission to copy, distribute and modify it."
13263
13264 ac_pwd='$ac_pwd'
13265 srcdir='$srcdir'
13266 INSTALL='$INSTALL'
13267 MKDIR_P='$MKDIR_P'
13268 AWK='$AWK'
13269 test -n "\$AWK" || AWK=awk
13270 _ACEOF
13271
13272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13273 # The default lists apply if the user does not specify any file.
13274 ac_need_defaults=:
13275 while test $# != 0
13276 do
13277   case $1 in
13278   --*=?*)
13279     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13280     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13281     ac_shift=:
13282     ;;
13283   --*=)
13284     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13285     ac_optarg=
13286     ac_shift=:
13287     ;;
13288   *)
13289     ac_option=$1
13290     ac_optarg=$2
13291     ac_shift=shift
13292     ;;
13293   esac
13294
13295   case $ac_option in
13296   # Handling of the options.
13297   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13298     ac_cs_recheck=: ;;
13299   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13300     $as_echo "$ac_cs_version"; exit ;;
13301   --config | --confi | --conf | --con | --co | --c )
13302     $as_echo "$ac_cs_config"; exit ;;
13303   --debug | --debu | --deb | --de | --d | -d )
13304     debug=: ;;
13305   --file | --fil | --fi | --f )
13306     $ac_shift
13307     case $ac_optarg in
13308     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13309     '') as_fn_error $? "missing file argument" ;;
13310     esac
13311     as_fn_append CONFIG_FILES " '$ac_optarg'"
13312     ac_need_defaults=false;;
13313   --he | --h |  --help | --hel | -h )
13314     $as_echo "$ac_cs_usage"; exit ;;
13315   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13316   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13317     ac_cs_silent=: ;;
13318
13319   # This is an error.
13320   -*) as_fn_error $? "unrecognized option: \`$1'
13321 Try \`$0 --help' for more information." ;;
13322
13323   *) as_fn_append ac_config_targets " $1"
13324      ac_need_defaults=false ;;
13325
13326   esac
13327   shift
13328 done
13329
13330 ac_configure_extra_args=
13331
13332 if $ac_cs_silent; then
13333   exec 6>/dev/null
13334   ac_configure_extra_args="$ac_configure_extra_args --silent"
13335 fi
13336
13337 _ACEOF
13338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13339 if \$ac_cs_recheck; then
13340   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13341   shift
13342   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13343   CONFIG_SHELL='$SHELL'
13344   export CONFIG_SHELL
13345   exec "\$@"
13346 fi
13347
13348 _ACEOF
13349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13350 exec 5>>config.log
13351 {
13352   echo
13353   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13354 ## Running $as_me. ##
13355 _ASBOX
13356   $as_echo "$ac_log"
13357 } >&5
13358
13359 _ACEOF
13360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13361 #
13362 # INIT-COMMANDS
13363 #
13364 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13365
13366
13367 # The HP-UX ksh and POSIX shell print the target directory to stdout
13368 # if CDPATH is set.
13369 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13370
13371 sed_quote_subst='$sed_quote_subst'
13372 double_quote_subst='$double_quote_subst'
13373 delay_variable_subst='$delay_variable_subst'
13374 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13375 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13376 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13377 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13378 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13379 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13380 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13381 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13382 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13383 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13384 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13385 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13386 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13387 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13388 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13389 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13390 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13391 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13392 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13393 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13394 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13395 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13396 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13397 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13398 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13399 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13400 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13401 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13402 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13403 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13404 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13405 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13406 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13407 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13408 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13409 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13410 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13411 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13412 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13413 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13414 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13415 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13416 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13417 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13418 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13419 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13420 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13421 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13422 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13423 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13424 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13425 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13426 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13427 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13428 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13429 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13430 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"`'
13431 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13432 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13433 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13434 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13435 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13436 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13437 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13438 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13439 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13440 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13441 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13442 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13443 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13444 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13445 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13446 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13447 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13448 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13449 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13450 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13451 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13452 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13453 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13454 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13455 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13456 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13457 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13458 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13459 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13460 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13461 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13462 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13463 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13464 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13465 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13466 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13467 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13468 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13469 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13470 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13471 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13472 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13473 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13474 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13475 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13476 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13477 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13478 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13479 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13480 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13481 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13482 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13483 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13484 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13485 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13486 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13487 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13488 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13489 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13490 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13491 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13492 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13493 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13494 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13495 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13496 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13497 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13498 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13499 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13500 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13501 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13502 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13503 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13504
13505 LTCC='$LTCC'
13506 LTCFLAGS='$LTCFLAGS'
13507 compiler='$compiler_DEFAULT'
13508
13509 # A function that is used when there is no print builtin or printf.
13510 func_fallback_echo ()
13511 {
13512   eval 'cat <<_LTECHO_EOF
13513 \$1
13514 _LTECHO_EOF'
13515 }
13516
13517 # Quote evaled strings.
13518 for var in SHELL \
13519 ECHO \
13520 PATH_SEPARATOR \
13521 SED \
13522 GREP \
13523 EGREP \
13524 FGREP \
13525 LD \
13526 NM \
13527 LN_S \
13528 lt_SP2NL \
13529 lt_NL2SP \
13530 reload_flag \
13531 OBJDUMP \
13532 deplibs_check_method \
13533 file_magic_cmd \
13534 file_magic_glob \
13535 want_nocaseglob \
13536 DLLTOOL \
13537 sharedlib_from_linklib_cmd \
13538 AR \
13539 AR_FLAGS \
13540 archiver_list_spec \
13541 STRIP \
13542 RANLIB \
13543 CC \
13544 CFLAGS \
13545 compiler \
13546 lt_cv_sys_global_symbol_pipe \
13547 lt_cv_sys_global_symbol_to_cdecl \
13548 lt_cv_sys_global_symbol_to_c_name_address \
13549 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13550 nm_file_list_spec \
13551 lt_prog_compiler_no_builtin_flag \
13552 lt_prog_compiler_pic \
13553 lt_prog_compiler_wl \
13554 lt_prog_compiler_static \
13555 lt_cv_prog_compiler_c_o \
13556 need_locks \
13557 MANIFEST_TOOL \
13558 DSYMUTIL \
13559 NMEDIT \
13560 LIPO \
13561 OTOOL \
13562 OTOOL64 \
13563 shrext_cmds \
13564 export_dynamic_flag_spec \
13565 whole_archive_flag_spec \
13566 compiler_needs_object \
13567 with_gnu_ld \
13568 allow_undefined_flag \
13569 no_undefined_flag \
13570 hardcode_libdir_flag_spec \
13571 hardcode_libdir_separator \
13572 exclude_expsyms \
13573 include_expsyms \
13574 file_list_spec \
13575 variables_saved_for_relink \
13576 libname_spec \
13577 library_names_spec \
13578 soname_spec \
13579 install_override_mode \
13580 finish_eval \
13581 old_striplib \
13582 striplib; do
13583     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13584     *[\\\\\\\`\\"\\\$]*)
13585       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13586       ;;
13587     *)
13588       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13589       ;;
13590     esac
13591 done
13592
13593 # Double-quote double-evaled strings.
13594 for var in reload_cmds \
13595 old_postinstall_cmds \
13596 old_postuninstall_cmds \
13597 old_archive_cmds \
13598 extract_expsyms_cmds \
13599 old_archive_from_new_cmds \
13600 old_archive_from_expsyms_cmds \
13601 archive_cmds \
13602 archive_expsym_cmds \
13603 module_cmds \
13604 module_expsym_cmds \
13605 export_symbols_cmds \
13606 prelink_cmds \
13607 postlink_cmds \
13608 postinstall_cmds \
13609 postuninstall_cmds \
13610 finish_cmds \
13611 sys_lib_search_path_spec \
13612 sys_lib_dlsearch_path_spec; do
13613     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13614     *[\\\\\\\`\\"\\\$]*)
13615       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13616       ;;
13617     *)
13618       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13619       ;;
13620     esac
13621 done
13622
13623 ac_aux_dir='$ac_aux_dir'
13624 xsi_shell='$xsi_shell'
13625 lt_shell_append='$lt_shell_append'
13626
13627 # See if we are running on zsh, and set the options which allow our
13628 # commands through without removal of \ escapes INIT.
13629 if test -n "\${ZSH_VERSION+set}" ; then
13630    setopt NO_GLOB_SUBST
13631 fi
13632
13633
13634     PACKAGE='$PACKAGE'
13635     VERSION='$VERSION'
13636     TIMESTAMP='$TIMESTAMP'
13637     RM='$RM'
13638     ofile='$ofile'
13639
13640
13641
13642
13643 _ACEOF
13644
13645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13646
13647 # Handling of arguments.
13648 for ac_config_target in $ac_config_targets
13649 do
13650   case $ac_config_target in
13651     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13652     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13653     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13654     "gsscon/Makefile") CONFIG_FILES="$CONFIG_FILES gsscon/Makefile" ;;
13655
13656   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13657   esac
13658 done
13659
13660
13661 # If the user did not use the arguments to specify the items to instantiate,
13662 # then the envvar interface is used.  Set only those that are not.
13663 # We use the long form for the default assignment because of an extremely
13664 # bizarre bug on SunOS 4.1.3.
13665 if $ac_need_defaults; then
13666   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13667   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13668 fi
13669
13670 # Have a temporary directory for convenience.  Make it in the build tree
13671 # simply because there is no reason against having it here, and in addition,
13672 # creating and moving files from /tmp can sometimes cause problems.
13673 # Hook for its removal unless debugging.
13674 # Note that there is a small window in which the directory will not be cleaned:
13675 # after its creation but before its name has been assigned to `$tmp'.
13676 $debug ||
13677 {
13678   tmp= ac_tmp=
13679   trap 'exit_status=$?
13680   : "${ac_tmp:=$tmp}"
13681   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13682 ' 0
13683   trap 'as_fn_exit 1' 1 2 13 15
13684 }
13685 # Create a (secure) tmp directory for tmp files.
13686
13687 {
13688   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13689   test -d "$tmp"
13690 }  ||
13691 {
13692   tmp=./conf$$-$RANDOM
13693   (umask 077 && mkdir "$tmp")
13694 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13695 ac_tmp=$tmp
13696
13697 # Set up the scripts for CONFIG_FILES section.
13698 # No need to generate them if there are no CONFIG_FILES.
13699 # This happens for instance with `./config.status config.h'.
13700 if test -n "$CONFIG_FILES"; then
13701
13702
13703 ac_cr=`echo X | tr X '\015'`
13704 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13705 # But we know of no other shell where ac_cr would be empty at this
13706 # point, so we can use a bashism as a fallback.
13707 if test "x$ac_cr" = x; then
13708   eval ac_cr=\$\'\\r\'
13709 fi
13710 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13711 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13712   ac_cs_awk_cr='\\r'
13713 else
13714   ac_cs_awk_cr=$ac_cr
13715 fi
13716
13717 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13718 _ACEOF
13719
13720
13721 {
13722   echo "cat >conf$$subs.awk <<_ACEOF" &&
13723   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13724   echo "_ACEOF"
13725 } >conf$$subs.sh ||
13726   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13727 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13728 ac_delim='%!_!# '
13729 for ac_last_try in false false false false false :; do
13730   . ./conf$$subs.sh ||
13731     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13732
13733   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13734   if test $ac_delim_n = $ac_delim_num; then
13735     break
13736   elif $ac_last_try; then
13737     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13738   else
13739     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13740   fi
13741 done
13742 rm -f conf$$subs.sh
13743
13744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13745 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13746 _ACEOF
13747 sed -n '
13748 h
13749 s/^/S["/; s/!.*/"]=/
13750 p
13751 g
13752 s/^[^!]*!//
13753 :repl
13754 t repl
13755 s/'"$ac_delim"'$//
13756 t delim
13757 :nl
13758 h
13759 s/\(.\{148\}\)..*/\1/
13760 t more1
13761 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13762 p
13763 n
13764 b repl
13765 :more1
13766 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13767 p
13768 g
13769 s/.\{148\}//
13770 t nl
13771 :delim
13772 h
13773 s/\(.\{148\}\)..*/\1/
13774 t more2
13775 s/["\\]/\\&/g; s/^/"/; s/$/"/
13776 p
13777 b
13778 :more2
13779 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13780 p
13781 g
13782 s/.\{148\}//
13783 t delim
13784 ' <conf$$subs.awk | sed '
13785 /^[^""]/{
13786   N
13787   s/\n//
13788 }
13789 ' >>$CONFIG_STATUS || ac_write_fail=1
13790 rm -f conf$$subs.awk
13791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13792 _ACAWK
13793 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13794   for (key in S) S_is_set[key] = 1
13795   FS = "\a"
13796
13797 }
13798 {
13799   line = $ 0
13800   nfields = split(line, field, "@")
13801   substed = 0
13802   len = length(field[1])
13803   for (i = 2; i < nfields; i++) {
13804     key = field[i]
13805     keylen = length(key)
13806     if (S_is_set[key]) {
13807       value = S[key]
13808       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13809       len += length(value) + length(field[++i])
13810       substed = 1
13811     } else
13812       len += 1 + keylen
13813   }
13814
13815   print line
13816 }
13817
13818 _ACAWK
13819 _ACEOF
13820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13821 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13822   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13823 else
13824   cat
13825 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13826   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13827 _ACEOF
13828
13829 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13830 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13831 # trailing colons and then remove the whole line if VPATH becomes empty
13832 # (actually we leave an empty line to preserve line numbers).
13833 if test "x$srcdir" = x.; then
13834   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13835 h
13836 s///
13837 s/^/:/
13838 s/[      ]*$/:/
13839 s/:\$(srcdir):/:/g
13840 s/:\${srcdir}:/:/g
13841 s/:@srcdir@:/:/g
13842 s/^:*//
13843 s/:*$//
13844 x
13845 s/\(=[   ]*\).*/\1/
13846 G
13847 s/\n//
13848 s/^[^=]*=[       ]*$//
13849 }'
13850 fi
13851
13852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13853 fi # test -n "$CONFIG_FILES"
13854
13855
13856 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
13857 shift
13858 for ac_tag
13859 do
13860   case $ac_tag in
13861   :[FHLC]) ac_mode=$ac_tag; continue;;
13862   esac
13863   case $ac_mode$ac_tag in
13864   :[FHL]*:*);;
13865   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13866   :[FH]-) ac_tag=-:-;;
13867   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13868   esac
13869   ac_save_IFS=$IFS
13870   IFS=:
13871   set x $ac_tag
13872   IFS=$ac_save_IFS
13873   shift
13874   ac_file=$1
13875   shift
13876
13877   case $ac_mode in
13878   :L) ac_source=$1;;
13879   :[FH])
13880     ac_file_inputs=
13881     for ac_f
13882     do
13883       case $ac_f in
13884       -) ac_f="$ac_tmp/stdin";;
13885       *) # Look for the file first in the build tree, then in the source tree
13886          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13887          # because $ac_f cannot contain `:'.
13888          test -f "$ac_f" ||
13889            case $ac_f in
13890            [\\/$]*) false;;
13891            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13892            esac ||
13893            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13894       esac
13895       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13896       as_fn_append ac_file_inputs " '$ac_f'"
13897     done
13898
13899     # Let's still pretend it is `configure' which instantiates (i.e., don't
13900     # use $as_me), people would be surprised to read:
13901     #    /* config.h.  Generated by config.status.  */
13902     configure_input='Generated from '`
13903           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13904         `' by configure.'
13905     if test x"$ac_file" != x-; then
13906       configure_input="$ac_file.  $configure_input"
13907       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13908 $as_echo "$as_me: creating $ac_file" >&6;}
13909     fi
13910     # Neutralize special characters interpreted by sed in replacement strings.
13911     case $configure_input in #(
13912     *\&* | *\|* | *\\* )
13913        ac_sed_conf_input=`$as_echo "$configure_input" |
13914        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13915     *) ac_sed_conf_input=$configure_input;;
13916     esac
13917
13918     case $ac_tag in
13919     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13920       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13921     esac
13922     ;;
13923   esac
13924
13925   ac_dir=`$as_dirname -- "$ac_file" ||
13926 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13927          X"$ac_file" : 'X\(//\)[^/]' \| \
13928          X"$ac_file" : 'X\(//\)$' \| \
13929          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13930 $as_echo X"$ac_file" |
13931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13932             s//\1/
13933             q
13934           }
13935           /^X\(\/\/\)[^/].*/{
13936             s//\1/
13937             q
13938           }
13939           /^X\(\/\/\)$/{
13940             s//\1/
13941             q
13942           }
13943           /^X\(\/\).*/{
13944             s//\1/
13945             q
13946           }
13947           s/.*/./; q'`
13948   as_dir="$ac_dir"; as_fn_mkdir_p
13949   ac_builddir=.
13950
13951 case "$ac_dir" in
13952 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13953 *)
13954   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13955   # A ".." for each directory in $ac_dir_suffix.
13956   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13957   case $ac_top_builddir_sub in
13958   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13959   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13960   esac ;;
13961 esac
13962 ac_abs_top_builddir=$ac_pwd
13963 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13964 # for backward compatibility:
13965 ac_top_builddir=$ac_top_build_prefix
13966
13967 case $srcdir in
13968   .)  # We are building in place.
13969     ac_srcdir=.
13970     ac_top_srcdir=$ac_top_builddir_sub
13971     ac_abs_top_srcdir=$ac_pwd ;;
13972   [\\/]* | ?:[\\/]* )  # Absolute name.
13973     ac_srcdir=$srcdir$ac_dir_suffix;
13974     ac_top_srcdir=$srcdir
13975     ac_abs_top_srcdir=$srcdir ;;
13976   *) # Relative name.
13977     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13978     ac_top_srcdir=$ac_top_build_prefix$srcdir
13979     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13980 esac
13981 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13982
13983
13984   case $ac_mode in
13985   :F)
13986   #
13987   # CONFIG_FILE
13988   #
13989
13990   case $INSTALL in
13991   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13992   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13993   esac
13994   ac_MKDIR_P=$MKDIR_P
13995   case $MKDIR_P in
13996   [\\/$]* | ?:[\\/]* ) ;;
13997   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13998   esac
13999 _ACEOF
14000
14001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14002 # If the template does not know about datarootdir, expand it.
14003 # FIXME: This hack should be removed a few years after 2.60.
14004 ac_datarootdir_hack=; ac_datarootdir_seen=
14005 ac_sed_dataroot='
14006 /datarootdir/ {
14007   p
14008   q
14009 }
14010 /@datadir@/p
14011 /@docdir@/p
14012 /@infodir@/p
14013 /@localedir@/p
14014 /@mandir@/p'
14015 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14016 *datarootdir*) ac_datarootdir_seen=yes;;
14017 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14018   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14019 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14020 _ACEOF
14021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14022   ac_datarootdir_hack='
14023   s&@datadir@&$datadir&g
14024   s&@docdir@&$docdir&g
14025   s&@infodir@&$infodir&g
14026   s&@localedir@&$localedir&g
14027   s&@mandir@&$mandir&g
14028   s&\\\${datarootdir}&$datarootdir&g' ;;
14029 esac
14030 _ACEOF
14031
14032 # Neutralize VPATH when `$srcdir' = `.'.
14033 # Shell code in configure.ac might set extrasub.
14034 # FIXME: do we really want to maintain this feature?
14035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14036 ac_sed_extra="$ac_vpsub
14037 $extrasub
14038 _ACEOF
14039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14040 :t
14041 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14042 s|@configure_input@|$ac_sed_conf_input|;t t
14043 s&@top_builddir@&$ac_top_builddir_sub&;t t
14044 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14045 s&@srcdir@&$ac_srcdir&;t t
14046 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14047 s&@top_srcdir@&$ac_top_srcdir&;t t
14048 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14049 s&@builddir@&$ac_builddir&;t t
14050 s&@abs_builddir@&$ac_abs_builddir&;t t
14051 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14052 s&@INSTALL@&$ac_INSTALL&;t t
14053 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14054 $ac_datarootdir_hack
14055 "
14056 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14057   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14058
14059 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14060   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14061   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14062       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14063   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14064 which seems to be undefined.  Please make sure it is defined" >&5
14065 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14066 which seems to be undefined.  Please make sure it is defined" >&2;}
14067
14068   rm -f "$ac_tmp/stdin"
14069   case $ac_file in
14070   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14071   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14072   esac \
14073   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14074  ;;
14075
14076
14077   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14078 $as_echo "$as_me: executing $ac_file commands" >&6;}
14079  ;;
14080   esac
14081
14082
14083   case $ac_file$ac_mode in
14084     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14085   # Older Autoconf quotes --file arguments for eval, but not when files
14086   # are listed without --file.  Let's play safe and only enable the eval
14087   # if we detect the quoting.
14088   case $CONFIG_FILES in
14089   *\'*) eval set x "$CONFIG_FILES" ;;
14090   *)   set x $CONFIG_FILES ;;
14091   esac
14092   shift
14093   for mf
14094   do
14095     # Strip MF so we end up with the name of the file.
14096     mf=`echo "$mf" | sed -e 's/:.*$//'`
14097     # Check whether this is an Automake generated Makefile or not.
14098     # We used to match only the files named 'Makefile.in', but
14099     # some people rename them; so instead we look at the file content.
14100     # Grep'ing the first line is not enough: some people post-process
14101     # each Makefile.in and add a new line on top of each file to say so.
14102     # Grep'ing the whole file is not good either: AIX grep has a line
14103     # limit of 2048, but all sed's we know have understand at least 4000.
14104     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14105       dirpart=`$as_dirname -- "$mf" ||
14106 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14107          X"$mf" : 'X\(//\)[^/]' \| \
14108          X"$mf" : 'X\(//\)$' \| \
14109          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14110 $as_echo X"$mf" |
14111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14112             s//\1/
14113             q
14114           }
14115           /^X\(\/\/\)[^/].*/{
14116             s//\1/
14117             q
14118           }
14119           /^X\(\/\/\)$/{
14120             s//\1/
14121             q
14122           }
14123           /^X\(\/\).*/{
14124             s//\1/
14125             q
14126           }
14127           s/.*/./; q'`
14128     else
14129       continue
14130     fi
14131     # Extract the definition of DEPDIR, am__include, and am__quote
14132     # from the Makefile without running 'make'.
14133     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14134     test -z "$DEPDIR" && continue
14135     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14136     test -z "$am__include" && continue
14137     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14138     # Find all dependency output files, they are included files with
14139     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14140     # simplest approach to changing $(DEPDIR) to its actual value in the
14141     # expansion.
14142     for file in `sed -n "
14143       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14144          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14145       # Make sure the directory exists.
14146       test -f "$dirpart/$file" && continue
14147       fdir=`$as_dirname -- "$file" ||
14148 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14149          X"$file" : 'X\(//\)[^/]' \| \
14150          X"$file" : 'X\(//\)$' \| \
14151          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14152 $as_echo X"$file" |
14153     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14154             s//\1/
14155             q
14156           }
14157           /^X\(\/\/\)[^/].*/{
14158             s//\1/
14159             q
14160           }
14161           /^X\(\/\/\)$/{
14162             s//\1/
14163             q
14164           }
14165           /^X\(\/\).*/{
14166             s//\1/
14167             q
14168           }
14169           s/.*/./; q'`
14170       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14171       # echo "creating $dirpart/$file"
14172       echo '# dummy' > "$dirpart/$file"
14173     done
14174   done
14175 }
14176  ;;
14177     "libtool":C)
14178
14179     # See if we are running on zsh, and set the options which allow our
14180     # commands through without removal of \ escapes.
14181     if test -n "${ZSH_VERSION+set}" ; then
14182       setopt NO_GLOB_SUBST
14183     fi
14184
14185     cfgfile="${ofile}T"
14186     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14187     $RM "$cfgfile"
14188
14189     cat <<_LT_EOF >> "$cfgfile"
14190 #! $SHELL
14191
14192 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14193 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14194 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14195 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14196 #
14197 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14198 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14199 #                 Foundation, Inc.
14200 #   Written by Gordon Matzigkeit, 1996
14201 #
14202 #   This file is part of GNU Libtool.
14203 #
14204 # GNU Libtool is free software; you can redistribute it and/or
14205 # modify it under the terms of the GNU General Public License as
14206 # published by the Free Software Foundation; either version 2 of
14207 # the License, or (at your option) any later version.
14208 #
14209 # As a special exception to the GNU General Public License,
14210 # if you distribute this file as part of a program or library that
14211 # is built using GNU Libtool, you may include this file under the
14212 # same distribution terms that you use for the rest of that program.
14213 #
14214 # GNU Libtool is distributed in the hope that it will be useful,
14215 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14216 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14217 # GNU General Public License for more details.
14218 #
14219 # You should have received a copy of the GNU General Public License
14220 # along with GNU Libtool; see the file COPYING.  If not, a copy
14221 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14222 # obtained by writing to the Free Software Foundation, Inc.,
14223 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14224
14225
14226 # The names of the tagged configurations supported by this script.
14227 available_tags=""
14228
14229 # ### BEGIN LIBTOOL CONFIG
14230
14231 # Which release of libtool.m4 was used?
14232 macro_version=$macro_version
14233 macro_revision=$macro_revision
14234
14235 # Whether or not to build shared libraries.
14236 build_libtool_libs=$enable_shared
14237
14238 # Whether or not to build static libraries.
14239 build_old_libs=$enable_static
14240
14241 # What type of objects to build.
14242 pic_mode=$pic_mode
14243
14244 # Whether or not to optimize for fast installation.
14245 fast_install=$enable_fast_install
14246
14247 # Shell to use when invoking shell scripts.
14248 SHELL=$lt_SHELL
14249
14250 # An echo program that protects backslashes.
14251 ECHO=$lt_ECHO
14252
14253 # The PATH separator for the build system.
14254 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14255
14256 # The host system.
14257 host_alias=$host_alias
14258 host=$host
14259 host_os=$host_os
14260
14261 # The build system.
14262 build_alias=$build_alias
14263 build=$build
14264 build_os=$build_os
14265
14266 # A sed program that does not truncate output.
14267 SED=$lt_SED
14268
14269 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14270 Xsed="\$SED -e 1s/^X//"
14271
14272 # A grep program that handles long lines.
14273 GREP=$lt_GREP
14274
14275 # An ERE matcher.
14276 EGREP=$lt_EGREP
14277
14278 # A literal string matcher.
14279 FGREP=$lt_FGREP
14280
14281 # A BSD- or MS-compatible name lister.
14282 NM=$lt_NM
14283
14284 # Whether we need soft or hard links.
14285 LN_S=$lt_LN_S
14286
14287 # What is the maximum length of a command?
14288 max_cmd_len=$max_cmd_len
14289
14290 # Object file suffix (normally "o").
14291 objext=$ac_objext
14292
14293 # Executable file suffix (normally "").
14294 exeext=$exeext
14295
14296 # whether the shell understands "unset".
14297 lt_unset=$lt_unset
14298
14299 # turn spaces into newlines.
14300 SP2NL=$lt_lt_SP2NL
14301
14302 # turn newlines into spaces.
14303 NL2SP=$lt_lt_NL2SP
14304
14305 # convert \$build file names to \$host format.
14306 to_host_file_cmd=$lt_cv_to_host_file_cmd
14307
14308 # convert \$build files to toolchain format.
14309 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14310
14311 # An object symbol dumper.
14312 OBJDUMP=$lt_OBJDUMP
14313
14314 # Method to check whether dependent libraries are shared objects.
14315 deplibs_check_method=$lt_deplibs_check_method
14316
14317 # Command to use when deplibs_check_method = "file_magic".
14318 file_magic_cmd=$lt_file_magic_cmd
14319
14320 # How to find potential files when deplibs_check_method = "file_magic".
14321 file_magic_glob=$lt_file_magic_glob
14322
14323 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14324 want_nocaseglob=$lt_want_nocaseglob
14325
14326 # DLL creation program.
14327 DLLTOOL=$lt_DLLTOOL
14328
14329 # Command to associate shared and link libraries.
14330 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14331
14332 # The archiver.
14333 AR=$lt_AR
14334
14335 # Flags to create an archive.
14336 AR_FLAGS=$lt_AR_FLAGS
14337
14338 # How to feed a file listing to the archiver.
14339 archiver_list_spec=$lt_archiver_list_spec
14340
14341 # A symbol stripping program.
14342 STRIP=$lt_STRIP
14343
14344 # Commands used to install an old-style archive.
14345 RANLIB=$lt_RANLIB
14346 old_postinstall_cmds=$lt_old_postinstall_cmds
14347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14348
14349 # Whether to use a lock for old archive extraction.
14350 lock_old_archive_extraction=$lock_old_archive_extraction
14351
14352 # A C compiler.
14353 LTCC=$lt_CC
14354
14355 # LTCC compiler flags.
14356 LTCFLAGS=$lt_CFLAGS
14357
14358 # Take the output of nm and produce a listing of raw symbols and C names.
14359 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14360
14361 # Transform the output of nm in a proper C declaration.
14362 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14363
14364 # Transform the output of nm in a C name address pair.
14365 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14366
14367 # Transform the output of nm in a C name address pair when lib prefix is needed.
14368 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14369
14370 # Specify filename containing input files for \$NM.
14371 nm_file_list_spec=$lt_nm_file_list_spec
14372
14373 # The root where to search for dependent libraries,and in which our libraries should be installed.
14374 lt_sysroot=$lt_sysroot
14375
14376 # The name of the directory that contains temporary libtool files.
14377 objdir=$objdir
14378
14379 # Used to examine libraries when file_magic_cmd begins with "file".
14380 MAGIC_CMD=$MAGIC_CMD
14381
14382 # Must we lock files when doing compilation?
14383 need_locks=$lt_need_locks
14384
14385 # Manifest tool.
14386 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14387
14388 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14389 DSYMUTIL=$lt_DSYMUTIL
14390
14391 # Tool to change global to local symbols on Mac OS X.
14392 NMEDIT=$lt_NMEDIT
14393
14394 # Tool to manipulate fat objects and archives on Mac OS X.
14395 LIPO=$lt_LIPO
14396
14397 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14398 OTOOL=$lt_OTOOL
14399
14400 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14401 OTOOL64=$lt_OTOOL64
14402
14403 # Old archive suffix (normally "a").
14404 libext=$libext
14405
14406 # Shared library suffix (normally ".so").
14407 shrext_cmds=$lt_shrext_cmds
14408
14409 # The commands to extract the exported symbol list from a shared archive.
14410 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14411
14412 # Variables whose values should be saved in libtool wrapper scripts and
14413 # restored at link time.
14414 variables_saved_for_relink=$lt_variables_saved_for_relink
14415
14416 # Do we need the "lib" prefix for modules?
14417 need_lib_prefix=$need_lib_prefix
14418
14419 # Do we need a version for libraries?
14420 need_version=$need_version
14421
14422 # Library versioning type.
14423 version_type=$version_type
14424
14425 # Shared library runtime path variable.
14426 runpath_var=$runpath_var
14427
14428 # Shared library path variable.
14429 shlibpath_var=$shlibpath_var
14430
14431 # Is shlibpath searched before the hard-coded library search path?
14432 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14433
14434 # Format of library name prefix.
14435 libname_spec=$lt_libname_spec
14436
14437 # List of archive names.  First name is the real one, the rest are links.
14438 # The last name is the one that the linker finds with -lNAME
14439 library_names_spec=$lt_library_names_spec
14440
14441 # The coded name of the library, if different from the real name.
14442 soname_spec=$lt_soname_spec
14443
14444 # Permission mode override for installation of shared libraries.
14445 install_override_mode=$lt_install_override_mode
14446
14447 # Command to use after installation of a shared archive.
14448 postinstall_cmds=$lt_postinstall_cmds
14449
14450 # Command to use after uninstallation of a shared archive.
14451 postuninstall_cmds=$lt_postuninstall_cmds
14452
14453 # Commands used to finish a libtool library installation in a directory.
14454 finish_cmds=$lt_finish_cmds
14455
14456 # As "finish_cmds", except a single script fragment to be evaled but
14457 # not shown.
14458 finish_eval=$lt_finish_eval
14459
14460 # Whether we should hardcode library paths into libraries.
14461 hardcode_into_libs=$hardcode_into_libs
14462
14463 # Compile-time system search path for libraries.
14464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14465
14466 # Run-time system search path for libraries.
14467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14468
14469 # Whether dlopen is supported.
14470 dlopen_support=$enable_dlopen
14471
14472 # Whether dlopen of programs is supported.
14473 dlopen_self=$enable_dlopen_self
14474
14475 # Whether dlopen of statically linked programs is supported.
14476 dlopen_self_static=$enable_dlopen_self_static
14477
14478 # Commands to strip libraries.
14479 old_striplib=$lt_old_striplib
14480 striplib=$lt_striplib
14481
14482
14483 # The linker used to build libraries.
14484 LD=$lt_LD
14485
14486 # How to create reloadable object files.
14487 reload_flag=$lt_reload_flag
14488 reload_cmds=$lt_reload_cmds
14489
14490 # Commands used to build an old-style archive.
14491 old_archive_cmds=$lt_old_archive_cmds
14492
14493 # A language specific compiler.
14494 CC=$lt_compiler
14495
14496 # Is the compiler the GNU compiler?
14497 with_gcc=$GCC
14498
14499 # Compiler flag to turn off builtin functions.
14500 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14501
14502 # Additional compiler flags for building library objects.
14503 pic_flag=$lt_lt_prog_compiler_pic
14504
14505 # How to pass a linker flag through the compiler.
14506 wl=$lt_lt_prog_compiler_wl
14507
14508 # Compiler flag to prevent dynamic linking.
14509 link_static_flag=$lt_lt_prog_compiler_static
14510
14511 # Does compiler simultaneously support -c and -o options?
14512 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14513
14514 # Whether or not to add -lc for building shared libraries.
14515 build_libtool_need_lc=$archive_cmds_need_lc
14516
14517 # Whether or not to disallow shared libs when runtime libs are static.
14518 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14519
14520 # Compiler flag to allow reflexive dlopens.
14521 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14522
14523 # Compiler flag to generate shared objects directly from archives.
14524 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14525
14526 # Whether the compiler copes with passing no objects directly.
14527 compiler_needs_object=$lt_compiler_needs_object
14528
14529 # Create an old-style archive from a shared archive.
14530 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14531
14532 # Create a temporary old-style archive to link instead of a shared archive.
14533 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14534
14535 # Commands used to build a shared archive.
14536 archive_cmds=$lt_archive_cmds
14537 archive_expsym_cmds=$lt_archive_expsym_cmds
14538
14539 # Commands used to build a loadable module if different from building
14540 # a shared archive.
14541 module_cmds=$lt_module_cmds
14542 module_expsym_cmds=$lt_module_expsym_cmds
14543
14544 # Whether we are building with GNU ld or not.
14545 with_gnu_ld=$lt_with_gnu_ld
14546
14547 # Flag that allows shared libraries with undefined symbols to be built.
14548 allow_undefined_flag=$lt_allow_undefined_flag
14549
14550 # Flag that enforces no undefined symbols.
14551 no_undefined_flag=$lt_no_undefined_flag
14552
14553 # Flag to hardcode \$libdir into a binary during linking.
14554 # This must work even if \$libdir does not exist
14555 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14556
14557 # Whether we need a single "-rpath" flag with a separated argument.
14558 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14559
14560 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14561 # DIR into the resulting binary.
14562 hardcode_direct=$hardcode_direct
14563
14564 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14565 # DIR into the resulting binary and the resulting library dependency is
14566 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14567 # library is relocated.
14568 hardcode_direct_absolute=$hardcode_direct_absolute
14569
14570 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14571 # into the resulting binary.
14572 hardcode_minus_L=$hardcode_minus_L
14573
14574 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14575 # into the resulting binary.
14576 hardcode_shlibpath_var=$hardcode_shlibpath_var
14577
14578 # Set to "yes" if building a shared library automatically hardcodes DIR
14579 # into the library and all subsequent libraries and executables linked
14580 # against it.
14581 hardcode_automatic=$hardcode_automatic
14582
14583 # Set to yes if linker adds runtime paths of dependent libraries
14584 # to runtime path list.
14585 inherit_rpath=$inherit_rpath
14586
14587 # Whether libtool must link a program against all its dependency libraries.
14588 link_all_deplibs=$link_all_deplibs
14589
14590 # Set to "yes" if exported symbols are required.
14591 always_export_symbols=$always_export_symbols
14592
14593 # The commands to list exported symbols.
14594 export_symbols_cmds=$lt_export_symbols_cmds
14595
14596 # Symbols that should not be listed in the preloaded symbols.
14597 exclude_expsyms=$lt_exclude_expsyms
14598
14599 # Symbols that must always be exported.
14600 include_expsyms=$lt_include_expsyms
14601
14602 # Commands necessary for linking programs (against libraries) with templates.
14603 prelink_cmds=$lt_prelink_cmds
14604
14605 # Commands necessary for finishing linking programs.
14606 postlink_cmds=$lt_postlink_cmds
14607
14608 # Specify filename containing input files.
14609 file_list_spec=$lt_file_list_spec
14610
14611 # How to hardcode a shared library path into an executable.
14612 hardcode_action=$hardcode_action
14613
14614 # ### END LIBTOOL CONFIG
14615
14616 _LT_EOF
14617
14618   case $host_os in
14619   aix3*)
14620     cat <<\_LT_EOF >> "$cfgfile"
14621 # AIX sometimes has problems with the GCC collect2 program.  For some
14622 # reason, if we set the COLLECT_NAMES environment variable, the problems
14623 # vanish in a puff of smoke.
14624 if test "X${COLLECT_NAMES+set}" != Xset; then
14625   COLLECT_NAMES=
14626   export COLLECT_NAMES
14627 fi
14628 _LT_EOF
14629     ;;
14630   esac
14631
14632
14633 ltmain="$ac_aux_dir/ltmain.sh"
14634
14635
14636   # We use sed instead of cat because bash on DJGPP gets confused if
14637   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14638   # text mode, it properly converts lines to CR/LF.  This bash problem
14639   # is reportedly fixed, but why not run on old versions too?
14640   sed '$q' "$ltmain" >> "$cfgfile" \
14641      || (rm -f "$cfgfile"; exit 1)
14642
14643   if test x"$xsi_shell" = xyes; then
14644   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14645 func_dirname ()\
14646 {\
14647 \    case ${1} in\
14648 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14649 \      *  ) func_dirname_result="${3}" ;;\
14650 \    esac\
14651 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14652   && mv -f "$cfgfile.tmp" "$cfgfile" \
14653     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14654 test 0 -eq $? || _lt_function_replace_fail=:
14655
14656
14657   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14658 func_basename ()\
14659 {\
14660 \    func_basename_result="${1##*/}"\
14661 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14662   && mv -f "$cfgfile.tmp" "$cfgfile" \
14663     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14664 test 0 -eq $? || _lt_function_replace_fail=:
14665
14666
14667   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14668 func_dirname_and_basename ()\
14669 {\
14670 \    case ${1} in\
14671 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14672 \      *  ) func_dirname_result="${3}" ;;\
14673 \    esac\
14674 \    func_basename_result="${1##*/}"\
14675 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14676   && mv -f "$cfgfile.tmp" "$cfgfile" \
14677     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14678 test 0 -eq $? || _lt_function_replace_fail=:
14679
14680
14681   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14682 func_stripname ()\
14683 {\
14684 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14685 \    # positional parameters, so assign one to ordinary parameter first.\
14686 \    func_stripname_result=${3}\
14687 \    func_stripname_result=${func_stripname_result#"${1}"}\
14688 \    func_stripname_result=${func_stripname_result%"${2}"}\
14689 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14690   && mv -f "$cfgfile.tmp" "$cfgfile" \
14691     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14692 test 0 -eq $? || _lt_function_replace_fail=:
14693
14694
14695   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14696 func_split_long_opt ()\
14697 {\
14698 \    func_split_long_opt_name=${1%%=*}\
14699 \    func_split_long_opt_arg=${1#*=}\
14700 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14701   && mv -f "$cfgfile.tmp" "$cfgfile" \
14702     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14703 test 0 -eq $? || _lt_function_replace_fail=:
14704
14705
14706   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14707 func_split_short_opt ()\
14708 {\
14709 \    func_split_short_opt_arg=${1#??}\
14710 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14711 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14712   && mv -f "$cfgfile.tmp" "$cfgfile" \
14713     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14714 test 0 -eq $? || _lt_function_replace_fail=:
14715
14716
14717   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14718 func_lo2o ()\
14719 {\
14720 \    case ${1} in\
14721 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14722 \      *)    func_lo2o_result=${1} ;;\
14723 \    esac\
14724 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14725   && mv -f "$cfgfile.tmp" "$cfgfile" \
14726     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14727 test 0 -eq $? || _lt_function_replace_fail=:
14728
14729
14730   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14731 func_xform ()\
14732 {\
14733     func_xform_result=${1%.*}.lo\
14734 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14735   && mv -f "$cfgfile.tmp" "$cfgfile" \
14736     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14737 test 0 -eq $? || _lt_function_replace_fail=:
14738
14739
14740   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14741 func_arith ()\
14742 {\
14743     func_arith_result=$(( $* ))\
14744 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14745   && mv -f "$cfgfile.tmp" "$cfgfile" \
14746     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14747 test 0 -eq $? || _lt_function_replace_fail=:
14748
14749
14750   sed -e '/^func_len ()$/,/^} # func_len /c\
14751 func_len ()\
14752 {\
14753     func_len_result=${#1}\
14754 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14755   && mv -f "$cfgfile.tmp" "$cfgfile" \
14756     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14757 test 0 -eq $? || _lt_function_replace_fail=:
14758
14759 fi
14760
14761 if test x"$lt_shell_append" = xyes; then
14762   sed -e '/^func_append ()$/,/^} # func_append /c\
14763 func_append ()\
14764 {\
14765     eval "${1}+=\\${2}"\
14766 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14767   && mv -f "$cfgfile.tmp" "$cfgfile" \
14768     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14769 test 0 -eq $? || _lt_function_replace_fail=:
14770
14771
14772   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14773 func_append_quoted ()\
14774 {\
14775 \    func_quote_for_eval "${2}"\
14776 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14777 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14778   && mv -f "$cfgfile.tmp" "$cfgfile" \
14779     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14780 test 0 -eq $? || _lt_function_replace_fail=:
14781
14782
14783   # Save a `func_append' function call where possible by direct use of '+='
14784   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14785     && mv -f "$cfgfile.tmp" "$cfgfile" \
14786       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14787   test 0 -eq $? || _lt_function_replace_fail=:
14788 else
14789   # Save a `func_append' function call even when '+=' is not available
14790   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14791     && mv -f "$cfgfile.tmp" "$cfgfile" \
14792       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14793   test 0 -eq $? || _lt_function_replace_fail=:
14794 fi
14795
14796 if test x"$_lt_function_replace_fail" = x":"; then
14797   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14798 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14799 fi
14800
14801
14802    mv -f "$cfgfile" "$ofile" ||
14803     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14804   chmod +x "$ofile"
14805
14806  ;;
14807
14808   esac
14809 done # for ac_tag
14810
14811
14812 as_fn_exit 0
14813 _ACEOF
14814 ac_clean_files=$ac_clean_files_save
14815
14816 test $ac_write_fail = 0 ||
14817   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14818
14819
14820 # configure is writing to config.log, and then calls config.status.
14821 # config.status does its own redirection, appending to config.log.
14822 # Unfortunately, on DOS this fails, as config.log is still kept open
14823 # by configure, so config.status won't be able to write to it; its
14824 # output is simply discarded.  So we exec the FD to /dev/null,
14825 # effectively closing config.log, so it can be properly (re)opened and
14826 # appended to by config.status.  When coming back to configure, we
14827 # need to make the FD available again.
14828 if test "$no_create" != yes; then
14829   ac_cs_success=:
14830   ac_config_status_args=
14831   test "$silent" = yes &&
14832     ac_config_status_args="$ac_config_status_args --quiet"
14833   exec 5>/dev/null
14834   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14835   exec 5>>config.log
14836   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14837   # would make configure fail if this is the last instruction.
14838   $ac_cs_success || as_fn_exit 1
14839 fi
14840 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14841   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14842 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14843 fi
14844