OSDN Git Service

Candidate fix for PR c++/41570
[pf3gnuchains/gcc-fork.git] / libssp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libssp 1.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
530
531 case X$lt_ECHO in
532 X*--fallback-echo)
533   # Remove one level of quotation (which was required for Make).
534   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535   ;;
536 esac
537
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540   # Discard the --no-reexec flag, and continue.
541   shift
542 elif test "X$1" = X--fallback-echo; then
543   # Avoid inline document here, it may be left over
544   :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546   # Yippee, $ECHO works!
547   :
548 else
549   # Restart under the correct shell.
550   exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
552
553 if test "X$1" = X--fallback-echo; then
554   # used as fallback echo
555   shift
556   cat <<_LT_EOF
557 $*
558 _LT_EOF
559   exit 0
560 fi
561
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566 if test -z "$lt_ECHO"; then
567   if test "X${echo_test_string+set}" != Xset; then
568     # find a string as large as possible, as long as the shell can cope with it
569     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573       then
574         break
575       fi
576     done
577   fi
578
579   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581      test "X$echo_testing_string" = "X$echo_test_string"; then
582     :
583   else
584     # The Solaris, AIX, and Digital Unix default echo programs unquote
585     # backslashes.  This makes it impossible to quote backslashes using
586     #   echo "$something" | sed 's/\\/\\\\/g'
587     #
588     # So, first we look for a working echo in the user's PATH.
589
590     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591     for dir in $PATH /usr/ucb; do
592       IFS="$lt_save_ifs"
593       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596          test "X$echo_testing_string" = "X$echo_test_string"; then
597         ECHO="$dir/echo"
598         break
599       fi
600     done
601     IFS="$lt_save_ifs"
602
603     if test "X$ECHO" = Xecho; then
604       # We didn't find a better echo, so look for alternatives.
605       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607          test "X$echo_testing_string" = "X$echo_test_string"; then
608         # This shell has a builtin print -r that does the trick.
609         ECHO='print -r'
610       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611            test "X$CONFIG_SHELL" != X/bin/ksh; then
612         # If we have ksh, try running configure again with it.
613         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614         export ORIGINAL_CONFIG_SHELL
615         CONFIG_SHELL=/bin/ksh
616         export CONFIG_SHELL
617         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618       else
619         # Try using printf.
620         ECHO='printf %s\n'
621         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623            test "X$echo_testing_string" = "X$echo_test_string"; then
624           # Cool, printf works
625           :
626         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627              test "X$echo_testing_string" = 'X\t' &&
628              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629              test "X$echo_testing_string" = "X$echo_test_string"; then
630           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631           export CONFIG_SHELL
632           SHELL="$CONFIG_SHELL"
633           export SHELL
634           ECHO="$CONFIG_SHELL $0 --fallback-echo"
635         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636              test "X$echo_testing_string" = 'X\t' &&
637              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638              test "X$echo_testing_string" = "X$echo_test_string"; then
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         else
641           # maybe with a smaller string...
642           prev=:
643
644           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646             then
647               break
648             fi
649             prev="$cmd"
650           done
651
652           if test "$prev" != 'sed 50q "$0"'; then
653             echo_test_string=`eval $prev`
654             export echo_test_string
655             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656           else
657             # Oops.  We lost completely, so just stick with echo.
658             ECHO=echo
659           fi
660         fi
661       fi
662     fi
663   fi
664 fi
665
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671 fi
672
673
674
675
676 exec 7<&0 </dev/null 6>&1
677
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
683 #
684 # Initializations.
685 #
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
694
695 # Identity of this package.
696 PACKAGE_NAME='libssp'
697 PACKAGE_TARNAME='libssp'
698 PACKAGE_VERSION='1.0'
699 PACKAGE_STRING='libssp 1.0'
700 PACKAGE_BUGREPORT=''
701 PACKAGE_URL=''
702
703 ac_unique_file="ssp.c"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
706 #include <stdio.h>
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
709 #endif
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
712 #endif
713 #ifdef STDC_HEADERS
714 # include <stdlib.h>
715 # include <stddef.h>
716 #else
717 # ifdef HAVE_STDLIB_H
718 #  include <stdlib.h>
719 # endif
720 #endif
721 #ifdef HAVE_STRING_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723 #  include <memory.h>
724 # endif
725 # include <string.h>
726 #endif
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
729 #endif
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
732 #endif
733 #ifdef HAVE_STDINT_H
734 # include <stdint.h>
735 #endif
736 #ifdef HAVE_UNISTD_H
737 # include <unistd.h>
738 #endif"
739
740 ac_subst_vars='am__EXEEXT_FALSE
741 am__EXEEXT_TRUE
742 LTLIBOBJS
743 LIBOBJS
744 toolexeclibdir
745 toolexecdir
746 enable_static
747 enable_shared
748 OTOOL64
749 OTOOL
750 LIPO
751 NMEDIT
752 DSYMUTIL
753 lt_ECHO
754 RANLIB
755 AR
756 OBJDUMP
757 LN_S
758 NM
759 ac_ct_DUMPBIN
760 DUMPBIN
761 LD
762 FGREP
763 SED
764 LIBTOOL
765 ssp_have_usable_vsnprintf
766 EGREP
767 GREP
768 LIBSSP_USE_SYMVER_FALSE
769 LIBSSP_USE_SYMVER_TRUE
770 CPP
771 am__fastdepCC_FALSE
772 am__fastdepCC_TRUE
773 CCDEPMODE
774 AMDEPBACKSLASH
775 AMDEP_FALSE
776 AMDEP_TRUE
777 am__quote
778 am__include
779 DEPDIR
780 OBJEXT
781 EXEEXT
782 ac_ct_CC
783 CPPFLAGS
784 LDFLAGS
785 CFLAGS
786 CC
787 multi_basedir
788 MAINT
789 MAINTAINER_MODE_FALSE
790 MAINTAINER_MODE_TRUE
791 am__untar
792 am__tar
793 AMTAR
794 am__leading_dot
795 SET_MAKE
796 AWK
797 mkdir_p
798 MKDIR_P
799 INSTALL_STRIP_PROGRAM
800 STRIP
801 install_sh
802 MAKEINFO
803 AUTOHEADER
804 AUTOMAKE
805 AUTOCONF
806 ACLOCAL
807 VERSION
808 PACKAGE
809 CYGPATH_W
810 am__isrc
811 INSTALL_DATA
812 INSTALL_SCRIPT
813 INSTALL_PROGRAM
814 target_noncanonical
815 target_os
816 target_vendor
817 target_cpu
818 target
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL'
865 ac_subst_files=''
866 ac_user_opts='
867 enable_option_checking
868 enable_version_specific_runtime_libs
869 enable_maintainer_mode
870 enable_multilib
871 enable_dependency_tracking
872 enable_shared
873 enable_static
874 with_pic
875 enable_fast_install
876 with_gnu_ld
877 enable_libtool_lock
878 '
879       ac_precious_vars='build_alias
880 host_alias
881 target_alias
882 CPP
883 CPPFLAGS'
884
885
886 # Initialize some variables set by options.
887 ac_init_help=
888 ac_init_version=false
889 ac_unrecognized_opts=
890 ac_unrecognized_sep=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
893 cache_file=/dev/null
894 exec_prefix=NONE
895 no_create=
896 no_recursion=
897 prefix=NONE
898 program_prefix=NONE
899 program_suffix=NONE
900 program_transform_name=s,x,x,
901 silent=
902 site=
903 srcdir=
904 verbose=
905 x_includes=NONE
906 x_libraries=NONE
907
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 includedir='${prefix}/include'
923 oldincludedir='/usr/include'
924 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
925 infodir='${datarootdir}/info'
926 htmldir='${docdir}'
927 dvidir='${docdir}'
928 pdfdir='${docdir}'
929 psdir='${docdir}'
930 libdir='${exec_prefix}/lib'
931 localedir='${datarootdir}/locale'
932 mandir='${datarootdir}/man'
933
934 ac_prev=
935 ac_dashdash=
936 for ac_option
937 do
938   # If the previous option needs an argument, assign it.
939   if test -n "$ac_prev"; then
940     eval $ac_prev=\$ac_option
941     ac_prev=
942     continue
943   fi
944
945   case $ac_option in
946   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947   *)    ac_optarg=yes ;;
948   esac
949
950   # Accept the important Cygnus configure options, so we can diagnose typos.
951
952   case $ac_dashdash$ac_option in
953   --)
954     ac_dashdash=yes ;;
955
956   -bindir | --bindir | --bindi | --bind | --bin | --bi)
957     ac_prev=bindir ;;
958   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959     bindir=$ac_optarg ;;
960
961   -build | --build | --buil | --bui | --bu)
962     ac_prev=build_alias ;;
963   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964     build_alias=$ac_optarg ;;
965
966   -cache-file | --cache-file | --cache-fil | --cache-fi \
967   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968     ac_prev=cache_file ;;
969   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971     cache_file=$ac_optarg ;;
972
973   --config-cache | -C)
974     cache_file=config.cache ;;
975
976   -datadir | --datadir | --datadi | --datad)
977     ac_prev=datadir ;;
978   -datadir=* | --datadir=* | --datadi=* | --datad=*)
979     datadir=$ac_optarg ;;
980
981   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982   | --dataroo | --dataro | --datar)
983     ac_prev=datarootdir ;;
984   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986     datarootdir=$ac_optarg ;;
987
988   -disable-* | --disable-*)
989     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990     # Reject names that are not valid shell variable names.
991     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992       as_fn_error "invalid feature name: $ac_useropt"
993     ac_useropt_orig=$ac_useropt
994     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995     case $ac_user_opts in
996       *"
997 "enable_$ac_useropt"
998 "*) ;;
999       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000          ac_unrecognized_sep=', ';;
1001     esac
1002     eval enable_$ac_useropt=no ;;
1003
1004   -docdir | --docdir | --docdi | --doc | --do)
1005     ac_prev=docdir ;;
1006   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007     docdir=$ac_optarg ;;
1008
1009   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010     ac_prev=dvidir ;;
1011   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012     dvidir=$ac_optarg ;;
1013
1014   -enable-* | --enable-*)
1015     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016     # Reject names that are not valid shell variable names.
1017     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018       as_fn_error "invalid feature name: $ac_useropt"
1019     ac_useropt_orig=$ac_useropt
1020     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021     case $ac_user_opts in
1022       *"
1023 "enable_$ac_useropt"
1024 "*) ;;
1025       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026          ac_unrecognized_sep=', ';;
1027     esac
1028     eval enable_$ac_useropt=\$ac_optarg ;;
1029
1030   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032   | --exec | --exe | --ex)
1033     ac_prev=exec_prefix ;;
1034   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036   | --exec=* | --exe=* | --ex=*)
1037     exec_prefix=$ac_optarg ;;
1038
1039   -gas | --gas | --ga | --g)
1040     # Obsolete; use --with-gas.
1041     with_gas=yes ;;
1042
1043   -help | --help | --hel | --he | -h)
1044     ac_init_help=long ;;
1045   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046     ac_init_help=recursive ;;
1047   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048     ac_init_help=short ;;
1049
1050   -host | --host | --hos | --ho)
1051     ac_prev=host_alias ;;
1052   -host=* | --host=* | --hos=* | --ho=*)
1053     host_alias=$ac_optarg ;;
1054
1055   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056     ac_prev=htmldir ;;
1057   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058   | --ht=*)
1059     htmldir=$ac_optarg ;;
1060
1061   -includedir | --includedir | --includedi | --included | --include \
1062   | --includ | --inclu | --incl | --inc)
1063     ac_prev=includedir ;;
1064   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065   | --includ=* | --inclu=* | --incl=* | --inc=*)
1066     includedir=$ac_optarg ;;
1067
1068   -infodir | --infodir | --infodi | --infod | --info | --inf)
1069     ac_prev=infodir ;;
1070   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071     infodir=$ac_optarg ;;
1072
1073   -libdir | --libdir | --libdi | --libd)
1074     ac_prev=libdir ;;
1075   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076     libdir=$ac_optarg ;;
1077
1078   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079   | --libexe | --libex | --libe)
1080     ac_prev=libexecdir ;;
1081   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082   | --libexe=* | --libex=* | --libe=*)
1083     libexecdir=$ac_optarg ;;
1084
1085   -localedir | --localedir | --localedi | --localed | --locale)
1086     ac_prev=localedir ;;
1087   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088     localedir=$ac_optarg ;;
1089
1090   -localstatedir | --localstatedir | --localstatedi | --localstated \
1091   | --localstate | --localstat | --localsta | --localst | --locals)
1092     ac_prev=localstatedir ;;
1093   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095     localstatedir=$ac_optarg ;;
1096
1097   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098     ac_prev=mandir ;;
1099   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100     mandir=$ac_optarg ;;
1101
1102   -nfp | --nfp | --nf)
1103     # Obsolete; use --without-fp.
1104     with_fp=no ;;
1105
1106   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107   | --no-cr | --no-c | -n)
1108     no_create=yes ;;
1109
1110   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112     no_recursion=yes ;;
1113
1114   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116   | --oldin | --oldi | --old | --ol | --o)
1117     ac_prev=oldincludedir ;;
1118   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121     oldincludedir=$ac_optarg ;;
1122
1123   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124     ac_prev=prefix ;;
1125   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126     prefix=$ac_optarg ;;
1127
1128   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129   | --program-pre | --program-pr | --program-p)
1130     ac_prev=program_prefix ;;
1131   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133     program_prefix=$ac_optarg ;;
1134
1135   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136   | --program-suf | --program-su | --program-s)
1137     ac_prev=program_suffix ;;
1138   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140     program_suffix=$ac_optarg ;;
1141
1142   -program-transform-name | --program-transform-name \
1143   | --program-transform-nam | --program-transform-na \
1144   | --program-transform-n | --program-transform- \
1145   | --program-transform | --program-transfor \
1146   | --program-transfo | --program-transf \
1147   | --program-trans | --program-tran \
1148   | --progr-tra | --program-tr | --program-t)
1149     ac_prev=program_transform_name ;;
1150   -program-transform-name=* | --program-transform-name=* \
1151   | --program-transform-nam=* | --program-transform-na=* \
1152   | --program-transform-n=* | --program-transform-=* \
1153   | --program-transform=* | --program-transfor=* \
1154   | --program-transfo=* | --program-transf=* \
1155   | --program-trans=* | --program-tran=* \
1156   | --progr-tra=* | --program-tr=* | --program-t=*)
1157     program_transform_name=$ac_optarg ;;
1158
1159   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160     ac_prev=pdfdir ;;
1161   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162     pdfdir=$ac_optarg ;;
1163
1164   -psdir | --psdir | --psdi | --psd | --ps)
1165     ac_prev=psdir ;;
1166   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167     psdir=$ac_optarg ;;
1168
1169   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170   | -silent | --silent | --silen | --sile | --sil)
1171     silent=yes ;;
1172
1173   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174     ac_prev=sbindir ;;
1175   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176   | --sbi=* | --sb=*)
1177     sbindir=$ac_optarg ;;
1178
1179   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181   | --sharedst | --shareds | --shared | --share | --shar \
1182   | --sha | --sh)
1183     ac_prev=sharedstatedir ;;
1184   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187   | --sha=* | --sh=*)
1188     sharedstatedir=$ac_optarg ;;
1189
1190   -site | --site | --sit)
1191     ac_prev=site ;;
1192   -site=* | --site=* | --sit=*)
1193     site=$ac_optarg ;;
1194
1195   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196     ac_prev=srcdir ;;
1197   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198     srcdir=$ac_optarg ;;
1199
1200   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201   | --syscon | --sysco | --sysc | --sys | --sy)
1202     ac_prev=sysconfdir ;;
1203   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205     sysconfdir=$ac_optarg ;;
1206
1207   -target | --target | --targe | --targ | --tar | --ta | --t)
1208     ac_prev=target_alias ;;
1209   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210     target_alias=$ac_optarg ;;
1211
1212   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213     verbose=yes ;;
1214
1215   -version | --version | --versio | --versi | --vers | -V)
1216     ac_init_version=: ;;
1217
1218   -with-* | --with-*)
1219     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222       as_fn_error "invalid package name: $ac_useropt"
1223     ac_useropt_orig=$ac_useropt
1224     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225     case $ac_user_opts in
1226       *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230          ac_unrecognized_sep=', ';;
1231     esac
1232     eval with_$ac_useropt=\$ac_optarg ;;
1233
1234   -without-* | --without-*)
1235     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236     # Reject names that are not valid shell variable names.
1237     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238       as_fn_error "invalid package name: $ac_useropt"
1239     ac_useropt_orig=$ac_useropt
1240     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241     case $ac_user_opts in
1242       *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246          ac_unrecognized_sep=', ';;
1247     esac
1248     eval with_$ac_useropt=no ;;
1249
1250   --x)
1251     # Obsolete; use --with-x.
1252     with_x=yes ;;
1253
1254   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255   | --x-incl | --x-inc | --x-in | --x-i)
1256     ac_prev=x_includes ;;
1257   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259     x_includes=$ac_optarg ;;
1260
1261   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263     ac_prev=x_libraries ;;
1264   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266     x_libraries=$ac_optarg ;;
1267
1268   -*) as_fn_error "unrecognized option: \`$ac_option'
1269 Try \`$0 --help' for more information."
1270     ;;
1271
1272   *=*)
1273     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274     # Reject names that are not valid shell variable names.
1275     case $ac_envvar in #(
1276       '' | [0-9]* | *[!_$as_cr_alnum]* )
1277       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1278     esac
1279     eval $ac_envvar=\$ac_optarg
1280     export $ac_envvar ;;
1281
1282   *)
1283     # FIXME: should be removed in autoconf 3.0.
1284     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288     ;;
1289
1290   esac
1291 done
1292
1293 if test -n "$ac_prev"; then
1294   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295   as_fn_error "missing argument to $ac_option"
1296 fi
1297
1298 if test -n "$ac_unrecognized_opts"; then
1299   case $enable_option_checking in
1300     no) ;;
1301     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1302     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303   esac
1304 fi
1305
1306 # Check all directory arguments for consistency.
1307 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308                 datadir sysconfdir sharedstatedir localstatedir includedir \
1309                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310                 libdir localedir mandir
1311 do
1312   eval ac_val=\$$ac_var
1313   # Remove trailing slashes.
1314   case $ac_val in
1315     */ )
1316       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317       eval $ac_var=\$ac_val;;
1318   esac
1319   # Be sure to have absolute directory names.
1320   case $ac_val in
1321     [\\/$]* | ?:[\\/]* )  continue;;
1322     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323   esac
1324   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1325 done
1326
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1330 build=$build_alias
1331 host=$host_alias
1332 target=$target_alias
1333
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336   if test "x$build_alias" = x; then
1337     cross_compiling=maybe
1338     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1339     If a cross compiler is detected then cross compile mode will be used." >&2
1340   elif test "x$build_alias" != "x$host_alias"; then
1341     cross_compiling=yes
1342   fi
1343 fi
1344
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348 test "$silent" = yes && exec 6>/dev/null
1349
1350
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354   as_fn_error "working directory cannot be determined"
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356   as_fn_error "pwd does not report name of working directory"
1357
1358
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361   ac_srcdir_defaulted=yes
1362   # Try the directory containing this script, then the parent directory.
1363   ac_confdir=`$as_dirname -- "$as_myself" ||
1364 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365          X"$as_myself" : 'X\(//\)[^/]' \| \
1366          X"$as_myself" : 'X\(//\)$' \| \
1367          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368 $as_echo X"$as_myself" |
1369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370             s//\1/
1371             q
1372           }
1373           /^X\(\/\/\)[^/].*/{
1374             s//\1/
1375             q
1376           }
1377           /^X\(\/\/\)$/{
1378             s//\1/
1379             q
1380           }
1381           /^X\(\/\).*/{
1382             s//\1/
1383             q
1384           }
1385           s/.*/./; q'`
1386   srcdir=$ac_confdir
1387   if test ! -r "$srcdir/$ac_unique_file"; then
1388     srcdir=..
1389   fi
1390 else
1391   ac_srcdir_defaulted=no
1392 fi
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1395   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1396 fi
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 ac_abs_confdir=`(
1399         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1400         pwd)`
1401 # When building in place, set srcdir=.
1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403   srcdir=.
1404 fi
1405 # Remove unnecessary trailing slashes from srcdir.
1406 # Double slashes in file names in object file debugging info
1407 # mess up M-x gdb in Emacs.
1408 case $srcdir in
1409 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 esac
1411 for ac_var in $ac_precious_vars; do
1412   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413   eval ac_env_${ac_var}_value=\$${ac_var}
1414   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416 done
1417
1418 #
1419 # Report the --help message.
1420 #
1421 if test "$ac_init_help" = "long"; then
1422   # Omit some internal or obsolete options to make the list less imposing.
1423   # This message is too long to be a string in the A/UX 3.1 sh.
1424   cat <<_ACEOF
1425 \`configure' configures libssp 1.0 to adapt to many kinds of systems.
1426
1427 Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1429 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430 VAR=VALUE.  See below for descriptions of some of the useful variables.
1431
1432 Defaults for the options are specified in brackets.
1433
1434 Configuration:
1435   -h, --help              display this help and exit
1436       --help=short        display options specific to this package
1437       --help=recursive    display the short help of all the included packages
1438   -V, --version           display version information and exit
1439   -q, --quiet, --silent   do not print \`checking...' messages
1440       --cache-file=FILE   cache test results in FILE [disabled]
1441   -C, --config-cache      alias for \`--cache-file=config.cache'
1442   -n, --no-create         do not create output files
1443       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1444
1445 Installation directories:
1446   --prefix=PREFIX         install architecture-independent files in PREFIX
1447                           [$ac_default_prefix]
1448   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1449                           [PREFIX]
1450
1451 By default, \`make install' will install all the files in
1452 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1453 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454 for instance \`--prefix=\$HOME'.
1455
1456 For better control, use the options below.
1457
1458 Fine tuning of the installation directories:
1459   --bindir=DIR            user executables [EPREFIX/bin]
1460   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1461   --libexecdir=DIR        program executables [EPREFIX/libexec]
1462   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1463   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1464   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1465   --libdir=DIR            object code libraries [EPREFIX/lib]
1466   --includedir=DIR        C header files [PREFIX/include]
1467   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1468   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1469   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1470   --infodir=DIR           info documentation [DATAROOTDIR/info]
1471   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1472   --mandir=DIR            man documentation [DATAROOTDIR/man]
1473   --docdir=DIR            documentation root [DATAROOTDIR/doc/libssp]
1474   --htmldir=DIR           html documentation [DOCDIR]
1475   --dvidir=DIR            dvi documentation [DOCDIR]
1476   --pdfdir=DIR            pdf documentation [DOCDIR]
1477   --psdir=DIR             ps documentation [DOCDIR]
1478 _ACEOF
1479
1480   cat <<\_ACEOF
1481
1482 Program names:
1483   --program-prefix=PREFIX            prepend PREFIX to installed program names
1484   --program-suffix=SUFFIX            append SUFFIX to installed program names
1485   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1486
1487 System types:
1488   --build=BUILD     configure for building on BUILD [guessed]
1489   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1490   --target=TARGET   configure for building compilers for TARGET [HOST]
1491 _ACEOF
1492 fi
1493
1494 if test -n "$ac_init_help"; then
1495   case $ac_init_help in
1496      short | recursive ) echo "Configuration of libssp 1.0:";;
1497    esac
1498   cat <<\_ACEOF
1499
1500 Optional Features:
1501   --disable-option-checking  ignore unrecognized --enable/--with options
1502   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1503   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1504   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
1505   --enable-maintainer-mode  enable make rules and dependencies not useful
1506                           (and sometimes confusing) to the casual installer
1507   --enable-multilib       build many library versions (default)
1508   --disable-dependency-tracking  speeds up one-time build
1509   --enable-dependency-tracking   do not reject slow dependency extractors
1510   --enable-shared[=PKGS]  build shared libraries [default=yes]
1511   --enable-static[=PKGS]  build static libraries [default=yes]
1512   --enable-fast-install[=PKGS]
1513                           optimize for fast installation [default=yes]
1514   --disable-libtool-lock  avoid locking (might break parallel builds)
1515
1516 Optional Packages:
1517   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1518   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1519   --with-pic              try to use only PIC/non-PIC objects [default=use
1520                           both]
1521   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1522
1523 Some influential environment variables:
1524   CC          C compiler command
1525   CFLAGS      C compiler flags
1526   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1527               nonstandard directory <lib dir>
1528   LIBS        libraries to pass to the linker, e.g. -l<library>
1529   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530               you have headers in a nonstandard directory <include dir>
1531   CPP         C preprocessor
1532
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1535
1536 Report bugs to the package provider.
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540
1541 if test "$ac_init_help" = "recursive"; then
1542   # If there are subdirs, report their specific --help.
1543   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544     test -d "$ac_dir" ||
1545       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546       continue
1547     ac_builddir=.
1548
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *)
1552   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553   # A ".." for each directory in $ac_dir_suffix.
1554   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555   case $ac_top_builddir_sub in
1556   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558   esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1564
1565 case $srcdir in
1566   .)  # We are building in place.
1567     ac_srcdir=.
1568     ac_top_srcdir=$ac_top_builddir_sub
1569     ac_abs_top_srcdir=$ac_pwd ;;
1570   [\\/]* | ?:[\\/]* )  # Absolute name.
1571     ac_srcdir=$srcdir$ac_dir_suffix;
1572     ac_top_srcdir=$srcdir
1573     ac_abs_top_srcdir=$srcdir ;;
1574   *) # Relative name.
1575     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576     ac_top_srcdir=$ac_top_build_prefix$srcdir
1577     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581     cd "$ac_dir" || { ac_status=$?; continue; }
1582     # Check for guested configure.
1583     if test -f "$ac_srcdir/configure.gnu"; then
1584       echo &&
1585       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586     elif test -f "$ac_srcdir/configure"; then
1587       echo &&
1588       $SHELL "$ac_srcdir/configure" --help=recursive
1589     else
1590       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591     fi || ac_status=$?
1592     cd "$ac_pwd" || { ac_status=$?; break; }
1593   done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598   cat <<\_ACEOF
1599 libssp configure 1.0
1600 generated by GNU Autoconf 2.64
1601
1602 Copyright (C) 2009 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606   exit
1607 fi
1608
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1612
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1617 {
1618   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619   rm -f conftest.$ac_objext
1620   if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623   *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627   (eval "$ac_compile") 2>conftest.err
1628   ac_status=$?
1629   if test -s conftest.err; then
1630     grep -v '^ *+' conftest.err >conftest.er1
1631     cat conftest.er1 >&5
1632     mv -f conftest.er1 conftest.err
1633   fi
1634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635   test $ac_status = 0; } && {
1636          test -z "$ac_c_werror_flag" ||
1637          test ! -s conftest.err
1638        } && test -s conftest.$ac_objext; then :
1639   ac_retval=0
1640 else
1641   $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644         ac_retval=1
1645 fi
1646   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647   return $ac_retval
1648
1649 } # ac_fn_c_try_compile
1650
1651 # ac_fn_c_try_cpp LINENO
1652 # ----------------------
1653 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_cpp ()
1655 {
1656   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657   if { { ac_try="$ac_cpp conftest.$ac_ext"
1658 case "(($ac_try" in
1659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660   *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665   ac_status=$?
1666   if test -s conftest.err; then
1667     grep -v '^ *+' conftest.err >conftest.er1
1668     cat conftest.er1 >&5
1669     mv -f conftest.er1 conftest.err
1670   fi
1671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672   test $ac_status = 0; } >/dev/null && {
1673          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674          test ! -s conftest.err
1675        }; then :
1676   ac_retval=0
1677 else
1678   $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681     ac_retval=1
1682 fi
1683   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684   return $ac_retval
1685
1686 } # ac_fn_c_try_cpp
1687
1688 # ac_fn_c_try_link LINENO
1689 # -----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_link ()
1692 {
1693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694   rm -f conftest.$ac_objext conftest$ac_exeext
1695   if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698   *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702   (eval "$ac_link") 2>conftest.err
1703   ac_status=$?
1704   if test -s conftest.err; then
1705     grep -v '^ *+' conftest.err >conftest.er1
1706     cat conftest.er1 >&5
1707     mv -f conftest.er1 conftest.err
1708   fi
1709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710   test $ac_status = 0; } && {
1711          test -z "$ac_c_werror_flag" ||
1712          test ! -s conftest.err
1713        } && test -s conftest$ac_exeext && {
1714          test "$cross_compiling" = yes ||
1715          $as_test_x conftest$ac_exeext
1716        }; then :
1717   ac_retval=0
1718 else
1719   $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722         ac_retval=1
1723 fi
1724   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726   # interfere with the next link command; also delete a directory that is
1727   # left behind by Apple's compiler.  We do this before executing the actions.
1728   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730   return $ac_retval
1731
1732 } # ac_fn_c_try_link
1733
1734 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1735 # -------------------------------------------------------
1736 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1737 # the include files in INCLUDES and setting the cache variable VAR
1738 # accordingly.
1739 ac_fn_c_check_header_mongrel ()
1740 {
1741   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746   $as_echo_n "(cached) " >&6
1747 fi
1748 eval ac_res=\$$3
1749                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750 $as_echo "$ac_res" >&6; }
1751 else
1752   # Is the header compilable?
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1754 $as_echo_n "checking $2 usability... " >&6; }
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h.  */
1757 $4
1758 #include <$2>
1759 _ACEOF
1760 if ac_fn_c_try_compile "$LINENO"; then :
1761   ac_header_compiler=yes
1762 else
1763   ac_header_compiler=no
1764 fi
1765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1767 $as_echo "$ac_header_compiler" >&6; }
1768
1769 # Is the header present?
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1771 $as_echo_n "checking $2 presence... " >&6; }
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h.  */
1774 #include <$2>
1775 _ACEOF
1776 if ac_fn_c_try_cpp "$LINENO"; then :
1777   ac_header_preproc=yes
1778 else
1779   ac_header_preproc=no
1780 fi
1781 rm -f conftest.err conftest.$ac_ext
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1783 $as_echo "$ac_header_preproc" >&6; }
1784
1785 # So?  What about this header?
1786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1787   yes:no: )
1788     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1789 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1790     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792     ;;
1793   no:yes:* )
1794     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1795 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1796     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1797 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1798     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1799 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1800     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1801 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1802     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1803 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1804     ;;
1805 esac
1806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809   $as_echo_n "(cached) " >&6
1810 else
1811   eval "$3=\$ac_header_compiler"
1812 fi
1813 eval ac_res=\$$3
1814                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1816 fi
1817   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818
1819 } # ac_fn_c_check_header_mongrel
1820
1821 # ac_fn_c_try_run LINENO
1822 # ----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824 # that executables *can* be run.
1825 ac_fn_c_try_run ()
1826 {
1827   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828   if { { ac_try="$ac_link"
1829 case "(($ac_try" in
1830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831   *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835   (eval "$ac_link") 2>&5
1836   ac_status=$?
1837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839   { { case "(($ac_try" in
1840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841   *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845   (eval "$ac_try") 2>&5
1846   ac_status=$?
1847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848   test $ac_status = 0; }; }; then :
1849   ac_retval=0
1850 else
1851   $as_echo "$as_me: program exited with status $ac_status" >&5
1852        $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1854
1855        ac_retval=$ac_status
1856 fi
1857   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859   return $ac_retval
1860
1861 } # ac_fn_c_try_run
1862
1863 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists and can be compiled using the include files in
1866 # INCLUDES, setting the cache variable VAR accordingly.
1867 ac_fn_c_check_header_compile ()
1868 {
1869   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873   $as_echo_n "(cached) " >&6
1874 else
1875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h.  */
1877 $4
1878 #include <$2>
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881   eval "$3=yes"
1882 else
1883   eval "$3=no"
1884 fi
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886 fi
1887 eval ac_res=\$$3
1888                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891
1892 } # ac_fn_c_check_header_compile
1893
1894 # ac_fn_c_check_func LINENO FUNC VAR
1895 # ----------------------------------
1896 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1897 ac_fn_c_check_func ()
1898 {
1899   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903   $as_echo_n "(cached) " >&6
1904 else
1905   if test x$gcc_no_link = xyes; then
1906   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1907 fi
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h.  */
1910 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1912 #define $2 innocuous_$2
1913
1914 /* System header to define __stub macros and hopefully few prototypes,
1915     which can conflict with char $2 (); below.
1916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1917     <limits.h> exists even on freestanding compilers.  */
1918
1919 #ifdef __STDC__
1920 # include <limits.h>
1921 #else
1922 # include <assert.h>
1923 #endif
1924
1925 #undef $2
1926
1927 /* Override any GCC internal prototype to avoid an error.
1928    Use char because int might match the return type of a GCC
1929    builtin and then its argument prototype would still apply.  */
1930 #ifdef __cplusplus
1931 extern "C"
1932 #endif
1933 char $2 ();
1934 /* The GNU C library defines this for functions which it implements
1935     to always fail with ENOSYS.  Some functions are actually named
1936     something starting with __ and the normal name is an alias.  */
1937 #if defined __stub_$2 || defined __stub___$2
1938 choke me
1939 #endif
1940
1941 int
1942 main ()
1943 {
1944 return $2 ();
1945   ;
1946   return 0;
1947 }
1948 _ACEOF
1949 if ac_fn_c_try_link "$LINENO"; then :
1950   eval "$3=yes"
1951 else
1952   eval "$3=no"
1953 fi
1954 rm -f core conftest.err conftest.$ac_objext \
1955     conftest$ac_exeext conftest.$ac_ext
1956 fi
1957 eval ac_res=\$$3
1958                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1961
1962 } # ac_fn_c_check_func
1963 cat >config.log <<_ACEOF
1964 This file contains any messages produced by compilers while
1965 running configure, to aid debugging if configure makes a mistake.
1966
1967 It was created by libssp $as_me 1.0, which was
1968 generated by GNU Autoconf 2.64.  Invocation command line was
1969
1970   $ $0 $@
1971
1972 _ACEOF
1973 exec 5>>config.log
1974 {
1975 cat <<_ASUNAME
1976 ## --------- ##
1977 ## Platform. ##
1978 ## --------- ##
1979
1980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1985
1986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1987 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1988
1989 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1990 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1992 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1993 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1994 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1995 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1996
1997 _ASUNAME
1998
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2001 do
2002   IFS=$as_save_IFS
2003   test -z "$as_dir" && as_dir=.
2004     $as_echo "PATH: $as_dir"
2005   done
2006 IFS=$as_save_IFS
2007
2008 } >&5
2009
2010 cat >&5 <<_ACEOF
2011
2012
2013 ## ----------- ##
2014 ## Core tests. ##
2015 ## ----------- ##
2016
2017 _ACEOF
2018
2019
2020 # Keep a trace of the command line.
2021 # Strip out --no-create and --no-recursion so they do not pile up.
2022 # Strip out --silent because we don't want to record it for future runs.
2023 # Also quote any args containing shell meta-characters.
2024 # Make two passes to allow for proper duplicate-argument suppression.
2025 ac_configure_args=
2026 ac_configure_args0=
2027 ac_configure_args1=
2028 ac_must_keep_next=false
2029 for ac_pass in 1 2
2030 do
2031   for ac_arg
2032   do
2033     case $ac_arg in
2034     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2035     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2036     | -silent | --silent | --silen | --sile | --sil)
2037       continue ;;
2038     *\'*)
2039       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2040     esac
2041     case $ac_pass in
2042     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2043     2)
2044       as_fn_append ac_configure_args1 " '$ac_arg'"
2045       if test $ac_must_keep_next = true; then
2046         ac_must_keep_next=false # Got value, back to normal.
2047       else
2048         case $ac_arg in
2049           *=* | --config-cache | -C | -disable-* | --disable-* \
2050           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2051           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2052           | -with-* | --with-* | -without-* | --without-* | --x)
2053             case "$ac_configure_args0 " in
2054               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2055             esac
2056             ;;
2057           -* ) ac_must_keep_next=true ;;
2058         esac
2059       fi
2060       as_fn_append ac_configure_args " '$ac_arg'"
2061       ;;
2062     esac
2063   done
2064 done
2065 { ac_configure_args0=; unset ac_configure_args0;}
2066 { ac_configure_args1=; unset ac_configure_args1;}
2067
2068 # When interrupted or exit'd, cleanup temporary files, and complete
2069 # config.log.  We remove comments because anyway the quotes in there
2070 # would cause problems or look ugly.
2071 # WARNING: Use '\'' to represent an apostrophe within the trap.
2072 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2073 trap 'exit_status=$?
2074   # Save into config.log some information that might help in debugging.
2075   {
2076     echo
2077
2078     cat <<\_ASBOX
2079 ## ---------------- ##
2080 ## Cache variables. ##
2081 ## ---------------- ##
2082 _ASBOX
2083     echo
2084     # The following way of writing the cache mishandles newlines in values,
2085 (
2086   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2087     eval ac_val=\$$ac_var
2088     case $ac_val in #(
2089     *${as_nl}*)
2090       case $ac_var in #(
2091       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2092 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2093       esac
2094       case $ac_var in #(
2095       _ | IFS | as_nl) ;; #(
2096       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2097       *) { eval $ac_var=; unset $ac_var;} ;;
2098       esac ;;
2099     esac
2100   done
2101   (set) 2>&1 |
2102     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2103     *${as_nl}ac_space=\ *)
2104       sed -n \
2105         "s/'\''/'\''\\\\'\'''\''/g;
2106           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2107       ;; #(
2108     *)
2109       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2110       ;;
2111     esac |
2112     sort
2113 )
2114     echo
2115
2116     cat <<\_ASBOX
2117 ## ----------------- ##
2118 ## Output variables. ##
2119 ## ----------------- ##
2120 _ASBOX
2121     echo
2122     for ac_var in $ac_subst_vars
2123     do
2124       eval ac_val=\$$ac_var
2125       case $ac_val in
2126       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127       esac
2128       $as_echo "$ac_var='\''$ac_val'\''"
2129     done | sort
2130     echo
2131
2132     if test -n "$ac_subst_files"; then
2133       cat <<\_ASBOX
2134 ## ------------------- ##
2135 ## File substitutions. ##
2136 ## ------------------- ##
2137 _ASBOX
2138       echo
2139       for ac_var in $ac_subst_files
2140       do
2141         eval ac_val=\$$ac_var
2142         case $ac_val in
2143         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144         esac
2145         $as_echo "$ac_var='\''$ac_val'\''"
2146       done | sort
2147       echo
2148     fi
2149
2150     if test -s confdefs.h; then
2151       cat <<\_ASBOX
2152 ## ----------- ##
2153 ## confdefs.h. ##
2154 ## ----------- ##
2155 _ASBOX
2156       echo
2157       cat confdefs.h
2158       echo
2159     fi
2160     test "$ac_signal" != 0 &&
2161       $as_echo "$as_me: caught signal $ac_signal"
2162     $as_echo "$as_me: exit $exit_status"
2163   } >&5
2164   rm -f core *.core core.conftest.* &&
2165     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2166     exit $exit_status
2167 ' 0
2168 for ac_signal in 1 2 13 15; do
2169   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2170 done
2171 ac_signal=0
2172
2173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2174 rm -f -r conftest* confdefs.h
2175
2176 $as_echo "/* confdefs.h */" > confdefs.h
2177
2178 # Predefined preprocessor variables.
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_NAME "$PACKAGE_NAME"
2182 _ACEOF
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2186 _ACEOF
2187
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2190 _ACEOF
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_STRING "$PACKAGE_STRING"
2194 _ACEOF
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2198 _ACEOF
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_URL "$PACKAGE_URL"
2202 _ACEOF
2203
2204
2205 # Let the site file select an alternate cache file if it wants to.
2206 # Prefer an explicitly selected file to automatically selected ones.
2207 ac_site_file1=NONE
2208 ac_site_file2=NONE
2209 if test -n "$CONFIG_SITE"; then
2210   ac_site_file1=$CONFIG_SITE
2211 elif test "x$prefix" != xNONE; then
2212   ac_site_file1=$prefix/share/config.site
2213   ac_site_file2=$prefix/etc/config.site
2214 else
2215   ac_site_file1=$ac_default_prefix/share/config.site
2216   ac_site_file2=$ac_default_prefix/etc/config.site
2217 fi
2218 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2219 do
2220   test "x$ac_site_file" = xNONE && continue
2221   if test -r "$ac_site_file"; then
2222     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2223 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2224     sed 's/^/| /' "$ac_site_file" >&5
2225     . "$ac_site_file"
2226   fi
2227 done
2228
2229 if test -r "$cache_file"; then
2230   # Some versions of bash will fail to source /dev/null (special
2231   # files actually), so we avoid doing that.
2232   if test -f "$cache_file"; then
2233     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2234 $as_echo "$as_me: loading cache $cache_file" >&6;}
2235     case $cache_file in
2236       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2237       *)                      . "./$cache_file";;
2238     esac
2239   fi
2240 else
2241   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2242 $as_echo "$as_me: creating cache $cache_file" >&6;}
2243   >$cache_file
2244 fi
2245
2246 # Check that the precious variables saved in the cache have kept the same
2247 # value.
2248 ac_cache_corrupted=false
2249 for ac_var in $ac_precious_vars; do
2250   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2251   eval ac_new_set=\$ac_env_${ac_var}_set
2252   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2253   eval ac_new_val=\$ac_env_${ac_var}_value
2254   case $ac_old_set,$ac_new_set in
2255     set,)
2256       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2258       ac_cache_corrupted=: ;;
2259     ,set)
2260       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2261 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2262       ac_cache_corrupted=: ;;
2263     ,);;
2264     *)
2265       if test "x$ac_old_val" != "x$ac_new_val"; then
2266         # differences in whitespace do not lead to failure.
2267         ac_old_val_w=`echo x $ac_old_val`
2268         ac_new_val_w=`echo x $ac_new_val`
2269         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2270           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2271 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2272           ac_cache_corrupted=:
2273         else
2274           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2275 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2276           eval $ac_var=\$ac_old_val
2277         fi
2278         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2279 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2280         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2281 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2282       fi;;
2283   esac
2284   # Pass precious variables to config.status.
2285   if test "$ac_new_set" = set; then
2286     case $ac_new_val in
2287     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2288     *) ac_arg=$ac_var=$ac_new_val ;;
2289     esac
2290     case " $ac_configure_args " in
2291       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2292       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2293     esac
2294   fi
2295 done
2296 if $ac_cache_corrupted; then
2297   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2300 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2301   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2302 fi
2303 ## -------------------- ##
2304 ## Main body of script. ##
2305 ## -------------------- ##
2306
2307 ac_ext=c
2308 ac_cpp='$CPP $CPPFLAGS'
2309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312
2313
2314
2315
2316
2317
2318 ac_aux_dir=
2319 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2320   for ac_t in install-sh install.sh shtool; do
2321     if test -f "$ac_dir/$ac_t"; then
2322       ac_aux_dir=$ac_dir
2323       ac_install_sh="$ac_aux_dir/$ac_t -c"
2324       break 2
2325     fi
2326   done
2327 done
2328 if test -z "$ac_aux_dir"; then
2329   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2330 fi
2331
2332 # These three variables are undocumented and unsupported,
2333 # and are intended to be withdrawn in a future Autoconf release.
2334 # They can cause serious problems if a builder's source tree is in a directory
2335 # whose full name contains unusual characters.
2336 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2337 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2338 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2339
2340
2341 # Make sure we can run config.sub.
2342 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2343   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2344
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2346 $as_echo_n "checking build system type... " >&6; }
2347 if test "${ac_cv_build+set}" = set; then :
2348   $as_echo_n "(cached) " >&6
2349 else
2350   ac_build_alias=$build_alias
2351 test "x$ac_build_alias" = x &&
2352   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2353 test "x$ac_build_alias" = x &&
2354   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2355 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2356   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2357
2358 fi
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2360 $as_echo "$ac_cv_build" >&6; }
2361 case $ac_cv_build in
2362 *-*-*) ;;
2363 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2364 esac
2365 build=$ac_cv_build
2366 ac_save_IFS=$IFS; IFS='-'
2367 set x $ac_cv_build
2368 shift
2369 build_cpu=$1
2370 build_vendor=$2
2371 shift; shift
2372 # Remember, the first character of IFS is used to create $*,
2373 # except with old shells:
2374 build_os=$*
2375 IFS=$ac_save_IFS
2376 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2377
2378
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2380 $as_echo_n "checking host system type... " >&6; }
2381 if test "${ac_cv_host+set}" = set; then :
2382   $as_echo_n "(cached) " >&6
2383 else
2384   if test "x$host_alias" = x; then
2385   ac_cv_host=$ac_cv_build
2386 else
2387   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2388     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2389 fi
2390
2391 fi
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2393 $as_echo "$ac_cv_host" >&6; }
2394 case $ac_cv_host in
2395 *-*-*) ;;
2396 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2397 esac
2398 host=$ac_cv_host
2399 ac_save_IFS=$IFS; IFS='-'
2400 set x $ac_cv_host
2401 shift
2402 host_cpu=$1
2403 host_vendor=$2
2404 shift; shift
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2407 host_os=$*
2408 IFS=$ac_save_IFS
2409 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2410
2411
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2413 $as_echo_n "checking target system type... " >&6; }
2414 if test "${ac_cv_target+set}" = set; then :
2415   $as_echo_n "(cached) " >&6
2416 else
2417   if test "x$target_alias" = x; then
2418   ac_cv_target=$ac_cv_host
2419 else
2420   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2421     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2422 fi
2423
2424 fi
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2426 $as_echo "$ac_cv_target" >&6; }
2427 case $ac_cv_target in
2428 *-*-*) ;;
2429 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2430 esac
2431 target=$ac_cv_target
2432 ac_save_IFS=$IFS; IFS='-'
2433 set x $ac_cv_target
2434 shift
2435 target_cpu=$1
2436 target_vendor=$2
2437 shift; shift
2438 # Remember, the first character of IFS is used to create $*,
2439 # except with old shells:
2440 target_os=$*
2441 IFS=$ac_save_IFS
2442 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2443
2444
2445 # The aliases save the names the user supplied, while $host etc.
2446 # will get canonicalized.
2447 test -n "$target_alias" &&
2448   test "$program_prefix$program_suffix$program_transform_name" = \
2449     NONENONEs,x,x, &&
2450   program_prefix=${target_alias}-
2451
2452  case ${build_alias} in
2453   "") build_noncanonical=${build} ;;
2454   *) build_noncanonical=${build_alias} ;;
2455 esac
2456
2457  case ${host_alias} in
2458   "") host_noncanonical=${build_noncanonical} ;;
2459   *) host_noncanonical=${host_alias} ;;
2460 esac
2461
2462  case ${target_alias} in
2463   "") target_noncanonical=${host_noncanonical} ;;
2464   *) target_noncanonical=${target_alias} ;;
2465 esac
2466
2467
2468
2469
2470 am__api_version='1.11'
2471
2472 # Find a good install program.  We prefer a C program (faster),
2473 # so one script is as good as another.  But avoid the broken or
2474 # incompatible versions:
2475 # SysV /etc/install, /usr/sbin/install
2476 # SunOS /usr/etc/install
2477 # IRIX /sbin/install
2478 # AIX /bin/install
2479 # AmigaOS /C/install, which installs bootblocks on floppy discs
2480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2483 # OS/2's system install, which has a completely different semantic
2484 # ./install, which can be erroneously created by make from ./install.sh.
2485 # Reject install programs that cannot install multiple files.
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2487 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2488 if test -z "$INSTALL"; then
2489 if test "${ac_cv_path_install+set}" = set; then :
2490   $as_echo_n "(cached) " >&6
2491 else
2492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495   IFS=$as_save_IFS
2496   test -z "$as_dir" && as_dir=.
2497     # Account for people who put trailing slashes in PATH elements.
2498 case $as_dir/ in #((
2499   ./ | .// | /[cC]/* | \
2500   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2501   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2502   /usr/ucb/* ) ;;
2503   *)
2504     # OSF1 and SCO ODT 3.0 have their own names for install.
2505     # Don't use installbsd from OSF since it installs stuff as root
2506     # by default.
2507     for ac_prog in ginstall scoinst install; do
2508       for ac_exec_ext in '' $ac_executable_extensions; do
2509         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2510           if test $ac_prog = install &&
2511             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2512             # AIX install.  It has an incompatible calling convention.
2513             :
2514           elif test $ac_prog = install &&
2515             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2516             # program-specific install script used by HP pwplus--don't use.
2517             :
2518           else
2519             rm -rf conftest.one conftest.two conftest.dir
2520             echo one > conftest.one
2521             echo two > conftest.two
2522             mkdir conftest.dir
2523             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2524               test -s conftest.one && test -s conftest.two &&
2525               test -s conftest.dir/conftest.one &&
2526               test -s conftest.dir/conftest.two
2527             then
2528               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2529               break 3
2530             fi
2531           fi
2532         fi
2533       done
2534     done
2535     ;;
2536 esac
2537
2538   done
2539 IFS=$as_save_IFS
2540
2541 rm -rf conftest.one conftest.two conftest.dir
2542
2543 fi
2544   if test "${ac_cv_path_install+set}" = set; then
2545     INSTALL=$ac_cv_path_install
2546   else
2547     # As a last resort, use the slow shell script.  Don't cache a
2548     # value for INSTALL within a source directory, because that will
2549     # break other packages using the cache if that directory is
2550     # removed, or if the value is a relative name.
2551     INSTALL=$ac_install_sh
2552   fi
2553 fi
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2555 $as_echo "$INSTALL" >&6; }
2556
2557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2558 # It thinks the first close brace ends the variable substitution.
2559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2560
2561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2562
2563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2564
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2566 $as_echo_n "checking whether build environment is sane... " >&6; }
2567 # Just in case
2568 sleep 1
2569 echo timestamp > conftest.file
2570 # Reject unsafe characters in $srcdir or the absolute working directory
2571 # name.  Accept space and tab only in the latter.
2572 am_lf='
2573 '
2574 case `pwd` in
2575   *[\\\"\#\$\&\'\`$am_lf]*)
2576     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2577 esac
2578 case $srcdir in
2579   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2580     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2581 esac
2582
2583 # Do `set' in a subshell so we don't clobber the current shell's
2584 # arguments.  Must try -L first in case configure is actually a
2585 # symlink; some systems play weird games with the mod time of symlinks
2586 # (eg FreeBSD returns the mod time of the symlink's containing
2587 # directory).
2588 if (
2589    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2590    if test "$*" = "X"; then
2591       # -L didn't work.
2592       set X `ls -t "$srcdir/configure" conftest.file`
2593    fi
2594    rm -f conftest.file
2595    if test "$*" != "X $srcdir/configure conftest.file" \
2596       && test "$*" != "X conftest.file $srcdir/configure"; then
2597
2598       # If neither matched, then we have a broken ls.  This can happen
2599       # if, for instance, CONFIG_SHELL is bash and it inherits a
2600       # broken ls alias from the environment.  This has actually
2601       # happened.  Such a system could not be considered "sane".
2602       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2603 alias in your environment" "$LINENO" 5
2604    fi
2605
2606    test "$2" = conftest.file
2607    )
2608 then
2609    # Ok.
2610    :
2611 else
2612    as_fn_error "newly created file is older than distributed files!
2613 Check your system clock" "$LINENO" 5
2614 fi
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616 $as_echo "yes" >&6; }
2617 test "$program_prefix" != NONE &&
2618   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2619 # Use a double $ so make ignores it.
2620 test "$program_suffix" != NONE &&
2621   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2622 # Double any \ or $.
2623 # By default was `s,x,x', remove it if useless.
2624 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2625 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2626
2627 # expand $ac_aux_dir to an absolute path
2628 am_aux_dir=`cd $ac_aux_dir && pwd`
2629
2630 if test x"${MISSING+set}" != xset; then
2631   case $am_aux_dir in
2632   *\ * | *\     *)
2633     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2634   *)
2635     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2636   esac
2637 fi
2638 # Use eval to expand $SHELL
2639 if eval "$MISSING --run true"; then
2640   am_missing_run="$MISSING --run "
2641 else
2642   am_missing_run=
2643   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2644 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2645 fi
2646
2647 if test x"${install_sh}" != xset; then
2648   case $am_aux_dir in
2649   *\ * | *\     *)
2650     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2651   *)
2652     install_sh="\${SHELL} $am_aux_dir/install-sh"
2653   esac
2654 fi
2655
2656 # Installed binaries are usually stripped using `strip' when the user
2657 # run `make install-strip'.  However `strip' might not be the right
2658 # tool to use in cross-compilation environments, therefore Automake
2659 # will honor the `STRIP' environment variable to overrule this program.
2660 if test "$cross_compiling" != no; then
2661   if test -n "$ac_tool_prefix"; then
2662   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2663 set dummy ${ac_tool_prefix}strip; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if test "${ac_cv_prog_STRIP+set}" = set; then :
2667   $as_echo_n "(cached) " >&6
2668 else
2669   if test -n "$STRIP"; then
2670   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675   IFS=$as_save_IFS
2676   test -z "$as_dir" && as_dir=.
2677     for ac_exec_ext in '' $ac_executable_extensions; do
2678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681     break 2
2682   fi
2683 done
2684   done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 STRIP=$ac_cv_prog_STRIP
2690 if test -n "$STRIP"; then
2691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2692 $as_echo "$STRIP" >&6; }
2693 else
2694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 fi
2697
2698
2699 fi
2700 if test -z "$ac_cv_prog_STRIP"; then
2701   ac_ct_STRIP=$STRIP
2702   # Extract the first word of "strip", so it can be a program name with args.
2703 set dummy strip; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2707   $as_echo_n "(cached) " >&6
2708 else
2709   if test -n "$ac_ct_STRIP"; then
2710   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715   IFS=$as_save_IFS
2716   test -z "$as_dir" && as_dir=.
2717     for ac_exec_ext in '' $ac_executable_extensions; do
2718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719     ac_cv_prog_ac_ct_STRIP="strip"
2720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721     break 2
2722   fi
2723 done
2724   done
2725 IFS=$as_save_IFS
2726
2727 fi
2728 fi
2729 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2730 if test -n "$ac_ct_STRIP"; then
2731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2732 $as_echo "$ac_ct_STRIP" >&6; }
2733 else
2734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736 fi
2737
2738   if test "x$ac_ct_STRIP" = x; then
2739     STRIP=":"
2740   else
2741     case $cross_compiling:$ac_tool_warned in
2742 yes:)
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2745 ac_tool_warned=yes ;;
2746 esac
2747     STRIP=$ac_ct_STRIP
2748   fi
2749 else
2750   STRIP="$ac_cv_prog_STRIP"
2751 fi
2752
2753 fi
2754 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2755
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2757 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2758 if test -z "$MKDIR_P"; then
2759   if test "${ac_cv_path_mkdir+set}" = set; then :
2760   $as_echo_n "(cached) " >&6
2761 else
2762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2764 do
2765   IFS=$as_save_IFS
2766   test -z "$as_dir" && as_dir=.
2767     for ac_prog in mkdir gmkdir; do
2768          for ac_exec_ext in '' $ac_executable_extensions; do
2769            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2770            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2771              'mkdir (GNU coreutils) '* | \
2772              'mkdir (coreutils) '* | \
2773              'mkdir (fileutils) '4.1*)
2774                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2775                break 3;;
2776            esac
2777          done
2778        done
2779   done
2780 IFS=$as_save_IFS
2781
2782 fi
2783
2784   if test "${ac_cv_path_mkdir+set}" = set; then
2785     MKDIR_P="$ac_cv_path_mkdir -p"
2786   else
2787     # As a last resort, use the slow shell script.  Don't cache a
2788     # value for MKDIR_P within a source directory, because that will
2789     # break other packages using the cache if that directory is
2790     # removed, or if the value is a relative name.
2791     test -d ./--version && rmdir ./--version
2792     MKDIR_P="$ac_install_sh -d"
2793   fi
2794 fi
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2796 $as_echo "$MKDIR_P" >&6; }
2797
2798 mkdir_p="$MKDIR_P"
2799 case $mkdir_p in
2800   [\\/$]* | ?:[\\/]*) ;;
2801   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2802 esac
2803
2804 for ac_prog in gawk mawk nawk awk
2805 do
2806   # Extract the first word of "$ac_prog", so it can be a program name with args.
2807 set dummy $ac_prog; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if test "${ac_cv_prog_AWK+set}" = set; then :
2811   $as_echo_n "(cached) " >&6
2812 else
2813   if test -n "$AWK"; then
2814   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821     for ac_exec_ext in '' $ac_executable_extensions; do
2822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823     ac_cv_prog_AWK="$ac_prog"
2824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825     break 2
2826   fi
2827 done
2828   done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 AWK=$ac_cv_prog_AWK
2834 if test -n "$AWK"; then
2835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2836 $as_echo "$AWK" >&6; }
2837 else
2838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 fi
2841
2842
2843   test -n "$AWK" && break
2844 done
2845
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2847 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2848 set x ${MAKE-make}
2849 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2850 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2851   $as_echo_n "(cached) " >&6
2852 else
2853   cat >conftest.make <<\_ACEOF
2854 SHELL = /bin/sh
2855 all:
2856         @echo '@@@%%%=$(MAKE)=@@@%%%'
2857 _ACEOF
2858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2859 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2860   *@@@%%%=?*=@@@%%%*)
2861     eval ac_cv_prog_make_${ac_make}_set=yes;;
2862   *)
2863     eval ac_cv_prog_make_${ac_make}_set=no;;
2864 esac
2865 rm -f conftest.make
2866 fi
2867 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2869 $as_echo "yes" >&6; }
2870   SET_MAKE=
2871 else
2872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2874   SET_MAKE="MAKE=${MAKE-make}"
2875 fi
2876
2877 rm -rf .tst 2>/dev/null
2878 mkdir .tst 2>/dev/null
2879 if test -d .tst; then
2880   am__leading_dot=.
2881 else
2882   am__leading_dot=_
2883 fi
2884 rmdir .tst 2>/dev/null
2885
2886 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2887   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2888   # is not polluted with repeated "-I."
2889   am__isrc=' -I$(srcdir)'
2890   # test to see if srcdir already configured
2891   if test -f $srcdir/config.status; then
2892     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2893   fi
2894 fi
2895
2896 # test whether we have cygpath
2897 if test -z "$CYGPATH_W"; then
2898   if (cygpath --version) >/dev/null 2>/dev/null; then
2899     CYGPATH_W='cygpath -w'
2900   else
2901     CYGPATH_W=echo
2902   fi
2903 fi
2904
2905
2906 # Define the identity of the package.
2907  PACKAGE='libssp'
2908  VERSION='1.0'
2909
2910
2911 cat >>confdefs.h <<_ACEOF
2912 #define PACKAGE "$PACKAGE"
2913 _ACEOF
2914
2915
2916 cat >>confdefs.h <<_ACEOF
2917 #define VERSION "$VERSION"
2918 _ACEOF
2919
2920 # Some tools Automake needs.
2921
2922 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2923
2924
2925 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2926
2927
2928 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2929
2930
2931 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2932
2933
2934 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2935
2936 # We need awk for the "check" target.  The system "awk" is bad on
2937 # some platforms.
2938 # Always define AMTAR for backward compatibility.
2939
2940 AMTAR=${AMTAR-"${am_missing_run}tar"}
2941
2942 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2943
2944
2945
2946
2947
2948
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2950 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2951 # Check whether --enable-version-specific-runtime-libs was given.
2952 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2953   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2954  yes) version_specific_libs=yes ;;
2955  no)  version_specific_libs=no ;;
2956  *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2957  esac
2958 else
2959   version_specific_libs=no
2960 fi
2961
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2963 $as_echo "$version_specific_libs" >&6; }
2964
2965
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2967 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2968     # Check whether --enable-maintainer-mode was given.
2969 if test "${enable_maintainer_mode+set}" = set; then :
2970   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2971 else
2972   USE_MAINTAINER_MODE=no
2973 fi
2974
2975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2976 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2977    if test $USE_MAINTAINER_MODE = yes; then
2978   MAINTAINER_MODE_TRUE=
2979   MAINTAINER_MODE_FALSE='#'
2980 else
2981   MAINTAINER_MODE_TRUE='#'
2982   MAINTAINER_MODE_FALSE=
2983 fi
2984
2985   MAINT=$MAINTAINER_MODE_TRUE
2986
2987
2988
2989
2990
2991 # Default to --enable-multilib
2992 # Check whether --enable-multilib was given.
2993 if test "${enable_multilib+set}" = set; then :
2994   enableval=$enable_multilib; case "$enableval" in
2995   yes) multilib=yes ;;
2996   no)  multilib=no ;;
2997   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2998  esac
2999 else
3000   multilib=yes
3001 fi
3002
3003
3004 # We may get other options which we leave undocumented:
3005 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3006 # See config-ml.in if you want the gory details.
3007
3008 if test "$srcdir" = "."; then
3009   if test "$with_target_subdir" != "."; then
3010     multi_basedir="$srcdir/$with_multisrctop../.."
3011   else
3012     multi_basedir="$srcdir/$with_multisrctop.."
3013   fi
3014 else
3015   multi_basedir="$srcdir/.."
3016 fi
3017
3018
3019 # Even if the default multilib is not a cross compilation,
3020 # it may be that some of the other multilibs are.
3021 if test $cross_compiling = no && test $multilib = yes \
3022    && test "x${with_multisubdir}" != x ; then
3023    cross_compiling=maybe
3024 fi
3025
3026 ac_config_commands="$ac_config_commands default-1"
3027
3028
3029 target_alias=${target_alias-$host_alias}
3030
3031
3032 ac_config_headers="$ac_config_headers config.h"
3033
3034
3035 ac_ext=c
3036 ac_cpp='$CPP $CPPFLAGS'
3037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040
3041 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3042 # We must force CC to /not/ be precious variables; otherwise
3043 # the wrong, non-multilib-adjusted value will be used in multilibs.
3044 # As a side effect, we have to subst CFLAGS ourselves.
3045
3046
3047
3048 ac_ext=c
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053 if test -n "$ac_tool_prefix"; then
3054   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if test "${ac_cv_prog_CC+set}" = set; then :
3059   $as_echo_n "(cached) " >&6
3060 else
3061   if test -n "$CC"; then
3062   ac_cv_prog_CC="$CC" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067   IFS=$as_save_IFS
3068   test -z "$as_dir" && as_dir=.
3069     for ac_exec_ext in '' $ac_executable_extensions; do
3070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073     break 2
3074   fi
3075 done
3076   done
3077 IFS=$as_save_IFS
3078
3079 fi
3080 fi
3081 CC=$ac_cv_prog_CC
3082 if test -n "$CC"; then
3083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084 $as_echo "$CC" >&6; }
3085 else
3086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3088 fi
3089
3090
3091 fi
3092 if test -z "$ac_cv_prog_CC"; then
3093   ac_ct_CC=$CC
3094   # Extract the first word of "gcc", so it can be a program name with args.
3095 set dummy gcc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3099   $as_echo_n "(cached) " >&6
3100 else
3101   if test -n "$ac_ct_CC"; then
3102   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107   IFS=$as_save_IFS
3108   test -z "$as_dir" && as_dir=.
3109     for ac_exec_ext in '' $ac_executable_extensions; do
3110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111     ac_cv_prog_ac_ct_CC="gcc"
3112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113     break 2
3114   fi
3115 done
3116   done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3122 if test -n "$ac_ct_CC"; then
3123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3124 $as_echo "$ac_ct_CC" >&6; }
3125 else
3126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 fi
3129
3130   if test "x$ac_ct_CC" = x; then
3131     CC=""
3132   else
3133     case $cross_compiling:$ac_tool_warned in
3134 yes:)
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3137 ac_tool_warned=yes ;;
3138 esac
3139     CC=$ac_ct_CC
3140   fi
3141 else
3142   CC="$ac_cv_prog_CC"
3143 fi
3144
3145 if test -z "$CC"; then
3146           if test -n "$ac_tool_prefix"; then
3147     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3148 set dummy ${ac_tool_prefix}cc; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if test "${ac_cv_prog_CC+set}" = set; then :
3152   $as_echo_n "(cached) " >&6
3153 else
3154   if test -n "$CC"; then
3155   ac_cv_prog_CC="$CC" # Let the user override the test.
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3159 do
3160   IFS=$as_save_IFS
3161   test -z "$as_dir" && as_dir=.
3162     for ac_exec_ext in '' $ac_executable_extensions; do
3163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164     ac_cv_prog_CC="${ac_tool_prefix}cc"
3165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166     break 2
3167   fi
3168 done
3169   done
3170 IFS=$as_save_IFS
3171
3172 fi
3173 fi
3174 CC=$ac_cv_prog_CC
3175 if test -n "$CC"; then
3176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177 $as_echo "$CC" >&6; }
3178 else
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183
3184   fi
3185 fi
3186 if test -z "$CC"; then
3187   # Extract the first word of "cc", so it can be a program name with args.
3188 set dummy cc; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if test "${ac_cv_prog_CC+set}" = set; then :
3192   $as_echo_n "(cached) " >&6
3193 else
3194   if test -n "$CC"; then
3195   ac_cv_prog_CC="$CC" # Let the user override the test.
3196 else
3197   ac_prog_rejected=no
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201   IFS=$as_save_IFS
3202   test -z "$as_dir" && as_dir=.
3203     for ac_exec_ext in '' $ac_executable_extensions; do
3204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3206        ac_prog_rejected=yes
3207        continue
3208      fi
3209     ac_cv_prog_CC="cc"
3210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211     break 2
3212   fi
3213 done
3214   done
3215 IFS=$as_save_IFS
3216
3217 if test $ac_prog_rejected = yes; then
3218   # We found a bogon in the path, so make sure we never use it.
3219   set dummy $ac_cv_prog_CC
3220   shift
3221   if test $# != 0; then
3222     # We chose a different compiler from the bogus one.
3223     # However, it has the same basename, so the bogon will be chosen
3224     # first if we set CC to just the basename; use the full file name.
3225     shift
3226     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3227   fi
3228 fi
3229 fi
3230 fi
3231 CC=$ac_cv_prog_CC
3232 if test -n "$CC"; then
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3234 $as_echo "$CC" >&6; }
3235 else
3236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 fi
3239
3240
3241 fi
3242 if test -z "$CC"; then
3243   if test -n "$ac_tool_prefix"; then
3244   for ac_prog in cl.exe
3245   do
3246     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 $as_echo_n "checking for $ac_word... " >&6; }
3250 if test "${ac_cv_prog_CC+set}" = set; then :
3251   $as_echo_n "(cached) " >&6
3252 else
3253   if test -n "$CC"; then
3254   ac_cv_prog_CC="$CC" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259   IFS=$as_save_IFS
3260   test -z "$as_dir" && as_dir=.
3261     for ac_exec_ext in '' $ac_executable_extensions; do
3262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3263     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265     break 2
3266   fi
3267 done
3268   done
3269 IFS=$as_save_IFS
3270
3271 fi
3272 fi
3273 CC=$ac_cv_prog_CC
3274 if test -n "$CC"; then
3275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3276 $as_echo "$CC" >&6; }
3277 else
3278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3280 fi
3281
3282
3283     test -n "$CC" && break
3284   done
3285 fi
3286 if test -z "$CC"; then
3287   ac_ct_CC=$CC
3288   for ac_prog in cl.exe
3289 do
3290   # Extract the first word of "$ac_prog", so it can be a program name with args.
3291 set dummy $ac_prog; ac_word=$2
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 $as_echo_n "checking for $ac_word... " >&6; }
3294 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3295   $as_echo_n "(cached) " >&6
3296 else
3297   if test -n "$ac_ct_CC"; then
3298   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303   IFS=$as_save_IFS
3304   test -z "$as_dir" && as_dir=.
3305     for ac_exec_ext in '' $ac_executable_extensions; do
3306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307     ac_cv_prog_ac_ct_CC="$ac_prog"
3308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309     break 2
3310   fi
3311 done
3312   done
3313 IFS=$as_save_IFS
3314
3315 fi
3316 fi
3317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3318 if test -n "$ac_ct_CC"; then
3319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3320 $as_echo "$ac_ct_CC" >&6; }
3321 else
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 fi
3325
3326
3327   test -n "$ac_ct_CC" && break
3328 done
3329
3330   if test "x$ac_ct_CC" = x; then
3331     CC=""
3332   else
3333     case $cross_compiling:$ac_tool_warned in
3334 yes:)
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3337 ac_tool_warned=yes ;;
3338 esac
3339     CC=$ac_ct_CC
3340   fi
3341 fi
3342
3343 fi
3344
3345
3346 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 as_fn_error "no acceptable C compiler found in \$PATH
3349 See \`config.log' for more details." "$LINENO" 5; }
3350
3351 # Provide some information about the compiler.
3352 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3353 set X $ac_compile
3354 ac_compiler=$2
3355 for ac_option in --version -v -V -qversion; do
3356   { { ac_try="$ac_compiler $ac_option >&5"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3364   ac_status=$?
3365   if test -s conftest.err; then
3366     sed '10a\
3367 ... rest of stderr output deleted ...
3368          10q' conftest.err >conftest.er1
3369     cat conftest.er1 >&5
3370     rm -f conftest.er1 conftest.err
3371   fi
3372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373   test $ac_status = 0; }
3374 done
3375
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h.  */
3378
3379 int
3380 main ()
3381 {
3382
3383   ;
3384   return 0;
3385 }
3386 _ACEOF
3387 # FIXME: Cleanup?
3388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3389   (eval $ac_link) 2>&5
3390   ac_status=$?
3391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392   test $ac_status = 0; }; then :
3393   gcc_no_link=no
3394 else
3395   gcc_no_link=yes
3396 fi
3397 if test x$gcc_no_link = xyes; then
3398   # Setting cross_compile will disable run tests; it will
3399   # also disable AC_CHECK_FILE but that's generally
3400   # correct if we can't link.
3401   cross_compiling=yes
3402   EXEEXT=
3403 else
3404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h.  */
3406
3407 int
3408 main ()
3409 {
3410
3411   ;
3412   return 0;
3413 }
3414 _ACEOF
3415 ac_clean_files_save=$ac_clean_files
3416 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3417 # Try to create an executable without -o first, disregard a.out.
3418 # It will help us diagnose broken compilers, and finding out an intuition
3419 # of exeext.
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3421 $as_echo_n "checking for C compiler default output file name... " >&6; }
3422 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3423
3424 # The possible output files:
3425 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3426
3427 ac_rmfiles=
3428 for ac_file in $ac_files
3429 do
3430   case $ac_file in
3431     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3432     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3433   esac
3434 done
3435 rm -f $ac_rmfiles
3436
3437 if { { ac_try="$ac_link_default"
3438 case "(($ac_try" in
3439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440   *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444   (eval "$ac_link_default") 2>&5
3445   ac_status=$?
3446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447   test $ac_status = 0; }; then :
3448   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3449 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3450 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3451 # so that the user can short-circuit this test for compilers unknown to
3452 # Autoconf.
3453 for ac_file in $ac_files ''
3454 do
3455   test -f "$ac_file" || continue
3456   case $ac_file in
3457     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3458         ;;
3459     [ab].out )
3460         # We found the default executable, but exeext='' is most
3461         # certainly right.
3462         break;;
3463     *.* )
3464         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3465         then :; else
3466            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3467         fi
3468         # We set ac_cv_exeext here because the later test for it is not
3469         # safe: cross compilers may not add the suffix if given an `-o'
3470         # argument, so we may need to know it at that point already.
3471         # Even if this section looks crufty: it has the advantage of
3472         # actually working.
3473         break;;
3474     * )
3475         break;;
3476   esac
3477 done
3478 test "$ac_cv_exeext" = no && ac_cv_exeext=
3479
3480 else
3481   ac_file=''
3482 fi
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3484 $as_echo "$ac_file" >&6; }
3485 if test -z "$ac_file"; then :
3486   $as_echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 { as_fn_set_status 77
3492 as_fn_error "C compiler cannot create executables
3493 See \`config.log' for more details." "$LINENO" 5; }; }
3494 fi
3495 ac_exeext=$ac_cv_exeext
3496
3497 # Check that the compiler produces executables we can run.  If not, either
3498 # the compiler is broken, or we cross compile.
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3500 $as_echo_n "checking whether the C compiler works... " >&6; }
3501 # If not cross compiling, check that we can run a simple program.
3502 if test "$cross_compiling" != yes; then
3503   if { ac_try='./$ac_file'
3504   { { case "(($ac_try" in
3505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506   *) ac_try_echo=$ac_try;;
3507 esac
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510   (eval "$ac_try") 2>&5
3511   ac_status=$?
3512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513   test $ac_status = 0; }; }; then
3514     cross_compiling=no
3515   else
3516     if test "$cross_compiling" = maybe; then
3517         cross_compiling=yes
3518     else
3519         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 as_fn_error "cannot run C compiled programs.
3522 If you meant to cross compile, use \`--host'.
3523 See \`config.log' for more details." "$LINENO" 5; }
3524     fi
3525   fi
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3528 $as_echo "yes" >&6; }
3529
3530 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3531 ac_clean_files=$ac_clean_files_save
3532 # Check that the compiler produces executables we can run.  If not, either
3533 # the compiler is broken, or we cross compile.
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3535 $as_echo_n "checking whether we are cross compiling... " >&6; }
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3537 $as_echo "$cross_compiling" >&6; }
3538
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3540 $as_echo_n "checking for suffix of executables... " >&6; }
3541 if { { ac_try="$ac_link"
3542 case "(($ac_try" in
3543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544   *) ac_try_echo=$ac_try;;
3545 esac
3546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548   (eval "$ac_link") 2>&5
3549   ac_status=$?
3550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551   test $ac_status = 0; }; then :
3552   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3553 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3554 # work properly (i.e., refer to `conftest.exe'), while it won't with
3555 # `rm'.
3556 for ac_file in conftest.exe conftest conftest.*; do
3557   test -f "$ac_file" || continue
3558   case $ac_file in
3559     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3560     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3561           break;;
3562     * ) break;;
3563   esac
3564 done
3565 else
3566   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 as_fn_error "cannot compute suffix of executables: cannot compile and link
3569 See \`config.log' for more details." "$LINENO" 5; }
3570 fi
3571 rm -f conftest$ac_cv_exeext
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3573 $as_echo "$ac_cv_exeext" >&6; }
3574
3575 rm -f conftest.$ac_ext
3576 EXEEXT=$ac_cv_exeext
3577 ac_exeext=$EXEEXT
3578 fi
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3580 $as_echo_n "checking for suffix of object files... " >&6; }
3581 if test "${ac_cv_objext+set}" = set; then :
3582   $as_echo_n "(cached) " >&6
3583 else
3584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h.  */
3586
3587 int
3588 main ()
3589 {
3590
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 rm -f conftest.o conftest.obj
3596 if { { ac_try="$ac_compile"
3597 case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3602 $as_echo "$ac_try_echo"; } >&5
3603   (eval "$ac_compile") 2>&5
3604   ac_status=$?
3605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606   test $ac_status = 0; }; then :
3607   for ac_file in conftest.o conftest.obj conftest.*; do
3608   test -f "$ac_file" || continue;
3609   case $ac_file in
3610     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3611     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3612        break;;
3613   esac
3614 done
3615 else
3616   $as_echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3618
3619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error "cannot compute suffix of object files: cannot compile
3622 See \`config.log' for more details." "$LINENO" 5; }
3623 fi
3624 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3625 fi
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3627 $as_echo "$ac_cv_objext" >&6; }
3628 OBJEXT=$ac_cv_objext
3629 ac_objext=$OBJEXT
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3631 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3632 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3633   $as_echo_n "(cached) " >&6
3634 else
3635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h.  */
3637
3638 int
3639 main ()
3640 {
3641 #ifndef __GNUC__
3642        choke me
3643 #endif
3644
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649 if ac_fn_c_try_compile "$LINENO"; then :
3650   ac_compiler_gnu=yes
3651 else
3652   ac_compiler_gnu=no
3653 fi
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3656
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3659 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3660 if test $ac_compiler_gnu = yes; then
3661   GCC=yes
3662 else
3663   GCC=
3664 fi
3665 ac_test_CFLAGS=${CFLAGS+set}
3666 ac_save_CFLAGS=$CFLAGS
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3668 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3669 if test "${ac_cv_prog_cc_g+set}" = set; then :
3670   $as_echo_n "(cached) " >&6
3671 else
3672   ac_save_c_werror_flag=$ac_c_werror_flag
3673    ac_c_werror_flag=yes
3674    ac_cv_prog_cc_g=no
3675    CFLAGS="-g"
3676    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h.  */
3678
3679 int
3680 main ()
3681 {
3682
3683   ;
3684   return 0;
3685 }
3686 _ACEOF
3687 if ac_fn_c_try_compile "$LINENO"; then :
3688   ac_cv_prog_cc_g=yes
3689 else
3690   CFLAGS=""
3691       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h.  */
3693
3694 int
3695 main ()
3696 {
3697
3698   ;
3699   return 0;
3700 }
3701 _ACEOF
3702 if ac_fn_c_try_compile "$LINENO"; then :
3703
3704 else
3705   ac_c_werror_flag=$ac_save_c_werror_flag
3706          CFLAGS="-g"
3707          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h.  */
3709
3710 int
3711 main ()
3712 {
3713
3714   ;
3715   return 0;
3716 }
3717 _ACEOF
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719   ac_cv_prog_cc_g=yes
3720 fi
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 fi
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 fi
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726    ac_c_werror_flag=$ac_save_c_werror_flag
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3729 $as_echo "$ac_cv_prog_cc_g" >&6; }
3730 if test "$ac_test_CFLAGS" = set; then
3731   CFLAGS=$ac_save_CFLAGS
3732 elif test $ac_cv_prog_cc_g = yes; then
3733   if test "$GCC" = yes; then
3734     CFLAGS="-g -O2"
3735   else
3736     CFLAGS="-g"
3737   fi
3738 else
3739   if test "$GCC" = yes; then
3740     CFLAGS="-O2"
3741   else
3742     CFLAGS=
3743   fi
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3746 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3747 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3748   $as_echo_n "(cached) " >&6
3749 else
3750   ac_cv_prog_cc_c89=no
3751 ac_save_CC=$CC
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h.  */
3754 #include <stdarg.h>
3755 #include <stdio.h>
3756 #include <sys/types.h>
3757 #include <sys/stat.h>
3758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3759 struct buf { int x; };
3760 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3761 static char *e (p, i)
3762      char **p;
3763      int i;
3764 {
3765   return p[i];
3766 }
3767 static char *f (char * (*g) (char **, int), char **p, ...)
3768 {
3769   char *s;
3770   va_list v;
3771   va_start (v,p);
3772   s = g (p, va_arg (v,int));
3773   va_end (v);
3774   return s;
3775 }
3776
3777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3778    function prototypes and stuff, but not '\xHH' hex character constants.
3779    These don't provoke an error unfortunately, instead are silently treated
3780    as 'x'.  The following induces an error, until -std is added to get
3781    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3782    array size at least.  It's necessary to write '\x00'==0 to get something
3783    that's true only with -std.  */
3784 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3785
3786 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3787    inside strings and character constants.  */
3788 #define FOO(x) 'x'
3789 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3790
3791 int test (int i, double x);
3792 struct s1 {int (*f) (int a);};
3793 struct s2 {int (*f) (double a);};
3794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3795 int argc;
3796 char **argv;
3797 int
3798 main ()
3799 {
3800 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3801   ;
3802   return 0;
3803 }
3804 _ACEOF
3805 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3806         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3807 do
3808   CC="$ac_save_CC $ac_arg"
3809   if ac_fn_c_try_compile "$LINENO"; then :
3810   ac_cv_prog_cc_c89=$ac_arg
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext
3813   test "x$ac_cv_prog_cc_c89" != "xno" && break
3814 done
3815 rm -f conftest.$ac_ext
3816 CC=$ac_save_CC
3817
3818 fi
3819 # AC_CACHE_VAL
3820 case "x$ac_cv_prog_cc_c89" in
3821   x)
3822     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3823 $as_echo "none needed" >&6; } ;;
3824   xno)
3825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3826 $as_echo "unsupported" >&6; } ;;
3827   *)
3828     CC="$CC $ac_cv_prog_cc_c89"
3829     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3830 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3831 esac
3832 if test "x$ac_cv_prog_cc_c89" != xno; then :
3833
3834 fi
3835
3836 ac_ext=c
3837 ac_cpp='$CPP $CPPFLAGS'
3838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 DEPDIR="${am__leading_dot}deps"
3842
3843 ac_config_commands="$ac_config_commands depfiles"
3844
3845
3846 am_make=${MAKE-make}
3847 cat > confinc << 'END'
3848 am__doit:
3849         @echo this is the am__doit target
3850 .PHONY: am__doit
3851 END
3852 # If we don't find an include directive, just comment out the code.
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3854 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3855 am__include="#"
3856 am__quote=
3857 _am_result=none
3858 # First try GNU make style include.
3859 echo "include confinc" > confmf
3860 # Ignore all kinds of additional output from `make'.
3861 case `$am_make -s -f confmf 2> /dev/null` in #(
3862 *the\ am__doit\ target*)
3863   am__include=include
3864   am__quote=
3865   _am_result=GNU
3866   ;;
3867 esac
3868 # Now try BSD make style include.
3869 if test "$am__include" = "#"; then
3870    echo '.include "confinc"' > confmf
3871    case `$am_make -s -f confmf 2> /dev/null` in #(
3872    *the\ am__doit\ target*)
3873      am__include=.include
3874      am__quote="\""
3875      _am_result=BSD
3876      ;;
3877    esac
3878 fi
3879
3880
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3882 $as_echo "$_am_result" >&6; }
3883 rm -f confinc confmf
3884
3885 # Check whether --enable-dependency-tracking was given.
3886 if test "${enable_dependency_tracking+set}" = set; then :
3887   enableval=$enable_dependency_tracking;
3888 fi
3889
3890 if test "x$enable_dependency_tracking" != xno; then
3891   am_depcomp="$ac_aux_dir/depcomp"
3892   AMDEPBACKSLASH='\'
3893 fi
3894  if test "x$enable_dependency_tracking" != xno; then
3895   AMDEP_TRUE=
3896   AMDEP_FALSE='#'
3897 else
3898   AMDEP_TRUE='#'
3899   AMDEP_FALSE=
3900 fi
3901
3902
3903
3904 depcc="$CC"   am_compiler_list=
3905
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3907 $as_echo_n "checking dependency style of $depcc... " >&6; }
3908 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3909   $as_echo_n "(cached) " >&6
3910 else
3911   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3912   # We make a subdir and do the tests there.  Otherwise we can end up
3913   # making bogus files that we don't know about and never remove.  For
3914   # instance it was reported that on HP-UX the gcc test will end up
3915   # making a dummy file named `D' -- because `-MD' means `put the output
3916   # in D'.
3917   mkdir conftest.dir
3918   # Copy depcomp to subdir because otherwise we won't find it if we're
3919   # using a relative directory.
3920   cp "$am_depcomp" conftest.dir
3921   cd conftest.dir
3922   # We will build objects and dependencies in a subdirectory because
3923   # it helps to detect inapplicable dependency modes.  For instance
3924   # both Tru64's cc and ICC support -MD to output dependencies as a
3925   # side effect of compilation, but ICC will put the dependencies in
3926   # the current directory while Tru64 will put them in the object
3927   # directory.
3928   mkdir sub
3929
3930   am_cv_CC_dependencies_compiler_type=none
3931   if test "$am_compiler_list" = ""; then
3932      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3933   fi
3934   am__universal=false
3935   case " $depcc " in #(
3936      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3937      esac
3938
3939   for depmode in $am_compiler_list; do
3940     # Setup a source with many dependencies, because some compilers
3941     # like to wrap large dependency lists on column 80 (with \), and
3942     # we should not choose a depcomp mode which is confused by this.
3943     #
3944     # We need to recreate these files for each test, as the compiler may
3945     # overwrite some of them when testing with obscure command lines.
3946     # This happens at least with the AIX C compiler.
3947     : > sub/conftest.c
3948     for i in 1 2 3 4 5 6; do
3949       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3950       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3951       # Solaris 8's {/usr,}/bin/sh.
3952       touch sub/conftst$i.h
3953     done
3954     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3955
3956     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3957     # mode.  It turns out that the SunPro C++ compiler does not properly
3958     # handle `-M -o', and we need to detect this.  Also, some Intel
3959     # versions had trouble with output in subdirs
3960     am__obj=sub/conftest.${OBJEXT-o}
3961     am__minus_obj="-o $am__obj"
3962     case $depmode in
3963     gcc)
3964       # This depmode causes a compiler race in universal mode.
3965       test "$am__universal" = false || continue
3966       ;;
3967     nosideeffect)
3968       # after this tag, mechanisms are not by side-effect, so they'll
3969       # only be used when explicitly requested
3970       if test "x$enable_dependency_tracking" = xyes; then
3971         continue
3972       else
3973         break
3974       fi
3975       ;;
3976     msvisualcpp | msvcmsys)
3977       # This compiler won't grok `-c -o', but also, the minuso test has
3978       # not run yet.  These depmodes are late enough in the game, and
3979       # so weak that their functioning should not be impacted.
3980       am__obj=conftest.${OBJEXT-o}
3981       am__minus_obj=
3982       ;;
3983     none) break ;;
3984     esac
3985     if depmode=$depmode \
3986        source=sub/conftest.c object=$am__obj \
3987        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3988        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3989          >/dev/null 2>conftest.err &&
3990        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3991        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3992        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3993        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3994       # icc doesn't choke on unknown options, it will just issue warnings
3995       # or remarks (even with -Werror).  So we grep stderr for any message
3996       # that says an option was ignored or not supported.
3997       # When given -MP, icc 7.0 and 7.1 complain thusly:
3998       #   icc: Command line warning: ignoring option '-M'; no argument required
3999       # The diagnosis changed in icc 8.0:
4000       #   icc: Command line remark: option '-MP' not supported
4001       if (grep 'ignoring option' conftest.err ||
4002           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4003         am_cv_CC_dependencies_compiler_type=$depmode
4004         break
4005       fi
4006     fi
4007   done
4008
4009   cd ..
4010   rm -rf conftest.dir
4011 else
4012   am_cv_CC_dependencies_compiler_type=none
4013 fi
4014
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4017 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4018 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4019
4020  if
4021   test "x$enable_dependency_tracking" != xno \
4022   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4023   am__fastdepCC_TRUE=
4024   am__fastdepCC_FALSE='#'
4025 else
4026   am__fastdepCC_TRUE='#'
4027   am__fastdepCC_FALSE=
4028 fi
4029
4030
4031
4032
4033
4034
4035 if test "x$GCC" != "xyes"; then
4036   as_fn_error "libssp must be built with GCC" "$LINENO" 5
4037 fi
4038 ac_ext=c
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4044 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4045 # On Suns, sometimes $CPP names a directory.
4046 if test -n "$CPP" && test -d "$CPP"; then
4047   CPP=
4048 fi
4049 if test -z "$CPP"; then
4050   if test "${ac_cv_prog_CPP+set}" = set; then :
4051   $as_echo_n "(cached) " >&6
4052 else
4053       # Double quotes because CPP needs to be expanded
4054     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4055     do
4056       ac_preproc_ok=false
4057 for ac_c_preproc_warn_flag in '' yes
4058 do
4059   # Use a header file that comes with gcc, so configuring glibc
4060   # with a fresh cross-compiler works.
4061   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4062   # <limits.h> exists even on freestanding compilers.
4063   # On the NeXT, cc -E runs the code through the compiler's parser,
4064   # not just through cpp. "Syntax error" is here to catch this case.
4065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h.  */
4067 #ifdef __STDC__
4068 # include <limits.h>
4069 #else
4070 # include <assert.h>
4071 #endif
4072                      Syntax error
4073 _ACEOF
4074 if ac_fn_c_try_cpp "$LINENO"; then :
4075
4076 else
4077   # Broken: fails on valid input.
4078 continue
4079 fi
4080 rm -f conftest.err conftest.$ac_ext
4081
4082   # OK, works on sane cases.  Now check whether nonexistent headers
4083   # can be detected and how.
4084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h.  */
4086 #include <ac_nonexistent.h>
4087 _ACEOF
4088 if ac_fn_c_try_cpp "$LINENO"; then :
4089   # Broken: success on invalid input.
4090 continue
4091 else
4092   # Passes both tests.
4093 ac_preproc_ok=:
4094 break
4095 fi
4096 rm -f conftest.err conftest.$ac_ext
4097
4098 done
4099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4100 rm -f conftest.err conftest.$ac_ext
4101 if $ac_preproc_ok; then :
4102   break
4103 fi
4104
4105     done
4106     ac_cv_prog_CPP=$CPP
4107
4108 fi
4109   CPP=$ac_cv_prog_CPP
4110 else
4111   ac_cv_prog_CPP=$CPP
4112 fi
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4114 $as_echo "$CPP" >&6; }
4115 ac_preproc_ok=false
4116 for ac_c_preproc_warn_flag in '' yes
4117 do
4118   # Use a header file that comes with gcc, so configuring glibc
4119   # with a fresh cross-compiler works.
4120   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4121   # <limits.h> exists even on freestanding compilers.
4122   # On the NeXT, cc -E runs the code through the compiler's parser,
4123   # not just through cpp. "Syntax error" is here to catch this case.
4124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h.  */
4126 #ifdef __STDC__
4127 # include <limits.h>
4128 #else
4129 # include <assert.h>
4130 #endif
4131                      Syntax error
4132 _ACEOF
4133 if ac_fn_c_try_cpp "$LINENO"; then :
4134
4135 else
4136   # Broken: fails on valid input.
4137 continue
4138 fi
4139 rm -f conftest.err conftest.$ac_ext
4140
4141   # OK, works on sane cases.  Now check whether nonexistent headers
4142   # can be detected and how.
4143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h.  */
4145 #include <ac_nonexistent.h>
4146 _ACEOF
4147 if ac_fn_c_try_cpp "$LINENO"; then :
4148   # Broken: success on invalid input.
4149 continue
4150 else
4151   # Passes both tests.
4152 ac_preproc_ok=:
4153 break
4154 fi
4155 rm -f conftest.err conftest.$ac_ext
4156
4157 done
4158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4159 rm -f conftest.err conftest.$ac_ext
4160 if $ac_preproc_ok; then :
4161
4162 else
4163   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4165 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4166 See \`config.log' for more details." "$LINENO" 5; }
4167 fi
4168
4169 ac_ext=c
4170 ac_cpp='$CPP $CPPFLAGS'
4171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174
4175
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fstack-protector works" >&5
4177 $as_echo_n "checking whether -fstack-protector works... " >&6; }
4178 save_CFLAGS="$CFLAGS"
4179 CFLAGS="$CFLAGS -fstack-protector -Werror"
4180
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h.  */
4183
4184 void __attribute__((noinline)) bar (char *x)
4185 {
4186   __builtin_memset (x, 0, 64);
4187 }
4188 int
4189 main ()
4190 {
4191 char buf[64]; bar (buf);
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4198 $as_echo "yes" >&6; }
4199 else
4200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4202 fi
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 CFLAGS="$save_CFLAGS"
4205
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
4207 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h.  */
4210
4211 void __attribute__((visibility ("hidden"))) bar (void) {}
4212 int
4213 main ()
4214 {
4215
4216   ;
4217   return 0;
4218 }
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221   ssp_hidden=yes
4222 else
4223   ssp_hidden=no
4224 fi
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_hidden" >&5
4227 $as_echo "$ssp_hidden" >&6; }
4228 if test x$ssp_hidden = xyes; then
4229
4230 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
4231
4232 fi
4233
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
4235 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
4236 cat > conftest.map <<EOF
4237 FOO_1.0 {
4238   global: *foo*; bar; local: *;
4239 };
4240 EOF
4241 save_LDFLAGS="$LDFLAGS"
4242 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
4243 if test x$gcc_no_link = xyes; then
4244   # If we cannot link, we cannot build shared libraries, so do not use
4245   # symbol versioning.
4246   ssp_use_symver=no
4247 else
4248   if test x$gcc_no_link = xyes; then
4249   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4250 fi
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h.  */
4253 int foo;
4254 int
4255 main ()
4256 {
4257
4258   ;
4259   return 0;
4260 }
4261 _ACEOF
4262 if ac_fn_c_try_link "$LINENO"; then :
4263   ssp_use_symver=yes
4264 else
4265   ssp_use_symver=no
4266 fi
4267 rm -f core conftest.err conftest.$ac_objext \
4268     conftest$ac_exeext conftest.$ac_ext
4269 fi
4270 LDFLAGS="$save_LDFLAGS"
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_use_symver" >&5
4272 $as_echo "$ssp_use_symver" >&6; }
4273  if test "x$ssp_use_symver" = xyes; then
4274   LIBSSP_USE_SYMVER_TRUE=
4275   LIBSSP_USE_SYMVER_FALSE='#'
4276 else
4277   LIBSSP_USE_SYMVER_TRUE='#'
4278   LIBSSP_USE_SYMVER_FALSE=
4279 fi
4280
4281
4282
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4284 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4285 if test "${ac_cv_path_GREP+set}" = set; then :
4286   $as_echo_n "(cached) " >&6
4287 else
4288   if test -z "$GREP"; then
4289   ac_path_GREP_found=false
4290   # Loop through the user's path and test for each of PROGNAME-LIST
4291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4293 do
4294   IFS=$as_save_IFS
4295   test -z "$as_dir" && as_dir=.
4296     for ac_prog in grep ggrep; do
4297     for ac_exec_ext in '' $ac_executable_extensions; do
4298       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4299       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4300 # Check for GNU ac_path_GREP and select it if it is found.
4301   # Check for GNU $ac_path_GREP
4302 case `"$ac_path_GREP" --version 2>&1` in
4303 *GNU*)
4304   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4305 *)
4306   ac_count=0
4307   $as_echo_n 0123456789 >"conftest.in"
4308   while :
4309   do
4310     cat "conftest.in" "conftest.in" >"conftest.tmp"
4311     mv "conftest.tmp" "conftest.in"
4312     cp "conftest.in" "conftest.nl"
4313     $as_echo 'GREP' >> "conftest.nl"
4314     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4315     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4316     as_fn_arith $ac_count + 1 && ac_count=$as_val
4317     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4318       # Best one so far, save it but keep looking for a better one
4319       ac_cv_path_GREP="$ac_path_GREP"
4320       ac_path_GREP_max=$ac_count
4321     fi
4322     # 10*(2^10) chars as input seems more than enough
4323     test $ac_count -gt 10 && break
4324   done
4325   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4326 esac
4327
4328       $ac_path_GREP_found && break 3
4329     done
4330   done
4331   done
4332 IFS=$as_save_IFS
4333   if test -z "$ac_cv_path_GREP"; then
4334     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4335   fi
4336 else
4337   ac_cv_path_GREP=$GREP
4338 fi
4339
4340 fi
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4342 $as_echo "$ac_cv_path_GREP" >&6; }
4343  GREP="$ac_cv_path_GREP"
4344
4345
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4347 $as_echo_n "checking for egrep... " >&6; }
4348 if test "${ac_cv_path_EGREP+set}" = set; then :
4349   $as_echo_n "(cached) " >&6
4350 else
4351   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4352    then ac_cv_path_EGREP="$GREP -E"
4353    else
4354      if test -z "$EGREP"; then
4355   ac_path_EGREP_found=false
4356   # Loop through the user's path and test for each of PROGNAME-LIST
4357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4359 do
4360   IFS=$as_save_IFS
4361   test -z "$as_dir" && as_dir=.
4362     for ac_prog in egrep; do
4363     for ac_exec_ext in '' $ac_executable_extensions; do
4364       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4365       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4366 # Check for GNU ac_path_EGREP and select it if it is found.
4367   # Check for GNU $ac_path_EGREP
4368 case `"$ac_path_EGREP" --version 2>&1` in
4369 *GNU*)
4370   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4371 *)
4372   ac_count=0
4373   $as_echo_n 0123456789 >"conftest.in"
4374   while :
4375   do
4376     cat "conftest.in" "conftest.in" >"conftest.tmp"
4377     mv "conftest.tmp" "conftest.in"
4378     cp "conftest.in" "conftest.nl"
4379     $as_echo 'EGREP' >> "conftest.nl"
4380     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4381     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4382     as_fn_arith $ac_count + 1 && ac_count=$as_val
4383     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4384       # Best one so far, save it but keep looking for a better one
4385       ac_cv_path_EGREP="$ac_path_EGREP"
4386       ac_path_EGREP_max=$ac_count
4387     fi
4388     # 10*(2^10) chars as input seems more than enough
4389     test $ac_count -gt 10 && break
4390   done
4391   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4392 esac
4393
4394       $ac_path_EGREP_found && break 3
4395     done
4396   done
4397   done
4398 IFS=$as_save_IFS
4399   if test -z "$ac_cv_path_EGREP"; then
4400     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4401   fi
4402 else
4403   ac_cv_path_EGREP=$EGREP
4404 fi
4405
4406    fi
4407 fi
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4409 $as_echo "$ac_cv_path_EGREP" >&6; }
4410  EGREP="$ac_cv_path_EGREP"
4411
4412
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4414 $as_echo_n "checking for ANSI C header files... " >&6; }
4415 if test "${ac_cv_header_stdc+set}" = set; then :
4416   $as_echo_n "(cached) " >&6
4417 else
4418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h.  */
4420 #include <stdlib.h>
4421 #include <stdarg.h>
4422 #include <string.h>
4423 #include <float.h>
4424
4425 int
4426 main ()
4427 {
4428
4429   ;
4430   return 0;
4431 }
4432 _ACEOF
4433 if ac_fn_c_try_compile "$LINENO"; then :
4434   ac_cv_header_stdc=yes
4435 else
4436   ac_cv_header_stdc=no
4437 fi
4438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439
4440 if test $ac_cv_header_stdc = yes; then
4441   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h.  */
4444 #include <string.h>
4445
4446 _ACEOF
4447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4448   $EGREP "memchr" >/dev/null 2>&1; then :
4449
4450 else
4451   ac_cv_header_stdc=no
4452 fi
4453 rm -f conftest*
4454
4455 fi
4456
4457 if test $ac_cv_header_stdc = yes; then
4458   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h.  */
4461 #include <stdlib.h>
4462
4463 _ACEOF
4464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4465   $EGREP "free" >/dev/null 2>&1; then :
4466
4467 else
4468   ac_cv_header_stdc=no
4469 fi
4470 rm -f conftest*
4471
4472 fi
4473
4474 if test $ac_cv_header_stdc = yes; then
4475   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4476   if test "$cross_compiling" = yes; then :
4477   :
4478 else
4479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h.  */
4481 #include <ctype.h>
4482 #include <stdlib.h>
4483 #if ((' ' & 0x0FF) == 0x020)
4484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4486 #else
4487 # define ISLOWER(c) \
4488                    (('a' <= (c) && (c) <= 'i') \
4489                      || ('j' <= (c) && (c) <= 'r') \
4490                      || ('s' <= (c) && (c) <= 'z'))
4491 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4492 #endif
4493
4494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4495 int
4496 main ()
4497 {
4498   int i;
4499   for (i = 0; i < 256; i++)
4500     if (XOR (islower (i), ISLOWER (i))
4501         || toupper (i) != TOUPPER (i))
4502       return 2;
4503   return 0;
4504 }
4505 _ACEOF
4506 if ac_fn_c_try_run "$LINENO"; then :
4507
4508 else
4509   ac_cv_header_stdc=no
4510 fi
4511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4512   conftest.$ac_objext conftest.beam conftest.$ac_ext
4513 fi
4514
4515 fi
4516 fi
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4518 $as_echo "$ac_cv_header_stdc" >&6; }
4519 if test $ac_cv_header_stdc = yes; then
4520
4521 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4522
4523 fi
4524
4525 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4526 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4527                   inttypes.h stdint.h unistd.h
4528 do :
4529   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4530 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4531 "
4532 eval as_val=\$$as_ac_Header
4533    if test "x$as_val" = x""yes; then :
4534   cat >>confdefs.h <<_ACEOF
4535 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4536 _ACEOF
4537
4538 fi
4539
4540 done
4541
4542
4543 for ac_header in alloca.h malloc.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
4544 do :
4545   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4546 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4547 eval as_val=\$$as_ac_Header
4548    if test "x$as_val" = x""yes; then :
4549   cat >>confdefs.h <<_ACEOF
4550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4551 _ACEOF
4552
4553 fi
4554
4555 done
4556
4557
4558 if test x$gcc_no_link = xyes; then
4559   # Presume the ISO C functions are available; add target-specific
4560   # configuration here if required.
4561   $as_echo "#define HAVE_STRNCPY 1" >>confdefs.h
4562
4563   $as_echo "#define HAVE_STRNCAT 1" >>confdefs.h
4564
4565 else
4566   for ac_func in mempcpy strncpy strncat
4567 do :
4568   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4569 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4570 eval as_val=\$$as_ac_var
4571    if test "x$as_val" = x""yes; then :
4572   cat >>confdefs.h <<_ACEOF
4573 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4574 _ACEOF
4575
4576 fi
4577 done
4578
4579 fi
4580
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is usable" >&5
4582 $as_echo_n "checking whether vsnprintf is usable... " >&6; }
4583 if test "$cross_compiling" = yes; then :
4584   ssp_have_usable_vsnprintf=undef
4585 else
4586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h.  */
4588
4589 #include <stdarg.h>
4590 #include <string.h>
4591 #include <stdio.h>
4592 int foo (char *buf, size_t n, const char *fmt, ...)
4593 {
4594   va_list ap;
4595   int ret;
4596   va_start (ap, fmt);
4597   ret = vsnprintf (buf, n, fmt, ap);
4598   va_end (ap);
4599   return ret;
4600 }
4601 int
4602 main ()
4603 {
4604 char buf[8]; memset (buf, 'A', sizeof (buf));
4605  if (foo (buf, 4, ".%s.", "CDEFG") != 7)
4606    return 1;
4607  return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
4608   ;
4609   return 0;
4610 }
4611 _ACEOF
4612 if ac_fn_c_try_run "$LINENO"; then :
4613   ssp_have_usable_vsnprintf=define
4614 else
4615   ssp_have_usable_vsnprintf=undef
4616 fi
4617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4618   conftest.$ac_objext conftest.beam conftest.$ac_ext
4619 fi
4620
4621 if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4623 $as_echo "yes" >&6; }
4624
4625 $as_echo "#define HAVE_USABLE_VSNPRINTF 1" >>confdefs.h
4626
4627 else
4628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4630 fi
4631
4632
4633 case `pwd` in
4634   *\ * | *\     *)
4635     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4636 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4637 esac
4638
4639
4640
4641 macro_version='2.2.6'
4642 macro_revision='1.3012'
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656 ltmain="$ac_aux_dir/ltmain.sh"
4657
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4659 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4660 if test "${ac_cv_path_SED+set}" = set; then :
4661   $as_echo_n "(cached) " >&6
4662 else
4663             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4664      for ac_i in 1 2 3 4 5 6 7; do
4665        ac_script="$ac_script$as_nl$ac_script"
4666      done
4667      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4668      { ac_script=; unset ac_script;}
4669      if test -z "$SED"; then
4670   ac_path_SED_found=false
4671   # Loop through the user's path and test for each of PROGNAME-LIST
4672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4674 do
4675   IFS=$as_save_IFS
4676   test -z "$as_dir" && as_dir=.
4677     for ac_prog in sed gsed; do
4678     for ac_exec_ext in '' $ac_executable_extensions; do
4679       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4680       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4681 # Check for GNU ac_path_SED and select it if it is found.
4682   # Check for GNU $ac_path_SED
4683 case `"$ac_path_SED" --version 2>&1` in
4684 *GNU*)
4685   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4686 *)
4687   ac_count=0
4688   $as_echo_n 0123456789 >"conftest.in"
4689   while :
4690   do
4691     cat "conftest.in" "conftest.in" >"conftest.tmp"
4692     mv "conftest.tmp" "conftest.in"
4693     cp "conftest.in" "conftest.nl"
4694     $as_echo '' >> "conftest.nl"
4695     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4696     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4697     as_fn_arith $ac_count + 1 && ac_count=$as_val
4698     if test $ac_count -gt ${ac_path_SED_max-0}; then
4699       # Best one so far, save it but keep looking for a better one
4700       ac_cv_path_SED="$ac_path_SED"
4701       ac_path_SED_max=$ac_count
4702     fi
4703     # 10*(2^10) chars as input seems more than enough
4704     test $ac_count -gt 10 && break
4705   done
4706   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4707 esac
4708
4709       $ac_path_SED_found && break 3
4710     done
4711   done
4712   done
4713 IFS=$as_save_IFS
4714   if test -z "$ac_cv_path_SED"; then
4715     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4716   fi
4717 else
4718   ac_cv_path_SED=$SED
4719 fi
4720
4721 fi
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4723 $as_echo "$ac_cv_path_SED" >&6; }
4724  SED="$ac_cv_path_SED"
4725   rm -f conftest.sed
4726
4727 test -z "$SED" && SED=sed
4728 Xsed="$SED -e 1s/^X//"
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4741 $as_echo_n "checking for fgrep... " >&6; }
4742 if test "${ac_cv_path_FGREP+set}" = set; then :
4743   $as_echo_n "(cached) " >&6
4744 else
4745   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4746    then ac_cv_path_FGREP="$GREP -F"
4747    else
4748      if test -z "$FGREP"; then
4749   ac_path_FGREP_found=false
4750   # Loop through the user's path and test for each of PROGNAME-LIST
4751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4753 do
4754   IFS=$as_save_IFS
4755   test -z "$as_dir" && as_dir=.
4756     for ac_prog in fgrep; do
4757     for ac_exec_ext in '' $ac_executable_extensions; do
4758       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4759       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4760 # Check for GNU ac_path_FGREP and select it if it is found.
4761   # Check for GNU $ac_path_FGREP
4762 case `"$ac_path_FGREP" --version 2>&1` in
4763 *GNU*)
4764   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4765 *)
4766   ac_count=0
4767   $as_echo_n 0123456789 >"conftest.in"
4768   while :
4769   do
4770     cat "conftest.in" "conftest.in" >"conftest.tmp"
4771     mv "conftest.tmp" "conftest.in"
4772     cp "conftest.in" "conftest.nl"
4773     $as_echo 'FGREP' >> "conftest.nl"
4774     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4775     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4776     as_fn_arith $ac_count + 1 && ac_count=$as_val
4777     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4778       # Best one so far, save it but keep looking for a better one
4779       ac_cv_path_FGREP="$ac_path_FGREP"
4780       ac_path_FGREP_max=$ac_count
4781     fi
4782     # 10*(2^10) chars as input seems more than enough
4783     test $ac_count -gt 10 && break
4784   done
4785   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4786 esac
4787
4788       $ac_path_FGREP_found && break 3
4789     done
4790   done
4791   done
4792 IFS=$as_save_IFS
4793   if test -z "$ac_cv_path_FGREP"; then
4794     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4795   fi
4796 else
4797   ac_cv_path_FGREP=$FGREP
4798 fi
4799
4800    fi
4801 fi
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4803 $as_echo "$ac_cv_path_FGREP" >&6; }
4804  FGREP="$ac_cv_path_FGREP"
4805
4806
4807 test -z "$GREP" && GREP=grep
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827 # Check whether --with-gnu-ld was given.
4828 if test "${with_gnu_ld+set}" = set; then :
4829   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4830 else
4831   with_gnu_ld=no
4832 fi
4833
4834 ac_prog=ld
4835 if test "$GCC" = yes; then
4836   # Check if gcc -print-prog-name=ld gives a path.
4837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4838 $as_echo_n "checking for ld used by $CC... " >&6; }
4839   case $host in
4840   *-*-mingw*)
4841     # gcc leaves a trailing carriage return which upsets mingw
4842     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4843   *)
4844     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4845   esac
4846   case $ac_prog in
4847     # Accept absolute paths.
4848     [\\/]* | ?:[\\/]*)
4849       re_direlt='/[^/][^/]*/\.\./'
4850       # Canonicalize the pathname of ld
4851       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4852       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4853         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4854       done
4855       test -z "$LD" && LD="$ac_prog"
4856       ;;
4857   "")
4858     # If it fails, then pretend we aren't using GCC.
4859     ac_prog=ld
4860     ;;
4861   *)
4862     # If it is relative, then search for the first ld in PATH.
4863     with_gnu_ld=unknown
4864     ;;
4865   esac
4866 elif test "$with_gnu_ld" = yes; then
4867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4868 $as_echo_n "checking for GNU ld... " >&6; }
4869 else
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4871 $as_echo_n "checking for non-GNU ld... " >&6; }
4872 fi
4873 if test "${lt_cv_path_LD+set}" = set; then :
4874   $as_echo_n "(cached) " >&6
4875 else
4876   if test -z "$LD"; then
4877   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4878   for ac_dir in $PATH; do
4879     IFS="$lt_save_ifs"
4880     test -z "$ac_dir" && ac_dir=.
4881     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4882       lt_cv_path_LD="$ac_dir/$ac_prog"
4883       # Check to see if the program is GNU ld.  I'd rather use --version,
4884       # but apparently some variants of GNU ld only accept -v.
4885       # Break only if it was the GNU/non-GNU ld that we prefer.
4886       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4887       *GNU* | *'with BFD'*)
4888         test "$with_gnu_ld" != no && break
4889         ;;
4890       *)
4891         test "$with_gnu_ld" != yes && break
4892         ;;
4893       esac
4894     fi
4895   done
4896   IFS="$lt_save_ifs"
4897 else
4898   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4899 fi
4900 fi
4901
4902 LD="$lt_cv_path_LD"
4903 if test -n "$LD"; then
4904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4905 $as_echo "$LD" >&6; }
4906 else
4907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4909 fi
4910 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4912 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4913 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4914   $as_echo_n "(cached) " >&6
4915 else
4916   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4917 case `$LD -v 2>&1 </dev/null` in
4918 *GNU* | *'with BFD'*)
4919   lt_cv_prog_gnu_ld=yes
4920   ;;
4921 *)
4922   lt_cv_prog_gnu_ld=no
4923   ;;
4924 esac
4925 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4927 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4928 with_gnu_ld=$lt_cv_prog_gnu_ld
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4939 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4940 if test "${lt_cv_path_NM+set}" = set; then :
4941   $as_echo_n "(cached) " >&6
4942 else
4943   if test -n "$NM"; then
4944   # Let the user override the test.
4945   lt_cv_path_NM="$NM"
4946 else
4947   lt_nm_to_check="${ac_tool_prefix}nm"
4948   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4949     lt_nm_to_check="$lt_nm_to_check nm"
4950   fi
4951   for lt_tmp_nm in $lt_nm_to_check; do
4952     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4953     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4954       IFS="$lt_save_ifs"
4955       test -z "$ac_dir" && ac_dir=.
4956       tmp_nm="$ac_dir/$lt_tmp_nm"
4957       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4958         # Check to see if the nm accepts a BSD-compat flag.
4959         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4960         #   nm: unknown option "B" ignored
4961         # Tru64's nm complains that /dev/null is an invalid object file
4962         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4963         */dev/null* | *'Invalid file or object type'*)
4964           lt_cv_path_NM="$tmp_nm -B"
4965           break
4966           ;;
4967         *)
4968           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4969           */dev/null*)
4970             lt_cv_path_NM="$tmp_nm -p"
4971             break
4972             ;;
4973           *)
4974             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4975             continue # so that we can try to find one that supports BSD flags
4976             ;;
4977           esac
4978           ;;
4979         esac
4980       fi
4981     done
4982     IFS="$lt_save_ifs"
4983   done
4984   : ${lt_cv_path_NM=no}
4985 fi
4986 fi
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4988 $as_echo "$lt_cv_path_NM" >&6; }
4989 if test "$lt_cv_path_NM" != "no"; then
4990   NM="$lt_cv_path_NM"
4991 else
4992   # Didn't find any BSD compatible name lister, look for dumpbin.
4993   if test -n "$ac_tool_prefix"; then
4994   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4995   do
4996     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999 $as_echo_n "checking for $ac_word... " >&6; }
5000 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5001   $as_echo_n "(cached) " >&6
5002 else
5003   if test -n "$DUMPBIN"; then
5004   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009   IFS=$as_save_IFS
5010   test -z "$as_dir" && as_dir=.
5011     for ac_exec_ext in '' $ac_executable_extensions; do
5012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015     break 2
5016   fi
5017 done
5018   done
5019 IFS=$as_save_IFS
5020
5021 fi
5022 fi
5023 DUMPBIN=$ac_cv_prog_DUMPBIN
5024 if test -n "$DUMPBIN"; then
5025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5026 $as_echo "$DUMPBIN" >&6; }
5027 else
5028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5030 fi
5031
5032
5033     test -n "$DUMPBIN" && break
5034   done
5035 fi
5036 if test -z "$DUMPBIN"; then
5037   ac_ct_DUMPBIN=$DUMPBIN
5038   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5039 do
5040   # Extract the first word of "$ac_prog", so it can be a program name with args.
5041 set dummy $ac_prog; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5045   $as_echo_n "(cached) " >&6
5046 else
5047   if test -n "$ac_ct_DUMPBIN"; then
5048   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053   IFS=$as_save_IFS
5054   test -z "$as_dir" && as_dir=.
5055     for ac_exec_ext in '' $ac_executable_extensions; do
5056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059     break 2
5060   fi
5061 done
5062   done
5063 IFS=$as_save_IFS
5064
5065 fi
5066 fi
5067 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5068 if test -n "$ac_ct_DUMPBIN"; then
5069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5070 $as_echo "$ac_ct_DUMPBIN" >&6; }
5071 else
5072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5074 fi
5075
5076
5077   test -n "$ac_ct_DUMPBIN" && break
5078 done
5079
5080   if test "x$ac_ct_DUMPBIN" = x; then
5081     DUMPBIN=":"
5082   else
5083     case $cross_compiling:$ac_tool_warned in
5084 yes:)
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5087 ac_tool_warned=yes ;;
5088 esac
5089     DUMPBIN=$ac_ct_DUMPBIN
5090   fi
5091 fi
5092
5093
5094   if test "$DUMPBIN" != ":"; then
5095     NM="$DUMPBIN"
5096   fi
5097 fi
5098 test -z "$NM" && NM=nm
5099
5100
5101
5102
5103
5104
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5106 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5107 if test "${lt_cv_nm_interface+set}" = set; then :
5108   $as_echo_n "(cached) " >&6
5109 else
5110   lt_cv_nm_interface="BSD nm"
5111   echo "int some_variable = 0;" > conftest.$ac_ext
5112   (eval echo "\"\$as_me:5112: $ac_compile\"" >&5)
5113   (eval "$ac_compile" 2>conftest.err)
5114   cat conftest.err >&5
5115   (eval echo "\"\$as_me:5115: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5116   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5117   cat conftest.err >&5
5118   (eval echo "\"\$as_me:5118: output\"" >&5)
5119   cat conftest.out >&5
5120   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5121     lt_cv_nm_interface="MS dumpbin"
5122   fi
5123   rm -f conftest*
5124 fi
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5126 $as_echo "$lt_cv_nm_interface" >&6; }
5127
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5129 $as_echo_n "checking whether ln -s works... " >&6; }
5130 LN_S=$as_ln_s
5131 if test "$LN_S" = "ln -s"; then
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5133 $as_echo "yes" >&6; }
5134 else
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5136 $as_echo "no, using $LN_S" >&6; }
5137 fi
5138
5139 # find the maximum length of command line arguments
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5141 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5142 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5143   $as_echo_n "(cached) " >&6
5144 else
5145     i=0
5146   teststring="ABCD"
5147
5148   case $build_os in
5149   msdosdjgpp*)
5150     # On DJGPP, this test can blow up pretty badly due to problems in libc
5151     # (any single argument exceeding 2000 bytes causes a buffer overrun
5152     # during glob expansion).  Even if it were fixed, the result of this
5153     # check would be larger than it should be.
5154     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5155     ;;
5156
5157   gnu*)
5158     # Under GNU Hurd, this test is not required because there is
5159     # no limit to the length of command line arguments.
5160     # Libtool will interpret -1 as no limit whatsoever
5161     lt_cv_sys_max_cmd_len=-1;
5162     ;;
5163
5164   cygwin* | mingw* | cegcc*)
5165     # On Win9x/ME, this test blows up -- it succeeds, but takes
5166     # about 5 minutes as the teststring grows exponentially.
5167     # Worse, since 9x/ME are not pre-emptively multitasking,
5168     # you end up with a "frozen" computer, even though with patience
5169     # the test eventually succeeds (with a max line length of 256k).
5170     # Instead, let's just punt: use the minimum linelength reported by
5171     # all of the supported platforms: 8192 (on NT/2K/XP).
5172     lt_cv_sys_max_cmd_len=8192;
5173     ;;
5174
5175   amigaos*)
5176     # On AmigaOS with pdksh, this test takes hours, literally.
5177     # So we just punt and use a minimum line length of 8192.
5178     lt_cv_sys_max_cmd_len=8192;
5179     ;;
5180
5181   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5182     # This has been around since 386BSD, at least.  Likely further.
5183     if test -x /sbin/sysctl; then
5184       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5185     elif test -x /usr/sbin/sysctl; then
5186       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5187     else
5188       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5189     fi
5190     # And add a safety zone
5191     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5192     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5193     ;;
5194
5195   interix*)
5196     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5197     lt_cv_sys_max_cmd_len=196608
5198     ;;
5199
5200   osf*)
5201     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5202     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5203     # nice to cause kernel panics so lets avoid the loop below.
5204     # First set a reasonable default.
5205     lt_cv_sys_max_cmd_len=16384
5206     #
5207     if test -x /sbin/sysconfig; then
5208       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5209         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5210       esac
5211     fi
5212     ;;
5213   sco3.2v5*)
5214     lt_cv_sys_max_cmd_len=102400
5215     ;;
5216   sysv5* | sco5v6* | sysv4.2uw2*)
5217     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5218     if test -n "$kargmax"; then
5219       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5220     else
5221       lt_cv_sys_max_cmd_len=32768
5222     fi
5223     ;;
5224   *)
5225     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5226     if test -n "$lt_cv_sys_max_cmd_len"; then
5227       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5228       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5229     else
5230       # Make teststring a little bigger before we do anything with it.
5231       # a 1K string should be a reasonable start.
5232       for i in 1 2 3 4 5 6 7 8 ; do
5233         teststring=$teststring$teststring
5234       done
5235       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5236       # If test is not a shell built-in, we'll probably end up computing a
5237       # maximum length that is only half of the actual maximum length, but
5238       # we can't tell.
5239       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5240                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5241               test $i != 17 # 1/2 MB should be enough
5242       do
5243         i=`expr $i + 1`
5244         teststring=$teststring$teststring
5245       done
5246       # Only check the string length outside the loop.
5247       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5248       teststring=
5249       # Add a significant safety factor because C++ compilers can tack on
5250       # massive amounts of additional arguments before passing them to the
5251       # linker.  It appears as though 1/2 is a usable value.
5252       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5253     fi
5254     ;;
5255   esac
5256
5257 fi
5258
5259 if test -n $lt_cv_sys_max_cmd_len ; then
5260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5261 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5262 else
5263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5264 $as_echo "none" >&6; }
5265 fi
5266 max_cmd_len=$lt_cv_sys_max_cmd_len
5267
5268
5269
5270
5271
5272
5273 : ${CP="cp -f"}
5274 : ${MV="mv -f"}
5275 : ${RM="rm -f"}
5276
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5278 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5279 # Try some XSI features
5280 xsi_shell=no
5281 ( _lt_dummy="a/b/c"
5282   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5283       = c,a/b,, \
5284     && eval 'test $(( 1 + 1 )) -eq 2 \
5285     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5286   && xsi_shell=yes
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5288 $as_echo "$xsi_shell" >&6; }
5289
5290
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5292 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5293 lt_shell_append=no
5294 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5295     >/dev/null 2>&1 \
5296   && lt_shell_append=yes
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5298 $as_echo "$lt_shell_append" >&6; }
5299
5300
5301 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5302   lt_unset=unset
5303 else
5304   lt_unset=false
5305 fi
5306
5307
5308
5309
5310
5311 # test EBCDIC or ASCII
5312 case `echo X|tr X '\101'` in
5313  A) # ASCII based system
5314     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5315   lt_SP2NL='tr \040 \012'
5316   lt_NL2SP='tr \015\012 \040\040'
5317   ;;
5318  *) # EBCDIC based system
5319   lt_SP2NL='tr \100 \n'
5320   lt_NL2SP='tr \r\n \100\100'
5321   ;;
5322 esac
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5333 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5334 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5335   $as_echo_n "(cached) " >&6
5336 else
5337   lt_cv_ld_reload_flag='-r'
5338 fi
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5340 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5341 reload_flag=$lt_cv_ld_reload_flag
5342 case $reload_flag in
5343 "" | " "*) ;;
5344 *) reload_flag=" $reload_flag" ;;
5345 esac
5346 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5347 case $host_os in
5348   darwin*)
5349     if test "$GCC" = yes; then
5350       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5351     else
5352       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5353     fi
5354     ;;
5355 esac
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365 if test -n "$ac_tool_prefix"; then
5366   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5367 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369 $as_echo_n "checking for $ac_word... " >&6; }
5370 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5371   $as_echo_n "(cached) " >&6
5372 else
5373   if test -n "$OBJDUMP"; then
5374   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5375 else
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5378 do
5379   IFS=$as_save_IFS
5380   test -z "$as_dir" && as_dir=.
5381     for ac_exec_ext in '' $ac_executable_extensions; do
5382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5383     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385     break 2
5386   fi
5387 done
5388   done
5389 IFS=$as_save_IFS
5390
5391 fi
5392 fi
5393 OBJDUMP=$ac_cv_prog_OBJDUMP
5394 if test -n "$OBJDUMP"; then
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5396 $as_echo "$OBJDUMP" >&6; }
5397 else
5398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5400 fi
5401
5402
5403 fi
5404 if test -z "$ac_cv_prog_OBJDUMP"; then
5405   ac_ct_OBJDUMP=$OBJDUMP
5406   # Extract the first word of "objdump", so it can be a program name with args.
5407 set dummy objdump; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5411   $as_echo_n "(cached) " >&6
5412 else
5413   if test -n "$ac_ct_OBJDUMP"; then
5414   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5415 else
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419   IFS=$as_save_IFS
5420   test -z "$as_dir" && as_dir=.
5421     for ac_exec_ext in '' $ac_executable_extensions; do
5422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425     break 2
5426   fi
5427 done
5428   done
5429 IFS=$as_save_IFS
5430
5431 fi
5432 fi
5433 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5434 if test -n "$ac_ct_OBJDUMP"; then
5435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5436 $as_echo "$ac_ct_OBJDUMP" >&6; }
5437 else
5438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440 fi
5441
5442   if test "x$ac_ct_OBJDUMP" = x; then
5443     OBJDUMP="false"
5444   else
5445     case $cross_compiling:$ac_tool_warned in
5446 yes:)
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5449 ac_tool_warned=yes ;;
5450 esac
5451     OBJDUMP=$ac_ct_OBJDUMP
5452   fi
5453 else
5454   OBJDUMP="$ac_cv_prog_OBJDUMP"
5455 fi
5456
5457 test -z "$OBJDUMP" && OBJDUMP=objdump
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5468 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5469 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5470   $as_echo_n "(cached) " >&6
5471 else
5472   lt_cv_file_magic_cmd='$MAGIC_CMD'
5473 lt_cv_file_magic_test_file=
5474 lt_cv_deplibs_check_method='unknown'
5475 # Need to set the preceding variable on all platforms that support
5476 # interlibrary dependencies.
5477 # 'none' -- dependencies not supported.
5478 # `unknown' -- same as none, but documents that we really don't know.
5479 # 'pass_all' -- all dependencies passed with no checks.
5480 # 'test_compile' -- check by making test program.
5481 # 'file_magic [[regex]]' -- check by looking for files in library path
5482 # which responds to the $file_magic_cmd with a given extended regex.
5483 # If you have `file' or equivalent on your system and you're not sure
5484 # whether `pass_all' will *always* work, you probably want this one.
5485
5486 case $host_os in
5487 aix[4-9]*)
5488   lt_cv_deplibs_check_method=pass_all
5489   ;;
5490
5491 beos*)
5492   lt_cv_deplibs_check_method=pass_all
5493   ;;
5494
5495 bsdi[45]*)
5496   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5497   lt_cv_file_magic_cmd='/usr/bin/file -L'
5498   lt_cv_file_magic_test_file=/shlib/libc.so
5499   ;;
5500
5501 cygwin*)
5502   # func_win32_libid is a shell function defined in ltmain.sh
5503   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5504   lt_cv_file_magic_cmd='func_win32_libid'
5505   ;;
5506
5507 mingw* | pw32*)
5508   # Base MSYS/MinGW do not provide the 'file' command needed by
5509   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5510   # unless we find 'file', for example because we are cross-compiling.
5511   if ( file / ) >/dev/null 2>&1; then
5512     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5513     lt_cv_file_magic_cmd='func_win32_libid'
5514   else
5515     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5516     lt_cv_file_magic_cmd='$OBJDUMP -f'
5517   fi
5518   ;;
5519
5520 cegcc)
5521   # use the weaker test based on 'objdump'. See mingw*.
5522   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5523   lt_cv_file_magic_cmd='$OBJDUMP -f'
5524   ;;
5525
5526 darwin* | rhapsody*)
5527   lt_cv_deplibs_check_method=pass_all
5528   ;;
5529
5530 freebsd* | dragonfly*)
5531   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5532     case $host_cpu in
5533     i*86 )
5534       # Not sure whether the presence of OpenBSD here was a mistake.
5535       # Let's accept both of them until this is cleared up.
5536       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5537       lt_cv_file_magic_cmd=/usr/bin/file
5538       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5539       ;;
5540     esac
5541   else
5542     lt_cv_deplibs_check_method=pass_all
5543   fi
5544   ;;
5545
5546 gnu*)
5547   lt_cv_deplibs_check_method=pass_all
5548   ;;
5549
5550 hpux10.20* | hpux11*)
5551   lt_cv_file_magic_cmd=/usr/bin/file
5552   case $host_cpu in
5553   ia64*)
5554     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5555     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5556     ;;
5557   hppa*64*)
5558     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5559     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5560     ;;
5561   *)
5562     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5563     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5564     ;;
5565   esac
5566   ;;
5567
5568 interix[3-9]*)
5569   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5570   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5571   ;;
5572
5573 irix5* | irix6* | nonstopux*)
5574   case $LD in
5575   *-32|*"-32 ") libmagic=32-bit;;
5576   *-n32|*"-n32 ") libmagic=N32;;
5577   *-64|*"-64 ") libmagic=64-bit;;
5578   *) libmagic=never-match;;
5579   esac
5580   lt_cv_deplibs_check_method=pass_all
5581   ;;
5582
5583 # This must be Linux ELF.
5584 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5585   lt_cv_deplibs_check_method=pass_all
5586   ;;
5587
5588 netbsd*)
5589   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5590     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5591   else
5592     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5593   fi
5594   ;;
5595
5596 newos6*)
5597   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5598   lt_cv_file_magic_cmd=/usr/bin/file
5599   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5600   ;;
5601
5602 *nto* | *qnx*)
5603   lt_cv_deplibs_check_method=pass_all
5604   ;;
5605
5606 openbsd*)
5607   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5608     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5609   else
5610     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5611   fi
5612   ;;
5613
5614 osf3* | osf4* | osf5*)
5615   lt_cv_deplibs_check_method=pass_all
5616   ;;
5617
5618 rdos*)
5619   lt_cv_deplibs_check_method=pass_all
5620   ;;
5621
5622 solaris*)
5623   lt_cv_deplibs_check_method=pass_all
5624   ;;
5625
5626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5627   lt_cv_deplibs_check_method=pass_all
5628   ;;
5629
5630 sysv4 | sysv4.3*)
5631   case $host_vendor in
5632   motorola)
5633     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]'
5634     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5635     ;;
5636   ncr)
5637     lt_cv_deplibs_check_method=pass_all
5638     ;;
5639   sequent)
5640     lt_cv_file_magic_cmd='/bin/file'
5641     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5642     ;;
5643   sni)
5644     lt_cv_file_magic_cmd='/bin/file'
5645     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5646     lt_cv_file_magic_test_file=/lib/libc.so
5647     ;;
5648   siemens)
5649     lt_cv_deplibs_check_method=pass_all
5650     ;;
5651   pc)
5652     lt_cv_deplibs_check_method=pass_all
5653     ;;
5654   esac
5655   ;;
5656
5657 tpf*)
5658   lt_cv_deplibs_check_method=pass_all
5659   ;;
5660 esac
5661
5662 fi
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5664 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5665 file_magic_cmd=$lt_cv_file_magic_cmd
5666 deplibs_check_method=$lt_cv_deplibs_check_method
5667 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680 if test -n "$ac_tool_prefix"; then
5681   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5682 set dummy ${ac_tool_prefix}ar; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if test "${ac_cv_prog_AR+set}" = set; then :
5686   $as_echo_n "(cached) " >&6
5687 else
5688   if test -n "$AR"; then
5689   ac_cv_prog_AR="$AR" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5693 do
5694   IFS=$as_save_IFS
5695   test -z "$as_dir" && as_dir=.
5696     for ac_exec_ext in '' $ac_executable_extensions; do
5697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5698     ac_cv_prog_AR="${ac_tool_prefix}ar"
5699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700     break 2
5701   fi
5702 done
5703   done
5704 IFS=$as_save_IFS
5705
5706 fi
5707 fi
5708 AR=$ac_cv_prog_AR
5709 if test -n "$AR"; then
5710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5711 $as_echo "$AR" >&6; }
5712 else
5713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5715 fi
5716
5717
5718 fi
5719 if test -z "$ac_cv_prog_AR"; then
5720   ac_ct_AR=$AR
5721   # Extract the first word of "ar", so it can be a program name with args.
5722 set dummy ar; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5726   $as_echo_n "(cached) " >&6
5727 else
5728   if test -n "$ac_ct_AR"; then
5729   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5730 else
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5733 do
5734   IFS=$as_save_IFS
5735   test -z "$as_dir" && as_dir=.
5736     for ac_exec_ext in '' $ac_executable_extensions; do
5737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5738     ac_cv_prog_ac_ct_AR="ar"
5739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740     break 2
5741   fi
5742 done
5743   done
5744 IFS=$as_save_IFS
5745
5746 fi
5747 fi
5748 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5749 if test -n "$ac_ct_AR"; then
5750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5751 $as_echo "$ac_ct_AR" >&6; }
5752 else
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5755 fi
5756
5757   if test "x$ac_ct_AR" = x; then
5758     AR="false"
5759   else
5760     case $cross_compiling:$ac_tool_warned in
5761 yes:)
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5764 ac_tool_warned=yes ;;
5765 esac
5766     AR=$ac_ct_AR
5767   fi
5768 else
5769   AR="$ac_cv_prog_AR"
5770 fi
5771
5772 test -z "$AR" && AR=ar
5773 test -z "$AR_FLAGS" && AR_FLAGS=cru
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785 if test -n "$ac_tool_prefix"; then
5786   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5787 set dummy ${ac_tool_prefix}strip; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if test "${ac_cv_prog_STRIP+set}" = set; then :
5791   $as_echo_n "(cached) " >&6
5792 else
5793   if test -n "$STRIP"; then
5794   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799   IFS=$as_save_IFS
5800   test -z "$as_dir" && as_dir=.
5801     for ac_exec_ext in '' $ac_executable_extensions; do
5802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805     break 2
5806   fi
5807 done
5808   done
5809 IFS=$as_save_IFS
5810
5811 fi
5812 fi
5813 STRIP=$ac_cv_prog_STRIP
5814 if test -n "$STRIP"; then
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5816 $as_echo "$STRIP" >&6; }
5817 else
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820 fi
5821
5822
5823 fi
5824 if test -z "$ac_cv_prog_STRIP"; then
5825   ac_ct_STRIP=$STRIP
5826   # Extract the first word of "strip", so it can be a program name with args.
5827 set dummy strip; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5831   $as_echo_n "(cached) " >&6
5832 else
5833   if test -n "$ac_ct_STRIP"; then
5834   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839   IFS=$as_save_IFS
5840   test -z "$as_dir" && as_dir=.
5841     for ac_exec_ext in '' $ac_executable_extensions; do
5842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843     ac_cv_prog_ac_ct_STRIP="strip"
5844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845     break 2
5846   fi
5847 done
5848   done
5849 IFS=$as_save_IFS
5850
5851 fi
5852 fi
5853 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5854 if test -n "$ac_ct_STRIP"; then
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5856 $as_echo "$ac_ct_STRIP" >&6; }
5857 else
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 fi
5861
5862   if test "x$ac_ct_STRIP" = x; then
5863     STRIP=":"
5864   else
5865     case $cross_compiling:$ac_tool_warned in
5866 yes:)
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869 ac_tool_warned=yes ;;
5870 esac
5871     STRIP=$ac_ct_STRIP
5872   fi
5873 else
5874   STRIP="$ac_cv_prog_STRIP"
5875 fi
5876
5877 test -z "$STRIP" && STRIP=:
5878
5879
5880
5881
5882
5883
5884 if test -n "$ac_tool_prefix"; then
5885   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5886 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5890   $as_echo_n "(cached) " >&6
5891 else
5892   if test -n "$RANLIB"; then
5893   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900     for ac_exec_ext in '' $ac_executable_extensions; do
5901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907   done
5908 IFS=$as_save_IFS
5909
5910 fi
5911 fi
5912 RANLIB=$ac_cv_prog_RANLIB
5913 if test -n "$RANLIB"; then
5914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5915 $as_echo "$RANLIB" >&6; }
5916 else
5917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5919 fi
5920
5921
5922 fi
5923 if test -z "$ac_cv_prog_RANLIB"; then
5924   ac_ct_RANLIB=$RANLIB
5925   # Extract the first word of "ranlib", so it can be a program name with args.
5926 set dummy ranlib; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   if test -n "$ac_ct_RANLIB"; then
5933   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940     for ac_exec_ext in '' $ac_executable_extensions; do
5941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942     ac_cv_prog_ac_ct_RANLIB="ranlib"
5943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947   done
5948 IFS=$as_save_IFS
5949
5950 fi
5951 fi
5952 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5953 if test -n "$ac_ct_RANLIB"; then
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5955 $as_echo "$ac_ct_RANLIB" >&6; }
5956 else
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960
5961   if test "x$ac_ct_RANLIB" = x; then
5962     RANLIB=":"
5963   else
5964     case $cross_compiling:$ac_tool_warned in
5965 yes:)
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968 ac_tool_warned=yes ;;
5969 esac
5970     RANLIB=$ac_ct_RANLIB
5971   fi
5972 else
5973   RANLIB="$ac_cv_prog_RANLIB"
5974 fi
5975
5976 test -z "$RANLIB" && RANLIB=:
5977
5978
5979
5980
5981
5982
5983 # Determine commands to create old-style static archives.
5984 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5985 old_postinstall_cmds='chmod 644 $oldlib'
5986 old_postuninstall_cmds=
5987
5988 if test -n "$RANLIB"; then
5989   case $host_os in
5990   openbsd*)
5991     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5992     ;;
5993   *)
5994     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5995     ;;
5996   esac
5997   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5998 fi
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033 # If no C compiler was specified, use CC.
6034 LTCC=${LTCC-"$CC"}
6035
6036 # If no C compiler flags were specified, use CFLAGS.
6037 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6038
6039 # Allow CC to be a program name with arguments.
6040 compiler=$CC
6041
6042
6043 # Check for command to grab the raw symbol name followed by C symbol from nm.
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6045 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6046 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6047   $as_echo_n "(cached) " >&6
6048 else
6049
6050 # These are sane defaults that work on at least a few old systems.
6051 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6052
6053 # Character class describing NM global symbol codes.
6054 symcode='[BCDEGRST]'
6055
6056 # Regexp to match symbols that can be accessed directly from C.
6057 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6058
6059 # Define system-specific variables.
6060 case $host_os in
6061 aix*)
6062   symcode='[BCDT]'
6063   ;;
6064 cygwin* | mingw* | pw32* | cegcc*)
6065   symcode='[ABCDGISTW]'
6066   ;;
6067 hpux*)
6068   if test "$host_cpu" = ia64; then
6069     symcode='[ABCDEGRST]'
6070   fi
6071   ;;
6072 irix* | nonstopux*)
6073   symcode='[BCDEGRST]'
6074   ;;
6075 osf*)
6076   symcode='[BCDEGQRST]'
6077   ;;
6078 solaris*)
6079   symcode='[BDRT]'
6080   ;;
6081 sco3.2v5*)
6082   symcode='[DT]'
6083   ;;
6084 sysv4.2uw2*)
6085   symcode='[DT]'
6086   ;;
6087 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6088   symcode='[ABDT]'
6089   ;;
6090 sysv4)
6091   symcode='[DFNSTU]'
6092   ;;
6093 esac
6094
6095 # If we're using GNU nm, then use its standard symbol codes.
6096 case `$NM -V 2>&1` in
6097 *GNU* | *'with BFD'*)
6098   symcode='[ABCDGIRSTW]' ;;
6099 esac
6100
6101 # Transform an extracted symbol line into a proper C declaration.
6102 # Some systems (esp. on ia64) link data and code symbols differently,
6103 # so use this general approach.
6104 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6105
6106 # Transform an extracted symbol line into symbol name and symbol address
6107 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6108 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'"
6109
6110 # Handle CRLF in mingw tool chain
6111 opt_cr=
6112 case $build_os in
6113 mingw*)
6114   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6115   ;;
6116 esac
6117
6118 # Try without a prefix underscore, then with it.
6119 for ac_symprfx in "" "_"; do
6120
6121   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6122   symxfrm="\\1 $ac_symprfx\\2 \\2"
6123
6124   # Write the raw and C identifiers.
6125   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6126     # Fake it for dumpbin and say T for any non-static function
6127     # and D for any global variable.
6128     # Also find C++ and __fastcall symbols from MSVC++,
6129     # which start with @ or ?.
6130     lt_cv_sys_global_symbol_pipe="$AWK '"\
6131 "     {last_section=section; section=\$ 3};"\
6132 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6133 "     \$ 0!~/External *\|/{next};"\
6134 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6135 "     {if(hide[section]) next};"\
6136 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6137 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6138 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6139 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6140 "     ' prfx=^$ac_symprfx"
6141   else
6142     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6143   fi
6144
6145   # Check to see that the pipe works correctly.
6146   pipe_works=no
6147
6148   rm -f conftest*
6149   cat > conftest.$ac_ext <<_LT_EOF
6150 #ifdef __cplusplus
6151 extern "C" {
6152 #endif
6153 char nm_test_var;
6154 void nm_test_func(void);
6155 void nm_test_func(void){}
6156 #ifdef __cplusplus
6157 }
6158 #endif
6159 int main(){nm_test_var='a';nm_test_func();return(0);}
6160 _LT_EOF
6161
6162   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6163   (eval $ac_compile) 2>&5
6164   ac_status=$?
6165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166   test $ac_status = 0; }; then
6167     # Now try to grab the symbols.
6168     nlist=conftest.nm
6169     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6170   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6171   ac_status=$?
6172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6173   test $ac_status = 0; } && test -s "$nlist"; then
6174       # Try sorting and uniquifying the output.
6175       if sort "$nlist" | uniq > "$nlist"T; then
6176         mv -f "$nlist"T "$nlist"
6177       else
6178         rm -f "$nlist"T
6179       fi
6180
6181       # Make sure that we snagged all the symbols we need.
6182       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6183         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6184           cat <<_LT_EOF > conftest.$ac_ext
6185 #ifdef __cplusplus
6186 extern "C" {
6187 #endif
6188
6189 _LT_EOF
6190           # Now generate the symbol file.
6191           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6192
6193           cat <<_LT_EOF >> conftest.$ac_ext
6194
6195 /* The mapping between symbol names and symbols.  */
6196 const struct {
6197   const char *name;
6198   void       *address;
6199 }
6200 lt__PROGRAM__LTX_preloaded_symbols[] =
6201 {
6202   { "@PROGRAM@", (void *) 0 },
6203 _LT_EOF
6204           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6205           cat <<\_LT_EOF >> conftest.$ac_ext
6206   {0, (void *) 0}
6207 };
6208
6209 /* This works around a problem in FreeBSD linker */
6210 #ifdef FREEBSD_WORKAROUND
6211 static const void *lt_preloaded_setup() {
6212   return lt__PROGRAM__LTX_preloaded_symbols;
6213 }
6214 #endif
6215
6216 #ifdef __cplusplus
6217 }
6218 #endif
6219 _LT_EOF
6220           # Now try linking the two files.
6221           mv conftest.$ac_objext conftstm.$ac_objext
6222           lt_save_LIBS="$LIBS"
6223           lt_save_CFLAGS="$CFLAGS"
6224           LIBS="conftstm.$ac_objext"
6225           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6226           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6227   (eval $ac_link) 2>&5
6228   ac_status=$?
6229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6230   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6231             pipe_works=yes
6232           fi
6233           LIBS="$lt_save_LIBS"
6234           CFLAGS="$lt_save_CFLAGS"
6235         else
6236           echo "cannot find nm_test_func in $nlist" >&5
6237         fi
6238       else
6239         echo "cannot find nm_test_var in $nlist" >&5
6240       fi
6241     else
6242       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6243     fi
6244   else
6245     echo "$progname: failed program was:" >&5
6246     cat conftest.$ac_ext >&5
6247   fi
6248   rm -rf conftest* conftst*
6249
6250   # Do not use the global_symbol_pipe unless it works.
6251   if test "$pipe_works" = yes; then
6252     break
6253   else
6254     lt_cv_sys_global_symbol_pipe=
6255   fi
6256 done
6257
6258 fi
6259
6260 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6261   lt_cv_sys_global_symbol_to_cdecl=
6262 fi
6263 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6265 $as_echo "failed" >&6; }
6266 else
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6268 $as_echo "ok" >&6; }
6269 fi
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292 # Check whether --enable-libtool-lock was given.
6293 if test "${enable_libtool_lock+set}" = set; then :
6294   enableval=$enable_libtool_lock;
6295 fi
6296
6297 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6298
6299 # Some flags need to be propagated to the compiler or linker for good
6300 # libtool support.
6301 case $host in
6302 ia64-*-hpux*)
6303   # Find out which ABI we are using.
6304   echo 'int i;' > conftest.$ac_ext
6305   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6306   (eval $ac_compile) 2>&5
6307   ac_status=$?
6308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309   test $ac_status = 0; }; then
6310     case `/usr/bin/file conftest.$ac_objext` in
6311       *ELF-32*)
6312         HPUX_IA64_MODE="32"
6313         ;;
6314       *ELF-64*)
6315         HPUX_IA64_MODE="64"
6316         ;;
6317     esac
6318   fi
6319   rm -rf conftest*
6320   ;;
6321 *-*-irix6*)
6322   # Find out which ABI we are using.
6323   echo '#line 6323 "configure"' > conftest.$ac_ext
6324   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6325   (eval $ac_compile) 2>&5
6326   ac_status=$?
6327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6328   test $ac_status = 0; }; then
6329     if test "$lt_cv_prog_gnu_ld" = yes; then
6330       case `/usr/bin/file conftest.$ac_objext` in
6331         *32-bit*)
6332           LD="${LD-ld} -melf32bsmip"
6333           ;;
6334         *N32*)
6335           LD="${LD-ld} -melf32bmipn32"
6336           ;;
6337         *64-bit*)
6338           LD="${LD-ld} -melf64bmip"
6339         ;;
6340       esac
6341     else
6342       case `/usr/bin/file conftest.$ac_objext` in
6343         *32-bit*)
6344           LD="${LD-ld} -32"
6345           ;;
6346         *N32*)
6347           LD="${LD-ld} -n32"
6348           ;;
6349         *64-bit*)
6350           LD="${LD-ld} -64"
6351           ;;
6352       esac
6353     fi
6354   fi
6355   rm -rf conftest*
6356   ;;
6357
6358 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6359 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6360   # Find out which ABI we are using.
6361   echo 'int i;' > conftest.$ac_ext
6362   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6363   (eval $ac_compile) 2>&5
6364   ac_status=$?
6365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6366   test $ac_status = 0; }; then
6367     case `/usr/bin/file conftest.o` in
6368       *32-bit*)
6369         case $host in
6370           x86_64-*kfreebsd*-gnu)
6371             LD="${LD-ld} -m elf_i386_fbsd"
6372             ;;
6373           x86_64-*linux*)
6374             LD="${LD-ld} -m elf_i386"
6375             ;;
6376           ppc64-*linux*|powerpc64-*linux*)
6377             LD="${LD-ld} -m elf32ppclinux"
6378             ;;
6379           s390x-*linux*)
6380             LD="${LD-ld} -m elf_s390"
6381             ;;
6382           sparc64-*linux*)
6383             LD="${LD-ld} -m elf32_sparc"
6384             ;;
6385         esac
6386         ;;
6387       *64-bit*)
6388         case $host in
6389           x86_64-*kfreebsd*-gnu)
6390             LD="${LD-ld} -m elf_x86_64_fbsd"
6391             ;;
6392           x86_64-*linux*)
6393             LD="${LD-ld} -m elf_x86_64"
6394             ;;
6395           ppc*-*linux*|powerpc*-*linux*)
6396             LD="${LD-ld} -m elf64ppc"
6397             ;;
6398           s390*-*linux*|s390*-*tpf*)
6399             LD="${LD-ld} -m elf64_s390"
6400             ;;
6401           sparc*-*linux*)
6402             LD="${LD-ld} -m elf64_sparc"
6403             ;;
6404         esac
6405         ;;
6406     esac
6407   fi
6408   rm -rf conftest*
6409   ;;
6410
6411 *-*-sco3.2v5*)
6412   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6413   SAVE_CFLAGS="$CFLAGS"
6414   CFLAGS="$CFLAGS -belf"
6415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6416 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6417 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6418   $as_echo_n "(cached) " >&6
6419 else
6420   ac_ext=c
6421 ac_cpp='$CPP $CPPFLAGS'
6422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6425
6426      if test x$gcc_no_link = xyes; then
6427   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6428 fi
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h.  */
6431
6432 int
6433 main ()
6434 {
6435
6436   ;
6437   return 0;
6438 }
6439 _ACEOF
6440 if ac_fn_c_try_link "$LINENO"; then :
6441   lt_cv_cc_needs_belf=yes
6442 else
6443   lt_cv_cc_needs_belf=no
6444 fi
6445 rm -f core conftest.err conftest.$ac_objext \
6446     conftest$ac_exeext conftest.$ac_ext
6447      ac_ext=c
6448 ac_cpp='$CPP $CPPFLAGS'
6449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6452
6453 fi
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6455 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6456   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6457     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6458     CFLAGS="$SAVE_CFLAGS"
6459   fi
6460   ;;
6461 sparc*-*solaris*)
6462   # Find out which ABI we are using.
6463   echo 'int i;' > conftest.$ac_ext
6464   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6465   (eval $ac_compile) 2>&5
6466   ac_status=$?
6467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468   test $ac_status = 0; }; then
6469     case `/usr/bin/file conftest.o` in
6470     *64-bit*)
6471       case $lt_cv_prog_gnu_ld in
6472       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6473       *)
6474         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6475           LD="${LD-ld} -64"
6476         fi
6477         ;;
6478       esac
6479       ;;
6480     esac
6481   fi
6482   rm -rf conftest*
6483   ;;
6484 esac
6485
6486 need_locks="$enable_libtool_lock"
6487
6488
6489   case $host_os in
6490     rhapsody* | darwin*)
6491     if test -n "$ac_tool_prefix"; then
6492   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6493 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6497   $as_echo_n "(cached) " >&6
6498 else
6499   if test -n "$DSYMUTIL"; then
6500   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6504 do
6505   IFS=$as_save_IFS
6506   test -z "$as_dir" && as_dir=.
6507     for ac_exec_ext in '' $ac_executable_extensions; do
6508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511     break 2
6512   fi
6513 done
6514   done
6515 IFS=$as_save_IFS
6516
6517 fi
6518 fi
6519 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6520 if test -n "$DSYMUTIL"; then
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6522 $as_echo "$DSYMUTIL" >&6; }
6523 else
6524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6526 fi
6527
6528
6529 fi
6530 if test -z "$ac_cv_prog_DSYMUTIL"; then
6531   ac_ct_DSYMUTIL=$DSYMUTIL
6532   # Extract the first word of "dsymutil", so it can be a program name with args.
6533 set dummy dsymutil; ac_word=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6537   $as_echo_n "(cached) " >&6
6538 else
6539   if test -n "$ac_ct_DSYMUTIL"; then
6540   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6541 else
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6544 do
6545   IFS=$as_save_IFS
6546   test -z "$as_dir" && as_dir=.
6547     for ac_exec_ext in '' $ac_executable_extensions; do
6548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551     break 2
6552   fi
6553 done
6554   done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6560 if test -n "$ac_ct_DSYMUTIL"; then
6561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6562 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6563 else
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6566 fi
6567
6568   if test "x$ac_ct_DSYMUTIL" = x; then
6569     DSYMUTIL=":"
6570   else
6571     case $cross_compiling:$ac_tool_warned in
6572 yes:)
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575 ac_tool_warned=yes ;;
6576 esac
6577     DSYMUTIL=$ac_ct_DSYMUTIL
6578   fi
6579 else
6580   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6581 fi
6582
6583     if test -n "$ac_tool_prefix"; then
6584   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6585 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6589   $as_echo_n "(cached) " >&6
6590 else
6591   if test -n "$NMEDIT"; then
6592   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6593 else
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597   IFS=$as_save_IFS
6598   test -z "$as_dir" && as_dir=.
6599     for ac_exec_ext in '' $ac_executable_extensions; do
6600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603     break 2
6604   fi
6605 done
6606   done
6607 IFS=$as_save_IFS
6608
6609 fi
6610 fi
6611 NMEDIT=$ac_cv_prog_NMEDIT
6612 if test -n "$NMEDIT"; then
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6614 $as_echo "$NMEDIT" >&6; }
6615 else
6616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 $as_echo "no" >&6; }
6618 fi
6619
6620
6621 fi
6622 if test -z "$ac_cv_prog_NMEDIT"; then
6623   ac_ct_NMEDIT=$NMEDIT
6624   # Extract the first word of "nmedit", so it can be a program name with args.
6625 set dummy nmedit; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6629   $as_echo_n "(cached) " >&6
6630 else
6631   if test -n "$ac_ct_NMEDIT"; then
6632   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637   IFS=$as_save_IFS
6638   test -z "$as_dir" && as_dir=.
6639     for ac_exec_ext in '' $ac_executable_extensions; do
6640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643     break 2
6644   fi
6645 done
6646   done
6647 IFS=$as_save_IFS
6648
6649 fi
6650 fi
6651 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6652 if test -n "$ac_ct_NMEDIT"; then
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6654 $as_echo "$ac_ct_NMEDIT" >&6; }
6655 else
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6658 fi
6659
6660   if test "x$ac_ct_NMEDIT" = x; then
6661     NMEDIT=":"
6662   else
6663     case $cross_compiling:$ac_tool_warned in
6664 yes:)
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6667 ac_tool_warned=yes ;;
6668 esac
6669     NMEDIT=$ac_ct_NMEDIT
6670   fi
6671 else
6672   NMEDIT="$ac_cv_prog_NMEDIT"
6673 fi
6674
6675     if test -n "$ac_tool_prefix"; then
6676   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6677 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if test "${ac_cv_prog_LIPO+set}" = set; then :
6681   $as_echo_n "(cached) " >&6
6682 else
6683   if test -n "$LIPO"; then
6684   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689   IFS=$as_save_IFS
6690   test -z "$as_dir" && as_dir=.
6691     for ac_exec_ext in '' $ac_executable_extensions; do
6692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695     break 2
6696   fi
6697 done
6698   done
6699 IFS=$as_save_IFS
6700
6701 fi
6702 fi
6703 LIPO=$ac_cv_prog_LIPO
6704 if test -n "$LIPO"; then
6705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6706 $as_echo "$LIPO" >&6; }
6707 else
6708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6710 fi
6711
6712
6713 fi
6714 if test -z "$ac_cv_prog_LIPO"; then
6715   ac_ct_LIPO=$LIPO
6716   # Extract the first word of "lipo", so it can be a program name with args.
6717 set dummy lipo; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6721   $as_echo_n "(cached) " >&6
6722 else
6723   if test -n "$ac_ct_LIPO"; then
6724   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731     for ac_exec_ext in '' $ac_executable_extensions; do
6732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733     ac_cv_prog_ac_ct_LIPO="lipo"
6734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738   done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6744 if test -n "$ac_ct_LIPO"; then
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6746 $as_echo "$ac_ct_LIPO" >&6; }
6747 else
6748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751
6752   if test "x$ac_ct_LIPO" = x; then
6753     LIPO=":"
6754   else
6755     case $cross_compiling:$ac_tool_warned in
6756 yes:)
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759 ac_tool_warned=yes ;;
6760 esac
6761     LIPO=$ac_ct_LIPO
6762   fi
6763 else
6764   LIPO="$ac_cv_prog_LIPO"
6765 fi
6766
6767     if test -n "$ac_tool_prefix"; then
6768   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}otool; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6773   $as_echo_n "(cached) " >&6
6774 else
6775   if test -n "$OTOOL"; then
6776   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781   IFS=$as_save_IFS
6782   test -z "$as_dir" && as_dir=.
6783     for ac_exec_ext in '' $ac_executable_extensions; do
6784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787     break 2
6788   fi
6789 done
6790   done
6791 IFS=$as_save_IFS
6792
6793 fi
6794 fi
6795 OTOOL=$ac_cv_prog_OTOOL
6796 if test -n "$OTOOL"; then
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6798 $as_echo "$OTOOL" >&6; }
6799 else
6800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6802 fi
6803
6804
6805 fi
6806 if test -z "$ac_cv_prog_OTOOL"; then
6807   ac_ct_OTOOL=$OTOOL
6808   # Extract the first word of "otool", so it can be a program name with args.
6809 set dummy otool; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6813   $as_echo_n "(cached) " >&6
6814 else
6815   if test -n "$ac_ct_OTOOL"; then
6816   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823     for ac_exec_ext in '' $ac_executable_extensions; do
6824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6825     ac_cv_prog_ac_ct_OTOOL="otool"
6826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830   done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6836 if test -n "$ac_ct_OTOOL"; then
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6838 $as_echo "$ac_ct_OTOOL" >&6; }
6839 else
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 fi
6843
6844   if test "x$ac_ct_OTOOL" = x; then
6845     OTOOL=":"
6846   else
6847     case $cross_compiling:$ac_tool_warned in
6848 yes:)
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851 ac_tool_warned=yes ;;
6852 esac
6853     OTOOL=$ac_ct_OTOOL
6854   fi
6855 else
6856   OTOOL="$ac_cv_prog_OTOOL"
6857 fi
6858
6859     if test -n "$ac_tool_prefix"; then
6860   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6861 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863 $as_echo_n "checking for $ac_word... " >&6; }
6864 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6865   $as_echo_n "(cached) " >&6
6866 else
6867   if test -n "$OTOOL64"; then
6868   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6869 else
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6872 do
6873   IFS=$as_save_IFS
6874   test -z "$as_dir" && as_dir=.
6875     for ac_exec_ext in '' $ac_executable_extensions; do
6876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879     break 2
6880   fi
6881 done
6882   done
6883 IFS=$as_save_IFS
6884
6885 fi
6886 fi
6887 OTOOL64=$ac_cv_prog_OTOOL64
6888 if test -n "$OTOOL64"; then
6889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6890 $as_echo "$OTOOL64" >&6; }
6891 else
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6894 fi
6895
6896
6897 fi
6898 if test -z "$ac_cv_prog_OTOOL64"; then
6899   ac_ct_OTOOL64=$OTOOL64
6900   # Extract the first word of "otool64", so it can be a program name with args.
6901 set dummy otool64; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6905   $as_echo_n "(cached) " >&6
6906 else
6907   if test -n "$ac_ct_OTOOL64"; then
6908   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913   IFS=$as_save_IFS
6914   test -z "$as_dir" && as_dir=.
6915     for ac_exec_ext in '' $ac_executable_extensions; do
6916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917     ac_cv_prog_ac_ct_OTOOL64="otool64"
6918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919     break 2
6920   fi
6921 done
6922   done
6923 IFS=$as_save_IFS
6924
6925 fi
6926 fi
6927 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6928 if test -n "$ac_ct_OTOOL64"; then
6929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6930 $as_echo "$ac_ct_OTOOL64" >&6; }
6931 else
6932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 fi
6935
6936   if test "x$ac_ct_OTOOL64" = x; then
6937     OTOOL64=":"
6938   else
6939     case $cross_compiling:$ac_tool_warned in
6940 yes:)
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6943 ac_tool_warned=yes ;;
6944 esac
6945     OTOOL64=$ac_ct_OTOOL64
6946   fi
6947 else
6948   OTOOL64="$ac_cv_prog_OTOOL64"
6949 fi
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6978 $as_echo_n "checking for -single_module linker flag... " >&6; }
6979 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6980   $as_echo_n "(cached) " >&6
6981 else
6982   lt_cv_apple_cc_single_mod=no
6983       if test -z "${LT_MULTI_MODULE}"; then
6984         # By default we will add the -single_module flag. You can override
6985         # by either setting the environment variable LT_MULTI_MODULE
6986         # non-empty at configure time, or by adding -multi_module to the
6987         # link flags.
6988         rm -rf libconftest.dylib*
6989         echo "int foo(void){return 1;}" > conftest.c
6990         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6991 -dynamiclib -Wl,-single_module conftest.c" >&5
6992         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6993           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6994         _lt_result=$?
6995         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6996           lt_cv_apple_cc_single_mod=yes
6997         else
6998           cat conftest.err >&5
6999         fi
7000         rm -rf libconftest.dylib*
7001         rm -f conftest.*
7002       fi
7003 fi
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7005 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7007 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7008 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7009   $as_echo_n "(cached) " >&6
7010 else
7011   lt_cv_ld_exported_symbols_list=no
7012       save_LDFLAGS=$LDFLAGS
7013       echo "_main" > conftest.sym
7014       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7015       if test x$gcc_no_link = xyes; then
7016   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7017 fi
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h.  */
7020
7021 int
7022 main ()
7023 {
7024
7025   ;
7026   return 0;
7027 }
7028 _ACEOF
7029 if ac_fn_c_try_link "$LINENO"; then :
7030   lt_cv_ld_exported_symbols_list=yes
7031 else
7032   lt_cv_ld_exported_symbols_list=no
7033 fi
7034 rm -f core conftest.err conftest.$ac_objext \
7035     conftest$ac_exeext conftest.$ac_ext
7036         LDFLAGS="$save_LDFLAGS"
7037
7038 fi
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7040 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7041     case $host_os in
7042     rhapsody* | darwin1.[012])
7043       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7044     darwin1.*)
7045       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7046     darwin*) # darwin 5.x on
7047       # if running on 10.5 or later, the deployment target defaults
7048       # to the OS version, if on x86, and 10.4, the deployment
7049       # target defaults to 10.4. Don't you love it?
7050       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7051         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7052           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7053         10.[012]*)
7054           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7055         10.*)
7056           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7057       esac
7058     ;;
7059   esac
7060     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7061       _lt_dar_single_mod='$single_module'
7062     fi
7063     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7064       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7065     else
7066       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7067     fi
7068     if test "$DSYMUTIL" != ":"; then
7069       _lt_dsymutil='~$DSYMUTIL $lib || :'
7070     else
7071       _lt_dsymutil=
7072     fi
7073     ;;
7074   esac
7075
7076 for ac_header in dlfcn.h
7077 do :
7078   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7079 "
7080 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7081   cat >>confdefs.h <<_ACEOF
7082 #define HAVE_DLFCN_H 1
7083 _ACEOF
7084
7085 fi
7086
7087 done
7088
7089
7090
7091 # Set options
7092
7093
7094
7095         enable_dlopen=no
7096
7097
7098   enable_win32_dll=no
7099
7100
7101             # Check whether --enable-shared was given.
7102 if test "${enable_shared+set}" = set; then :
7103   enableval=$enable_shared; p=${PACKAGE-default}
7104     case $enableval in
7105     yes) enable_shared=yes ;;
7106     no) enable_shared=no ;;
7107     *)
7108       enable_shared=no
7109       # Look at the argument we got.  We use all the common list separators.
7110       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7111       for pkg in $enableval; do
7112         IFS="$lt_save_ifs"
7113         if test "X$pkg" = "X$p"; then
7114           enable_shared=yes
7115         fi
7116       done
7117       IFS="$lt_save_ifs"
7118       ;;
7119     esac
7120 else
7121   enable_shared=yes
7122 fi
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132   # Check whether --enable-static was given.
7133 if test "${enable_static+set}" = set; then :
7134   enableval=$enable_static; p=${PACKAGE-default}
7135     case $enableval in
7136     yes) enable_static=yes ;;
7137     no) enable_static=no ;;
7138     *)
7139      enable_static=no
7140       # Look at the argument we got.  We use all the common list separators.
7141       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7142       for pkg in $enableval; do
7143         IFS="$lt_save_ifs"
7144         if test "X$pkg" = "X$p"; then
7145           enable_static=yes
7146         fi
7147       done
7148       IFS="$lt_save_ifs"
7149       ;;
7150     esac
7151 else
7152   enable_static=yes
7153 fi
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164 # Check whether --with-pic was given.
7165 if test "${with_pic+set}" = set; then :
7166   withval=$with_pic; pic_mode="$withval"
7167 else
7168   pic_mode=default
7169 fi
7170
7171
7172 test -z "$pic_mode" && pic_mode=default
7173
7174
7175
7176
7177
7178
7179
7180   # Check whether --enable-fast-install was given.
7181 if test "${enable_fast_install+set}" = set; then :
7182   enableval=$enable_fast_install; p=${PACKAGE-default}
7183     case $enableval in
7184     yes) enable_fast_install=yes ;;
7185     no) enable_fast_install=no ;;
7186     *)
7187       enable_fast_install=no
7188       # Look at the argument we got.  We use all the common list separators.
7189       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7190       for pkg in $enableval; do
7191         IFS="$lt_save_ifs"
7192         if test "X$pkg" = "X$p"; then
7193           enable_fast_install=yes
7194         fi
7195       done
7196       IFS="$lt_save_ifs"
7197       ;;
7198     esac
7199 else
7200   enable_fast_install=yes
7201 fi
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213 # This can be used to rebuild libtool when needed
7214 LIBTOOL_DEPS="$ltmain"
7215
7216 # Always use our own libtool.
7217 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243 test -z "$LN_S" && LN_S="ln -s"
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258 if test -n "${ZSH_VERSION+set}" ; then
7259    setopt NO_GLOB_SUBST
7260 fi
7261
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7263 $as_echo_n "checking for objdir... " >&6; }
7264 if test "${lt_cv_objdir+set}" = set; then :
7265   $as_echo_n "(cached) " >&6
7266 else
7267   rm -f .libs 2>/dev/null
7268 mkdir .libs 2>/dev/null
7269 if test -d .libs; then
7270   lt_cv_objdir=.libs
7271 else
7272   # MS-DOS does not allow filenames that begin with a dot.
7273   lt_cv_objdir=_libs
7274 fi
7275 rmdir .libs 2>/dev/null
7276 fi
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7278 $as_echo "$lt_cv_objdir" >&6; }
7279 objdir=$lt_cv_objdir
7280
7281
7282
7283
7284
7285 cat >>confdefs.h <<_ACEOF
7286 #define LT_OBJDIR "$lt_cv_objdir/"
7287 _ACEOF
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305 case $host_os in
7306 aix3*)
7307   # AIX sometimes has problems with the GCC collect2 program.  For some
7308   # reason, if we set the COLLECT_NAMES environment variable, the problems
7309   # vanish in a puff of smoke.
7310   if test "X${COLLECT_NAMES+set}" != Xset; then
7311     COLLECT_NAMES=
7312     export COLLECT_NAMES
7313   fi
7314   ;;
7315 esac
7316
7317 # Sed substitution that helps us do robust quoting.  It backslashifies
7318 # metacharacters that are still active within double-quoted strings.
7319 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7320
7321 # Same as above, but do not quote variable references.
7322 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7323
7324 # Sed substitution to delay expansion of an escaped shell variable in a
7325 # double_quote_subst'ed string.
7326 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7327
7328 # Sed substitution to delay expansion of an escaped single quote.
7329 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7330
7331 # Sed substitution to avoid accidental globbing in evaled expressions
7332 no_glob_subst='s/\*/\\\*/g'
7333
7334 # Global variables:
7335 ofile=libtool
7336 can_build_shared=yes
7337
7338 # All known linkers require a `.a' archive for static linking (except MSVC,
7339 # which needs '.lib').
7340 libext=a
7341
7342 with_gnu_ld="$lt_cv_prog_gnu_ld"
7343
7344 old_CC="$CC"
7345 old_CFLAGS="$CFLAGS"
7346
7347 # Set sane defaults for various variables
7348 test -z "$CC" && CC=cc
7349 test -z "$LTCC" && LTCC=$CC
7350 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7351 test -z "$LD" && LD=ld
7352 test -z "$ac_objext" && ac_objext=o
7353
7354 for cc_temp in $compiler""; do
7355   case $cc_temp in
7356     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7357     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7358     \-*) ;;
7359     *) break;;
7360   esac
7361 done
7362 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7363
7364
7365 # Only perform the check for file, if the check method requires it
7366 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7367 case $deplibs_check_method in
7368 file_magic*)
7369   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7371 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7372 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7373   $as_echo_n "(cached) " >&6
7374 else
7375   case $MAGIC_CMD in
7376 [\\/*] |  ?:[\\/]*)
7377   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7378   ;;
7379 *)
7380   lt_save_MAGIC_CMD="$MAGIC_CMD"
7381   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7382   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7383   for ac_dir in $ac_dummy; do
7384     IFS="$lt_save_ifs"
7385     test -z "$ac_dir" && ac_dir=.
7386     if test -f $ac_dir/${ac_tool_prefix}file; then
7387       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7388       if test -n "$file_magic_test_file"; then
7389         case $deplibs_check_method in
7390         "file_magic "*)
7391           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7392           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7393           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7394             $EGREP "$file_magic_regex" > /dev/null; then
7395             :
7396           else
7397             cat <<_LT_EOF 1>&2
7398
7399 *** Warning: the command libtool uses to detect shared libraries,
7400 *** $file_magic_cmd, produces output that libtool cannot recognize.
7401 *** The result is that libtool may fail to recognize shared libraries
7402 *** as such.  This will affect the creation of libtool libraries that
7403 *** depend on shared libraries, but programs linked with such libtool
7404 *** libraries will work regardless of this problem.  Nevertheless, you
7405 *** may want to report the problem to your system manager and/or to
7406 *** bug-libtool@gnu.org
7407
7408 _LT_EOF
7409           fi ;;
7410         esac
7411       fi
7412       break
7413     fi
7414   done
7415   IFS="$lt_save_ifs"
7416   MAGIC_CMD="$lt_save_MAGIC_CMD"
7417   ;;
7418 esac
7419 fi
7420
7421 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7422 if test -n "$MAGIC_CMD"; then
7423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7424 $as_echo "$MAGIC_CMD" >&6; }
7425 else
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429
7430
7431
7432
7433
7434 if test -z "$lt_cv_path_MAGIC_CMD"; then
7435   if test -n "$ac_tool_prefix"; then
7436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7437 $as_echo_n "checking for file... " >&6; }
7438 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7439   $as_echo_n "(cached) " >&6
7440 else
7441   case $MAGIC_CMD in
7442 [\\/*] |  ?:[\\/]*)
7443   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7444   ;;
7445 *)
7446   lt_save_MAGIC_CMD="$MAGIC_CMD"
7447   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7448   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7449   for ac_dir in $ac_dummy; do
7450     IFS="$lt_save_ifs"
7451     test -z "$ac_dir" && ac_dir=.
7452     if test -f $ac_dir/file; then
7453       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7454       if test -n "$file_magic_test_file"; then
7455         case $deplibs_check_method in
7456         "file_magic "*)
7457           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7458           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7459           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7460             $EGREP "$file_magic_regex" > /dev/null; then
7461             :
7462           else
7463             cat <<_LT_EOF 1>&2
7464
7465 *** Warning: the command libtool uses to detect shared libraries,
7466 *** $file_magic_cmd, produces output that libtool cannot recognize.
7467 *** The result is that libtool may fail to recognize shared libraries
7468 *** as such.  This will affect the creation of libtool libraries that
7469 *** depend on shared libraries, but programs linked with such libtool
7470 *** libraries will work regardless of this problem.  Nevertheless, you
7471 *** may want to report the problem to your system manager and/or to
7472 *** bug-libtool@gnu.org
7473
7474 _LT_EOF
7475           fi ;;
7476         esac
7477       fi
7478       break
7479     fi
7480   done
7481   IFS="$lt_save_ifs"
7482   MAGIC_CMD="$lt_save_MAGIC_CMD"
7483   ;;
7484 esac
7485 fi
7486
7487 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7488 if test -n "$MAGIC_CMD"; then
7489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7490 $as_echo "$MAGIC_CMD" >&6; }
7491 else
7492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7494 fi
7495
7496
7497   else
7498     MAGIC_CMD=:
7499   fi
7500 fi
7501
7502   fi
7503   ;;
7504 esac
7505
7506 # Use C for the default configuration in the libtool script
7507
7508 lt_save_CC="$CC"
7509 ac_ext=c
7510 ac_cpp='$CPP $CPPFLAGS'
7511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7514
7515
7516 # Source file extension for C test sources.
7517 ac_ext=c
7518
7519 # Object file extension for compiled C test sources.
7520 objext=o
7521 objext=$objext
7522
7523 # Code to be used in simple compile tests
7524 lt_simple_compile_test_code="int some_variable = 0;"
7525
7526 # Code to be used in simple link tests
7527 lt_simple_link_test_code='int main(){return(0);}'
7528
7529
7530
7531
7532
7533
7534
7535 # If no C compiler was specified, use CC.
7536 LTCC=${LTCC-"$CC"}
7537
7538 # If no C compiler flags were specified, use CFLAGS.
7539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7540
7541 # Allow CC to be a program name with arguments.
7542 compiler=$CC
7543
7544 # Save the default compiler, since it gets overwritten when the other
7545 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7546 compiler_DEFAULT=$CC
7547
7548 # save warnings/boilerplate of simple test code
7549 ac_outfile=conftest.$ac_objext
7550 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7551 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7552 _lt_compiler_boilerplate=`cat conftest.err`
7553 $RM conftest*
7554
7555 ac_outfile=conftest.$ac_objext
7556 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7557 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7558 _lt_linker_boilerplate=`cat conftest.err`
7559 $RM -r conftest*
7560
7561
7562 ## CAVEAT EMPTOR:
7563 ## There is no encapsulation within the following macros, do not change
7564 ## the running order or otherwise move them around unless you know exactly
7565 ## what you are doing...
7566 if test -n "$compiler"; then
7567
7568 lt_prog_compiler_no_builtin_flag=
7569
7570 if test "$GCC" = yes; then
7571   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7572
7573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7574 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7575 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7576   $as_echo_n "(cached) " >&6
7577 else
7578   lt_cv_prog_compiler_rtti_exceptions=no
7579    ac_outfile=conftest.$ac_objext
7580    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7581    lt_compiler_flag="-fno-rtti -fno-exceptions"
7582    # Insert the option either (1) after the last *FLAGS variable, or
7583    # (2) before a word containing "conftest.", or (3) at the end.
7584    # Note that $ac_compile itself does not contain backslashes and begins
7585    # with a dollar sign (not a hyphen), so the echo should work correctly.
7586    # The option is referenced via a variable to avoid confusing sed.
7587    lt_compile=`echo "$ac_compile" | $SED \
7588    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7589    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7590    -e 's:$: $lt_compiler_flag:'`
7591    (eval echo "\"\$as_me:7591: $lt_compile\"" >&5)
7592    (eval "$lt_compile" 2>conftest.err)
7593    ac_status=$?
7594    cat conftest.err >&5
7595    echo "$as_me:7595: \$? = $ac_status" >&5
7596    if (exit $ac_status) && test -s "$ac_outfile"; then
7597      # The compiler can only warn and ignore the option if not recognized
7598      # So say no if there are warnings other than the usual output.
7599      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7600      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7601      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7602        lt_cv_prog_compiler_rtti_exceptions=yes
7603      fi
7604    fi
7605    $RM conftest*
7606
7607 fi
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7609 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7610
7611 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7612     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7613 else
7614     :
7615 fi
7616
7617 fi
7618
7619
7620
7621
7622
7623
7624   lt_prog_compiler_wl=
7625 lt_prog_compiler_pic=
7626 lt_prog_compiler_static=
7627
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7629 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7630
7631   if test "$GCC" = yes; then
7632     lt_prog_compiler_wl='-Wl,'
7633     lt_prog_compiler_static='-static'
7634
7635     case $host_os in
7636       aix*)
7637       # All AIX code is PIC.
7638       if test "$host_cpu" = ia64; then
7639         # AIX 5 now supports IA64 processor
7640         lt_prog_compiler_static='-Bstatic'
7641       fi
7642       ;;
7643
7644     amigaos*)
7645       case $host_cpu in
7646       powerpc)
7647             # see comment about AmigaOS4 .so support
7648             lt_prog_compiler_pic='-fPIC'
7649         ;;
7650       m68k)
7651             # FIXME: we need at least 68020 code to build shared libraries, but
7652             # adding the `-m68020' flag to GCC prevents building anything better,
7653             # like `-m68040'.
7654             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7655         ;;
7656       esac
7657       ;;
7658
7659     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7660       # PIC is the default for these OSes.
7661       ;;
7662
7663     mingw* | cygwin* | pw32* | os2* | cegcc*)
7664       # This hack is so that the source file can tell whether it is being
7665       # built for inclusion in a dll (and should export symbols for example).
7666       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7667       # (--disable-auto-import) libraries
7668       lt_prog_compiler_pic='-DDLL_EXPORT'
7669       ;;
7670
7671     darwin* | rhapsody*)
7672       # PIC is the default on this platform
7673       # Common symbols not allowed in MH_DYLIB files
7674       lt_prog_compiler_pic='-fno-common'
7675       ;;
7676
7677     hpux*)
7678       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7679       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7680       # sets the default TLS model and affects inlining.
7681       case $host_cpu in
7682       hppa*64*)
7683         # +Z the default
7684         ;;
7685       *)
7686         lt_prog_compiler_pic='-fPIC'
7687         ;;
7688       esac
7689       ;;
7690
7691     interix[3-9]*)
7692       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7693       # Instead, we relocate shared libraries at runtime.
7694       ;;
7695
7696     msdosdjgpp*)
7697       # Just because we use GCC doesn't mean we suddenly get shared libraries
7698       # on systems that don't support them.
7699       lt_prog_compiler_can_build_shared=no
7700       enable_shared=no
7701       ;;
7702
7703     *nto* | *qnx*)
7704       # QNX uses GNU C++, but need to define -shared option too, otherwise
7705       # it will coredump.
7706       lt_prog_compiler_pic='-fPIC -shared'
7707       ;;
7708
7709     sysv4*MP*)
7710       if test -d /usr/nec; then
7711         lt_prog_compiler_pic=-Kconform_pic
7712       fi
7713       ;;
7714
7715     *)
7716       lt_prog_compiler_pic='-fPIC'
7717       ;;
7718     esac
7719   else
7720     # PORTME Check for flag to pass linker flags through the system compiler.
7721     case $host_os in
7722     aix*)
7723       lt_prog_compiler_wl='-Wl,'
7724       if test "$host_cpu" = ia64; then
7725         # AIX 5 now supports IA64 processor
7726         lt_prog_compiler_static='-Bstatic'
7727       else
7728         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7729       fi
7730       ;;
7731
7732     mingw* | cygwin* | pw32* | os2* | cegcc*)
7733       # This hack is so that the source file can tell whether it is being
7734       # built for inclusion in a dll (and should export symbols for example).
7735       lt_prog_compiler_pic='-DDLL_EXPORT'
7736       ;;
7737
7738     hpux9* | hpux10* | hpux11*)
7739       lt_prog_compiler_wl='-Wl,'
7740       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7741       # not for PA HP-UX.
7742       case $host_cpu in
7743       hppa*64*|ia64*)
7744         # +Z the default
7745         ;;
7746       *)
7747         lt_prog_compiler_pic='+Z'
7748         ;;
7749       esac
7750       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7751       lt_prog_compiler_static='${wl}-a ${wl}archive'
7752       ;;
7753
7754     irix5* | irix6* | nonstopux*)
7755       lt_prog_compiler_wl='-Wl,'
7756       # PIC (with -KPIC) is the default.
7757       lt_prog_compiler_static='-non_shared'
7758       ;;
7759
7760     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7761       case $cc_basename in
7762       # old Intel for x86_64 which still supported -KPIC.
7763       ecc*)
7764         lt_prog_compiler_wl='-Wl,'
7765         lt_prog_compiler_pic='-KPIC'
7766         lt_prog_compiler_static='-static'
7767         ;;
7768       # icc used to be incompatible with GCC.
7769       # ICC 10 doesn't accept -KPIC any more.
7770       icc* | ifort*)
7771         lt_prog_compiler_wl='-Wl,'
7772         lt_prog_compiler_pic='-fPIC'
7773         lt_prog_compiler_static='-static'
7774         ;;
7775       # Lahey Fortran 8.1.
7776       lf95*)
7777         lt_prog_compiler_wl='-Wl,'
7778         lt_prog_compiler_pic='--shared'
7779         lt_prog_compiler_static='--static'
7780         ;;
7781       pgcc* | pgf77* | pgf90* | pgf95*)
7782         # Portland Group compilers (*not* the Pentium gcc compiler,
7783         # which looks to be a dead project)
7784         lt_prog_compiler_wl='-Wl,'
7785         lt_prog_compiler_pic='-fpic'
7786         lt_prog_compiler_static='-Bstatic'
7787         ;;
7788       ccc*)
7789         lt_prog_compiler_wl='-Wl,'
7790         # All Alpha code is PIC.
7791         lt_prog_compiler_static='-non_shared'
7792         ;;
7793       xl*)
7794         # IBM XL C 8.0/Fortran 10.1 on PPC
7795         lt_prog_compiler_wl='-Wl,'
7796         lt_prog_compiler_pic='-qpic'
7797         lt_prog_compiler_static='-qstaticlink'
7798         ;;
7799       *)
7800         case `$CC -V 2>&1 | sed 5q` in
7801         *Sun\ C*)
7802           # Sun C 5.9
7803           lt_prog_compiler_pic='-KPIC'
7804           lt_prog_compiler_static='-Bstatic'
7805           lt_prog_compiler_wl='-Wl,'
7806           ;;
7807         *Sun\ F*)
7808           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7809           lt_prog_compiler_pic='-KPIC'
7810           lt_prog_compiler_static='-Bstatic'
7811           lt_prog_compiler_wl=''
7812           ;;
7813         esac
7814         ;;
7815       esac
7816       ;;
7817
7818     newsos6)
7819       lt_prog_compiler_pic='-KPIC'
7820       lt_prog_compiler_static='-Bstatic'
7821       ;;
7822
7823     *nto* | *qnx*)
7824       # QNX uses GNU C++, but need to define -shared option too, otherwise
7825       # it will coredump.
7826       lt_prog_compiler_pic='-fPIC -shared'
7827       ;;
7828
7829     osf3* | osf4* | osf5*)
7830       lt_prog_compiler_wl='-Wl,'
7831       # All OSF/1 code is PIC.
7832       lt_prog_compiler_static='-non_shared'
7833       ;;
7834
7835     rdos*)
7836       lt_prog_compiler_static='-non_shared'
7837       ;;
7838
7839     solaris*)
7840       lt_prog_compiler_pic='-KPIC'
7841       lt_prog_compiler_static='-Bstatic'
7842       case $cc_basename in
7843       f77* | f90* | f95*)
7844         lt_prog_compiler_wl='-Qoption ld ';;
7845       *)
7846         lt_prog_compiler_wl='-Wl,';;
7847       esac
7848       ;;
7849
7850     sunos4*)
7851       lt_prog_compiler_wl='-Qoption ld '
7852       lt_prog_compiler_pic='-PIC'
7853       lt_prog_compiler_static='-Bstatic'
7854       ;;
7855
7856     sysv4 | sysv4.2uw2* | sysv4.3*)
7857       lt_prog_compiler_wl='-Wl,'
7858       lt_prog_compiler_pic='-KPIC'
7859       lt_prog_compiler_static='-Bstatic'
7860       ;;
7861
7862     sysv4*MP*)
7863       if test -d /usr/nec ;then
7864         lt_prog_compiler_pic='-Kconform_pic'
7865         lt_prog_compiler_static='-Bstatic'
7866       fi
7867       ;;
7868
7869     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7870       lt_prog_compiler_wl='-Wl,'
7871       lt_prog_compiler_pic='-KPIC'
7872       lt_prog_compiler_static='-Bstatic'
7873       ;;
7874
7875     unicos*)
7876       lt_prog_compiler_wl='-Wl,'
7877       lt_prog_compiler_can_build_shared=no
7878       ;;
7879
7880     uts4*)
7881       lt_prog_compiler_pic='-pic'
7882       lt_prog_compiler_static='-Bstatic'
7883       ;;
7884
7885     *)
7886       lt_prog_compiler_can_build_shared=no
7887       ;;
7888     esac
7889   fi
7890
7891 case $host_os in
7892   # For platforms which do not support PIC, -DPIC is meaningless:
7893   *djgpp*)
7894     lt_prog_compiler_pic=
7895     ;;
7896   *)
7897     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7898     ;;
7899 esac
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7901 $as_echo "$lt_prog_compiler_pic" >&6; }
7902
7903
7904
7905
7906
7907
7908 #
7909 # Check to make sure the PIC flag actually works.
7910 #
7911 if test -n "$lt_prog_compiler_pic"; then
7912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7913 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7914 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7915   $as_echo_n "(cached) " >&6
7916 else
7917   lt_cv_prog_compiler_pic_works=no
7918    ac_outfile=conftest.$ac_objext
7919    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7920    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7921    # Insert the option either (1) after the last *FLAGS variable, or
7922    # (2) before a word containing "conftest.", or (3) at the end.
7923    # Note that $ac_compile itself does not contain backslashes and begins
7924    # with a dollar sign (not a hyphen), so the echo should work correctly.
7925    # The option is referenced via a variable to avoid confusing sed.
7926    lt_compile=`echo "$ac_compile" | $SED \
7927    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7928    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7929    -e 's:$: $lt_compiler_flag:'`
7930    (eval echo "\"\$as_me:7930: $lt_compile\"" >&5)
7931    (eval "$lt_compile" 2>conftest.err)
7932    ac_status=$?
7933    cat conftest.err >&5
7934    echo "$as_me:7934: \$? = $ac_status" >&5
7935    if (exit $ac_status) && test -s "$ac_outfile"; then
7936      # The compiler can only warn and ignore the option if not recognized
7937      # So say no if there are warnings other than the usual output.
7938      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7939      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7940      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7941        lt_cv_prog_compiler_pic_works=yes
7942      fi
7943    fi
7944    $RM conftest*
7945
7946 fi
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7948 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7949
7950 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7951     case $lt_prog_compiler_pic in
7952      "" | " "*) ;;
7953      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7954      esac
7955 else
7956     lt_prog_compiler_pic=
7957      lt_prog_compiler_can_build_shared=no
7958 fi
7959
7960 fi
7961
7962
7963
7964
7965
7966
7967 #
7968 # Check to make sure the static flag actually works.
7969 #
7970 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7972 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7973 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7974   $as_echo_n "(cached) " >&6
7975 else
7976   lt_cv_prog_compiler_static_works=no
7977    save_LDFLAGS="$LDFLAGS"
7978    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7979    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7980    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7981      # The linker can only warn and ignore the option if not recognized
7982      # So say no if there are warnings
7983      if test -s conftest.err; then
7984        # Append any errors to the config.log.
7985        cat conftest.err 1>&5
7986        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7987        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7988        if diff conftest.exp conftest.er2 >/dev/null; then
7989          lt_cv_prog_compiler_static_works=yes
7990        fi
7991      else
7992        lt_cv_prog_compiler_static_works=yes
7993      fi
7994    fi
7995    $RM -r conftest*
7996    LDFLAGS="$save_LDFLAGS"
7997
7998 fi
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8000 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8001
8002 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8003     :
8004 else
8005     lt_prog_compiler_static=
8006 fi
8007
8008
8009
8010
8011
8012
8013
8014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8015 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8016 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8017   $as_echo_n "(cached) " >&6
8018 else
8019   lt_cv_prog_compiler_c_o=no
8020    $RM -r conftest 2>/dev/null
8021    mkdir conftest
8022    cd conftest
8023    mkdir out
8024    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8025
8026    lt_compiler_flag="-o out/conftest2.$ac_objext"
8027    # Insert the option either (1) after the last *FLAGS variable, or
8028    # (2) before a word containing "conftest.", or (3) at the end.
8029    # Note that $ac_compile itself does not contain backslashes and begins
8030    # with a dollar sign (not a hyphen), so the echo should work correctly.
8031    lt_compile=`echo "$ac_compile" | $SED \
8032    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8033    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8034    -e 's:$: $lt_compiler_flag:'`
8035    (eval echo "\"\$as_me:8035: $lt_compile\"" >&5)
8036    (eval "$lt_compile" 2>out/conftest.err)
8037    ac_status=$?
8038    cat out/conftest.err >&5
8039    echo "$as_me:8039: \$? = $ac_status" >&5
8040    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8041    then
8042      # The compiler can only warn and ignore the option if not recognized
8043      # So say no if there are warnings
8044      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8045      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8046      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8047        lt_cv_prog_compiler_c_o=yes
8048      fi
8049    fi
8050    chmod u+w . 2>&5
8051    $RM conftest*
8052    # SGI C++ compiler will create directory out/ii_files/ for
8053    # template instantiation
8054    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8055    $RM out/* && rmdir out
8056    cd ..
8057    $RM -r conftest
8058    $RM conftest*
8059
8060 fi
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8062 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8063
8064
8065
8066
8067
8068
8069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8070 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8071 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8072   $as_echo_n "(cached) " >&6
8073 else
8074   lt_cv_prog_compiler_c_o=no
8075    $RM -r conftest 2>/dev/null
8076    mkdir conftest
8077    cd conftest
8078    mkdir out
8079    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8080
8081    lt_compiler_flag="-o out/conftest2.$ac_objext"
8082    # Insert the option either (1) after the last *FLAGS variable, or
8083    # (2) before a word containing "conftest.", or (3) at the end.
8084    # Note that $ac_compile itself does not contain backslashes and begins
8085    # with a dollar sign (not a hyphen), so the echo should work correctly.
8086    lt_compile=`echo "$ac_compile" | $SED \
8087    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8088    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8089    -e 's:$: $lt_compiler_flag:'`
8090    (eval echo "\"\$as_me:8090: $lt_compile\"" >&5)
8091    (eval "$lt_compile" 2>out/conftest.err)
8092    ac_status=$?
8093    cat out/conftest.err >&5
8094    echo "$as_me:8094: \$? = $ac_status" >&5
8095    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8096    then
8097      # The compiler can only warn and ignore the option if not recognized
8098      # So say no if there are warnings
8099      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8100      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8101      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8102        lt_cv_prog_compiler_c_o=yes
8103      fi
8104    fi
8105    chmod u+w . 2>&5
8106    $RM conftest*
8107    # SGI C++ compiler will create directory out/ii_files/ for
8108    # template instantiation
8109    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8110    $RM out/* && rmdir out
8111    cd ..
8112    $RM -r conftest
8113    $RM conftest*
8114
8115 fi
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8117 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8118
8119
8120
8121
8122 hard_links="nottested"
8123 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8124   # do not overwrite the value of need_locks provided by the user
8125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8126 $as_echo_n "checking if we can lock with hard links... " >&6; }
8127   hard_links=yes
8128   $RM conftest*
8129   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8130   touch conftest.a
8131   ln conftest.a conftest.b 2>&5 || hard_links=no
8132   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8134 $as_echo "$hard_links" >&6; }
8135   if test "$hard_links" = no; then
8136     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8137 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8138     need_locks=warn
8139   fi
8140 else
8141   need_locks=no
8142 fi
8143
8144
8145
8146
8147
8148
8149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8150 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8151
8152   runpath_var=
8153   allow_undefined_flag=
8154   always_export_symbols=no
8155   archive_cmds=
8156   archive_expsym_cmds=
8157   compiler_needs_object=no
8158   enable_shared_with_static_runtimes=no
8159   export_dynamic_flag_spec=
8160   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8161   hardcode_automatic=no
8162   hardcode_direct=no
8163   hardcode_direct_absolute=no
8164   hardcode_libdir_flag_spec=
8165   hardcode_libdir_flag_spec_ld=
8166   hardcode_libdir_separator=
8167   hardcode_minus_L=no
8168   hardcode_shlibpath_var=unsupported
8169   inherit_rpath=no
8170   link_all_deplibs=unknown
8171   module_cmds=
8172   module_expsym_cmds=
8173   old_archive_from_new_cmds=
8174   old_archive_from_expsyms_cmds=
8175   thread_safe_flag_spec=
8176   whole_archive_flag_spec=
8177   # include_expsyms should be a list of space-separated symbols to be *always*
8178   # included in the symbol list
8179   include_expsyms=
8180   # exclude_expsyms can be an extended regexp of symbols to exclude
8181   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8182   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8183   # as well as any symbol that contains `d'.
8184   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8185   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8186   # platforms (ab)use it in PIC code, but their linkers get confused if
8187   # the symbol is explicitly referenced.  Since portable code cannot
8188   # rely on this symbol name, it's probably fine to never include it in
8189   # preloaded symbol tables.
8190   # Exclude shared library initialization/finalization symbols.
8191   extract_expsyms_cmds=
8192
8193   case $host_os in
8194   cygwin* | mingw* | pw32* | cegcc*)
8195     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8196     # When not using gcc, we currently assume that we are using
8197     # Microsoft Visual C++.
8198     if test "$GCC" != yes; then
8199       with_gnu_ld=no
8200     fi
8201     ;;
8202   interix*)
8203     # we just hope/assume this is gcc and not c89 (= MSVC++)
8204     with_gnu_ld=yes
8205     ;;
8206   openbsd*)
8207     with_gnu_ld=no
8208     ;;
8209   esac
8210
8211   ld_shlibs=yes
8212   if test "$with_gnu_ld" = yes; then
8213     # If archive_cmds runs LD, not CC, wlarc should be empty
8214     wlarc='${wl}'
8215
8216     # Set some defaults for GNU ld with shared library support. These
8217     # are reset later if shared libraries are not supported. Putting them
8218     # here allows them to be overridden if necessary.
8219     runpath_var=LD_RUN_PATH
8220     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8221     export_dynamic_flag_spec='${wl}--export-dynamic'
8222     # ancient GNU ld didn't support --whole-archive et. al.
8223     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8224       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8225     else
8226       whole_archive_flag_spec=
8227     fi
8228     supports_anon_versioning=no
8229     case `$LD -v 2>&1` in
8230       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8231       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8232       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8233       *\ 2.11.*) ;; # other 2.11 versions
8234       *) supports_anon_versioning=yes ;;
8235     esac
8236
8237     # See if GNU ld supports shared libraries.
8238     case $host_os in
8239     aix[3-9]*)
8240       # On AIX/PPC, the GNU linker is very broken
8241       if test "$host_cpu" != ia64; then
8242         ld_shlibs=no
8243         cat <<_LT_EOF 1>&2
8244
8245 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8246 *** to be unable to reliably create shared libraries on AIX.
8247 *** Therefore, libtool is disabling shared libraries support.  If you
8248 *** really care for shared libraries, you may want to modify your PATH
8249 *** so that a non-GNU linker is found, and then restart.
8250
8251 _LT_EOF
8252       fi
8253       ;;
8254
8255     amigaos*)
8256       case $host_cpu in
8257       powerpc)
8258             # see comment about AmigaOS4 .so support
8259             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260             archive_expsym_cmds=''
8261         ;;
8262       m68k)
8263             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)'
8264             hardcode_libdir_flag_spec='-L$libdir'
8265             hardcode_minus_L=yes
8266         ;;
8267       esac
8268       ;;
8269
8270     beos*)
8271       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8272         allow_undefined_flag=unsupported
8273         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8274         # support --undefined.  This deserves some investigation.  FIXME
8275         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8276       else
8277         ld_shlibs=no
8278       fi
8279       ;;
8280
8281     cygwin* | mingw* | pw32* | cegcc*)
8282       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8283       # as there is no search path for DLLs.
8284       hardcode_libdir_flag_spec='-L$libdir'
8285       allow_undefined_flag=unsupported
8286       always_export_symbols=no
8287       enable_shared_with_static_runtimes=yes
8288       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8289
8290       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8291         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8292         # If the export-symbols file already is a .def file (1st line
8293         # is EXPORTS), use it as is; otherwise, prepend...
8294         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8295           cp $export_symbols $output_objdir/$soname.def;
8296         else
8297           echo EXPORTS > $output_objdir/$soname.def;
8298           cat $export_symbols >> $output_objdir/$soname.def;
8299         fi~
8300         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8301       else
8302         ld_shlibs=no
8303       fi
8304       ;;
8305
8306     interix[3-9]*)
8307       hardcode_direct=no
8308       hardcode_shlibpath_var=no
8309       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8310       export_dynamic_flag_spec='${wl}-E'
8311       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8312       # Instead, shared libraries are loaded at an image base (0x10000000 by
8313       # default) and relocated if they conflict, which is a slow very memory
8314       # consuming and fragmenting process.  To avoid this, we pick a random,
8315       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8316       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8317       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8318       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'
8319       ;;
8320
8321     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8322       tmp_diet=no
8323       if test "$host_os" = linux-dietlibc; then
8324         case $cc_basename in
8325           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8326         esac
8327       fi
8328       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8329          && test "$tmp_diet" = no
8330       then
8331         tmp_addflag=
8332         tmp_sharedflag='-shared'
8333         case $cc_basename,$host_cpu in
8334         pgcc*)                          # Portland Group C compiler
8335           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8336           tmp_addflag=' $pic_flag'
8337           ;;
8338         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8339           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8340           tmp_addflag=' $pic_flag -Mnomain' ;;
8341         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8342           tmp_addflag=' -i_dynamic' ;;
8343         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8344           tmp_addflag=' -i_dynamic -nofor_main' ;;
8345         ifc* | ifort*)                  # Intel Fortran compiler
8346           tmp_addflag=' -nofor_main' ;;
8347         lf95*)                          # Lahey Fortran 8.1
8348           whole_archive_flag_spec=
8349           tmp_sharedflag='--shared' ;;
8350         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8351           tmp_sharedflag='-qmkshrobj'
8352           tmp_addflag= ;;
8353         esac
8354         case `$CC -V 2>&1 | sed 5q` in
8355         *Sun\ C*)                       # Sun C 5.9
8356           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8357           compiler_needs_object=yes
8358           tmp_sharedflag='-G' ;;
8359         *Sun\ F*)                       # Sun Fortran 8.3
8360           tmp_sharedflag='-G' ;;
8361         esac
8362         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363
8364         if test "x$supports_anon_versioning" = xyes; then
8365           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8366             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8367             echo "local: *; };" >> $output_objdir/$libname.ver~
8368             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8369         fi
8370
8371         case $cc_basename in
8372         xlf*)
8373           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8374           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8375           hardcode_libdir_flag_spec=
8376           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8377           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8378           if test "x$supports_anon_versioning" = xyes; then
8379             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8380               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8381               echo "local: *; };" >> $output_objdir/$libname.ver~
8382               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8383           fi
8384           ;;
8385         esac
8386       else
8387         ld_shlibs=no
8388       fi
8389       ;;
8390
8391     netbsd*)
8392       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8393         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8394         wlarc=
8395       else
8396         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8397         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8398       fi
8399       ;;
8400
8401     solaris*)
8402       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8403         ld_shlibs=no
8404         cat <<_LT_EOF 1>&2
8405
8406 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8407 *** create shared libraries on Solaris systems.  Therefore, libtool
8408 *** is disabling shared libraries support.  We urge you to upgrade GNU
8409 *** binutils to release 2.9.1 or newer.  Another option is to modify
8410 *** your PATH or compiler configuration so that the native linker is
8411 *** used, and then restart.
8412
8413 _LT_EOF
8414       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8415         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8416         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8417       else
8418         ld_shlibs=no
8419       fi
8420       ;;
8421
8422     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8423       case `$LD -v 2>&1` in
8424         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8425         ld_shlibs=no
8426         cat <<_LT_EOF 1>&2
8427
8428 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8429 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8430 *** is disabling shared libraries support.  We urge you to upgrade GNU
8431 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8432 *** your PATH or compiler configuration so that the native linker is
8433 *** used, and then restart.
8434
8435 _LT_EOF
8436         ;;
8437         *)
8438           # For security reasons, it is highly recommended that you always
8439           # use absolute paths for naming shared libraries, and exclude the
8440           # DT_RUNPATH tag from executables and libraries.  But doing so
8441           # requires that you compile everything twice, which is a pain.
8442           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8443             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8444             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8445             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8446           else
8447             ld_shlibs=no
8448           fi
8449         ;;
8450       esac
8451       ;;
8452
8453     sunos4*)
8454       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8455       wlarc=
8456       hardcode_direct=yes
8457       hardcode_shlibpath_var=no
8458       ;;
8459
8460     *)
8461       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8462         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8463         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8464       else
8465         ld_shlibs=no
8466       fi
8467       ;;
8468     esac
8469
8470     if test "$ld_shlibs" = no; then
8471       runpath_var=
8472       hardcode_libdir_flag_spec=
8473       export_dynamic_flag_spec=
8474       whole_archive_flag_spec=
8475     fi
8476   else
8477     # PORTME fill in a description of your system's linker (not GNU ld)
8478     case $host_os in
8479     aix3*)
8480       allow_undefined_flag=unsupported
8481       always_export_symbols=yes
8482       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'
8483       # Note: this linker hardcodes the directories in LIBPATH if there
8484       # are no directories specified by -L.
8485       hardcode_minus_L=yes
8486       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8487         # Neither direct hardcoding nor static linking is supported with a
8488         # broken collect2.
8489         hardcode_direct=unsupported
8490       fi
8491       ;;
8492
8493     aix[4-9]*)
8494       if test "$host_cpu" = ia64; then
8495         # On IA64, the linker does run time linking by default, so we don't
8496         # have to do anything special.
8497         aix_use_runtimelinking=no
8498         exp_sym_flag='-Bexport'
8499         no_entry_flag=""
8500       else
8501         # If we're using GNU nm, then we don't want the "-C" option.
8502         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8503         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8504           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8505         else
8506           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'
8507         fi
8508         aix_use_runtimelinking=no
8509
8510         # Test if we are trying to use run time linking or normal
8511         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8512         # need to do runtime linking.
8513         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8514           for ld_flag in $LDFLAGS; do
8515           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8516             aix_use_runtimelinking=yes
8517             break
8518           fi
8519           done
8520           ;;
8521         esac
8522
8523         exp_sym_flag='-bexport'
8524         no_entry_flag='-bnoentry'
8525       fi
8526
8527       # When large executables or shared objects are built, AIX ld can
8528       # have problems creating the table of contents.  If linking a library
8529       # or program results in "error TOC overflow" add -mminimal-toc to
8530       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8531       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8532
8533       archive_cmds=''
8534       hardcode_direct=yes
8535       hardcode_direct_absolute=yes
8536       hardcode_libdir_separator=':'
8537       link_all_deplibs=yes
8538       file_list_spec='${wl}-f,'
8539
8540       if test "$GCC" = yes; then
8541         case $host_os in aix4.[012]|aix4.[012].*)
8542         # We only want to do this on AIX 4.2 and lower, the check
8543         # below for broken collect2 doesn't work under 4.3+
8544           collect2name=`${CC} -print-prog-name=collect2`
8545           if test -f "$collect2name" &&
8546            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8547           then
8548           # We have reworked collect2
8549           :
8550           else
8551           # We have old collect2
8552           hardcode_direct=unsupported
8553           # It fails to find uninstalled libraries when the uninstalled
8554           # path is not listed in the libpath.  Setting hardcode_minus_L
8555           # to unsupported forces relinking
8556           hardcode_minus_L=yes
8557           hardcode_libdir_flag_spec='-L$libdir'
8558           hardcode_libdir_separator=
8559           fi
8560           ;;
8561         esac
8562         shared_flag='-shared'
8563         if test "$aix_use_runtimelinking" = yes; then
8564           shared_flag="$shared_flag "'${wl}-G'
8565         fi
8566       else
8567         # not using gcc
8568         if test "$host_cpu" = ia64; then
8569         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8570         # chokes on -Wl,-G. The following line is correct:
8571           shared_flag='-G'
8572         else
8573           if test "$aix_use_runtimelinking" = yes; then
8574             shared_flag='${wl}-G'
8575           else
8576             shared_flag='${wl}-bM:SRE'
8577           fi
8578         fi
8579       fi
8580
8581       export_dynamic_flag_spec='${wl}-bexpall'
8582       # It seems that -bexpall does not export symbols beginning with
8583       # underscore (_), so it is better to generate a list of symbols to export.
8584       always_export_symbols=yes
8585       if test "$aix_use_runtimelinking" = yes; then
8586         # Warning - without using the other runtime loading flags (-brtl),
8587         # -berok will link without error, but may produce a broken library.
8588         allow_undefined_flag='-berok'
8589         # Determine the default libpath from the value encoded in an
8590         # empty executable.
8591         if test x$gcc_no_link = xyes; then
8592   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8593 fi
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h.  */
8596
8597 int
8598 main ()
8599 {
8600
8601   ;
8602   return 0;
8603 }
8604 _ACEOF
8605 if ac_fn_c_try_link "$LINENO"; then :
8606
8607 lt_aix_libpath_sed='
8608     /Import File Strings/,/^$/ {
8609         /^0/ {
8610             s/^0  *\(.*\)$/\1/
8611             p
8612         }
8613     }'
8614 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8615 # Check for a 64-bit object if we didn't find anything.
8616 if test -z "$aix_libpath"; then
8617   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8618 fi
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext \
8621     conftest$ac_exeext conftest.$ac_ext
8622 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8623
8624         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8625         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8626       else
8627         if test "$host_cpu" = ia64; then
8628           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8629           allow_undefined_flag="-z nodefs"
8630           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"
8631         else
8632          # Determine the default libpath from the value encoded in an
8633          # empty executable.
8634          if test x$gcc_no_link = xyes; then
8635   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8636 fi
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h.  */
8639
8640 int
8641 main ()
8642 {
8643
8644   ;
8645   return 0;
8646 }
8647 _ACEOF
8648 if ac_fn_c_try_link "$LINENO"; then :
8649
8650 lt_aix_libpath_sed='
8651     /Import File Strings/,/^$/ {
8652         /^0/ {
8653             s/^0  *\(.*\)$/\1/
8654             p
8655         }
8656     }'
8657 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8658 # Check for a 64-bit object if we didn't find anything.
8659 if test -z "$aix_libpath"; then
8660   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8661 fi
8662 fi
8663 rm -f core conftest.err conftest.$ac_objext \
8664     conftest$ac_exeext conftest.$ac_ext
8665 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8666
8667          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8668           # Warning - without using the other run time loading flags,
8669           # -berok will link without error, but may produce a broken library.
8670           no_undefined_flag=' ${wl}-bernotok'
8671           allow_undefined_flag=' ${wl}-berok'
8672           # Exported symbols can be pulled into shared objects from archives
8673           whole_archive_flag_spec='$convenience'
8674           archive_cmds_need_lc=yes
8675           # This is similar to how AIX traditionally builds its shared libraries.
8676           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'
8677         fi
8678       fi
8679       ;;
8680
8681     amigaos*)
8682       case $host_cpu in
8683       powerpc)
8684             # see comment about AmigaOS4 .so support
8685             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8686             archive_expsym_cmds=''
8687         ;;
8688       m68k)
8689             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)'
8690             hardcode_libdir_flag_spec='-L$libdir'
8691             hardcode_minus_L=yes
8692         ;;
8693       esac
8694       ;;
8695
8696     bsdi[45]*)
8697       export_dynamic_flag_spec=-rdynamic
8698       ;;
8699
8700     cygwin* | mingw* | pw32* | cegcc*)
8701       # When not using gcc, we currently assume that we are using
8702       # Microsoft Visual C++.
8703       # hardcode_libdir_flag_spec is actually meaningless, as there is
8704       # no search path for DLLs.
8705       hardcode_libdir_flag_spec=' '
8706       allow_undefined_flag=unsupported
8707       # Tell ltmain to make .lib files, not .a files.
8708       libext=lib
8709       # Tell ltmain to make .dll files, not .so files.
8710       shrext_cmds=".dll"
8711       # FIXME: Setting linknames here is a bad hack.
8712       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8713       # The linker will automatically build a .lib file if we build a DLL.
8714       old_archive_from_new_cmds='true'
8715       # FIXME: Should let the user specify the lib program.
8716       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8717       fix_srcfile_path='`cygpath -w "$srcfile"`'
8718       enable_shared_with_static_runtimes=yes
8719       ;;
8720
8721     darwin* | rhapsody*)
8722
8723
8724   archive_cmds_need_lc=no
8725   hardcode_direct=no
8726   hardcode_automatic=yes
8727   hardcode_shlibpath_var=unsupported
8728   whole_archive_flag_spec=''
8729   link_all_deplibs=yes
8730   allow_undefined_flag="$_lt_dar_allow_undefined"
8731   case $cc_basename in
8732      ifort*) _lt_dar_can_shared=yes ;;
8733      *) _lt_dar_can_shared=$GCC ;;
8734   esac
8735   if test "$_lt_dar_can_shared" = "yes"; then
8736     output_verbose_link_cmd=echo
8737     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8738     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8739     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}"
8740     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}"
8741
8742   else
8743   ld_shlibs=no
8744   fi
8745
8746       ;;
8747
8748     dgux*)
8749       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8750       hardcode_libdir_flag_spec='-L$libdir'
8751       hardcode_shlibpath_var=no
8752       ;;
8753
8754     freebsd1*)
8755       ld_shlibs=no
8756       ;;
8757
8758     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8759     # support.  Future versions do this automatically, but an explicit c++rt0.o
8760     # does not break anything, and helps significantly (at the cost of a little
8761     # extra space).
8762     freebsd2.2*)
8763       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8764       hardcode_libdir_flag_spec='-R$libdir'
8765       hardcode_direct=yes
8766       hardcode_shlibpath_var=no
8767       ;;
8768
8769     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8770     freebsd2*)
8771       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8772       hardcode_direct=yes
8773       hardcode_minus_L=yes
8774       hardcode_shlibpath_var=no
8775       ;;
8776
8777     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8778     freebsd* | dragonfly*)
8779       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8780       hardcode_libdir_flag_spec='-R$libdir'
8781       hardcode_direct=yes
8782       hardcode_shlibpath_var=no
8783       ;;
8784
8785     hpux9*)
8786       if test "$GCC" = yes; then
8787         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8788       else
8789         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'
8790       fi
8791       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8792       hardcode_libdir_separator=:
8793       hardcode_direct=yes
8794
8795       # hardcode_minus_L: Not really in the search PATH,
8796       # but as the default location of the library.
8797       hardcode_minus_L=yes
8798       export_dynamic_flag_spec='${wl}-E'
8799       ;;
8800
8801     hpux10*)
8802       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8803         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8804       else
8805         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8806       fi
8807       if test "$with_gnu_ld" = no; then
8808         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8809         hardcode_libdir_flag_spec_ld='+b $libdir'
8810         hardcode_libdir_separator=:
8811         hardcode_direct=yes
8812         hardcode_direct_absolute=yes
8813         export_dynamic_flag_spec='${wl}-E'
8814         # hardcode_minus_L: Not really in the search PATH,
8815         # but as the default location of the library.
8816         hardcode_minus_L=yes
8817       fi
8818       ;;
8819
8820     hpux11*)
8821       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8822         case $host_cpu in
8823         hppa*64*)
8824           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8825           ;;
8826         ia64*)
8827           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8828           ;;
8829         *)
8830           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8831           ;;
8832         esac
8833       else
8834         case $host_cpu in
8835         hppa*64*)
8836           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8837           ;;
8838         ia64*)
8839           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8840           ;;
8841         *)
8842           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8843           ;;
8844         esac
8845       fi
8846       if test "$with_gnu_ld" = no; then
8847         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8848         hardcode_libdir_separator=:
8849
8850         case $host_cpu in
8851         hppa*64*|ia64*)
8852           hardcode_direct=no
8853           hardcode_shlibpath_var=no
8854           ;;
8855         *)
8856           hardcode_direct=yes
8857           hardcode_direct_absolute=yes
8858           export_dynamic_flag_spec='${wl}-E'
8859
8860           # hardcode_minus_L: Not really in the search PATH,
8861           # but as the default location of the library.
8862           hardcode_minus_L=yes
8863           ;;
8864         esac
8865       fi
8866       ;;
8867
8868     irix5* | irix6* | nonstopux*)
8869       if test "$GCC" = yes; then
8870         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8871         # Try to use the -exported_symbol ld option, if it does not
8872         # work, assume that -exports_file does not work either and
8873         # implicitly export all symbols.
8874         save_LDFLAGS="$LDFLAGS"
8875         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8876         if test x$gcc_no_link = xyes; then
8877   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8878 fi
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h.  */
8881 int foo(void) {}
8882 _ACEOF
8883 if ac_fn_c_try_link "$LINENO"; then :
8884   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8885
8886 fi
8887 rm -f core conftest.err conftest.$ac_objext \
8888     conftest$ac_exeext conftest.$ac_ext
8889         LDFLAGS="$save_LDFLAGS"
8890       else
8891         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8892         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8893       fi
8894       archive_cmds_need_lc='no'
8895       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8896       hardcode_libdir_separator=:
8897       inherit_rpath=yes
8898       link_all_deplibs=yes
8899       ;;
8900
8901     netbsd*)
8902       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8903         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8904       else
8905         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8906       fi
8907       hardcode_libdir_flag_spec='-R$libdir'
8908       hardcode_direct=yes
8909       hardcode_shlibpath_var=no
8910       ;;
8911
8912     newsos6)
8913       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914       hardcode_direct=yes
8915       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8916       hardcode_libdir_separator=:
8917       hardcode_shlibpath_var=no
8918       ;;
8919
8920     *nto* | *qnx*)
8921       ;;
8922
8923     openbsd*)
8924       if test -f /usr/libexec/ld.so; then
8925         hardcode_direct=yes
8926         hardcode_shlibpath_var=no
8927         hardcode_direct_absolute=yes
8928         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8929           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8930           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8931           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8932           export_dynamic_flag_spec='${wl}-E'
8933         else
8934           case $host_os in
8935            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8936              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8937              hardcode_libdir_flag_spec='-R$libdir'
8938              ;;
8939            *)
8940              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8941              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8942              ;;
8943           esac
8944         fi
8945       else
8946         ld_shlibs=no
8947       fi
8948       ;;
8949
8950     os2*)
8951       hardcode_libdir_flag_spec='-L$libdir'
8952       hardcode_minus_L=yes
8953       allow_undefined_flag=unsupported
8954       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'
8955       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8956       ;;
8957
8958     osf3*)
8959       if test "$GCC" = yes; then
8960         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8961         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8962       else
8963         allow_undefined_flag=' -expect_unresolved \*'
8964         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8965       fi
8966       archive_cmds_need_lc='no'
8967       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8968       hardcode_libdir_separator=:
8969       ;;
8970
8971     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8972       if test "$GCC" = yes; then
8973         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8974         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8975         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8976       else
8977         allow_undefined_flag=' -expect_unresolved \*'
8978         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8979         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~
8980         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8981
8982         # Both c and cxx compiler support -rpath directly
8983         hardcode_libdir_flag_spec='-rpath $libdir'
8984       fi
8985       archive_cmds_need_lc='no'
8986       hardcode_libdir_separator=:
8987       ;;
8988
8989     solaris*)
8990       no_undefined_flag=' -z defs'
8991       if test "$GCC" = yes; then
8992         wlarc='${wl}'
8993         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8994         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8995           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8996       else
8997         case `$CC -V 2>&1` in
8998         *"Compilers 5.0"*)
8999           wlarc=''
9000           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9001           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9002           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9003           ;;
9004         *)
9005           wlarc='${wl}'
9006           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9007           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9008           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9009           ;;
9010         esac
9011       fi
9012       hardcode_libdir_flag_spec='-R$libdir'
9013       hardcode_shlibpath_var=no
9014       case $host_os in
9015       solaris2.[0-5] | solaris2.[0-5].*) ;;
9016       *)
9017         # The compiler driver will combine and reorder linker options,
9018         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9019         # but is careful enough not to reorder.
9020         # Supported since Solaris 2.6 (maybe 2.5.1?)
9021         if test "$GCC" = yes; then
9022           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9023         else
9024           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9025         fi
9026         ;;
9027       esac
9028       link_all_deplibs=yes
9029       ;;
9030
9031     sunos4*)
9032       if test "x$host_vendor" = xsequent; then
9033         # Use $CC to link under sequent, because it throws in some extra .o
9034         # files that make .init and .fini sections work.
9035         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9036       else
9037         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9038       fi
9039       hardcode_libdir_flag_spec='-L$libdir'
9040       hardcode_direct=yes
9041       hardcode_minus_L=yes
9042       hardcode_shlibpath_var=no
9043       ;;
9044
9045     sysv4)
9046       case $host_vendor in
9047         sni)
9048           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9049           hardcode_direct=yes # is this really true???
9050         ;;
9051         siemens)
9052           ## LD is ld it makes a PLAMLIB
9053           ## CC just makes a GrossModule.
9054           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9055           reload_cmds='$CC -r -o $output$reload_objs'
9056           hardcode_direct=no
9057         ;;
9058         motorola)
9059           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9060           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9061         ;;
9062       esac
9063       runpath_var='LD_RUN_PATH'
9064       hardcode_shlibpath_var=no
9065       ;;
9066
9067     sysv4.3*)
9068       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9069       hardcode_shlibpath_var=no
9070       export_dynamic_flag_spec='-Bexport'
9071       ;;
9072
9073     sysv4*MP*)
9074       if test -d /usr/nec; then
9075         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9076         hardcode_shlibpath_var=no
9077         runpath_var=LD_RUN_PATH
9078         hardcode_runpath_var=yes
9079         ld_shlibs=yes
9080       fi
9081       ;;
9082
9083     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9084       no_undefined_flag='${wl}-z,text'
9085       archive_cmds_need_lc=no
9086       hardcode_shlibpath_var=no
9087       runpath_var='LD_RUN_PATH'
9088
9089       if test "$GCC" = yes; then
9090         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9091         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9092       else
9093         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9094         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9095       fi
9096       ;;
9097
9098     sysv5* | sco3.2v5* | sco5v6*)
9099       # Note: We can NOT use -z defs as we might desire, because we do not
9100       # link with -lc, and that would cause any symbols used from libc to
9101       # always be unresolved, which means just about no library would
9102       # ever link correctly.  If we're not using GNU ld we use -z text
9103       # though, which does catch some bad symbols but isn't as heavy-handed
9104       # as -z defs.
9105       no_undefined_flag='${wl}-z,text'
9106       allow_undefined_flag='${wl}-z,nodefs'
9107       archive_cmds_need_lc=no
9108       hardcode_shlibpath_var=no
9109       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9110       hardcode_libdir_separator=':'
9111       link_all_deplibs=yes
9112       export_dynamic_flag_spec='${wl}-Bexport'
9113       runpath_var='LD_RUN_PATH'
9114
9115       if test "$GCC" = yes; then
9116         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9117         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9118       else
9119         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9120         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121       fi
9122       ;;
9123
9124     uts4*)
9125       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9126       hardcode_libdir_flag_spec='-L$libdir'
9127       hardcode_shlibpath_var=no
9128       ;;
9129
9130     *)
9131       ld_shlibs=no
9132       ;;
9133     esac
9134
9135     if test x$host_vendor = xsni; then
9136       case $host in
9137       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9138         export_dynamic_flag_spec='${wl}-Blargedynsym'
9139         ;;
9140       esac
9141     fi
9142   fi
9143
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9145 $as_echo "$ld_shlibs" >&6; }
9146 test "$ld_shlibs" = no && can_build_shared=no
9147
9148 with_gnu_ld=$with_gnu_ld
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164 #
9165 # Do we need to explicitly link libc?
9166 #
9167 case "x$archive_cmds_need_lc" in
9168 x|xyes)
9169   # Assume -lc should be added
9170   archive_cmds_need_lc=yes
9171
9172   if test "$enable_shared" = yes && test "$GCC" = yes; then
9173     case $archive_cmds in
9174     *'~'*)
9175       # FIXME: we may have to deal with multi-command sequences.
9176       ;;
9177     '$CC '*)
9178       # Test whether the compiler implicitly links with -lc since on some
9179       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9180       # to ld, don't add -lc before -lgcc.
9181       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9182 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9183 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9184   $as_echo_n "(cached) " >&6
9185 else
9186   $RM conftest*
9187         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9188
9189         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9190   (eval $ac_compile) 2>&5
9191   ac_status=$?
9192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9193   test $ac_status = 0; } 2>conftest.err; then
9194           soname=conftest
9195           lib=conftest
9196           libobjs=conftest.$ac_objext
9197           deplibs=
9198           wl=$lt_prog_compiler_wl
9199           pic_flag=$lt_prog_compiler_pic
9200           compiler_flags=-v
9201           linker_flags=-v
9202           verstring=
9203           output_objdir=.
9204           libname=conftest
9205           lt_save_allow_undefined_flag=$allow_undefined_flag
9206           allow_undefined_flag=
9207           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9208   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9209   ac_status=$?
9210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9211   test $ac_status = 0; }
9212           then
9213             lt_cv_archive_cmds_need_lc=no
9214           else
9215             lt_cv_archive_cmds_need_lc=yes
9216           fi
9217           allow_undefined_flag=$lt_save_allow_undefined_flag
9218         else
9219           cat conftest.err 1>&5
9220         fi
9221         $RM conftest*
9222
9223 fi
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9225 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9226       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9227       ;;
9228     esac
9229   fi
9230   ;;
9231 esac
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9390 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9391
9392 if test "$GCC" = yes; then
9393   case $host_os in
9394     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9395     *) lt_awk_arg="/^libraries:/" ;;
9396   esac
9397   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9398   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9399     # if the path contains ";" then we assume it to be the separator
9400     # otherwise default to the standard path separator (i.e. ":") - it is
9401     # assumed that no part of a normal pathname contains ";" but that should
9402     # okay in the real world where ";" in dirpaths is itself problematic.
9403     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9404   else
9405     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9406   fi
9407   # Ok, now we have the path, separated by spaces, we can step through it
9408   # and add multilib dir if necessary.
9409   lt_tmp_lt_search_path_spec=
9410   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9411   for lt_sys_path in $lt_search_path_spec; do
9412     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9413       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9414     else
9415       test -d "$lt_sys_path" && \
9416         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9417     fi
9418   done
9419   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9420 BEGIN {RS=" "; FS="/|\n";} {
9421   lt_foo="";
9422   lt_count=0;
9423   for (lt_i = NF; lt_i > 0; lt_i--) {
9424     if ($lt_i != "" && $lt_i != ".") {
9425       if ($lt_i == "..") {
9426         lt_count++;
9427       } else {
9428         if (lt_count == 0) {
9429           lt_foo="/" $lt_i lt_foo;
9430         } else {
9431           lt_count--;
9432         }
9433       }
9434     }
9435   }
9436   if (lt_foo != "") { lt_freq[lt_foo]++; }
9437   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9438 }'`
9439   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9440 else
9441   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9442 fi
9443 library_names_spec=
9444 libname_spec='lib$name'
9445 soname_spec=
9446 shrext_cmds=".so"
9447 postinstall_cmds=
9448 postuninstall_cmds=
9449 finish_cmds=
9450 finish_eval=
9451 shlibpath_var=
9452 shlibpath_overrides_runpath=unknown
9453 version_type=none
9454 dynamic_linker="$host_os ld.so"
9455 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9456 need_lib_prefix=unknown
9457 hardcode_into_libs=no
9458
9459 # when you set need_version to no, make sure it does not cause -set_version
9460 # flags to be left without arguments
9461 need_version=unknown
9462
9463 case $host_os in
9464 aix3*)
9465   version_type=linux
9466   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9467   shlibpath_var=LIBPATH
9468
9469   # AIX 3 has no versioning support, so we append a major version to the name.
9470   soname_spec='${libname}${release}${shared_ext}$major'
9471   ;;
9472
9473 aix[4-9]*)
9474   version_type=linux
9475   need_lib_prefix=no
9476   need_version=no
9477   hardcode_into_libs=yes
9478   if test "$host_cpu" = ia64; then
9479     # AIX 5 supports IA64
9480     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9481     shlibpath_var=LD_LIBRARY_PATH
9482   else
9483     # With GCC up to 2.95.x, collect2 would create an import file
9484     # for dependence libraries.  The import file would start with
9485     # the line `#! .'.  This would cause the generated library to
9486     # depend on `.', always an invalid library.  This was fixed in
9487     # development snapshots of GCC prior to 3.0.
9488     case $host_os in
9489       aix4 | aix4.[01] | aix4.[01].*)
9490       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9491            echo ' yes '
9492            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9493         :
9494       else
9495         can_build_shared=no
9496       fi
9497       ;;
9498     esac
9499     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9500     # soname into executable. Probably we can add versioning support to
9501     # collect2, so additional links can be useful in future.
9502     if test "$aix_use_runtimelinking" = yes; then
9503       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9504       # instead of lib<name>.a to let people know that these are not
9505       # typical AIX shared libraries.
9506       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507     else
9508       # We preserve .a as extension for shared libraries through AIX4.2
9509       # and later when we are not doing run time linking.
9510       library_names_spec='${libname}${release}.a $libname.a'
9511       soname_spec='${libname}${release}${shared_ext}$major'
9512     fi
9513     shlibpath_var=LIBPATH
9514   fi
9515   ;;
9516
9517 amigaos*)
9518   case $host_cpu in
9519   powerpc)
9520     # Since July 2007 AmigaOS4 officially supports .so libraries.
9521     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9522     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523     ;;
9524   m68k)
9525     library_names_spec='$libname.ixlibrary $libname.a'
9526     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9527     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9528     ;;
9529   esac
9530   ;;
9531
9532 beos*)
9533   library_names_spec='${libname}${shared_ext}'
9534   dynamic_linker="$host_os ld.so"
9535   shlibpath_var=LIBRARY_PATH
9536   ;;
9537
9538 bsdi[45]*)
9539   version_type=linux
9540   need_version=no
9541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542   soname_spec='${libname}${release}${shared_ext}$major'
9543   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9544   shlibpath_var=LD_LIBRARY_PATH
9545   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9546   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9547   # the default ld.so.conf also contains /usr/contrib/lib and
9548   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9549   # libtool to hard-code these into programs
9550   ;;
9551
9552 cygwin* | mingw* | pw32* | cegcc*)
9553   version_type=windows
9554   shrext_cmds=".dll"
9555   need_version=no
9556   need_lib_prefix=no
9557
9558   case $GCC,$host_os in
9559   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9560     library_names_spec='$libname.dll.a'
9561     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9562     postinstall_cmds='base_file=`basename \${file}`~
9563       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9564       dldir=$destdir/`dirname \$dlpath`~
9565       test -d \$dldir || mkdir -p \$dldir~
9566       $install_prog $dir/$dlname \$dldir/$dlname~
9567       chmod a+x \$dldir/$dlname~
9568       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9569         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9570       fi'
9571     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9572       dlpath=$dir/\$dldll~
9573        $RM \$dlpath'
9574     shlibpath_overrides_runpath=yes
9575
9576     case $host_os in
9577     cygwin*)
9578       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9579       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9580       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9581       ;;
9582     mingw* | cegcc*)
9583       # MinGW DLLs use traditional 'lib' prefix
9584       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9585       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9586       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9587         # It is most probably a Windows format PATH printed by
9588         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9589         # path with ; separators, and with drive letters. We can handle the
9590         # drive letters (cygwin fileutils understands them), so leave them,
9591         # especially as we might pass files found there to a mingw objdump,
9592         # which wouldn't understand a cygwinified path. Ahh.
9593         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9594       else
9595         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9596       fi
9597       ;;
9598     pw32*)
9599       # pw32 DLLs use 'pw' prefix rather than 'lib'
9600       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9601       ;;
9602     esac
9603     ;;
9604
9605   *)
9606     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9607     ;;
9608   esac
9609   dynamic_linker='Win32 ld.exe'
9610   # FIXME: first we should search . and the directory the executable is in
9611   shlibpath_var=PATH
9612   ;;
9613
9614 darwin* | rhapsody*)
9615   dynamic_linker="$host_os dyld"
9616   version_type=darwin
9617   need_lib_prefix=no
9618   need_version=no
9619   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9620   soname_spec='${libname}${release}${major}$shared_ext'
9621   shlibpath_overrides_runpath=yes
9622   shlibpath_var=DYLD_LIBRARY_PATH
9623   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9624
9625   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9626   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9627   ;;
9628
9629 dgux*)
9630   version_type=linux
9631   need_lib_prefix=no
9632   need_version=no
9633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9634   soname_spec='${libname}${release}${shared_ext}$major'
9635   shlibpath_var=LD_LIBRARY_PATH
9636   ;;
9637
9638 freebsd1*)
9639   dynamic_linker=no
9640   ;;
9641
9642 freebsd* | dragonfly*)
9643   # DragonFly does not have aout.  When/if they implement a new
9644   # versioning mechanism, adjust this.
9645   if test -x /usr/bin/objformat; then
9646     objformat=`/usr/bin/objformat`
9647   else
9648     case $host_os in
9649     freebsd[123]*) objformat=aout ;;
9650     *) objformat=elf ;;
9651     esac
9652   fi
9653   version_type=freebsd-$objformat
9654   case $version_type in
9655     freebsd-elf*)
9656       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9657       need_version=no
9658       need_lib_prefix=no
9659       ;;
9660     freebsd-*)
9661       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9662       need_version=yes
9663       ;;
9664   esac
9665   shlibpath_var=LD_LIBRARY_PATH
9666   case $host_os in
9667   freebsd2*)
9668     shlibpath_overrides_runpath=yes
9669     ;;
9670   freebsd3.[01]* | freebsdelf3.[01]*)
9671     shlibpath_overrides_runpath=yes
9672     hardcode_into_libs=yes
9673     ;;
9674   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9675   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9676     shlibpath_overrides_runpath=no
9677     hardcode_into_libs=yes
9678     ;;
9679   *) # from 4.6 on, and DragonFly
9680     shlibpath_overrides_runpath=yes
9681     hardcode_into_libs=yes
9682     ;;
9683   esac
9684   ;;
9685
9686 gnu*)
9687   version_type=linux
9688   need_lib_prefix=no
9689   need_version=no
9690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9691   soname_spec='${libname}${release}${shared_ext}$major'
9692   shlibpath_var=LD_LIBRARY_PATH
9693   hardcode_into_libs=yes
9694   ;;
9695
9696 hpux9* | hpux10* | hpux11*)
9697   # Give a soname corresponding to the major version so that dld.sl refuses to
9698   # link against other versions.
9699   version_type=sunos
9700   need_lib_prefix=no
9701   need_version=no
9702   case $host_cpu in
9703   ia64*)
9704     shrext_cmds='.so'
9705     hardcode_into_libs=yes
9706     dynamic_linker="$host_os dld.so"
9707     shlibpath_var=LD_LIBRARY_PATH
9708     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9710     soname_spec='${libname}${release}${shared_ext}$major'
9711     if test "X$HPUX_IA64_MODE" = X32; then
9712       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9713     else
9714       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9715     fi
9716     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9717     ;;
9718   hppa*64*)
9719     shrext_cmds='.sl'
9720     hardcode_into_libs=yes
9721     dynamic_linker="$host_os dld.sl"
9722     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9723     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9724     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9725     soname_spec='${libname}${release}${shared_ext}$major'
9726     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9727     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9728     ;;
9729   *)
9730     shrext_cmds='.sl'
9731     dynamic_linker="$host_os dld.sl"
9732     shlibpath_var=SHLIB_PATH
9733     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9734     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9735     soname_spec='${libname}${release}${shared_ext}$major'
9736     ;;
9737   esac
9738   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9739   postinstall_cmds='chmod 555 $lib'
9740   ;;
9741
9742 interix[3-9]*)
9743   version_type=linux
9744   need_lib_prefix=no
9745   need_version=no
9746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9747   soname_spec='${libname}${release}${shared_ext}$major'
9748   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9749   shlibpath_var=LD_LIBRARY_PATH
9750   shlibpath_overrides_runpath=no
9751   hardcode_into_libs=yes
9752   ;;
9753
9754 irix5* | irix6* | nonstopux*)
9755   case $host_os in
9756     nonstopux*) version_type=nonstopux ;;
9757     *)
9758         if test "$lt_cv_prog_gnu_ld" = yes; then
9759                 version_type=linux
9760         else
9761                 version_type=irix
9762         fi ;;
9763   esac
9764   need_lib_prefix=no
9765   need_version=no
9766   soname_spec='${libname}${release}${shared_ext}$major'
9767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9768   case $host_os in
9769   irix5* | nonstopux*)
9770     libsuff= shlibsuff=
9771     ;;
9772   *)
9773     case $LD in # libtool.m4 will add one of these switches to LD
9774     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9775       libsuff= shlibsuff= libmagic=32-bit;;
9776     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9777       libsuff=32 shlibsuff=N32 libmagic=N32;;
9778     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9779       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9780     *) libsuff= shlibsuff= libmagic=never-match;;
9781     esac
9782     ;;
9783   esac
9784   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9785   shlibpath_overrides_runpath=no
9786   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9787   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9788   hardcode_into_libs=yes
9789   ;;
9790
9791 # No shared lib support for Linux oldld, aout, or coff.
9792 linux*oldld* | linux*aout* | linux*coff*)
9793   dynamic_linker=no
9794   ;;
9795
9796 # This must be Linux ELF.
9797 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9798   version_type=linux
9799   need_lib_prefix=no
9800   need_version=no
9801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802   soname_spec='${libname}${release}${shared_ext}$major'
9803   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9804   shlibpath_var=LD_LIBRARY_PATH
9805   shlibpath_overrides_runpath=no
9806
9807   # Some binutils ld are patched to set DT_RUNPATH
9808   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9809   $as_echo_n "(cached) " >&6
9810 else
9811   lt_cv_shlibpath_overrides_runpath=no
9812     save_LDFLAGS=$LDFLAGS
9813     save_libdir=$libdir
9814     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9815          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9816     if test x$gcc_no_link = xyes; then
9817   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9818 fi
9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820 /* end confdefs.h.  */
9821
9822 int
9823 main ()
9824 {
9825
9826   ;
9827   return 0;
9828 }
9829 _ACEOF
9830 if ac_fn_c_try_link "$LINENO"; then :
9831   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9832   lt_cv_shlibpath_overrides_runpath=yes
9833 fi
9834 fi
9835 rm -f core conftest.err conftest.$ac_objext \
9836     conftest$ac_exeext conftest.$ac_ext
9837     LDFLAGS=$save_LDFLAGS
9838     libdir=$save_libdir
9839
9840 fi
9841
9842   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9843
9844   # This implies no fast_install, which is unacceptable.
9845   # Some rework will be needed to allow for fast_install
9846   # before this can be enabled.
9847   hardcode_into_libs=yes
9848
9849   # Append ld.so.conf contents to the search path
9850   if test -f /etc/ld.so.conf; then
9851     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;/^$/d' | tr '\n' ' '`
9852     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9853   fi
9854
9855   # We used to test for /lib/ld.so.1 and disable shared libraries on
9856   # powerpc, because MkLinux only supported shared libraries with the
9857   # GNU dynamic linker.  Since this was broken with cross compilers,
9858   # most powerpc-linux boxes support dynamic linking these days and
9859   # people can always --disable-shared, the test was removed, and we
9860   # assume the GNU/Linux dynamic linker is in use.
9861   dynamic_linker='GNU/Linux ld.so'
9862   ;;
9863
9864 netbsd*)
9865   version_type=sunos
9866   need_lib_prefix=no
9867   need_version=no
9868   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9870     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9871     dynamic_linker='NetBSD (a.out) ld.so'
9872   else
9873     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9874     soname_spec='${libname}${release}${shared_ext}$major'
9875     dynamic_linker='NetBSD ld.elf_so'
9876   fi
9877   shlibpath_var=LD_LIBRARY_PATH
9878   shlibpath_overrides_runpath=yes
9879   hardcode_into_libs=yes
9880   ;;
9881
9882 newsos6)
9883   version_type=linux
9884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9885   shlibpath_var=LD_LIBRARY_PATH
9886   shlibpath_overrides_runpath=yes
9887   ;;
9888
9889 *nto* | *qnx*)
9890   version_type=qnx
9891   need_lib_prefix=no
9892   need_version=no
9893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9894   soname_spec='${libname}${release}${shared_ext}$major'
9895   shlibpath_var=LD_LIBRARY_PATH
9896   shlibpath_overrides_runpath=no
9897   hardcode_into_libs=yes
9898   dynamic_linker='ldqnx.so'
9899   ;;
9900
9901 openbsd*)
9902   version_type=sunos
9903   sys_lib_dlsearch_path_spec="/usr/lib"
9904   need_lib_prefix=no
9905   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9906   case $host_os in
9907     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9908     *)                          need_version=no  ;;
9909   esac
9910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9911   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9912   shlibpath_var=LD_LIBRARY_PATH
9913   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9914     case $host_os in
9915       openbsd2.[89] | openbsd2.[89].*)
9916         shlibpath_overrides_runpath=no
9917         ;;
9918       *)
9919         shlibpath_overrides_runpath=yes
9920         ;;
9921       esac
9922   else
9923     shlibpath_overrides_runpath=yes
9924   fi
9925   ;;
9926
9927 os2*)
9928   libname_spec='$name'
9929   shrext_cmds=".dll"
9930   need_lib_prefix=no
9931   library_names_spec='$libname${shared_ext} $libname.a'
9932   dynamic_linker='OS/2 ld.exe'
9933   shlibpath_var=LIBPATH
9934   ;;
9935
9936 osf3* | osf4* | osf5*)
9937   version_type=osf
9938   need_lib_prefix=no
9939   need_version=no
9940   soname_spec='${libname}${release}${shared_ext}$major'
9941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9942   shlibpath_var=LD_LIBRARY_PATH
9943   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9944   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9945   ;;
9946
9947 rdos*)
9948   dynamic_linker=no
9949   ;;
9950
9951 solaris*)
9952   version_type=linux
9953   need_lib_prefix=no
9954   need_version=no
9955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956   soname_spec='${libname}${release}${shared_ext}$major'
9957   shlibpath_var=LD_LIBRARY_PATH
9958   shlibpath_overrides_runpath=yes
9959   hardcode_into_libs=yes
9960   # ldd complains unless libraries are executable
9961   postinstall_cmds='chmod +x $lib'
9962   ;;
9963
9964 sunos4*)
9965   version_type=sunos
9966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9967   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9968   shlibpath_var=LD_LIBRARY_PATH
9969   shlibpath_overrides_runpath=yes
9970   if test "$with_gnu_ld" = yes; then
9971     need_lib_prefix=no
9972   fi
9973   need_version=yes
9974   ;;
9975
9976 sysv4 | sysv4.3*)
9977   version_type=linux
9978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979   soname_spec='${libname}${release}${shared_ext}$major'
9980   shlibpath_var=LD_LIBRARY_PATH
9981   case $host_vendor in
9982     sni)
9983       shlibpath_overrides_runpath=no
9984       need_lib_prefix=no
9985       runpath_var=LD_RUN_PATH
9986       ;;
9987     siemens)
9988       need_lib_prefix=no
9989       ;;
9990     motorola)
9991       need_lib_prefix=no
9992       need_version=no
9993       shlibpath_overrides_runpath=no
9994       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9995       ;;
9996   esac
9997   ;;
9998
9999 sysv4*MP*)
10000   if test -d /usr/nec ;then
10001     version_type=linux
10002     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10003     soname_spec='$libname${shared_ext}.$major'
10004     shlibpath_var=LD_LIBRARY_PATH
10005   fi
10006   ;;
10007
10008 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10009   version_type=freebsd-elf
10010   need_lib_prefix=no
10011   need_version=no
10012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10013   soname_spec='${libname}${release}${shared_ext}$major'
10014   shlibpath_var=LD_LIBRARY_PATH
10015   shlibpath_overrides_runpath=yes
10016   hardcode_into_libs=yes
10017   if test "$with_gnu_ld" = yes; then
10018     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10019   else
10020     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10021     case $host_os in
10022       sco3.2v5*)
10023         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10024         ;;
10025     esac
10026   fi
10027   sys_lib_dlsearch_path_spec='/usr/lib'
10028   ;;
10029
10030 tpf*)
10031   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10032   version_type=linux
10033   need_lib_prefix=no
10034   need_version=no
10035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036   shlibpath_var=LD_LIBRARY_PATH
10037   shlibpath_overrides_runpath=no
10038   hardcode_into_libs=yes
10039   ;;
10040
10041 uts4*)
10042   version_type=linux
10043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044   soname_spec='${libname}${release}${shared_ext}$major'
10045   shlibpath_var=LD_LIBRARY_PATH
10046   ;;
10047
10048 *)
10049   dynamic_linker=no
10050   ;;
10051 esac
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10053 $as_echo "$dynamic_linker" >&6; }
10054 test "$dynamic_linker" = no && can_build_shared=no
10055
10056 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10057 if test "$GCC" = yes; then
10058   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10059 fi
10060
10061 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10062   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10063 fi
10064 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10065   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10066 fi
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10155 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10156 hardcode_action=
10157 if test -n "$hardcode_libdir_flag_spec" ||
10158    test -n "$runpath_var" ||
10159    test "X$hardcode_automatic" = "Xyes" ; then
10160
10161   # We can hardcode non-existent directories.
10162   if test "$hardcode_direct" != no &&
10163      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10164      # have to relink, otherwise we might link with an installed library
10165      # when we should be linking with a yet-to-be-installed one
10166      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10167      test "$hardcode_minus_L" != no; then
10168     # Linking always hardcodes the temporary library directory.
10169     hardcode_action=relink
10170   else
10171     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10172     hardcode_action=immediate
10173   fi
10174 else
10175   # We cannot hardcode anything, or else we can only hardcode existing
10176   # directories.
10177   hardcode_action=unsupported
10178 fi
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10180 $as_echo "$hardcode_action" >&6; }
10181
10182 if test "$hardcode_action" = relink ||
10183    test "$inherit_rpath" = yes; then
10184   # Fast installation is not supported
10185   enable_fast_install=no
10186 elif test "$shlibpath_overrides_runpath" = yes ||
10187      test "$enable_shared" = no; then
10188   # Fast installation is not necessary
10189   enable_fast_install=needless
10190 fi
10191
10192
10193
10194
10195
10196
10197   if test "x$enable_dlopen" != xyes; then
10198   enable_dlopen=unknown
10199   enable_dlopen_self=unknown
10200   enable_dlopen_self_static=unknown
10201 else
10202   lt_cv_dlopen=no
10203   lt_cv_dlopen_libs=
10204
10205   case $host_os in
10206   beos*)
10207     lt_cv_dlopen="load_add_on"
10208     lt_cv_dlopen_libs=
10209     lt_cv_dlopen_self=yes
10210     ;;
10211
10212   mingw* | pw32* | cegcc*)
10213     lt_cv_dlopen="LoadLibrary"
10214     lt_cv_dlopen_libs=
10215     ;;
10216
10217   cygwin*)
10218     lt_cv_dlopen="dlopen"
10219     lt_cv_dlopen_libs=
10220     ;;
10221
10222   darwin*)
10223   # if libdl is installed we need to link against it
10224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10225 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10227   $as_echo_n "(cached) " >&6
10228 else
10229   ac_check_lib_save_LIBS=$LIBS
10230 LIBS="-ldl  $LIBS"
10231 if test x$gcc_no_link = xyes; then
10232   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10233 fi
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h.  */
10236
10237 /* Override any GCC internal prototype to avoid an error.
10238    Use char because int might match the return type of a GCC
10239    builtin and then its argument prototype would still apply.  */
10240 #ifdef __cplusplus
10241 extern "C"
10242 #endif
10243 char dlopen ();
10244 int
10245 main ()
10246 {
10247 return dlopen ();
10248   ;
10249   return 0;
10250 }
10251 _ACEOF
10252 if ac_fn_c_try_link "$LINENO"; then :
10253   ac_cv_lib_dl_dlopen=yes
10254 else
10255   ac_cv_lib_dl_dlopen=no
10256 fi
10257 rm -f core conftest.err conftest.$ac_objext \
10258     conftest$ac_exeext conftest.$ac_ext
10259 LIBS=$ac_check_lib_save_LIBS
10260 fi
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10262 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10263 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10264   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10265 else
10266
10267     lt_cv_dlopen="dyld"
10268     lt_cv_dlopen_libs=
10269     lt_cv_dlopen_self=yes
10270
10271 fi
10272
10273     ;;
10274
10275   *)
10276     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10277 if test "x$ac_cv_func_shl_load" = x""yes; then :
10278   lt_cv_dlopen="shl_load"
10279 else
10280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10281 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10282 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10283   $as_echo_n "(cached) " >&6
10284 else
10285   ac_check_lib_save_LIBS=$LIBS
10286 LIBS="-ldld  $LIBS"
10287 if test x$gcc_no_link = xyes; then
10288   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10289 fi
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h.  */
10292
10293 /* Override any GCC internal prototype to avoid an error.
10294    Use char because int might match the return type of a GCC
10295    builtin and then its argument prototype would still apply.  */
10296 #ifdef __cplusplus
10297 extern "C"
10298 #endif
10299 char shl_load ();
10300 int
10301 main ()
10302 {
10303 return shl_load ();
10304   ;
10305   return 0;
10306 }
10307 _ACEOF
10308 if ac_fn_c_try_link "$LINENO"; then :
10309   ac_cv_lib_dld_shl_load=yes
10310 else
10311   ac_cv_lib_dld_shl_load=no
10312 fi
10313 rm -f core conftest.err conftest.$ac_objext \
10314     conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10316 fi
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10318 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10319 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10320   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10321 else
10322   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10323 if test "x$ac_cv_func_dlopen" = x""yes; then :
10324   lt_cv_dlopen="dlopen"
10325 else
10326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10327 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10328 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10329   $as_echo_n "(cached) " >&6
10330 else
10331   ac_check_lib_save_LIBS=$LIBS
10332 LIBS="-ldl  $LIBS"
10333 if test x$gcc_no_link = xyes; then
10334   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10335 fi
10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337 /* end confdefs.h.  */
10338
10339 /* Override any GCC internal prototype to avoid an error.
10340    Use char because int might match the return type of a GCC
10341    builtin and then its argument prototype would still apply.  */
10342 #ifdef __cplusplus
10343 extern "C"
10344 #endif
10345 char dlopen ();
10346 int
10347 main ()
10348 {
10349 return dlopen ();
10350   ;
10351   return 0;
10352 }
10353 _ACEOF
10354 if ac_fn_c_try_link "$LINENO"; then :
10355   ac_cv_lib_dl_dlopen=yes
10356 else
10357   ac_cv_lib_dl_dlopen=no
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext \
10360     conftest$ac_exeext conftest.$ac_ext
10361 LIBS=$ac_check_lib_save_LIBS
10362 fi
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10364 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10365 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10366   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10367 else
10368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10369 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10370 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10371   $as_echo_n "(cached) " >&6
10372 else
10373   ac_check_lib_save_LIBS=$LIBS
10374 LIBS="-lsvld  $LIBS"
10375 if test x$gcc_no_link = xyes; then
10376   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10377 fi
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h.  */
10380
10381 /* Override any GCC internal prototype to avoid an error.
10382    Use char because int might match the return type of a GCC
10383    builtin and then its argument prototype would still apply.  */
10384 #ifdef __cplusplus
10385 extern "C"
10386 #endif
10387 char dlopen ();
10388 int
10389 main ()
10390 {
10391 return dlopen ();
10392   ;
10393   return 0;
10394 }
10395 _ACEOF
10396 if ac_fn_c_try_link "$LINENO"; then :
10397   ac_cv_lib_svld_dlopen=yes
10398 else
10399   ac_cv_lib_svld_dlopen=no
10400 fi
10401 rm -f core conftest.err conftest.$ac_objext \
10402     conftest$ac_exeext conftest.$ac_ext
10403 LIBS=$ac_check_lib_save_LIBS
10404 fi
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10406 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10407 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10408   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10409 else
10410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10411 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10412 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10413   $as_echo_n "(cached) " >&6
10414 else
10415   ac_check_lib_save_LIBS=$LIBS
10416 LIBS="-ldld  $LIBS"
10417 if test x$gcc_no_link = xyes; then
10418   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10419 fi
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h.  */
10422
10423 /* Override any GCC internal prototype to avoid an error.
10424    Use char because int might match the return type of a GCC
10425    builtin and then its argument prototype would still apply.  */
10426 #ifdef __cplusplus
10427 extern "C"
10428 #endif
10429 char dld_link ();
10430 int
10431 main ()
10432 {
10433 return dld_link ();
10434   ;
10435   return 0;
10436 }
10437 _ACEOF
10438 if ac_fn_c_try_link "$LINENO"; then :
10439   ac_cv_lib_dld_dld_link=yes
10440 else
10441   ac_cv_lib_dld_dld_link=no
10442 fi
10443 rm -f core conftest.err conftest.$ac_objext \
10444     conftest$ac_exeext conftest.$ac_ext
10445 LIBS=$ac_check_lib_save_LIBS
10446 fi
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10448 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10449 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10450   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10451 fi
10452
10453
10454 fi
10455
10456
10457 fi
10458
10459
10460 fi
10461
10462
10463 fi
10464
10465
10466 fi
10467
10468     ;;
10469   esac
10470
10471   if test "x$lt_cv_dlopen" != xno; then
10472     enable_dlopen=yes
10473   else
10474     enable_dlopen=no
10475   fi
10476
10477   case $lt_cv_dlopen in
10478   dlopen)
10479     save_CPPFLAGS="$CPPFLAGS"
10480     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10481
10482     save_LDFLAGS="$LDFLAGS"
10483     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10484
10485     save_LIBS="$LIBS"
10486     LIBS="$lt_cv_dlopen_libs $LIBS"
10487
10488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10489 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10490 if test "${lt_cv_dlopen_self+set}" = set; then :
10491   $as_echo_n "(cached) " >&6
10492 else
10493           if test "$cross_compiling" = yes; then :
10494   lt_cv_dlopen_self=cross
10495 else
10496   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10497   lt_status=$lt_dlunknown
10498   cat > conftest.$ac_ext <<_LT_EOF
10499 #line 10499 "configure"
10500 #include "confdefs.h"
10501
10502 #if HAVE_DLFCN_H
10503 #include <dlfcn.h>
10504 #endif
10505
10506 #include <stdio.h>
10507
10508 #ifdef RTLD_GLOBAL
10509 #  define LT_DLGLOBAL           RTLD_GLOBAL
10510 #else
10511 #  ifdef DL_GLOBAL
10512 #    define LT_DLGLOBAL         DL_GLOBAL
10513 #  else
10514 #    define LT_DLGLOBAL         0
10515 #  endif
10516 #endif
10517
10518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10519    find out it does not work in some platform. */
10520 #ifndef LT_DLLAZY_OR_NOW
10521 #  ifdef RTLD_LAZY
10522 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10523 #  else
10524 #    ifdef DL_LAZY
10525 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10526 #    else
10527 #      ifdef RTLD_NOW
10528 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10529 #      else
10530 #        ifdef DL_NOW
10531 #          define LT_DLLAZY_OR_NOW      DL_NOW
10532 #        else
10533 #          define LT_DLLAZY_OR_NOW      0
10534 #        endif
10535 #      endif
10536 #    endif
10537 #  endif
10538 #endif
10539
10540 void fnord() { int i=42;}
10541 int main ()
10542 {
10543   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10544   int status = $lt_dlunknown;
10545
10546   if (self)
10547     {
10548       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10549       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10550       /* dlclose (self); */
10551     }
10552   else
10553     puts (dlerror ());
10554
10555   return status;
10556 }
10557 _LT_EOF
10558   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10559   (eval $ac_link) 2>&5
10560   ac_status=$?
10561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10562   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10563     (./conftest; exit; ) >&5 2>/dev/null
10564     lt_status=$?
10565     case x$lt_status in
10566       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10567       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10568       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10569     esac
10570   else :
10571     # compilation failed
10572     lt_cv_dlopen_self=no
10573   fi
10574 fi
10575 rm -fr conftest*
10576
10577
10578 fi
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10580 $as_echo "$lt_cv_dlopen_self" >&6; }
10581
10582     if test "x$lt_cv_dlopen_self" = xyes; then
10583       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10584       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10585 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10586 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10587   $as_echo_n "(cached) " >&6
10588 else
10589           if test "$cross_compiling" = yes; then :
10590   lt_cv_dlopen_self_static=cross
10591 else
10592   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10593   lt_status=$lt_dlunknown
10594   cat > conftest.$ac_ext <<_LT_EOF
10595 #line 10595 "configure"
10596 #include "confdefs.h"
10597
10598 #if HAVE_DLFCN_H
10599 #include <dlfcn.h>
10600 #endif
10601
10602 #include <stdio.h>
10603
10604 #ifdef RTLD_GLOBAL
10605 #  define LT_DLGLOBAL           RTLD_GLOBAL
10606 #else
10607 #  ifdef DL_GLOBAL
10608 #    define LT_DLGLOBAL         DL_GLOBAL
10609 #  else
10610 #    define LT_DLGLOBAL         0
10611 #  endif
10612 #endif
10613
10614 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10615    find out it does not work in some platform. */
10616 #ifndef LT_DLLAZY_OR_NOW
10617 #  ifdef RTLD_LAZY
10618 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10619 #  else
10620 #    ifdef DL_LAZY
10621 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10622 #    else
10623 #      ifdef RTLD_NOW
10624 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10625 #      else
10626 #        ifdef DL_NOW
10627 #          define LT_DLLAZY_OR_NOW      DL_NOW
10628 #        else
10629 #          define LT_DLLAZY_OR_NOW      0
10630 #        endif
10631 #      endif
10632 #    endif
10633 #  endif
10634 #endif
10635
10636 void fnord() { int i=42;}
10637 int main ()
10638 {
10639   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10640   int status = $lt_dlunknown;
10641
10642   if (self)
10643     {
10644       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10645       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10646       /* dlclose (self); */
10647     }
10648   else
10649     puts (dlerror ());
10650
10651   return status;
10652 }
10653 _LT_EOF
10654   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10655   (eval $ac_link) 2>&5
10656   ac_status=$?
10657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10658   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10659     (./conftest; exit; ) >&5 2>/dev/null
10660     lt_status=$?
10661     case x$lt_status in
10662       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10663       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10664       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10665     esac
10666   else :
10667     # compilation failed
10668     lt_cv_dlopen_self_static=no
10669   fi
10670 fi
10671 rm -fr conftest*
10672
10673
10674 fi
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10676 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10677     fi
10678
10679     CPPFLAGS="$save_CPPFLAGS"
10680     LDFLAGS="$save_LDFLAGS"
10681     LIBS="$save_LIBS"
10682     ;;
10683   esac
10684
10685   case $lt_cv_dlopen_self in
10686   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10687   *) enable_dlopen_self=unknown ;;
10688   esac
10689
10690   case $lt_cv_dlopen_self_static in
10691   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10692   *) enable_dlopen_self_static=unknown ;;
10693   esac
10694 fi
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712 striplib=
10713 old_striplib=
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10715 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10716 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10717   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10718   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10720 $as_echo "yes" >&6; }
10721 else
10722 # FIXME - insert some real tests, host_os isn't really good enough
10723   case $host_os in
10724   darwin*)
10725     if test -n "$STRIP" ; then
10726       striplib="$STRIP -x"
10727       old_striplib="$STRIP -S"
10728       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10729 $as_echo "yes" >&6; }
10730     else
10731       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732 $as_echo "no" >&6; }
10733     fi
10734     ;;
10735   *)
10736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10738     ;;
10739   esac
10740 fi
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753   # Report which library types will actually be built
10754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10755 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10757 $as_echo "$can_build_shared" >&6; }
10758
10759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10760 $as_echo_n "checking whether to build shared libraries... " >&6; }
10761   test "$can_build_shared" = "no" && enable_shared=no
10762
10763   # On AIX, shared libraries and static libraries use the same namespace, and
10764   # are all built from PIC.
10765   case $host_os in
10766   aix3*)
10767     test "$enable_shared" = yes && enable_static=no
10768     if test -n "$RANLIB"; then
10769       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10770       postinstall_cmds='$RANLIB $lib'
10771     fi
10772     ;;
10773
10774   aix[4-9]*)
10775     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10776       test "$enable_shared" = yes && enable_static=no
10777     fi
10778     ;;
10779   esac
10780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10781 $as_echo "$enable_shared" >&6; }
10782
10783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10784 $as_echo_n "checking whether to build static libraries... " >&6; }
10785   # Make sure either enable_shared or enable_static is yes.
10786   test "$enable_shared" = yes || enable_static=yes
10787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10788 $as_echo "$enable_static" >&6; }
10789
10790
10791
10792
10793 fi
10794 ac_ext=c
10795 ac_cpp='$CPP $CPPFLAGS'
10796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10799
10800 CC="$lt_save_CC"
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814         ac_config_commands="$ac_config_commands libtool"
10815
10816
10817
10818
10819 # Only expand once:
10820
10821
10822
10823
10824
10825 # Calculate toolexeclibdir
10826 # Also toolexecdir, though it's only used in toolexeclibdir
10827 case ${version_specific_libs} in
10828   yes)
10829     # Need the gcc compiler version to know where to install libraries
10830     # and header files if --enable-version-specific-runtime-libs option
10831     # is selected.
10832     toolexecdir='$(libdir)/gcc/$(target_alias)'
10833     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
10834     ;;
10835   no)
10836     if test -n "$with_cross_host" &&
10837        test x"$with_cross_host" != x"no"; then
10838       # Install a library built with a cross compiler in tooldir, not libdir.
10839       toolexecdir='$(exec_prefix)/$(target_alias)'
10840       toolexeclibdir='$(toolexecdir)/lib'
10841     else
10842       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
10843       toolexeclibdir='$(libdir)'
10844     fi
10845     multi_os_directory=`$CC -print-multi-os-directory`
10846     case $multi_os_directory in
10847       .) ;; # Avoid trailing /.
10848       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
10849     esac
10850     ;;
10851 esac
10852
10853
10854
10855 if test ${multilib} = yes; then
10856   multilib_arg="--enable-multilib"
10857 else
10858   multilib_arg=
10859 fi
10860
10861 ac_config_files="$ac_config_files Makefile ssp/ssp.h"
10862
10863 cat >confcache <<\_ACEOF
10864 # This file is a shell script that caches the results of configure
10865 # tests run on this system so they can be shared between configure
10866 # scripts and configure runs, see configure's option --config-cache.
10867 # It is not useful on other systems.  If it contains results you don't
10868 # want to keep, you may remove or edit it.
10869 #
10870 # config.status only pays attention to the cache file if you give it
10871 # the --recheck option to rerun configure.
10872 #
10873 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10874 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10875 # following values.
10876
10877 _ACEOF
10878
10879 # The following way of writing the cache mishandles newlines in values,
10880 # but we know of no workaround that is simple, portable, and efficient.
10881 # So, we kill variables containing newlines.
10882 # Ultrix sh set writes to stderr and can't be redirected directly,
10883 # and sets the high bit in the cache file unless we assign to the vars.
10884 (
10885   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10886     eval ac_val=\$$ac_var
10887     case $ac_val in #(
10888     *${as_nl}*)
10889       case $ac_var in #(
10890       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10891 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10892       esac
10893       case $ac_var in #(
10894       _ | IFS | as_nl) ;; #(
10895       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10896       *) { eval $ac_var=; unset $ac_var;} ;;
10897       esac ;;
10898     esac
10899   done
10900
10901   (set) 2>&1 |
10902     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10903     *${as_nl}ac_space=\ *)
10904       # `set' does not quote correctly, so add quotes: double-quote
10905       # substitution turns \\\\ into \\, and sed turns \\ into \.
10906       sed -n \
10907         "s/'/'\\\\''/g;
10908           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10909       ;; #(
10910     *)
10911       # `set' quotes correctly as required by POSIX, so do not add quotes.
10912       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10913       ;;
10914     esac |
10915     sort
10916 ) |
10917   sed '
10918      /^ac_cv_env_/b end
10919      t clear
10920      :clear
10921      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10922      t end
10923      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10924      :end' >>confcache
10925 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10926   if test -w "$cache_file"; then
10927     test "x$cache_file" != "x/dev/null" &&
10928       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10929 $as_echo "$as_me: updating cache $cache_file" >&6;}
10930     cat confcache >$cache_file
10931   else
10932     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10933 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10934   fi
10935 fi
10936 rm -f confcache
10937
10938 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10939 # Let make expand exec_prefix.
10940 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10941
10942 DEFS=-DHAVE_CONFIG_H
10943
10944 ac_libobjs=
10945 ac_ltlibobjs=
10946 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10947   # 1. Remove the extension, and $U if already installed.
10948   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10949   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10950   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10951   #    will be set to the directory where LIBOBJS objects are built.
10952   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10953   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10954 done
10955 LIBOBJS=$ac_libobjs
10956
10957 LTLIBOBJS=$ac_ltlibobjs
10958
10959
10960  if test -n "$EXEEXT"; then
10961   am__EXEEXT_TRUE=
10962   am__EXEEXT_FALSE='#'
10963 else
10964   am__EXEEXT_TRUE='#'
10965   am__EXEEXT_FALSE=
10966 fi
10967
10968 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10969   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
10970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10971 fi
10972 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10973   as_fn_error "conditional \"AMDEP\" was never defined.
10974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10975 fi
10976 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10977   as_fn_error "conditional \"am__fastdepCC\" was never defined.
10978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10979 fi
10980 if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
10981   as_fn_error "conditional \"LIBSSP_USE_SYMVER\" was never defined.
10982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10983 fi
10984
10985 : ${CONFIG_STATUS=./config.status}
10986 ac_write_fail=0
10987 ac_clean_files_save=$ac_clean_files
10988 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10990 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10991 as_write_fail=0
10992 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10993 #! $SHELL
10994 # Generated by $as_me.
10995 # Run this file to recreate the current configuration.
10996 # Compiler output produced by configure, useful for debugging
10997 # configure, is in config.log if it exists.
10998
10999 debug=false
11000 ac_cs_recheck=false
11001 ac_cs_silent=false
11002
11003 SHELL=\${CONFIG_SHELL-$SHELL}
11004 export SHELL
11005 _ASEOF
11006 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11007 ## -------------------- ##
11008 ## M4sh Initialization. ##
11009 ## -------------------- ##
11010
11011 # Be more Bourne compatible
11012 DUALCASE=1; export DUALCASE # for MKS sh
11013 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11014   emulate sh
11015   NULLCMD=:
11016   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11017   # is contrary to our usage.  Disable this feature.
11018   alias -g '${1+"$@"}'='"$@"'
11019   setopt NO_GLOB_SUBST
11020 else
11021   case `(set -o) 2>/dev/null` in #(
11022   *posix*) :
11023     set -o posix ;; #(
11024   *) :
11025      ;;
11026 esac
11027 fi
11028
11029
11030 as_nl='
11031 '
11032 export as_nl
11033 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11034 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11035 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11036 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11037 # Prefer a ksh shell builtin over an external printf program on Solaris,
11038 # but without wasting forks for bash or zsh.
11039 if test -z "$BASH_VERSION$ZSH_VERSION" \
11040     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11041   as_echo='print -r --'
11042   as_echo_n='print -rn --'
11043 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11044   as_echo='printf %s\n'
11045   as_echo_n='printf %s'
11046 else
11047   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11048     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11049     as_echo_n='/usr/ucb/echo -n'
11050   else
11051     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11052     as_echo_n_body='eval
11053       arg=$1;
11054       case $arg in #(
11055       *"$as_nl"*)
11056         expr "X$arg" : "X\\(.*\\)$as_nl";
11057         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11058       esac;
11059       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11060     '
11061     export as_echo_n_body
11062     as_echo_n='sh -c $as_echo_n_body as_echo'
11063   fi
11064   export as_echo_body
11065   as_echo='sh -c $as_echo_body as_echo'
11066 fi
11067
11068 # The user is always right.
11069 if test "${PATH_SEPARATOR+set}" != set; then
11070   PATH_SEPARATOR=:
11071   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11072     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11073       PATH_SEPARATOR=';'
11074   }
11075 fi
11076
11077
11078 # IFS
11079 # We need space, tab and new line, in precisely that order.  Quoting is
11080 # there to prevent editors from complaining about space-tab.
11081 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11082 # splitting by setting IFS to empty value.)
11083 IFS=" ""        $as_nl"
11084
11085 # Find who we are.  Look in the path if we contain no directory separator.
11086 case $0 in #((
11087   *[\\/]* ) as_myself=$0 ;;
11088   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089 for as_dir in $PATH
11090 do
11091   IFS=$as_save_IFS
11092   test -z "$as_dir" && as_dir=.
11093     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11094   done
11095 IFS=$as_save_IFS
11096
11097      ;;
11098 esac
11099 # We did not find ourselves, most probably we were run as `sh COMMAND'
11100 # in which case we are not to be found in the path.
11101 if test "x$as_myself" = x; then
11102   as_myself=$0
11103 fi
11104 if test ! -f "$as_myself"; then
11105   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11106   exit 1
11107 fi
11108
11109 # Unset variables that we do not need and which cause bugs (e.g. in
11110 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11111 # suppresses any "Segmentation fault" message there.  '((' could
11112 # trigger a bug in pdksh 5.2.14.
11113 for as_var in BASH_ENV ENV MAIL MAILPATH
11114 do eval test x\${$as_var+set} = xset \
11115   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11116 done
11117 PS1='$ '
11118 PS2='> '
11119 PS4='+ '
11120
11121 # NLS nuisances.
11122 LC_ALL=C
11123 export LC_ALL
11124 LANGUAGE=C
11125 export LANGUAGE
11126
11127 # CDPATH.
11128 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11129
11130
11131 # as_fn_error ERROR [LINENO LOG_FD]
11132 # ---------------------------------
11133 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11134 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11135 # script with status $?, using 1 if that was 0.
11136 as_fn_error ()
11137 {
11138   as_status=$?; test $as_status -eq 0 && as_status=1
11139   if test "$3"; then
11140     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11141     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11142   fi
11143   $as_echo "$as_me: error: $1" >&2
11144   as_fn_exit $as_status
11145 } # as_fn_error
11146
11147
11148 # as_fn_set_status STATUS
11149 # -----------------------
11150 # Set $? to STATUS, without forking.
11151 as_fn_set_status ()
11152 {
11153   return $1
11154 } # as_fn_set_status
11155
11156 # as_fn_exit STATUS
11157 # -----------------
11158 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11159 as_fn_exit ()
11160 {
11161   set +e
11162   as_fn_set_status $1
11163   exit $1
11164 } # as_fn_exit
11165
11166 # as_fn_unset VAR
11167 # ---------------
11168 # Portably unset VAR.
11169 as_fn_unset ()
11170 {
11171   { eval $1=; unset $1;}
11172 }
11173 as_unset=as_fn_unset
11174 # as_fn_append VAR VALUE
11175 # ----------------------
11176 # Append the text in VALUE to the end of the definition contained in VAR. Take
11177 # advantage of any shell optimizations that allow amortized linear growth over
11178 # repeated appends, instead of the typical quadratic growth present in naive
11179 # implementations.
11180 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11181   eval 'as_fn_append ()
11182   {
11183     eval $1+=\$2
11184   }'
11185 else
11186   as_fn_append ()
11187   {
11188     eval $1=\$$1\$2
11189   }
11190 fi # as_fn_append
11191
11192 # as_fn_arith ARG...
11193 # ------------------
11194 # Perform arithmetic evaluation on the ARGs, and store the result in the
11195 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11196 # must be portable across $(()) and expr.
11197 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11198   eval 'as_fn_arith ()
11199   {
11200     as_val=$(( $* ))
11201   }'
11202 else
11203   as_fn_arith ()
11204   {
11205     as_val=`expr "$@" || test $? -eq 1`
11206   }
11207 fi # as_fn_arith
11208
11209
11210 if expr a : '\(a\)' >/dev/null 2>&1 &&
11211    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11212   as_expr=expr
11213 else
11214   as_expr=false
11215 fi
11216
11217 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11218   as_basename=basename
11219 else
11220   as_basename=false
11221 fi
11222
11223 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11224   as_dirname=dirname
11225 else
11226   as_dirname=false
11227 fi
11228
11229 as_me=`$as_basename -- "$0" ||
11230 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11231          X"$0" : 'X\(//\)$' \| \
11232          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11233 $as_echo X/"$0" |
11234     sed '/^.*\/\([^/][^/]*\)\/*$/{
11235             s//\1/
11236             q
11237           }
11238           /^X\/\(\/\/\)$/{
11239             s//\1/
11240             q
11241           }
11242           /^X\/\(\/\).*/{
11243             s//\1/
11244             q
11245           }
11246           s/.*/./; q'`
11247
11248 # Avoid depending upon Character Ranges.
11249 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11250 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11251 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11252 as_cr_digits='0123456789'
11253 as_cr_alnum=$as_cr_Letters$as_cr_digits
11254
11255 ECHO_C= ECHO_N= ECHO_T=
11256 case `echo -n x` in #(((((
11257 -n*)
11258   case `echo 'xy\c'` in
11259   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11260   xy)  ECHO_C='\c';;
11261   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11262        ECHO_T=' ';;
11263   esac;;
11264 *)
11265   ECHO_N='-n';;
11266 esac
11267
11268 rm -f conf$$ conf$$.exe conf$$.file
11269 if test -d conf$$.dir; then
11270   rm -f conf$$.dir/conf$$.file
11271 else
11272   rm -f conf$$.dir
11273   mkdir conf$$.dir 2>/dev/null
11274 fi
11275 if (echo >conf$$.file) 2>/dev/null; then
11276   if ln -s conf$$.file conf$$ 2>/dev/null; then
11277     as_ln_s='ln -s'
11278     # ... but there are two gotchas:
11279     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11280     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11281     # In both cases, we have to default to `cp -p'.
11282     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11283       as_ln_s='cp -p'
11284   elif ln conf$$.file conf$$ 2>/dev/null; then
11285     as_ln_s=ln
11286   else
11287     as_ln_s='cp -p'
11288   fi
11289 else
11290   as_ln_s='cp -p'
11291 fi
11292 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11293 rmdir conf$$.dir 2>/dev/null
11294
11295
11296 # as_fn_mkdir_p
11297 # -------------
11298 # Create "$as_dir" as a directory, including parents if necessary.
11299 as_fn_mkdir_p ()
11300 {
11301
11302   case $as_dir in #(
11303   -*) as_dir=./$as_dir;;
11304   esac
11305   test -d "$as_dir" || eval $as_mkdir_p || {
11306     as_dirs=
11307     while :; do
11308       case $as_dir in #(
11309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11310       *) as_qdir=$as_dir;;
11311       esac
11312       as_dirs="'$as_qdir' $as_dirs"
11313       as_dir=`$as_dirname -- "$as_dir" ||
11314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11315          X"$as_dir" : 'X\(//\)[^/]' \| \
11316          X"$as_dir" : 'X\(//\)$' \| \
11317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11318 $as_echo X"$as_dir" |
11319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11320             s//\1/
11321             q
11322           }
11323           /^X\(\/\/\)[^/].*/{
11324             s//\1/
11325             q
11326           }
11327           /^X\(\/\/\)$/{
11328             s//\1/
11329             q
11330           }
11331           /^X\(\/\).*/{
11332             s//\1/
11333             q
11334           }
11335           s/.*/./; q'`
11336       test -d "$as_dir" && break
11337     done
11338     test -z "$as_dirs" || eval "mkdir $as_dirs"
11339   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11340
11341
11342 } # as_fn_mkdir_p
11343 if mkdir -p . 2>/dev/null; then
11344   as_mkdir_p='mkdir -p "$as_dir"'
11345 else
11346   test -d ./-p && rmdir ./-p
11347   as_mkdir_p=false
11348 fi
11349
11350 if test -x / >/dev/null 2>&1; then
11351   as_test_x='test -x'
11352 else
11353   if ls -dL / >/dev/null 2>&1; then
11354     as_ls_L_option=L
11355   else
11356     as_ls_L_option=
11357   fi
11358   as_test_x='
11359     eval sh -c '\''
11360       if test -d "$1"; then
11361         test -d "$1/.";
11362       else
11363         case $1 in #(
11364         -*)set "./$1";;
11365         esac;
11366         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11367         ???[sx]*):;;*)false;;esac;fi
11368     '\'' sh
11369   '
11370 fi
11371 as_executable_p=$as_test_x
11372
11373 # Sed expression to map a string onto a valid CPP name.
11374 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11375
11376 # Sed expression to map a string onto a valid variable name.
11377 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11378
11379
11380 exec 6>&1
11381 ## ----------------------------------- ##
11382 ## Main body of $CONFIG_STATUS script. ##
11383 ## ----------------------------------- ##
11384 _ASEOF
11385 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11386
11387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11388 # Save the log message, to keep $0 and so on meaningful, and to
11389 # report actual input values of CONFIG_FILES etc. instead of their
11390 # values after options handling.
11391 ac_log="
11392 This file was extended by libssp $as_me 1.0, which was
11393 generated by GNU Autoconf 2.64.  Invocation command line was
11394
11395   CONFIG_FILES    = $CONFIG_FILES
11396   CONFIG_HEADERS  = $CONFIG_HEADERS
11397   CONFIG_LINKS    = $CONFIG_LINKS
11398   CONFIG_COMMANDS = $CONFIG_COMMANDS
11399   $ $0 $@
11400
11401 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11402 "
11403
11404 _ACEOF
11405
11406 case $ac_config_files in *"
11407 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11408 esac
11409
11410 case $ac_config_headers in *"
11411 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11412 esac
11413
11414
11415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11416 # Files that config.status was made for.
11417 config_files="$ac_config_files"
11418 config_headers="$ac_config_headers"
11419 config_commands="$ac_config_commands"
11420
11421 _ACEOF
11422
11423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11424 ac_cs_usage="\
11425 \`$as_me' instantiates files and other configuration actions
11426 from templates according to the current configuration.  Unless the files
11427 and actions are specified as TAGs, all are instantiated by default.
11428
11429 Usage: $0 [OPTION]... [TAG]...
11430
11431   -h, --help       print this help, then exit
11432   -V, --version    print version number and configuration settings, then exit
11433   -q, --quiet, --silent
11434                    do not print progress messages
11435   -d, --debug      don't remove temporary files
11436       --recheck    update $as_me by reconfiguring in the same conditions
11437       --file=FILE[:TEMPLATE]
11438                    instantiate the configuration file FILE
11439       --header=FILE[:TEMPLATE]
11440                    instantiate the configuration header FILE
11441
11442 Configuration files:
11443 $config_files
11444
11445 Configuration headers:
11446 $config_headers
11447
11448 Configuration commands:
11449 $config_commands
11450
11451 Report bugs to the package provider."
11452
11453 _ACEOF
11454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11455 ac_cs_version="\\
11456 libssp config.status 1.0
11457 configured by $0, generated by GNU Autoconf 2.64,
11458   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11459
11460 Copyright (C) 2009 Free Software Foundation, Inc.
11461 This config.status script is free software; the Free Software Foundation
11462 gives unlimited permission to copy, distribute and modify it."
11463
11464 ac_pwd='$ac_pwd'
11465 srcdir='$srcdir'
11466 INSTALL='$INSTALL'
11467 MKDIR_P='$MKDIR_P'
11468 AWK='$AWK'
11469 test -n "\$AWK" || AWK=awk
11470 _ACEOF
11471
11472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11473 # The default lists apply if the user does not specify any file.
11474 ac_need_defaults=:
11475 while test $# != 0
11476 do
11477   case $1 in
11478   --*=*)
11479     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11480     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11481     ac_shift=:
11482     ;;
11483   *)
11484     ac_option=$1
11485     ac_optarg=$2
11486     ac_shift=shift
11487     ;;
11488   esac
11489
11490   case $ac_option in
11491   # Handling of the options.
11492   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11493     ac_cs_recheck=: ;;
11494   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11495     $as_echo "$ac_cs_version"; exit ;;
11496   --debug | --debu | --deb | --de | --d | -d )
11497     debug=: ;;
11498   --file | --fil | --fi | --f )
11499     $ac_shift
11500     case $ac_optarg in
11501     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11502     esac
11503     as_fn_append CONFIG_FILES " '$ac_optarg'"
11504     ac_need_defaults=false;;
11505   --header | --heade | --head | --hea )
11506     $ac_shift
11507     case $ac_optarg in
11508     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11509     esac
11510     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11511     ac_need_defaults=false;;
11512   --he | --h)
11513     # Conflict between --help and --header
11514     as_fn_error "ambiguous option: \`$1'
11515 Try \`$0 --help' for more information.";;
11516   --help | --hel | -h )
11517     $as_echo "$ac_cs_usage"; exit ;;
11518   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11519   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11520     ac_cs_silent=: ;;
11521
11522   # This is an error.
11523   -*) as_fn_error "unrecognized option: \`$1'
11524 Try \`$0 --help' for more information." ;;
11525
11526   *) as_fn_append ac_config_targets " $1"
11527      ac_need_defaults=false ;;
11528
11529   esac
11530   shift
11531 done
11532
11533 ac_configure_extra_args=
11534
11535 if $ac_cs_silent; then
11536   exec 6>/dev/null
11537   ac_configure_extra_args="$ac_configure_extra_args --silent"
11538 fi
11539
11540 _ACEOF
11541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11542 if \$ac_cs_recheck; then
11543   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11544   shift
11545   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11546   CONFIG_SHELL='$SHELL'
11547   export CONFIG_SHELL
11548   exec "\$@"
11549 fi
11550
11551 _ACEOF
11552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11553 exec 5>>config.log
11554 {
11555   echo
11556   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11557 ## Running $as_me. ##
11558 _ASBOX
11559   $as_echo "$ac_log"
11560 } >&5
11561
11562 _ACEOF
11563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11564 #
11565 # INIT-COMMANDS
11566 #
11567
11568 srcdir="$srcdir"
11569 host="$host"
11570 target="$target"
11571 with_multisubdir="$with_multisubdir"
11572 with_multisrctop="$with_multisrctop"
11573 with_target_subdir="$with_target_subdir"
11574 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11575 multi_basedir="$multi_basedir"
11576 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11577 CC="$CC"
11578 CXX="$CXX"
11579 GFORTRAN="$GFORTRAN"
11580 GCJ="$GCJ"
11581 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11582
11583
11584 # The HP-UX ksh and POSIX shell print the target directory to stdout
11585 # if CDPATH is set.
11586 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11587
11588 sed_quote_subst='$sed_quote_subst'
11589 double_quote_subst='$double_quote_subst'
11590 delay_variable_subst='$delay_variable_subst'
11591 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11592 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11593 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11594 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11595 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11596 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11597 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11598 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11599 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11600 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11601 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11602 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11603 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11604 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11605 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11606 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11607 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11608 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11609 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11610 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11611 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11612 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11613 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11614 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11615 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11616 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11617 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11618 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11619 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11620 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11621 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11622 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11623 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11624 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11625 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11626 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11627 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11628 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11629 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11630 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11631 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11632 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11633 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11634 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11635 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11636 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11637 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11638 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11639 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11640 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11641 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11642 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11643 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11644 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11645 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11646 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11647 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11648 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11649 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11650 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11651 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11652 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11653 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11654 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11655 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11656 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11657 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11658 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11659 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11660 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11661 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11662 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11663 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11664 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11665 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11666 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11667 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11668 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11669 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11670 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11671 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11672 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11673 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11674 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11675 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11676 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11677 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11678 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11679 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11680 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11681 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11682 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11683 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11684 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11685 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11686 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11687 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11688 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11689 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11690 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11691 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11692 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11693 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11694 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11695 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11696 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11697 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11698 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11699 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11700 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11701 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11702 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11703 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11704 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11705 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11706 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11707 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11708 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11709
11710 LTCC='$LTCC'
11711 LTCFLAGS='$LTCFLAGS'
11712 compiler='$compiler_DEFAULT'
11713
11714 # Quote evaled strings.
11715 for var in SED \
11716 GREP \
11717 EGREP \
11718 FGREP \
11719 LD \
11720 NM \
11721 LN_S \
11722 lt_SP2NL \
11723 lt_NL2SP \
11724 reload_flag \
11725 OBJDUMP \
11726 deplibs_check_method \
11727 file_magic_cmd \
11728 AR \
11729 AR_FLAGS \
11730 STRIP \
11731 RANLIB \
11732 CC \
11733 CFLAGS \
11734 compiler \
11735 lt_cv_sys_global_symbol_pipe \
11736 lt_cv_sys_global_symbol_to_cdecl \
11737 lt_cv_sys_global_symbol_to_c_name_address \
11738 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11739 SHELL \
11740 ECHO \
11741 lt_prog_compiler_no_builtin_flag \
11742 lt_prog_compiler_wl \
11743 lt_prog_compiler_pic \
11744 lt_prog_compiler_static \
11745 lt_cv_prog_compiler_c_o \
11746 need_locks \
11747 DSYMUTIL \
11748 NMEDIT \
11749 LIPO \
11750 OTOOL \
11751 OTOOL64 \
11752 shrext_cmds \
11753 export_dynamic_flag_spec \
11754 whole_archive_flag_spec \
11755 compiler_needs_object \
11756 with_gnu_ld \
11757 allow_undefined_flag \
11758 no_undefined_flag \
11759 hardcode_libdir_flag_spec \
11760 hardcode_libdir_flag_spec_ld \
11761 hardcode_libdir_separator \
11762 fix_srcfile_path \
11763 exclude_expsyms \
11764 include_expsyms \
11765 file_list_spec \
11766 variables_saved_for_relink \
11767 libname_spec \
11768 library_names_spec \
11769 soname_spec \
11770 finish_eval \
11771 old_striplib \
11772 striplib; do
11773     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11774     *[\\\\\\\`\\"\\\$]*)
11775       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11776       ;;
11777     *)
11778       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11779       ;;
11780     esac
11781 done
11782
11783 # Double-quote double-evaled strings.
11784 for var in reload_cmds \
11785 old_postinstall_cmds \
11786 old_postuninstall_cmds \
11787 old_archive_cmds \
11788 extract_expsyms_cmds \
11789 old_archive_from_new_cmds \
11790 old_archive_from_expsyms_cmds \
11791 archive_cmds \
11792 archive_expsym_cmds \
11793 module_cmds \
11794 module_expsym_cmds \
11795 export_symbols_cmds \
11796 prelink_cmds \
11797 postinstall_cmds \
11798 postuninstall_cmds \
11799 finish_cmds \
11800 sys_lib_search_path_spec \
11801 sys_lib_dlsearch_path_spec; do
11802     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11803     *[\\\\\\\`\\"\\\$]*)
11804       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11805       ;;
11806     *)
11807       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11808       ;;
11809     esac
11810 done
11811
11812 # Fix-up fallback echo if it was mangled by the above quoting rules.
11813 case \$lt_ECHO in
11814 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11815   ;;
11816 esac
11817
11818 ac_aux_dir='$ac_aux_dir'
11819 xsi_shell='$xsi_shell'
11820 lt_shell_append='$lt_shell_append'
11821
11822 # See if we are running on zsh, and set the options which allow our
11823 # commands through without removal of \ escapes INIT.
11824 if test -n "\${ZSH_VERSION+set}" ; then
11825    setopt NO_GLOB_SUBST
11826 fi
11827
11828
11829     PACKAGE='$PACKAGE'
11830     VERSION='$VERSION'
11831     TIMESTAMP='$TIMESTAMP'
11832     RM='$RM'
11833     ofile='$ofile'
11834
11835
11836
11837
11838 _ACEOF
11839
11840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11841
11842 # Handling of arguments.
11843 for ac_config_target in $ac_config_targets
11844 do
11845   case $ac_config_target in
11846     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11847     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11848     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11849     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11850     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11851     "ssp/ssp.h") CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
11852
11853   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11854   esac
11855 done
11856
11857
11858 # If the user did not use the arguments to specify the items to instantiate,
11859 # then the envvar interface is used.  Set only those that are not.
11860 # We use the long form for the default assignment because of an extremely
11861 # bizarre bug on SunOS 4.1.3.
11862 if $ac_need_defaults; then
11863   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11864   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11865   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11866 fi
11867
11868 # Have a temporary directory for convenience.  Make it in the build tree
11869 # simply because there is no reason against having it here, and in addition,
11870 # creating and moving files from /tmp can sometimes cause problems.
11871 # Hook for its removal unless debugging.
11872 # Note that there is a small window in which the directory will not be cleaned:
11873 # after its creation but before its name has been assigned to `$tmp'.
11874 $debug ||
11875 {
11876   tmp=
11877   trap 'exit_status=$?
11878   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11879 ' 0
11880   trap 'as_fn_exit 1' 1 2 13 15
11881 }
11882 # Create a (secure) tmp directory for tmp files.
11883
11884 {
11885   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11886   test -n "$tmp" && test -d "$tmp"
11887 }  ||
11888 {
11889   tmp=./conf$$-$RANDOM
11890   (umask 077 && mkdir "$tmp")
11891 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11892
11893 # Set up the scripts for CONFIG_FILES section.
11894 # No need to generate them if there are no CONFIG_FILES.
11895 # This happens for instance with `./config.status config.h'.
11896 if test -n "$CONFIG_FILES"; then
11897
11898
11899 ac_cr=`echo X | tr X '\015'`
11900 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11901 # But we know of no other shell where ac_cr would be empty at this
11902 # point, so we can use a bashism as a fallback.
11903 if test "x$ac_cr" = x; then
11904   eval ac_cr=\$\'\\r\'
11905 fi
11906 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11907 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11908   ac_cs_awk_cr='\r'
11909 else
11910   ac_cs_awk_cr=$ac_cr
11911 fi
11912
11913 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11914 _ACEOF
11915
11916
11917 {
11918   echo "cat >conf$$subs.awk <<_ACEOF" &&
11919   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11920   echo "_ACEOF"
11921 } >conf$$subs.sh ||
11922   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11923 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11924 ac_delim='%!_!# '
11925 for ac_last_try in false false false false false :; do
11926   . ./conf$$subs.sh ||
11927     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11928
11929   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11930   if test $ac_delim_n = $ac_delim_num; then
11931     break
11932   elif $ac_last_try; then
11933     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11934   else
11935     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11936   fi
11937 done
11938 rm -f conf$$subs.sh
11939
11940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11941 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11942 _ACEOF
11943 sed -n '
11944 h
11945 s/^/S["/; s/!.*/"]=/
11946 p
11947 g
11948 s/^[^!]*!//
11949 :repl
11950 t repl
11951 s/'"$ac_delim"'$//
11952 t delim
11953 :nl
11954 h
11955 s/\(.\{148\}\).*/\1/
11956 t more1
11957 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11958 p
11959 n
11960 b repl
11961 :more1
11962 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11963 p
11964 g
11965 s/.\{148\}//
11966 t nl
11967 :delim
11968 h
11969 s/\(.\{148\}\).*/\1/
11970 t more2
11971 s/["\\]/\\&/g; s/^/"/; s/$/"/
11972 p
11973 b
11974 :more2
11975 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11976 p
11977 g
11978 s/.\{148\}//
11979 t delim
11980 ' <conf$$subs.awk | sed '
11981 /^[^""]/{
11982   N
11983   s/\n//
11984 }
11985 ' >>$CONFIG_STATUS || ac_write_fail=1
11986 rm -f conf$$subs.awk
11987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11988 _ACAWK
11989 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11990   for (key in S) S_is_set[key] = 1
11991   FS = "\a"
11992
11993 }
11994 {
11995   line = $ 0
11996   nfields = split(line, field, "@")
11997   substed = 0
11998   len = length(field[1])
11999   for (i = 2; i < nfields; i++) {
12000     key = field[i]
12001     keylen = length(key)
12002     if (S_is_set[key]) {
12003       value = S[key]
12004       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12005       len += length(value) + length(field[++i])
12006       substed = 1
12007     } else
12008       len += 1 + keylen
12009   }
12010
12011   print line
12012 }
12013
12014 _ACAWK
12015 _ACEOF
12016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12017 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12018   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12019 else
12020   cat
12021 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12022   || as_fn_error "could not setup config files machinery" "$LINENO" 5
12023 _ACEOF
12024
12025 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12026 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12027 # trailing colons and then remove the whole line if VPATH becomes empty
12028 # (actually we leave an empty line to preserve line numbers).
12029 if test "x$srcdir" = x.; then
12030   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12031 s/:*\$(srcdir):*/:/
12032 s/:*\${srcdir}:*/:/
12033 s/:*@srcdir@:*/:/
12034 s/^\([^=]*=[     ]*\):*/\1/
12035 s/:*$//
12036 s/^[^=]*=[       ]*$//
12037 }'
12038 fi
12039
12040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12041 fi # test -n "$CONFIG_FILES"
12042
12043 # Set up the scripts for CONFIG_HEADERS section.
12044 # No need to generate them if there are no CONFIG_HEADERS.
12045 # This happens for instance with `./config.status Makefile'.
12046 if test -n "$CONFIG_HEADERS"; then
12047 cat >"$tmp/defines.awk" <<\_ACAWK ||
12048 BEGIN {
12049 _ACEOF
12050
12051 # Transform confdefs.h into an awk script `defines.awk', embedded as
12052 # here-document in config.status, that substitutes the proper values into
12053 # config.h.in to produce config.h.
12054
12055 # Create a delimiter string that does not exist in confdefs.h, to ease
12056 # handling of long lines.
12057 ac_delim='%!_!# '
12058 for ac_last_try in false false :; do
12059   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12060   if test -z "$ac_t"; then
12061     break
12062   elif $ac_last_try; then
12063     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12064   else
12065     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12066   fi
12067 done
12068
12069 # For the awk script, D is an array of macro values keyed by name,
12070 # likewise P contains macro parameters if any.  Preserve backslash
12071 # newline sequences.
12072
12073 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12074 sed -n '
12075 s/.\{148\}/&'"$ac_delim"'/g
12076 t rset
12077 :rset
12078 s/^[     ]*#[    ]*define[       ][      ]*/ /
12079 t def
12080 d
12081 :def
12082 s/\\$//
12083 t bsnl
12084 s/["\\]/\\&/g
12085 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12086 D["\1"]=" \3"/p
12087 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12088 d
12089 :bsnl
12090 s/["\\]/\\&/g
12091 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12092 D["\1"]=" \3\\\\\\n"\\/p
12093 t cont
12094 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12095 t cont
12096 d
12097 :cont
12098 n
12099 s/.\{148\}/&'"$ac_delim"'/g
12100 t clear
12101 :clear
12102 s/\\$//
12103 t bsnlc
12104 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12105 d
12106 :bsnlc
12107 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12108 b cont
12109 ' <confdefs.h | sed '
12110 s/'"$ac_delim"'/"\\\
12111 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12112
12113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12114   for (key in D) D_is_set[key] = 1
12115   FS = "\a"
12116 }
12117 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12118   line = \$ 0
12119   split(line, arg, " ")
12120   if (arg[1] == "#") {
12121     defundef = arg[2]
12122     mac1 = arg[3]
12123   } else {
12124     defundef = substr(arg[1], 2)
12125     mac1 = arg[2]
12126   }
12127   split(mac1, mac2, "(") #)
12128   macro = mac2[1]
12129   prefix = substr(line, 1, index(line, defundef) - 1)
12130   if (D_is_set[macro]) {
12131     # Preserve the white space surrounding the "#".
12132     print prefix "define", macro P[macro] D[macro]
12133     next
12134   } else {
12135     # Replace #undef with comments.  This is necessary, for example,
12136     # in the case of _POSIX_SOURCE, which is predefined and required
12137     # on some systems where configure will not decide to define it.
12138     if (defundef == "undef") {
12139       print "/*", prefix defundef, macro, "*/"
12140       next
12141     }
12142   }
12143 }
12144 { print }
12145 _ACAWK
12146 _ACEOF
12147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12148   as_fn_error "could not setup config headers machinery" "$LINENO" 5
12149 fi # test -n "$CONFIG_HEADERS"
12150
12151
12152 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12153 shift
12154 for ac_tag
12155 do
12156   case $ac_tag in
12157   :[FHLC]) ac_mode=$ac_tag; continue;;
12158   esac
12159   case $ac_mode$ac_tag in
12160   :[FHL]*:*);;
12161   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12162   :[FH]-) ac_tag=-:-;;
12163   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12164   esac
12165   ac_save_IFS=$IFS
12166   IFS=:
12167   set x $ac_tag
12168   IFS=$ac_save_IFS
12169   shift
12170   ac_file=$1
12171   shift
12172
12173   case $ac_mode in
12174   :L) ac_source=$1;;
12175   :[FH])
12176     ac_file_inputs=
12177     for ac_f
12178     do
12179       case $ac_f in
12180       -) ac_f="$tmp/stdin";;
12181       *) # Look for the file first in the build tree, then in the source tree
12182          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12183          # because $ac_f cannot contain `:'.
12184          test -f "$ac_f" ||
12185            case $ac_f in
12186            [\\/$]*) false;;
12187            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12188            esac ||
12189            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12190       esac
12191       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12192       as_fn_append ac_file_inputs " '$ac_f'"
12193     done
12194
12195     # Let's still pretend it is `configure' which instantiates (i.e., don't
12196     # use $as_me), people would be surprised to read:
12197     #    /* config.h.  Generated by config.status.  */
12198     configure_input='Generated from '`
12199           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12200         `' by configure.'
12201     if test x"$ac_file" != x-; then
12202       configure_input="$ac_file.  $configure_input"
12203       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12204 $as_echo "$as_me: creating $ac_file" >&6;}
12205     fi
12206     # Neutralize special characters interpreted by sed in replacement strings.
12207     case $configure_input in #(
12208     *\&* | *\|* | *\\* )
12209        ac_sed_conf_input=`$as_echo "$configure_input" |
12210        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12211     *) ac_sed_conf_input=$configure_input;;
12212     esac
12213
12214     case $ac_tag in
12215     *:-:* | *:-) cat >"$tmp/stdin" \
12216       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12217     esac
12218     ;;
12219   esac
12220
12221   ac_dir=`$as_dirname -- "$ac_file" ||
12222 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12223          X"$ac_file" : 'X\(//\)[^/]' \| \
12224          X"$ac_file" : 'X\(//\)$' \| \
12225          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12226 $as_echo X"$ac_file" |
12227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12228             s//\1/
12229             q
12230           }
12231           /^X\(\/\/\)[^/].*/{
12232             s//\1/
12233             q
12234           }
12235           /^X\(\/\/\)$/{
12236             s//\1/
12237             q
12238           }
12239           /^X\(\/\).*/{
12240             s//\1/
12241             q
12242           }
12243           s/.*/./; q'`
12244   as_dir="$ac_dir"; as_fn_mkdir_p
12245   ac_builddir=.
12246
12247 case "$ac_dir" in
12248 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12249 *)
12250   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12251   # A ".." for each directory in $ac_dir_suffix.
12252   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12253   case $ac_top_builddir_sub in
12254   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12255   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12256   esac ;;
12257 esac
12258 ac_abs_top_builddir=$ac_pwd
12259 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12260 # for backward compatibility:
12261 ac_top_builddir=$ac_top_build_prefix
12262
12263 case $srcdir in
12264   .)  # We are building in place.
12265     ac_srcdir=.
12266     ac_top_srcdir=$ac_top_builddir_sub
12267     ac_abs_top_srcdir=$ac_pwd ;;
12268   [\\/]* | ?:[\\/]* )  # Absolute name.
12269     ac_srcdir=$srcdir$ac_dir_suffix;
12270     ac_top_srcdir=$srcdir
12271     ac_abs_top_srcdir=$srcdir ;;
12272   *) # Relative name.
12273     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12274     ac_top_srcdir=$ac_top_build_prefix$srcdir
12275     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12276 esac
12277 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12278
12279
12280   case $ac_mode in
12281   :F)
12282   #
12283   # CONFIG_FILE
12284   #
12285
12286   case $INSTALL in
12287   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12288   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12289   esac
12290   ac_MKDIR_P=$MKDIR_P
12291   case $MKDIR_P in
12292   [\\/$]* | ?:[\\/]* ) ;;
12293   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12294   esac
12295 _ACEOF
12296
12297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12298 # If the template does not know about datarootdir, expand it.
12299 # FIXME: This hack should be removed a few years after 2.60.
12300 ac_datarootdir_hack=; ac_datarootdir_seen=
12301 ac_sed_dataroot='
12302 /datarootdir/ {
12303   p
12304   q
12305 }
12306 /@datadir@/p
12307 /@docdir@/p
12308 /@infodir@/p
12309 /@localedir@/p
12310 /@mandir@/p'
12311 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12312 *datarootdir*) ac_datarootdir_seen=yes;;
12313 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12314   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12315 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12316 _ACEOF
12317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12318   ac_datarootdir_hack='
12319   s&@datadir@&$datadir&g
12320   s&@docdir@&$docdir&g
12321   s&@infodir@&$infodir&g
12322   s&@localedir@&$localedir&g
12323   s&@mandir@&$mandir&g
12324   s&\\\${datarootdir}&$datarootdir&g' ;;
12325 esac
12326 _ACEOF
12327
12328 # Neutralize VPATH when `$srcdir' = `.'.
12329 # Shell code in configure.ac might set extrasub.
12330 # FIXME: do we really want to maintain this feature?
12331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12332 ac_sed_extra="$ac_vpsub
12333 $extrasub
12334 _ACEOF
12335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12336 :t
12337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12338 s|@configure_input@|$ac_sed_conf_input|;t t
12339 s&@top_builddir@&$ac_top_builddir_sub&;t t
12340 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12341 s&@srcdir@&$ac_srcdir&;t t
12342 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12343 s&@top_srcdir@&$ac_top_srcdir&;t t
12344 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12345 s&@builddir@&$ac_builddir&;t t
12346 s&@abs_builddir@&$ac_abs_builddir&;t t
12347 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12348 s&@INSTALL@&$ac_INSTALL&;t t
12349 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12350 $ac_datarootdir_hack
12351 "
12352 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12353   || as_fn_error "could not create $ac_file" "$LINENO" 5
12354
12355 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12356   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12357   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12358   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12359 which seems to be undefined.  Please make sure it is defined." >&5
12360 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12361 which seems to be undefined.  Please make sure it is defined." >&2;}
12362
12363   rm -f "$tmp/stdin"
12364   case $ac_file in
12365   -) cat "$tmp/out" && rm -f "$tmp/out";;
12366   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12367   esac \
12368   || as_fn_error "could not create $ac_file" "$LINENO" 5
12369  ;;
12370   :H)
12371   #
12372   # CONFIG_HEADER
12373   #
12374   if test x"$ac_file" != x-; then
12375     {
12376       $as_echo "/* $configure_input  */" \
12377       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12378     } >"$tmp/config.h" \
12379       || as_fn_error "could not create $ac_file" "$LINENO" 5
12380     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12381       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12382 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12383     else
12384       rm -f "$ac_file"
12385       mv "$tmp/config.h" "$ac_file" \
12386         || as_fn_error "could not create $ac_file" "$LINENO" 5
12387     fi
12388   else
12389     $as_echo "/* $configure_input  */" \
12390       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12391       || as_fn_error "could not create -" "$LINENO" 5
12392   fi
12393 # Compute "$ac_file"'s index in $config_headers.
12394 _am_arg="$ac_file"
12395 _am_stamp_count=1
12396 for _am_header in $config_headers :; do
12397   case $_am_header in
12398     $_am_arg | $_am_arg:* )
12399       break ;;
12400     * )
12401       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12402   esac
12403 done
12404 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12405 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12406          X"$_am_arg" : 'X\(//\)[^/]' \| \
12407          X"$_am_arg" : 'X\(//\)$' \| \
12408          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12409 $as_echo X"$_am_arg" |
12410     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12411             s//\1/
12412             q
12413           }
12414           /^X\(\/\/\)[^/].*/{
12415             s//\1/
12416             q
12417           }
12418           /^X\(\/\/\)$/{
12419             s//\1/
12420             q
12421           }
12422           /^X\(\/\).*/{
12423             s//\1/
12424             q
12425           }
12426           s/.*/./; q'`/stamp-h$_am_stamp_count
12427  ;;
12428
12429   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12430 $as_echo "$as_me: executing $ac_file commands" >&6;}
12431  ;;
12432   esac
12433
12434
12435   case $ac_file$ac_mode in
12436     "default-1":C)
12437 # Only add multilib support code if we just rebuilt the top-level
12438 # Makefile.
12439 case " $CONFIG_FILES " in
12440  *" Makefile "*)
12441    ac_file=Makefile . ${multi_basedir}/config-ml.in
12442    ;;
12443 esac ;;
12444     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12445   # Autoconf 2.62 quotes --file arguments for eval, but not when files
12446   # are listed without --file.  Let's play safe and only enable the eval
12447   # if we detect the quoting.
12448   case $CONFIG_FILES in
12449   *\'*) eval set x "$CONFIG_FILES" ;;
12450   *)   set x $CONFIG_FILES ;;
12451   esac
12452   shift
12453   for mf
12454   do
12455     # Strip MF so we end up with the name of the file.
12456     mf=`echo "$mf" | sed -e 's/:.*$//'`
12457     # Check whether this is an Automake generated Makefile or not.
12458     # We used to match only the files named `Makefile.in', but
12459     # some people rename them; so instead we look at the file content.
12460     # Grep'ing the first line is not enough: some people post-process
12461     # each Makefile.in and add a new line on top of each file to say so.
12462     # Grep'ing the whole file is not good either: AIX grep has a line
12463     # limit of 2048, but all sed's we know have understand at least 4000.
12464     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12465       dirpart=`$as_dirname -- "$mf" ||
12466 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12467          X"$mf" : 'X\(//\)[^/]' \| \
12468          X"$mf" : 'X\(//\)$' \| \
12469          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12470 $as_echo X"$mf" |
12471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12472             s//\1/
12473             q
12474           }
12475           /^X\(\/\/\)[^/].*/{
12476             s//\1/
12477             q
12478           }
12479           /^X\(\/\/\)$/{
12480             s//\1/
12481             q
12482           }
12483           /^X\(\/\).*/{
12484             s//\1/
12485             q
12486           }
12487           s/.*/./; q'`
12488     else
12489       continue
12490     fi
12491     # Extract the definition of DEPDIR, am__include, and am__quote
12492     # from the Makefile without running `make'.
12493     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12494     test -z "$DEPDIR" && continue
12495     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12496     test -z "am__include" && continue
12497     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12498     # When using ansi2knr, U may be empty or an underscore; expand it
12499     U=`sed -n 's/^U = //p' < "$mf"`
12500     # Find all dependency output files, they are included files with
12501     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12502     # simplest approach to changing $(DEPDIR) to its actual value in the
12503     # expansion.
12504     for file in `sed -n "
12505       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12506          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12507       # Make sure the directory exists.
12508       test -f "$dirpart/$file" && continue
12509       fdir=`$as_dirname -- "$file" ||
12510 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12511          X"$file" : 'X\(//\)[^/]' \| \
12512          X"$file" : 'X\(//\)$' \| \
12513          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12514 $as_echo X"$file" |
12515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12516             s//\1/
12517             q
12518           }
12519           /^X\(\/\/\)[^/].*/{
12520             s//\1/
12521             q
12522           }
12523           /^X\(\/\/\)$/{
12524             s//\1/
12525             q
12526           }
12527           /^X\(\/\).*/{
12528             s//\1/
12529             q
12530           }
12531           s/.*/./; q'`
12532       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12533       # echo "creating $dirpart/$file"
12534       echo '# dummy' > "$dirpart/$file"
12535     done
12536   done
12537 }
12538  ;;
12539     "libtool":C)
12540
12541     # See if we are running on zsh, and set the options which allow our
12542     # commands through without removal of \ escapes.
12543     if test -n "${ZSH_VERSION+set}" ; then
12544       setopt NO_GLOB_SUBST
12545     fi
12546
12547     cfgfile="${ofile}T"
12548     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12549     $RM "$cfgfile"
12550
12551     cat <<_LT_EOF >> "$cfgfile"
12552 #! $SHELL
12553
12554 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12555 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12556 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12557 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12558 #
12559 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12560 #                 2006, 2007, 2008 Free Software Foundation, Inc.
12561 #   Written by Gordon Matzigkeit, 1996
12562 #
12563 #   This file is part of GNU Libtool.
12564 #
12565 # GNU Libtool is free software; you can redistribute it and/or
12566 # modify it under the terms of the GNU General Public License as
12567 # published by the Free Software Foundation; either version 2 of
12568 # the License, or (at your option) any later version.
12569 #
12570 # As a special exception to the GNU General Public License,
12571 # if you distribute this file as part of a program or library that
12572 # is built using GNU Libtool, you may include this file under the
12573 # same distribution terms that you use for the rest of that program.
12574 #
12575 # GNU Libtool is distributed in the hope that it will be useful,
12576 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12577 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12578 # GNU General Public License for more details.
12579 #
12580 # You should have received a copy of the GNU General Public License
12581 # along with GNU Libtool; see the file COPYING.  If not, a copy
12582 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12583 # obtained by writing to the Free Software Foundation, Inc.,
12584 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12585
12586
12587 # The names of the tagged configurations supported by this script.
12588 available_tags=""
12589
12590 # ### BEGIN LIBTOOL CONFIG
12591
12592 # Which release of libtool.m4 was used?
12593 macro_version=$macro_version
12594 macro_revision=$macro_revision
12595
12596 # Whether or not to build shared libraries.
12597 build_libtool_libs=$enable_shared
12598
12599 # Whether or not to build static libraries.
12600 build_old_libs=$enable_static
12601
12602 # What type of objects to build.
12603 pic_mode=$pic_mode
12604
12605 # Whether or not to optimize for fast installation.
12606 fast_install=$enable_fast_install
12607
12608 # The host system.
12609 host_alias=$host_alias
12610 host=$host
12611 host_os=$host_os
12612
12613 # The build system.
12614 build_alias=$build_alias
12615 build=$build
12616 build_os=$build_os
12617
12618 # A sed program that does not truncate output.
12619 SED=$lt_SED
12620
12621 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12622 Xsed="\$SED -e 1s/^X//"
12623
12624 # A grep program that handles long lines.
12625 GREP=$lt_GREP
12626
12627 # An ERE matcher.
12628 EGREP=$lt_EGREP
12629
12630 # A literal string matcher.
12631 FGREP=$lt_FGREP
12632
12633 # A BSD- or MS-compatible name lister.
12634 NM=$lt_NM
12635
12636 # Whether we need soft or hard links.
12637 LN_S=$lt_LN_S
12638
12639 # What is the maximum length of a command?
12640 max_cmd_len=$max_cmd_len
12641
12642 # Object file suffix (normally "o").
12643 objext=$ac_objext
12644
12645 # Executable file suffix (normally "").
12646 exeext=$exeext
12647
12648 # whether the shell understands "unset".
12649 lt_unset=$lt_unset
12650
12651 # turn spaces into newlines.
12652 SP2NL=$lt_lt_SP2NL
12653
12654 # turn newlines into spaces.
12655 NL2SP=$lt_lt_NL2SP
12656
12657 # How to create reloadable object files.
12658 reload_flag=$lt_reload_flag
12659 reload_cmds=$lt_reload_cmds
12660
12661 # An object symbol dumper.
12662 OBJDUMP=$lt_OBJDUMP
12663
12664 # Method to check whether dependent libraries are shared objects.
12665 deplibs_check_method=$lt_deplibs_check_method
12666
12667 # Command to use when deplibs_check_method == "file_magic".
12668 file_magic_cmd=$lt_file_magic_cmd
12669
12670 # The archiver.
12671 AR=$lt_AR
12672 AR_FLAGS=$lt_AR_FLAGS
12673
12674 # A symbol stripping program.
12675 STRIP=$lt_STRIP
12676
12677 # Commands used to install an old-style archive.
12678 RANLIB=$lt_RANLIB
12679 old_postinstall_cmds=$lt_old_postinstall_cmds
12680 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12681
12682 # A C compiler.
12683 LTCC=$lt_CC
12684
12685 # LTCC compiler flags.
12686 LTCFLAGS=$lt_CFLAGS
12687
12688 # Take the output of nm and produce a listing of raw symbols and C names.
12689 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12690
12691 # Transform the output of nm in a proper C declaration.
12692 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12693
12694 # Transform the output of nm in a C name address pair.
12695 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12696
12697 # Transform the output of nm in a C name address pair when lib prefix is needed.
12698 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12699
12700 # The name of the directory that contains temporary libtool files.
12701 objdir=$objdir
12702
12703 # Shell to use when invoking shell scripts.
12704 SHELL=$lt_SHELL
12705
12706 # An echo program that does not interpret backslashes.
12707 ECHO=$lt_ECHO
12708
12709 # Used to examine libraries when file_magic_cmd begins with "file".
12710 MAGIC_CMD=$MAGIC_CMD
12711
12712 # Must we lock files when doing compilation?
12713 need_locks=$lt_need_locks
12714
12715 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12716 DSYMUTIL=$lt_DSYMUTIL
12717
12718 # Tool to change global to local symbols on Mac OS X.
12719 NMEDIT=$lt_NMEDIT
12720
12721 # Tool to manipulate fat objects and archives on Mac OS X.
12722 LIPO=$lt_LIPO
12723
12724 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12725 OTOOL=$lt_OTOOL
12726
12727 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12728 OTOOL64=$lt_OTOOL64
12729
12730 # Old archive suffix (normally "a").
12731 libext=$libext
12732
12733 # Shared library suffix (normally ".so").
12734 shrext_cmds=$lt_shrext_cmds
12735
12736 # The commands to extract the exported symbol list from a shared archive.
12737 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12738
12739 # Variables whose values should be saved in libtool wrapper scripts and
12740 # restored at link time.
12741 variables_saved_for_relink=$lt_variables_saved_for_relink
12742
12743 # Do we need the "lib" prefix for modules?
12744 need_lib_prefix=$need_lib_prefix
12745
12746 # Do we need a version for libraries?
12747 need_version=$need_version
12748
12749 # Library versioning type.
12750 version_type=$version_type
12751
12752 # Shared library runtime path variable.
12753 runpath_var=$runpath_var
12754
12755 # Shared library path variable.
12756 shlibpath_var=$shlibpath_var
12757
12758 # Is shlibpath searched before the hard-coded library search path?
12759 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12760
12761 # Format of library name prefix.
12762 libname_spec=$lt_libname_spec
12763
12764 # List of archive names.  First name is the real one, the rest are links.
12765 # The last name is the one that the linker finds with -lNAME
12766 library_names_spec=$lt_library_names_spec
12767
12768 # The coded name of the library, if different from the real name.
12769 soname_spec=$lt_soname_spec
12770
12771 # Command to use after installation of a shared archive.
12772 postinstall_cmds=$lt_postinstall_cmds
12773
12774 # Command to use after uninstallation of a shared archive.
12775 postuninstall_cmds=$lt_postuninstall_cmds
12776
12777 # Commands used to finish a libtool library installation in a directory.
12778 finish_cmds=$lt_finish_cmds
12779
12780 # As "finish_cmds", except a single script fragment to be evaled but
12781 # not shown.
12782 finish_eval=$lt_finish_eval
12783
12784 # Whether we should hardcode library paths into libraries.
12785 hardcode_into_libs=$hardcode_into_libs
12786
12787 # Compile-time system search path for libraries.
12788 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12789
12790 # Run-time system search path for libraries.
12791 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12792
12793 # Whether dlopen is supported.
12794 dlopen_support=$enable_dlopen
12795
12796 # Whether dlopen of programs is supported.
12797 dlopen_self=$enable_dlopen_self
12798
12799 # Whether dlopen of statically linked programs is supported.
12800 dlopen_self_static=$enable_dlopen_self_static
12801
12802 # Commands to strip libraries.
12803 old_striplib=$lt_old_striplib
12804 striplib=$lt_striplib
12805
12806
12807 # The linker used to build libraries.
12808 LD=$lt_LD
12809
12810 # Commands used to build an old-style archive.
12811 old_archive_cmds=$lt_old_archive_cmds
12812
12813 # A language specific compiler.
12814 CC=$lt_compiler
12815
12816 # Is the compiler the GNU compiler?
12817 with_gcc=$GCC
12818
12819 # Compiler flag to turn off builtin functions.
12820 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12821
12822 # How to pass a linker flag through the compiler.
12823 wl=$lt_lt_prog_compiler_wl
12824
12825 # Additional compiler flags for building library objects.
12826 pic_flag=$lt_lt_prog_compiler_pic
12827
12828 # Compiler flag to prevent dynamic linking.
12829 link_static_flag=$lt_lt_prog_compiler_static
12830
12831 # Does compiler simultaneously support -c and -o options?
12832 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12833
12834 # Whether or not to add -lc for building shared libraries.
12835 build_libtool_need_lc=$archive_cmds_need_lc
12836
12837 # Whether or not to disallow shared libs when runtime libs are static.
12838 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12839
12840 # Compiler flag to allow reflexive dlopens.
12841 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12842
12843 # Compiler flag to generate shared objects directly from archives.
12844 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12845
12846 # Whether the compiler copes with passing no objects directly.
12847 compiler_needs_object=$lt_compiler_needs_object
12848
12849 # Create an old-style archive from a shared archive.
12850 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12851
12852 # Create a temporary old-style archive to link instead of a shared archive.
12853 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12854
12855 # Commands used to build a shared archive.
12856 archive_cmds=$lt_archive_cmds
12857 archive_expsym_cmds=$lt_archive_expsym_cmds
12858
12859 # Commands used to build a loadable module if different from building
12860 # a shared archive.
12861 module_cmds=$lt_module_cmds
12862 module_expsym_cmds=$lt_module_expsym_cmds
12863
12864 # Whether we are building with GNU ld or not.
12865 with_gnu_ld=$lt_with_gnu_ld
12866
12867 # Flag that allows shared libraries with undefined symbols to be built.
12868 allow_undefined_flag=$lt_allow_undefined_flag
12869
12870 # Flag that enforces no undefined symbols.
12871 no_undefined_flag=$lt_no_undefined_flag
12872
12873 # Flag to hardcode \$libdir into a binary during linking.
12874 # This must work even if \$libdir does not exist
12875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12876
12877 # If ld is used when linking, flag to hardcode \$libdir into a binary
12878 # during linking.  This must work even if \$libdir does not exist.
12879 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12880
12881 # Whether we need a single "-rpath" flag with a separated argument.
12882 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12883
12884 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12885 # DIR into the resulting binary.
12886 hardcode_direct=$hardcode_direct
12887
12888 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12889 # DIR into the resulting binary and the resulting library dependency is
12890 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12891 # library is relocated.
12892 hardcode_direct_absolute=$hardcode_direct_absolute
12893
12894 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12895 # into the resulting binary.
12896 hardcode_minus_L=$hardcode_minus_L
12897
12898 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12899 # into the resulting binary.
12900 hardcode_shlibpath_var=$hardcode_shlibpath_var
12901
12902 # Set to "yes" if building a shared library automatically hardcodes DIR
12903 # into the library and all subsequent libraries and executables linked
12904 # against it.
12905 hardcode_automatic=$hardcode_automatic
12906
12907 # Set to yes if linker adds runtime paths of dependent libraries
12908 # to runtime path list.
12909 inherit_rpath=$inherit_rpath
12910
12911 # Whether libtool must link a program against all its dependency libraries.
12912 link_all_deplibs=$link_all_deplibs
12913
12914 # Fix the shell variable \$srcfile for the compiler.
12915 fix_srcfile_path=$lt_fix_srcfile_path
12916
12917 # Set to "yes" if exported symbols are required.
12918 always_export_symbols=$always_export_symbols
12919
12920 # The commands to list exported symbols.
12921 export_symbols_cmds=$lt_export_symbols_cmds
12922
12923 # Symbols that should not be listed in the preloaded symbols.
12924 exclude_expsyms=$lt_exclude_expsyms
12925
12926 # Symbols that must always be exported.
12927 include_expsyms=$lt_include_expsyms
12928
12929 # Commands necessary for linking programs (against libraries) with templates.
12930 prelink_cmds=$lt_prelink_cmds
12931
12932 # Specify filename containing input files.
12933 file_list_spec=$lt_file_list_spec
12934
12935 # How to hardcode a shared library path into an executable.
12936 hardcode_action=$hardcode_action
12937
12938 # ### END LIBTOOL CONFIG
12939
12940 _LT_EOF
12941
12942   case $host_os in
12943   aix3*)
12944     cat <<\_LT_EOF >> "$cfgfile"
12945 # AIX sometimes has problems with the GCC collect2 program.  For some
12946 # reason, if we set the COLLECT_NAMES environment variable, the problems
12947 # vanish in a puff of smoke.
12948 if test "X${COLLECT_NAMES+set}" != Xset; then
12949   COLLECT_NAMES=
12950   export COLLECT_NAMES
12951 fi
12952 _LT_EOF
12953     ;;
12954   esac
12955
12956
12957 ltmain="$ac_aux_dir/ltmain.sh"
12958
12959
12960   # We use sed instead of cat because bash on DJGPP gets confused if
12961   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12962   # text mode, it properly converts lines to CR/LF.  This bash problem
12963   # is reportedly fixed, but why not run on old versions too?
12964   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12965     || (rm -f "$cfgfile"; exit 1)
12966
12967   case $xsi_shell in
12968   yes)
12969     cat << \_LT_EOF >> "$cfgfile"
12970
12971 # func_dirname file append nondir_replacement
12972 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12973 # otherwise set result to NONDIR_REPLACEMENT.
12974 func_dirname ()
12975 {
12976   case ${1} in
12977     */*) func_dirname_result="${1%/*}${2}" ;;
12978     *  ) func_dirname_result="${3}" ;;
12979   esac
12980 }
12981
12982 # func_basename file
12983 func_basename ()
12984 {
12985   func_basename_result="${1##*/}"
12986 }
12987
12988 # func_dirname_and_basename file append nondir_replacement
12989 # perform func_basename and func_dirname in a single function
12990 # call:
12991 #   dirname:  Compute the dirname of FILE.  If nonempty,
12992 #             add APPEND to the result, otherwise set result
12993 #             to NONDIR_REPLACEMENT.
12994 #             value returned in "$func_dirname_result"
12995 #   basename: Compute filename of FILE.
12996 #             value retuned in "$func_basename_result"
12997 # Implementation must be kept synchronized with func_dirname
12998 # and func_basename. For efficiency, we do not delegate to
12999 # those functions but instead duplicate the functionality here.
13000 func_dirname_and_basename ()
13001 {
13002   case ${1} in
13003     */*) func_dirname_result="${1%/*}${2}" ;;
13004     *  ) func_dirname_result="${3}" ;;
13005   esac
13006   func_basename_result="${1##*/}"
13007 }
13008
13009 # func_stripname prefix suffix name
13010 # strip PREFIX and SUFFIX off of NAME.
13011 # PREFIX and SUFFIX must not contain globbing or regex special
13012 # characters, hashes, percent signs, but SUFFIX may contain a leading
13013 # dot (in which case that matches only a dot).
13014 func_stripname ()
13015 {
13016   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13017   # positional parameters, so assign one to ordinary parameter first.
13018   func_stripname_result=${3}
13019   func_stripname_result=${func_stripname_result#"${1}"}
13020   func_stripname_result=${func_stripname_result%"${2}"}
13021 }
13022
13023 # func_opt_split
13024 func_opt_split ()
13025 {
13026   func_opt_split_opt=${1%%=*}
13027   func_opt_split_arg=${1#*=}
13028 }
13029
13030 # func_lo2o object
13031 func_lo2o ()
13032 {
13033   case ${1} in
13034     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13035     *)    func_lo2o_result=${1} ;;
13036   esac
13037 }
13038
13039 # func_xform libobj-or-source
13040 func_xform ()
13041 {
13042   func_xform_result=${1%.*}.lo
13043 }
13044
13045 # func_arith arithmetic-term...
13046 func_arith ()
13047 {
13048   func_arith_result=$(( $* ))
13049 }
13050
13051 # func_len string
13052 # STRING may not start with a hyphen.
13053 func_len ()
13054 {
13055   func_len_result=${#1}
13056 }
13057
13058 _LT_EOF
13059     ;;
13060   *) # Bourne compatible functions.
13061     cat << \_LT_EOF >> "$cfgfile"
13062
13063 # func_dirname file append nondir_replacement
13064 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13065 # otherwise set result to NONDIR_REPLACEMENT.
13066 func_dirname ()
13067 {
13068   # Extract subdirectory from the argument.
13069   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13070   if test "X$func_dirname_result" = "X${1}"; then
13071     func_dirname_result="${3}"
13072   else
13073     func_dirname_result="$func_dirname_result${2}"
13074   fi
13075 }
13076
13077 # func_basename file
13078 func_basename ()
13079 {
13080   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13081 }
13082
13083
13084 # func_stripname prefix suffix name
13085 # strip PREFIX and SUFFIX off of NAME.
13086 # PREFIX and SUFFIX must not contain globbing or regex special
13087 # characters, hashes, percent signs, but SUFFIX may contain a leading
13088 # dot (in which case that matches only a dot).
13089 # func_strip_suffix prefix name
13090 func_stripname ()
13091 {
13092   case ${2} in
13093     .*) func_stripname_result=`$ECHO "X${3}" \
13094            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13095     *)  func_stripname_result=`$ECHO "X${3}" \
13096            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13097   esac
13098 }
13099
13100 # sed scripts:
13101 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13102 my_sed_long_arg='1s/^-[^=]*=//'
13103
13104 # func_opt_split
13105 func_opt_split ()
13106 {
13107   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13108   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13109 }
13110
13111 # func_lo2o object
13112 func_lo2o ()
13113 {
13114   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13115 }
13116
13117 # func_xform libobj-or-source
13118 func_xform ()
13119 {
13120   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13121 }
13122
13123 # func_arith arithmetic-term...
13124 func_arith ()
13125 {
13126   func_arith_result=`expr "$@"`
13127 }
13128
13129 # func_len string
13130 # STRING may not start with a hyphen.
13131 func_len ()
13132 {
13133   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13134 }
13135
13136 _LT_EOF
13137 esac
13138
13139 case $lt_shell_append in
13140   yes)
13141     cat << \_LT_EOF >> "$cfgfile"
13142
13143 # func_append var value
13144 # Append VALUE to the end of shell variable VAR.
13145 func_append ()
13146 {
13147   eval "$1+=\$2"
13148 }
13149 _LT_EOF
13150     ;;
13151   *)
13152     cat << \_LT_EOF >> "$cfgfile"
13153
13154 # func_append var value
13155 # Append VALUE to the end of shell variable VAR.
13156 func_append ()
13157 {
13158   eval "$1=\$$1\$2"
13159 }
13160
13161 _LT_EOF
13162     ;;
13163   esac
13164
13165
13166   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13167     || (rm -f "$cfgfile"; exit 1)
13168
13169   mv -f "$cfgfile" "$ofile" ||
13170     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13171   chmod +x "$ofile"
13172
13173  ;;
13174
13175   esac
13176 done # for ac_tag
13177
13178
13179 as_fn_exit 0
13180 _ACEOF
13181 ac_clean_files=$ac_clean_files_save
13182
13183 test $ac_write_fail = 0 ||
13184   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13185
13186
13187 # configure is writing to config.log, and then calls config.status.
13188 # config.status does its own redirection, appending to config.log.
13189 # Unfortunately, on DOS this fails, as config.log is still kept open
13190 # by configure, so config.status won't be able to write to it; its
13191 # output is simply discarded.  So we exec the FD to /dev/null,
13192 # effectively closing config.log, so it can be properly (re)opened and
13193 # appended to by config.status.  When coming back to configure, we
13194 # need to make the FD available again.
13195 if test "$no_create" != yes; then
13196   ac_cs_success=:
13197   ac_config_status_args=
13198   test "$silent" = yes &&
13199     ac_config_status_args="$ac_config_status_args --quiet"
13200   exec 5>/dev/null
13201   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13202   exec 5>>config.log
13203   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13204   # would make configure fail if this is the last instruction.
13205   $ac_cs_success || as_fn_exit $?
13206 fi
13207 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13208   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13209 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13210 fi
13211